@miradorlabs/web-grpc 2.26.0 → 2.27.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,1509 @@
1
+ // source: proto/gateway/web/v1/trace_measure_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_common_v1_status_pb = require('../../../../proto/gateway/common/v1/status_pb.js');
27
+ goog.object.extend(proto, proto_gateway_common_v1_status_pb);
28
+ var proto_gateway_web_v1_metric_gateway_pb = require('../../../../proto/gateway/web/v1/metric_gateway_pb.js');
29
+ goog.object.extend(proto, proto_gateway_web_v1_metric_gateway_pb);
30
+ var proto_gateway_web_v1_trace_gateway_pb = require('../../../../proto/gateway/web/v1/trace_gateway_pb.js');
31
+ goog.object.extend(proto, proto_gateway_web_v1_trace_gateway_pb);
32
+ goog.exportSymbol('proto.gateway.web.v1.EvaluateTraceMeasureRequest', null, global);
33
+ goog.exportSymbol('proto.gateway.web.v1.EvaluateTraceMeasureResponse', null, global);
34
+ goog.exportSymbol('proto.gateway.web.v1.TraceMeasureCoverage', null, global);
35
+ goog.exportSymbol('proto.gateway.web.v1.TraceMeasureProgram', null, global);
36
+ goog.exportSymbol('proto.gateway.web.v1.TraceMeasureRow', null, global);
37
+ /**
38
+ * Generated by JsPbCodeGenerator.
39
+ * @param {Array=} opt_data Optional initial data array, typically from a
40
+ * server response, or constructed directly in Javascript. The array is used
41
+ * in place and becomes part of the constructed object. It is not cloned.
42
+ * If no data is provided, the constructed object will be empty, but still
43
+ * valid.
44
+ * @extends {jspb.Message}
45
+ * @constructor
46
+ */
47
+ proto.gateway.web.v1.EvaluateTraceMeasureRequest = function(opt_data) {
48
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.EvaluateTraceMeasureRequest.repeatedFields_, null);
49
+ };
50
+ goog.inherits(proto.gateway.web.v1.EvaluateTraceMeasureRequest, jspb.Message);
51
+ if (goog.DEBUG && !COMPILED) {
52
+ /**
53
+ * @public
54
+ * @override
55
+ */
56
+ proto.gateway.web.v1.EvaluateTraceMeasureRequest.displayName = 'proto.gateway.web.v1.EvaluateTraceMeasureRequest';
57
+ }
58
+ /**
59
+ * Generated by JsPbCodeGenerator.
60
+ * @param {Array=} opt_data Optional initial data array, typically from a
61
+ * server response, or constructed directly in Javascript. The array is used
62
+ * in place and becomes part of the constructed object. It is not cloned.
63
+ * If no data is provided, the constructed object will be empty, but still
64
+ * valid.
65
+ * @extends {jspb.Message}
66
+ * @constructor
67
+ */
68
+ proto.gateway.web.v1.TraceMeasureProgram = function(opt_data) {
69
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
70
+ };
71
+ goog.inherits(proto.gateway.web.v1.TraceMeasureProgram, jspb.Message);
72
+ if (goog.DEBUG && !COMPILED) {
73
+ /**
74
+ * @public
75
+ * @override
76
+ */
77
+ proto.gateway.web.v1.TraceMeasureProgram.displayName = 'proto.gateway.web.v1.TraceMeasureProgram';
78
+ }
79
+ /**
80
+ * Generated by JsPbCodeGenerator.
81
+ * @param {Array=} opt_data Optional initial data array, typically from a
82
+ * server response, or constructed directly in Javascript. The array is used
83
+ * in place and becomes part of the constructed object. It is not cloned.
84
+ * If no data is provided, the constructed object will be empty, but still
85
+ * valid.
86
+ * @extends {jspb.Message}
87
+ * @constructor
88
+ */
89
+ proto.gateway.web.v1.EvaluateTraceMeasureResponse = function(opt_data) {
90
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.EvaluateTraceMeasureResponse.repeatedFields_, null);
91
+ };
92
+ goog.inherits(proto.gateway.web.v1.EvaluateTraceMeasureResponse, jspb.Message);
93
+ if (goog.DEBUG && !COMPILED) {
94
+ /**
95
+ * @public
96
+ * @override
97
+ */
98
+ proto.gateway.web.v1.EvaluateTraceMeasureResponse.displayName = 'proto.gateway.web.v1.EvaluateTraceMeasureResponse';
99
+ }
100
+ /**
101
+ * Generated by JsPbCodeGenerator.
102
+ * @param {Array=} opt_data Optional initial data array, typically from a
103
+ * server response, or constructed directly in Javascript. The array is used
104
+ * in place and becomes part of the constructed object. It is not cloned.
105
+ * If no data is provided, the constructed object will be empty, but still
106
+ * valid.
107
+ * @extends {jspb.Message}
108
+ * @constructor
109
+ */
110
+ proto.gateway.web.v1.TraceMeasureRow = function(opt_data) {
111
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
112
+ };
113
+ goog.inherits(proto.gateway.web.v1.TraceMeasureRow, jspb.Message);
114
+ if (goog.DEBUG && !COMPILED) {
115
+ /**
116
+ * @public
117
+ * @override
118
+ */
119
+ proto.gateway.web.v1.TraceMeasureRow.displayName = 'proto.gateway.web.v1.TraceMeasureRow';
120
+ }
121
+ /**
122
+ * Generated by JsPbCodeGenerator.
123
+ * @param {Array=} opt_data Optional initial data array, typically from a
124
+ * server response, or constructed directly in Javascript. The array is used
125
+ * in place and becomes part of the constructed object. It is not cloned.
126
+ * If no data is provided, the constructed object will be empty, but still
127
+ * valid.
128
+ * @extends {jspb.Message}
129
+ * @constructor
130
+ */
131
+ proto.gateway.web.v1.TraceMeasureCoverage = function(opt_data) {
132
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
133
+ };
134
+ goog.inherits(proto.gateway.web.v1.TraceMeasureCoverage, jspb.Message);
135
+ if (goog.DEBUG && !COMPILED) {
136
+ /**
137
+ * @public
138
+ * @override
139
+ */
140
+ proto.gateway.web.v1.TraceMeasureCoverage.displayName = 'proto.gateway.web.v1.TraceMeasureCoverage';
141
+ }
142
+
143
+ /**
144
+ * List of repeated fields within this message type.
145
+ * @private {!Array<number>}
146
+ * @const
147
+ */
148
+ proto.gateway.web.v1.EvaluateTraceMeasureRequest.repeatedFields_ = [5,6];
149
+
150
+
151
+
152
+ if (jspb.Message.GENERATE_TO_OBJECT) {
153
+ /**
154
+ * Creates an object representation of this proto.
155
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
156
+ * Optional fields that are not set will be set to undefined.
157
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
158
+ * For the list of reserved names please see:
159
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
160
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
161
+ * JSPB instance for transitional soy proto support:
162
+ * http://goto/soy-param-migration
163
+ * @return {!Object}
164
+ */
165
+ proto.gateway.web.v1.EvaluateTraceMeasureRequest.prototype.toObject = function(opt_includeInstance) {
166
+ return proto.gateway.web.v1.EvaluateTraceMeasureRequest.toObject(opt_includeInstance, this);
167
+ };
168
+
169
+
170
+ /**
171
+ * Static version of the {@see toObject} method.
172
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
173
+ * the JSPB instance for transitional soy proto support:
174
+ * http://goto/soy-param-migration
175
+ * @param {!proto.gateway.web.v1.EvaluateTraceMeasureRequest} msg The msg instance to transform.
176
+ * @return {!Object}
177
+ * @suppress {unusedLocalVariables} f is only used for nested messages
178
+ */
179
+ proto.gateway.web.v1.EvaluateTraceMeasureRequest.toObject = function(includeInstance, msg) {
180
+ var f, obj = {
181
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
182
+ projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
183
+ program: (f = msg.getProgram()) && proto.gateway.web.v1.TraceMeasureProgram.toObject(includeInstance, f),
184
+ timeRange: (f = msg.getTimeRange()) && proto_gateway_web_v1_metric_gateway_pb.TimeRange.toObject(includeInstance, f),
185
+ statusesList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f,
186
+ groupByList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f
187
+ };
188
+
189
+ if (includeInstance) {
190
+ obj.$jspbMessageInstance = msg;
191
+ }
192
+ return obj;
193
+ };
194
+ }
195
+
196
+
197
+ /**
198
+ * Deserializes binary data (in protobuf wire format).
199
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
200
+ * @return {!proto.gateway.web.v1.EvaluateTraceMeasureRequest}
201
+ */
202
+ proto.gateway.web.v1.EvaluateTraceMeasureRequest.deserializeBinary = function(bytes) {
203
+ var reader = new jspb.BinaryReader(bytes);
204
+ var msg = new proto.gateway.web.v1.EvaluateTraceMeasureRequest;
205
+ return proto.gateway.web.v1.EvaluateTraceMeasureRequest.deserializeBinaryFromReader(msg, reader);
206
+ };
207
+
208
+
209
+ /**
210
+ * Deserializes binary data (in protobuf wire format) from the
211
+ * given reader into the given message object.
212
+ * @param {!proto.gateway.web.v1.EvaluateTraceMeasureRequest} msg The message object to deserialize into.
213
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
214
+ * @return {!proto.gateway.web.v1.EvaluateTraceMeasureRequest}
215
+ */
216
+ proto.gateway.web.v1.EvaluateTraceMeasureRequest.deserializeBinaryFromReader = function(msg, reader) {
217
+ while (reader.nextField()) {
218
+ if (reader.isEndGroup()) {
219
+ break;
220
+ }
221
+ var field = reader.getFieldNumber();
222
+ switch (field) {
223
+ case 1:
224
+ var value = /** @type {string} */ (reader.readString());
225
+ msg.setOrganizationId(value);
226
+ break;
227
+ case 2:
228
+ var value = /** @type {string} */ (reader.readString());
229
+ msg.setProjectId(value);
230
+ break;
231
+ case 3:
232
+ var value = new proto.gateway.web.v1.TraceMeasureProgram;
233
+ reader.readMessage(value,proto.gateway.web.v1.TraceMeasureProgram.deserializeBinaryFromReader);
234
+ msg.setProgram(value);
235
+ break;
236
+ case 4:
237
+ var value = new proto_gateway_web_v1_metric_gateway_pb.TimeRange;
238
+ reader.readMessage(value,proto_gateway_web_v1_metric_gateway_pb.TimeRange.deserializeBinaryFromReader);
239
+ msg.setTimeRange(value);
240
+ break;
241
+ case 5:
242
+ var values = /** @type {!Array<!proto.gateway.web.v1.TraceStatus>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
243
+ for (var i = 0; i < values.length; i++) {
244
+ msg.addStatuses(values[i]);
245
+ }
246
+ break;
247
+ case 6:
248
+ var value = /** @type {string} */ (reader.readString());
249
+ msg.addGroupBy(value);
250
+ break;
251
+ default:
252
+ reader.skipField();
253
+ break;
254
+ }
255
+ }
256
+ return msg;
257
+ };
258
+
259
+
260
+ /**
261
+ * Serializes the message to binary data (in protobuf wire format).
262
+ * @return {!Uint8Array}
263
+ */
264
+ proto.gateway.web.v1.EvaluateTraceMeasureRequest.prototype.serializeBinary = function() {
265
+ var writer = new jspb.BinaryWriter();
266
+ proto.gateway.web.v1.EvaluateTraceMeasureRequest.serializeBinaryToWriter(this, writer);
267
+ return writer.getResultBuffer();
268
+ };
269
+
270
+
271
+ /**
272
+ * Serializes the given message to binary data (in protobuf wire
273
+ * format), writing to the given BinaryWriter.
274
+ * @param {!proto.gateway.web.v1.EvaluateTraceMeasureRequest} message
275
+ * @param {!jspb.BinaryWriter} writer
276
+ * @suppress {unusedLocalVariables} f is only used for nested messages
277
+ */
278
+ proto.gateway.web.v1.EvaluateTraceMeasureRequest.serializeBinaryToWriter = function(message, writer) {
279
+ var f = undefined;
280
+ f = message.getOrganizationId();
281
+ if (f.length > 0) {
282
+ writer.writeString(
283
+ 1,
284
+ f
285
+ );
286
+ }
287
+ f = message.getProjectId();
288
+ if (f.length > 0) {
289
+ writer.writeString(
290
+ 2,
291
+ f
292
+ );
293
+ }
294
+ f = message.getProgram();
295
+ if (f != null) {
296
+ writer.writeMessage(
297
+ 3,
298
+ f,
299
+ proto.gateway.web.v1.TraceMeasureProgram.serializeBinaryToWriter
300
+ );
301
+ }
302
+ f = message.getTimeRange();
303
+ if (f != null) {
304
+ writer.writeMessage(
305
+ 4,
306
+ f,
307
+ proto_gateway_web_v1_metric_gateway_pb.TimeRange.serializeBinaryToWriter
308
+ );
309
+ }
310
+ f = message.getStatusesList();
311
+ if (f.length > 0) {
312
+ writer.writePackedEnum(
313
+ 5,
314
+ f
315
+ );
316
+ }
317
+ f = message.getGroupByList();
318
+ if (f.length > 0) {
319
+ writer.writeRepeatedString(
320
+ 6,
321
+ f
322
+ );
323
+ }
324
+ };
325
+
326
+
327
+ /**
328
+ * optional string organization_id = 1;
329
+ * @return {string}
330
+ */
331
+ proto.gateway.web.v1.EvaluateTraceMeasureRequest.prototype.getOrganizationId = function() {
332
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
333
+ };
334
+
335
+
336
+ /**
337
+ * @param {string} value
338
+ * @return {!proto.gateway.web.v1.EvaluateTraceMeasureRequest} returns this
339
+ */
340
+ proto.gateway.web.v1.EvaluateTraceMeasureRequest.prototype.setOrganizationId = function(value) {
341
+ return jspb.Message.setProto3StringField(this, 1, value);
342
+ };
343
+
344
+
345
+ /**
346
+ * optional string project_id = 2;
347
+ * @return {string}
348
+ */
349
+ proto.gateway.web.v1.EvaluateTraceMeasureRequest.prototype.getProjectId = function() {
350
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
351
+ };
352
+
353
+
354
+ /**
355
+ * @param {string} value
356
+ * @return {!proto.gateway.web.v1.EvaluateTraceMeasureRequest} returns this
357
+ */
358
+ proto.gateway.web.v1.EvaluateTraceMeasureRequest.prototype.setProjectId = function(value) {
359
+ return jspb.Message.setProto3StringField(this, 2, value);
360
+ };
361
+
362
+
363
+ /**
364
+ * optional TraceMeasureProgram program = 3;
365
+ * @return {?proto.gateway.web.v1.TraceMeasureProgram}
366
+ */
367
+ proto.gateway.web.v1.EvaluateTraceMeasureRequest.prototype.getProgram = function() {
368
+ return /** @type{?proto.gateway.web.v1.TraceMeasureProgram} */ (
369
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.TraceMeasureProgram, 3));
370
+ };
371
+
372
+
373
+ /**
374
+ * @param {?proto.gateway.web.v1.TraceMeasureProgram|undefined} value
375
+ * @return {!proto.gateway.web.v1.EvaluateTraceMeasureRequest} returns this
376
+ */
377
+ proto.gateway.web.v1.EvaluateTraceMeasureRequest.prototype.setProgram = function(value) {
378
+ return jspb.Message.setWrapperField(this, 3, value);
379
+ };
380
+
381
+
382
+ /**
383
+ * Clears the message field making it undefined.
384
+ * @return {!proto.gateway.web.v1.EvaluateTraceMeasureRequest} returns this
385
+ */
386
+ proto.gateway.web.v1.EvaluateTraceMeasureRequest.prototype.clearProgram = function() {
387
+ return this.setProgram(undefined);
388
+ };
389
+
390
+
391
+ /**
392
+ * Returns whether this field is set.
393
+ * @return {boolean}
394
+ */
395
+ proto.gateway.web.v1.EvaluateTraceMeasureRequest.prototype.hasProgram = function() {
396
+ return jspb.Message.getField(this, 3) != null;
397
+ };
398
+
399
+
400
+ /**
401
+ * optional TimeRange time_range = 4;
402
+ * @return {?proto.gateway.web.v1.TimeRange}
403
+ */
404
+ proto.gateway.web.v1.EvaluateTraceMeasureRequest.prototype.getTimeRange = function() {
405
+ return /** @type{?proto.gateway.web.v1.TimeRange} */ (
406
+ jspb.Message.getWrapperField(this, proto_gateway_web_v1_metric_gateway_pb.TimeRange, 4));
407
+ };
408
+
409
+
410
+ /**
411
+ * @param {?proto.gateway.web.v1.TimeRange|undefined} value
412
+ * @return {!proto.gateway.web.v1.EvaluateTraceMeasureRequest} returns this
413
+ */
414
+ proto.gateway.web.v1.EvaluateTraceMeasureRequest.prototype.setTimeRange = function(value) {
415
+ return jspb.Message.setWrapperField(this, 4, value);
416
+ };
417
+
418
+
419
+ /**
420
+ * Clears the message field making it undefined.
421
+ * @return {!proto.gateway.web.v1.EvaluateTraceMeasureRequest} returns this
422
+ */
423
+ proto.gateway.web.v1.EvaluateTraceMeasureRequest.prototype.clearTimeRange = function() {
424
+ return this.setTimeRange(undefined);
425
+ };
426
+
427
+
428
+ /**
429
+ * Returns whether this field is set.
430
+ * @return {boolean}
431
+ */
432
+ proto.gateway.web.v1.EvaluateTraceMeasureRequest.prototype.hasTimeRange = function() {
433
+ return jspb.Message.getField(this, 4) != null;
434
+ };
435
+
436
+
437
+ /**
438
+ * repeated TraceStatus statuses = 5;
439
+ * @return {!Array<!proto.gateway.web.v1.TraceStatus>}
440
+ */
441
+ proto.gateway.web.v1.EvaluateTraceMeasureRequest.prototype.getStatusesList = function() {
442
+ return /** @type {!Array<!proto.gateway.web.v1.TraceStatus>} */ (jspb.Message.getRepeatedField(this, 5));
443
+ };
444
+
445
+
446
+ /**
447
+ * @param {!Array<!proto.gateway.web.v1.TraceStatus>} value
448
+ * @return {!proto.gateway.web.v1.EvaluateTraceMeasureRequest} returns this
449
+ */
450
+ proto.gateway.web.v1.EvaluateTraceMeasureRequest.prototype.setStatusesList = function(value) {
451
+ return jspb.Message.setField(this, 5, value || []);
452
+ };
453
+
454
+
455
+ /**
456
+ * @param {!proto.gateway.web.v1.TraceStatus} value
457
+ * @param {number=} opt_index
458
+ * @return {!proto.gateway.web.v1.EvaluateTraceMeasureRequest} returns this
459
+ */
460
+ proto.gateway.web.v1.EvaluateTraceMeasureRequest.prototype.addStatuses = function(value, opt_index) {
461
+ return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
462
+ };
463
+
464
+
465
+ /**
466
+ * Clears the list making it empty but non-null.
467
+ * @return {!proto.gateway.web.v1.EvaluateTraceMeasureRequest} returns this
468
+ */
469
+ proto.gateway.web.v1.EvaluateTraceMeasureRequest.prototype.clearStatusesList = function() {
470
+ return this.setStatusesList([]);
471
+ };
472
+
473
+
474
+ /**
475
+ * repeated string group_by = 6;
476
+ * @return {!Array<string>}
477
+ */
478
+ proto.gateway.web.v1.EvaluateTraceMeasureRequest.prototype.getGroupByList = function() {
479
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 6));
480
+ };
481
+
482
+
483
+ /**
484
+ * @param {!Array<string>} value
485
+ * @return {!proto.gateway.web.v1.EvaluateTraceMeasureRequest} returns this
486
+ */
487
+ proto.gateway.web.v1.EvaluateTraceMeasureRequest.prototype.setGroupByList = function(value) {
488
+ return jspb.Message.setField(this, 6, value || []);
489
+ };
490
+
491
+
492
+ /**
493
+ * @param {string} value
494
+ * @param {number=} opt_index
495
+ * @return {!proto.gateway.web.v1.EvaluateTraceMeasureRequest} returns this
496
+ */
497
+ proto.gateway.web.v1.EvaluateTraceMeasureRequest.prototype.addGroupBy = function(value, opt_index) {
498
+ return jspb.Message.addToRepeatedField(this, 6, value, opt_index);
499
+ };
500
+
501
+
502
+ /**
503
+ * Clears the list making it empty but non-null.
504
+ * @return {!proto.gateway.web.v1.EvaluateTraceMeasureRequest} returns this
505
+ */
506
+ proto.gateway.web.v1.EvaluateTraceMeasureRequest.prototype.clearGroupByList = function() {
507
+ return this.setGroupByList([]);
508
+ };
509
+
510
+
511
+
512
+
513
+
514
+ if (jspb.Message.GENERATE_TO_OBJECT) {
515
+ /**
516
+ * Creates an object representation of this proto.
517
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
518
+ * Optional fields that are not set will be set to undefined.
519
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
520
+ * For the list of reserved names please see:
521
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
522
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
523
+ * JSPB instance for transitional soy proto support:
524
+ * http://goto/soy-param-migration
525
+ * @return {!Object}
526
+ */
527
+ proto.gateway.web.v1.TraceMeasureProgram.prototype.toObject = function(opt_includeInstance) {
528
+ return proto.gateway.web.v1.TraceMeasureProgram.toObject(opt_includeInstance, this);
529
+ };
530
+
531
+
532
+ /**
533
+ * Static version of the {@see toObject} method.
534
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
535
+ * the JSPB instance for transitional soy proto support:
536
+ * http://goto/soy-param-migration
537
+ * @param {!proto.gateway.web.v1.TraceMeasureProgram} msg The msg instance to transform.
538
+ * @return {!Object}
539
+ * @suppress {unusedLocalVariables} f is only used for nested messages
540
+ */
541
+ proto.gateway.web.v1.TraceMeasureProgram.toObject = function(includeInstance, msg) {
542
+ var f, obj = {
543
+ populationExpression: jspb.Message.getFieldWithDefault(msg, 1, ""),
544
+ valueExpression: jspb.Message.getFieldWithDefault(msg, 2, "")
545
+ };
546
+
547
+ if (includeInstance) {
548
+ obj.$jspbMessageInstance = msg;
549
+ }
550
+ return obj;
551
+ };
552
+ }
553
+
554
+
555
+ /**
556
+ * Deserializes binary data (in protobuf wire format).
557
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
558
+ * @return {!proto.gateway.web.v1.TraceMeasureProgram}
559
+ */
560
+ proto.gateway.web.v1.TraceMeasureProgram.deserializeBinary = function(bytes) {
561
+ var reader = new jspb.BinaryReader(bytes);
562
+ var msg = new proto.gateway.web.v1.TraceMeasureProgram;
563
+ return proto.gateway.web.v1.TraceMeasureProgram.deserializeBinaryFromReader(msg, reader);
564
+ };
565
+
566
+
567
+ /**
568
+ * Deserializes binary data (in protobuf wire format) from the
569
+ * given reader into the given message object.
570
+ * @param {!proto.gateway.web.v1.TraceMeasureProgram} msg The message object to deserialize into.
571
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
572
+ * @return {!proto.gateway.web.v1.TraceMeasureProgram}
573
+ */
574
+ proto.gateway.web.v1.TraceMeasureProgram.deserializeBinaryFromReader = function(msg, reader) {
575
+ while (reader.nextField()) {
576
+ if (reader.isEndGroup()) {
577
+ break;
578
+ }
579
+ var field = reader.getFieldNumber();
580
+ switch (field) {
581
+ case 1:
582
+ var value = /** @type {string} */ (reader.readString());
583
+ msg.setPopulationExpression(value);
584
+ break;
585
+ case 2:
586
+ var value = /** @type {string} */ (reader.readString());
587
+ msg.setValueExpression(value);
588
+ break;
589
+ default:
590
+ reader.skipField();
591
+ break;
592
+ }
593
+ }
594
+ return msg;
595
+ };
596
+
597
+
598
+ /**
599
+ * Serializes the message to binary data (in protobuf wire format).
600
+ * @return {!Uint8Array}
601
+ */
602
+ proto.gateway.web.v1.TraceMeasureProgram.prototype.serializeBinary = function() {
603
+ var writer = new jspb.BinaryWriter();
604
+ proto.gateway.web.v1.TraceMeasureProgram.serializeBinaryToWriter(this, writer);
605
+ return writer.getResultBuffer();
606
+ };
607
+
608
+
609
+ /**
610
+ * Serializes the given message to binary data (in protobuf wire
611
+ * format), writing to the given BinaryWriter.
612
+ * @param {!proto.gateway.web.v1.TraceMeasureProgram} message
613
+ * @param {!jspb.BinaryWriter} writer
614
+ * @suppress {unusedLocalVariables} f is only used for nested messages
615
+ */
616
+ proto.gateway.web.v1.TraceMeasureProgram.serializeBinaryToWriter = function(message, writer) {
617
+ var f = undefined;
618
+ f = message.getPopulationExpression();
619
+ if (f.length > 0) {
620
+ writer.writeString(
621
+ 1,
622
+ f
623
+ );
624
+ }
625
+ f = message.getValueExpression();
626
+ if (f.length > 0) {
627
+ writer.writeString(
628
+ 2,
629
+ f
630
+ );
631
+ }
632
+ };
633
+
634
+
635
+ /**
636
+ * optional string population_expression = 1;
637
+ * @return {string}
638
+ */
639
+ proto.gateway.web.v1.TraceMeasureProgram.prototype.getPopulationExpression = function() {
640
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
641
+ };
642
+
643
+
644
+ /**
645
+ * @param {string} value
646
+ * @return {!proto.gateway.web.v1.TraceMeasureProgram} returns this
647
+ */
648
+ proto.gateway.web.v1.TraceMeasureProgram.prototype.setPopulationExpression = function(value) {
649
+ return jspb.Message.setProto3StringField(this, 1, value);
650
+ };
651
+
652
+
653
+ /**
654
+ * optional string value_expression = 2;
655
+ * @return {string}
656
+ */
657
+ proto.gateway.web.v1.TraceMeasureProgram.prototype.getValueExpression = function() {
658
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
659
+ };
660
+
661
+
662
+ /**
663
+ * @param {string} value
664
+ * @return {!proto.gateway.web.v1.TraceMeasureProgram} returns this
665
+ */
666
+ proto.gateway.web.v1.TraceMeasureProgram.prototype.setValueExpression = function(value) {
667
+ return jspb.Message.setProto3StringField(this, 2, value);
668
+ };
669
+
670
+
671
+
672
+ /**
673
+ * List of repeated fields within this message type.
674
+ * @private {!Array<number>}
675
+ * @const
676
+ */
677
+ proto.gateway.web.v1.EvaluateTraceMeasureResponse.repeatedFields_ = [2];
678
+
679
+
680
+
681
+ if (jspb.Message.GENERATE_TO_OBJECT) {
682
+ /**
683
+ * Creates an object representation of this proto.
684
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
685
+ * Optional fields that are not set will be set to undefined.
686
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
687
+ * For the list of reserved names please see:
688
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
689
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
690
+ * JSPB instance for transitional soy proto support:
691
+ * http://goto/soy-param-migration
692
+ * @return {!Object}
693
+ */
694
+ proto.gateway.web.v1.EvaluateTraceMeasureResponse.prototype.toObject = function(opt_includeInstance) {
695
+ return proto.gateway.web.v1.EvaluateTraceMeasureResponse.toObject(opt_includeInstance, this);
696
+ };
697
+
698
+
699
+ /**
700
+ * Static version of the {@see toObject} method.
701
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
702
+ * the JSPB instance for transitional soy proto support:
703
+ * http://goto/soy-param-migration
704
+ * @param {!proto.gateway.web.v1.EvaluateTraceMeasureResponse} msg The msg instance to transform.
705
+ * @return {!Object}
706
+ * @suppress {unusedLocalVariables} f is only used for nested messages
707
+ */
708
+ proto.gateway.web.v1.EvaluateTraceMeasureResponse.toObject = function(includeInstance, msg) {
709
+ var f, obj = {
710
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
711
+ rowsList: jspb.Message.toObjectList(msg.getRowsList(),
712
+ proto.gateway.web.v1.TraceMeasureRow.toObject, includeInstance),
713
+ coverage: (f = msg.getCoverage()) && proto.gateway.web.v1.TraceMeasureCoverage.toObject(includeInstance, f),
714
+ evaluatedAt: (f = msg.getEvaluatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
715
+ };
716
+
717
+ if (includeInstance) {
718
+ obj.$jspbMessageInstance = msg;
719
+ }
720
+ return obj;
721
+ };
722
+ }
723
+
724
+
725
+ /**
726
+ * Deserializes binary data (in protobuf wire format).
727
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
728
+ * @return {!proto.gateway.web.v1.EvaluateTraceMeasureResponse}
729
+ */
730
+ proto.gateway.web.v1.EvaluateTraceMeasureResponse.deserializeBinary = function(bytes) {
731
+ var reader = new jspb.BinaryReader(bytes);
732
+ var msg = new proto.gateway.web.v1.EvaluateTraceMeasureResponse;
733
+ return proto.gateway.web.v1.EvaluateTraceMeasureResponse.deserializeBinaryFromReader(msg, reader);
734
+ };
735
+
736
+
737
+ /**
738
+ * Deserializes binary data (in protobuf wire format) from the
739
+ * given reader into the given message object.
740
+ * @param {!proto.gateway.web.v1.EvaluateTraceMeasureResponse} msg The message object to deserialize into.
741
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
742
+ * @return {!proto.gateway.web.v1.EvaluateTraceMeasureResponse}
743
+ */
744
+ proto.gateway.web.v1.EvaluateTraceMeasureResponse.deserializeBinaryFromReader = function(msg, reader) {
745
+ while (reader.nextField()) {
746
+ if (reader.isEndGroup()) {
747
+ break;
748
+ }
749
+ var field = reader.getFieldNumber();
750
+ switch (field) {
751
+ case 1:
752
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
753
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
754
+ msg.setStatus(value);
755
+ break;
756
+ case 2:
757
+ var value = new proto.gateway.web.v1.TraceMeasureRow;
758
+ reader.readMessage(value,proto.gateway.web.v1.TraceMeasureRow.deserializeBinaryFromReader);
759
+ msg.addRows(value);
760
+ break;
761
+ case 3:
762
+ var value = new proto.gateway.web.v1.TraceMeasureCoverage;
763
+ reader.readMessage(value,proto.gateway.web.v1.TraceMeasureCoverage.deserializeBinaryFromReader);
764
+ msg.setCoverage(value);
765
+ break;
766
+ case 4:
767
+ var value = new google_protobuf_timestamp_pb.Timestamp;
768
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
769
+ msg.setEvaluatedAt(value);
770
+ break;
771
+ default:
772
+ reader.skipField();
773
+ break;
774
+ }
775
+ }
776
+ return msg;
777
+ };
778
+
779
+
780
+ /**
781
+ * Serializes the message to binary data (in protobuf wire format).
782
+ * @return {!Uint8Array}
783
+ */
784
+ proto.gateway.web.v1.EvaluateTraceMeasureResponse.prototype.serializeBinary = function() {
785
+ var writer = new jspb.BinaryWriter();
786
+ proto.gateway.web.v1.EvaluateTraceMeasureResponse.serializeBinaryToWriter(this, writer);
787
+ return writer.getResultBuffer();
788
+ };
789
+
790
+
791
+ /**
792
+ * Serializes the given message to binary data (in protobuf wire
793
+ * format), writing to the given BinaryWriter.
794
+ * @param {!proto.gateway.web.v1.EvaluateTraceMeasureResponse} message
795
+ * @param {!jspb.BinaryWriter} writer
796
+ * @suppress {unusedLocalVariables} f is only used for nested messages
797
+ */
798
+ proto.gateway.web.v1.EvaluateTraceMeasureResponse.serializeBinaryToWriter = function(message, writer) {
799
+ var f = undefined;
800
+ f = message.getStatus();
801
+ if (f != null) {
802
+ writer.writeMessage(
803
+ 1,
804
+ f,
805
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
806
+ );
807
+ }
808
+ f = message.getRowsList();
809
+ if (f.length > 0) {
810
+ writer.writeRepeatedMessage(
811
+ 2,
812
+ f,
813
+ proto.gateway.web.v1.TraceMeasureRow.serializeBinaryToWriter
814
+ );
815
+ }
816
+ f = message.getCoverage();
817
+ if (f != null) {
818
+ writer.writeMessage(
819
+ 3,
820
+ f,
821
+ proto.gateway.web.v1.TraceMeasureCoverage.serializeBinaryToWriter
822
+ );
823
+ }
824
+ f = message.getEvaluatedAt();
825
+ if (f != null) {
826
+ writer.writeMessage(
827
+ 4,
828
+ f,
829
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
830
+ );
831
+ }
832
+ };
833
+
834
+
835
+ /**
836
+ * optional gateway.common.v1.ResponseStatus status = 1;
837
+ * @return {?proto.gateway.common.v1.ResponseStatus}
838
+ */
839
+ proto.gateway.web.v1.EvaluateTraceMeasureResponse.prototype.getStatus = function() {
840
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
841
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
842
+ };
843
+
844
+
845
+ /**
846
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
847
+ * @return {!proto.gateway.web.v1.EvaluateTraceMeasureResponse} returns this
848
+ */
849
+ proto.gateway.web.v1.EvaluateTraceMeasureResponse.prototype.setStatus = function(value) {
850
+ return jspb.Message.setWrapperField(this, 1, value);
851
+ };
852
+
853
+
854
+ /**
855
+ * Clears the message field making it undefined.
856
+ * @return {!proto.gateway.web.v1.EvaluateTraceMeasureResponse} returns this
857
+ */
858
+ proto.gateway.web.v1.EvaluateTraceMeasureResponse.prototype.clearStatus = function() {
859
+ return this.setStatus(undefined);
860
+ };
861
+
862
+
863
+ /**
864
+ * Returns whether this field is set.
865
+ * @return {boolean}
866
+ */
867
+ proto.gateway.web.v1.EvaluateTraceMeasureResponse.prototype.hasStatus = function() {
868
+ return jspb.Message.getField(this, 1) != null;
869
+ };
870
+
871
+
872
+ /**
873
+ * repeated TraceMeasureRow rows = 2;
874
+ * @return {!Array<!proto.gateway.web.v1.TraceMeasureRow>}
875
+ */
876
+ proto.gateway.web.v1.EvaluateTraceMeasureResponse.prototype.getRowsList = function() {
877
+ return /** @type{!Array<!proto.gateway.web.v1.TraceMeasureRow>} */ (
878
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.TraceMeasureRow, 2));
879
+ };
880
+
881
+
882
+ /**
883
+ * @param {!Array<!proto.gateway.web.v1.TraceMeasureRow>} value
884
+ * @return {!proto.gateway.web.v1.EvaluateTraceMeasureResponse} returns this
885
+ */
886
+ proto.gateway.web.v1.EvaluateTraceMeasureResponse.prototype.setRowsList = function(value) {
887
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
888
+ };
889
+
890
+
891
+ /**
892
+ * @param {!proto.gateway.web.v1.TraceMeasureRow=} opt_value
893
+ * @param {number=} opt_index
894
+ * @return {!proto.gateway.web.v1.TraceMeasureRow}
895
+ */
896
+ proto.gateway.web.v1.EvaluateTraceMeasureResponse.prototype.addRows = function(opt_value, opt_index) {
897
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.gateway.web.v1.TraceMeasureRow, opt_index);
898
+ };
899
+
900
+
901
+ /**
902
+ * Clears the list making it empty but non-null.
903
+ * @return {!proto.gateway.web.v1.EvaluateTraceMeasureResponse} returns this
904
+ */
905
+ proto.gateway.web.v1.EvaluateTraceMeasureResponse.prototype.clearRowsList = function() {
906
+ return this.setRowsList([]);
907
+ };
908
+
909
+
910
+ /**
911
+ * optional TraceMeasureCoverage coverage = 3;
912
+ * @return {?proto.gateway.web.v1.TraceMeasureCoverage}
913
+ */
914
+ proto.gateway.web.v1.EvaluateTraceMeasureResponse.prototype.getCoverage = function() {
915
+ return /** @type{?proto.gateway.web.v1.TraceMeasureCoverage} */ (
916
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.TraceMeasureCoverage, 3));
917
+ };
918
+
919
+
920
+ /**
921
+ * @param {?proto.gateway.web.v1.TraceMeasureCoverage|undefined} value
922
+ * @return {!proto.gateway.web.v1.EvaluateTraceMeasureResponse} returns this
923
+ */
924
+ proto.gateway.web.v1.EvaluateTraceMeasureResponse.prototype.setCoverage = function(value) {
925
+ return jspb.Message.setWrapperField(this, 3, value);
926
+ };
927
+
928
+
929
+ /**
930
+ * Clears the message field making it undefined.
931
+ * @return {!proto.gateway.web.v1.EvaluateTraceMeasureResponse} returns this
932
+ */
933
+ proto.gateway.web.v1.EvaluateTraceMeasureResponse.prototype.clearCoverage = function() {
934
+ return this.setCoverage(undefined);
935
+ };
936
+
937
+
938
+ /**
939
+ * Returns whether this field is set.
940
+ * @return {boolean}
941
+ */
942
+ proto.gateway.web.v1.EvaluateTraceMeasureResponse.prototype.hasCoverage = function() {
943
+ return jspb.Message.getField(this, 3) != null;
944
+ };
945
+
946
+
947
+ /**
948
+ * optional google.protobuf.Timestamp evaluated_at = 4;
949
+ * @return {?proto.google.protobuf.Timestamp}
950
+ */
951
+ proto.gateway.web.v1.EvaluateTraceMeasureResponse.prototype.getEvaluatedAt = function() {
952
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
953
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
954
+ };
955
+
956
+
957
+ /**
958
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
959
+ * @return {!proto.gateway.web.v1.EvaluateTraceMeasureResponse} returns this
960
+ */
961
+ proto.gateway.web.v1.EvaluateTraceMeasureResponse.prototype.setEvaluatedAt = function(value) {
962
+ return jspb.Message.setWrapperField(this, 4, value);
963
+ };
964
+
965
+
966
+ /**
967
+ * Clears the message field making it undefined.
968
+ * @return {!proto.gateway.web.v1.EvaluateTraceMeasureResponse} returns this
969
+ */
970
+ proto.gateway.web.v1.EvaluateTraceMeasureResponse.prototype.clearEvaluatedAt = function() {
971
+ return this.setEvaluatedAt(undefined);
972
+ };
973
+
974
+
975
+ /**
976
+ * Returns whether this field is set.
977
+ * @return {boolean}
978
+ */
979
+ proto.gateway.web.v1.EvaluateTraceMeasureResponse.prototype.hasEvaluatedAt = function() {
980
+ return jspb.Message.getField(this, 4) != null;
981
+ };
982
+
983
+
984
+
985
+
986
+
987
+ if (jspb.Message.GENERATE_TO_OBJECT) {
988
+ /**
989
+ * Creates an object representation of this proto.
990
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
991
+ * Optional fields that are not set will be set to undefined.
992
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
993
+ * For the list of reserved names please see:
994
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
995
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
996
+ * JSPB instance for transitional soy proto support:
997
+ * http://goto/soy-param-migration
998
+ * @return {!Object}
999
+ */
1000
+ proto.gateway.web.v1.TraceMeasureRow.prototype.toObject = function(opt_includeInstance) {
1001
+ return proto.gateway.web.v1.TraceMeasureRow.toObject(opt_includeInstance, this);
1002
+ };
1003
+
1004
+
1005
+ /**
1006
+ * Static version of the {@see toObject} method.
1007
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1008
+ * the JSPB instance for transitional soy proto support:
1009
+ * http://goto/soy-param-migration
1010
+ * @param {!proto.gateway.web.v1.TraceMeasureRow} msg The msg instance to transform.
1011
+ * @return {!Object}
1012
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1013
+ */
1014
+ proto.gateway.web.v1.TraceMeasureRow.toObject = function(includeInstance, msg) {
1015
+ var f, obj = {
1016
+ traceId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1017
+ createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
1018
+ value: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
1019
+ groupValuesMap: (f = msg.getGroupValuesMap()) ? f.toObject(includeInstance, undefined) : []
1020
+ };
1021
+
1022
+ if (includeInstance) {
1023
+ obj.$jspbMessageInstance = msg;
1024
+ }
1025
+ return obj;
1026
+ };
1027
+ }
1028
+
1029
+
1030
+ /**
1031
+ * Deserializes binary data (in protobuf wire format).
1032
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1033
+ * @return {!proto.gateway.web.v1.TraceMeasureRow}
1034
+ */
1035
+ proto.gateway.web.v1.TraceMeasureRow.deserializeBinary = function(bytes) {
1036
+ var reader = new jspb.BinaryReader(bytes);
1037
+ var msg = new proto.gateway.web.v1.TraceMeasureRow;
1038
+ return proto.gateway.web.v1.TraceMeasureRow.deserializeBinaryFromReader(msg, reader);
1039
+ };
1040
+
1041
+
1042
+ /**
1043
+ * Deserializes binary data (in protobuf wire format) from the
1044
+ * given reader into the given message object.
1045
+ * @param {!proto.gateway.web.v1.TraceMeasureRow} msg The message object to deserialize into.
1046
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1047
+ * @return {!proto.gateway.web.v1.TraceMeasureRow}
1048
+ */
1049
+ proto.gateway.web.v1.TraceMeasureRow.deserializeBinaryFromReader = function(msg, reader) {
1050
+ while (reader.nextField()) {
1051
+ if (reader.isEndGroup()) {
1052
+ break;
1053
+ }
1054
+ var field = reader.getFieldNumber();
1055
+ switch (field) {
1056
+ case 1:
1057
+ var value = /** @type {string} */ (reader.readString());
1058
+ msg.setTraceId(value);
1059
+ break;
1060
+ case 2:
1061
+ var value = new google_protobuf_timestamp_pb.Timestamp;
1062
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
1063
+ msg.setCreatedAt(value);
1064
+ break;
1065
+ case 3:
1066
+ var value = /** @type {number} */ (reader.readDouble());
1067
+ msg.setValue(value);
1068
+ break;
1069
+ case 4:
1070
+ var value = msg.getGroupValuesMap();
1071
+ reader.readMessage(value, function(message, reader) {
1072
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
1073
+ });
1074
+ break;
1075
+ default:
1076
+ reader.skipField();
1077
+ break;
1078
+ }
1079
+ }
1080
+ return msg;
1081
+ };
1082
+
1083
+
1084
+ /**
1085
+ * Serializes the message to binary data (in protobuf wire format).
1086
+ * @return {!Uint8Array}
1087
+ */
1088
+ proto.gateway.web.v1.TraceMeasureRow.prototype.serializeBinary = function() {
1089
+ var writer = new jspb.BinaryWriter();
1090
+ proto.gateway.web.v1.TraceMeasureRow.serializeBinaryToWriter(this, writer);
1091
+ return writer.getResultBuffer();
1092
+ };
1093
+
1094
+
1095
+ /**
1096
+ * Serializes the given message to binary data (in protobuf wire
1097
+ * format), writing to the given BinaryWriter.
1098
+ * @param {!proto.gateway.web.v1.TraceMeasureRow} message
1099
+ * @param {!jspb.BinaryWriter} writer
1100
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1101
+ */
1102
+ proto.gateway.web.v1.TraceMeasureRow.serializeBinaryToWriter = function(message, writer) {
1103
+ var f = undefined;
1104
+ f = message.getTraceId();
1105
+ if (f.length > 0) {
1106
+ writer.writeString(
1107
+ 1,
1108
+ f
1109
+ );
1110
+ }
1111
+ f = message.getCreatedAt();
1112
+ if (f != null) {
1113
+ writer.writeMessage(
1114
+ 2,
1115
+ f,
1116
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1117
+ );
1118
+ }
1119
+ f = message.getValue();
1120
+ if (f !== 0.0) {
1121
+ writer.writeDouble(
1122
+ 3,
1123
+ f
1124
+ );
1125
+ }
1126
+ f = message.getGroupValuesMap(true);
1127
+ if (f && f.getLength() > 0) {
1128
+ f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
1129
+ }
1130
+ };
1131
+
1132
+
1133
+ /**
1134
+ * optional string trace_id = 1;
1135
+ * @return {string}
1136
+ */
1137
+ proto.gateway.web.v1.TraceMeasureRow.prototype.getTraceId = function() {
1138
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1139
+ };
1140
+
1141
+
1142
+ /**
1143
+ * @param {string} value
1144
+ * @return {!proto.gateway.web.v1.TraceMeasureRow} returns this
1145
+ */
1146
+ proto.gateway.web.v1.TraceMeasureRow.prototype.setTraceId = function(value) {
1147
+ return jspb.Message.setProto3StringField(this, 1, value);
1148
+ };
1149
+
1150
+
1151
+ /**
1152
+ * optional google.protobuf.Timestamp created_at = 2;
1153
+ * @return {?proto.google.protobuf.Timestamp}
1154
+ */
1155
+ proto.gateway.web.v1.TraceMeasureRow.prototype.getCreatedAt = function() {
1156
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
1157
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
1158
+ };
1159
+
1160
+
1161
+ /**
1162
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
1163
+ * @return {!proto.gateway.web.v1.TraceMeasureRow} returns this
1164
+ */
1165
+ proto.gateway.web.v1.TraceMeasureRow.prototype.setCreatedAt = function(value) {
1166
+ return jspb.Message.setWrapperField(this, 2, value);
1167
+ };
1168
+
1169
+
1170
+ /**
1171
+ * Clears the message field making it undefined.
1172
+ * @return {!proto.gateway.web.v1.TraceMeasureRow} returns this
1173
+ */
1174
+ proto.gateway.web.v1.TraceMeasureRow.prototype.clearCreatedAt = function() {
1175
+ return this.setCreatedAt(undefined);
1176
+ };
1177
+
1178
+
1179
+ /**
1180
+ * Returns whether this field is set.
1181
+ * @return {boolean}
1182
+ */
1183
+ proto.gateway.web.v1.TraceMeasureRow.prototype.hasCreatedAt = function() {
1184
+ return jspb.Message.getField(this, 2) != null;
1185
+ };
1186
+
1187
+
1188
+ /**
1189
+ * optional double value = 3;
1190
+ * @return {number}
1191
+ */
1192
+ proto.gateway.web.v1.TraceMeasureRow.prototype.getValue = function() {
1193
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
1194
+ };
1195
+
1196
+
1197
+ /**
1198
+ * @param {number} value
1199
+ * @return {!proto.gateway.web.v1.TraceMeasureRow} returns this
1200
+ */
1201
+ proto.gateway.web.v1.TraceMeasureRow.prototype.setValue = function(value) {
1202
+ return jspb.Message.setProto3FloatField(this, 3, value);
1203
+ };
1204
+
1205
+
1206
+ /**
1207
+ * map<string, string> group_values = 4;
1208
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
1209
+ * empty, instead returning `undefined`
1210
+ * @return {!jspb.Map<string,string>}
1211
+ */
1212
+ proto.gateway.web.v1.TraceMeasureRow.prototype.getGroupValuesMap = function(opt_noLazyCreate) {
1213
+ return /** @type {!jspb.Map<string,string>} */ (
1214
+ jspb.Message.getMapField(this, 4, opt_noLazyCreate,
1215
+ null));
1216
+ };
1217
+
1218
+
1219
+ /**
1220
+ * Clears values from the map. The map will be non-null.
1221
+ * @return {!proto.gateway.web.v1.TraceMeasureRow} returns this
1222
+ */
1223
+ proto.gateway.web.v1.TraceMeasureRow.prototype.clearGroupValuesMap = function() {
1224
+ this.getGroupValuesMap().clear();
1225
+ return this;
1226
+ };
1227
+
1228
+
1229
+
1230
+
1231
+
1232
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1233
+ /**
1234
+ * Creates an object representation of this proto.
1235
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1236
+ * Optional fields that are not set will be set to undefined.
1237
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1238
+ * For the list of reserved names please see:
1239
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1240
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1241
+ * JSPB instance for transitional soy proto support:
1242
+ * http://goto/soy-param-migration
1243
+ * @return {!Object}
1244
+ */
1245
+ proto.gateway.web.v1.TraceMeasureCoverage.prototype.toObject = function(opt_includeInstance) {
1246
+ return proto.gateway.web.v1.TraceMeasureCoverage.toObject(opt_includeInstance, this);
1247
+ };
1248
+
1249
+
1250
+ /**
1251
+ * Static version of the {@see toObject} method.
1252
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1253
+ * the JSPB instance for transitional soy proto support:
1254
+ * http://goto/soy-param-migration
1255
+ * @param {!proto.gateway.web.v1.TraceMeasureCoverage} msg The msg instance to transform.
1256
+ * @return {!Object}
1257
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1258
+ */
1259
+ proto.gateway.web.v1.TraceMeasureCoverage.toObject = function(includeInstance, msg) {
1260
+ var f, obj = {
1261
+ candidates: jspb.Message.getFieldWithDefault(msg, 1, 0),
1262
+ contributing: jspb.Message.getFieldWithDefault(msg, 2, 0),
1263
+ outOfPopulation: jspb.Message.getFieldWithDefault(msg, 3, 0),
1264
+ valueMissing: jspb.Message.getFieldWithDefault(msg, 4, 0),
1265
+ errored: jspb.Message.getFieldWithDefault(msg, 5, 0),
1266
+ unreadable: jspb.Message.getFieldWithDefault(msg, 6, 0)
1267
+ };
1268
+
1269
+ if (includeInstance) {
1270
+ obj.$jspbMessageInstance = msg;
1271
+ }
1272
+ return obj;
1273
+ };
1274
+ }
1275
+
1276
+
1277
+ /**
1278
+ * Deserializes binary data (in protobuf wire format).
1279
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1280
+ * @return {!proto.gateway.web.v1.TraceMeasureCoverage}
1281
+ */
1282
+ proto.gateway.web.v1.TraceMeasureCoverage.deserializeBinary = function(bytes) {
1283
+ var reader = new jspb.BinaryReader(bytes);
1284
+ var msg = new proto.gateway.web.v1.TraceMeasureCoverage;
1285
+ return proto.gateway.web.v1.TraceMeasureCoverage.deserializeBinaryFromReader(msg, reader);
1286
+ };
1287
+
1288
+
1289
+ /**
1290
+ * Deserializes binary data (in protobuf wire format) from the
1291
+ * given reader into the given message object.
1292
+ * @param {!proto.gateway.web.v1.TraceMeasureCoverage} msg The message object to deserialize into.
1293
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1294
+ * @return {!proto.gateway.web.v1.TraceMeasureCoverage}
1295
+ */
1296
+ proto.gateway.web.v1.TraceMeasureCoverage.deserializeBinaryFromReader = function(msg, reader) {
1297
+ while (reader.nextField()) {
1298
+ if (reader.isEndGroup()) {
1299
+ break;
1300
+ }
1301
+ var field = reader.getFieldNumber();
1302
+ switch (field) {
1303
+ case 1:
1304
+ var value = /** @type {number} */ (reader.readUint32());
1305
+ msg.setCandidates(value);
1306
+ break;
1307
+ case 2:
1308
+ var value = /** @type {number} */ (reader.readUint32());
1309
+ msg.setContributing(value);
1310
+ break;
1311
+ case 3:
1312
+ var value = /** @type {number} */ (reader.readUint32());
1313
+ msg.setOutOfPopulation(value);
1314
+ break;
1315
+ case 4:
1316
+ var value = /** @type {number} */ (reader.readUint32());
1317
+ msg.setValueMissing(value);
1318
+ break;
1319
+ case 5:
1320
+ var value = /** @type {number} */ (reader.readUint32());
1321
+ msg.setErrored(value);
1322
+ break;
1323
+ case 6:
1324
+ var value = /** @type {number} */ (reader.readUint32());
1325
+ msg.setUnreadable(value);
1326
+ break;
1327
+ default:
1328
+ reader.skipField();
1329
+ break;
1330
+ }
1331
+ }
1332
+ return msg;
1333
+ };
1334
+
1335
+
1336
+ /**
1337
+ * Serializes the message to binary data (in protobuf wire format).
1338
+ * @return {!Uint8Array}
1339
+ */
1340
+ proto.gateway.web.v1.TraceMeasureCoverage.prototype.serializeBinary = function() {
1341
+ var writer = new jspb.BinaryWriter();
1342
+ proto.gateway.web.v1.TraceMeasureCoverage.serializeBinaryToWriter(this, writer);
1343
+ return writer.getResultBuffer();
1344
+ };
1345
+
1346
+
1347
+ /**
1348
+ * Serializes the given message to binary data (in protobuf wire
1349
+ * format), writing to the given BinaryWriter.
1350
+ * @param {!proto.gateway.web.v1.TraceMeasureCoverage} message
1351
+ * @param {!jspb.BinaryWriter} writer
1352
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1353
+ */
1354
+ proto.gateway.web.v1.TraceMeasureCoverage.serializeBinaryToWriter = function(message, writer) {
1355
+ var f = undefined;
1356
+ f = message.getCandidates();
1357
+ if (f !== 0) {
1358
+ writer.writeUint32(
1359
+ 1,
1360
+ f
1361
+ );
1362
+ }
1363
+ f = message.getContributing();
1364
+ if (f !== 0) {
1365
+ writer.writeUint32(
1366
+ 2,
1367
+ f
1368
+ );
1369
+ }
1370
+ f = message.getOutOfPopulation();
1371
+ if (f !== 0) {
1372
+ writer.writeUint32(
1373
+ 3,
1374
+ f
1375
+ );
1376
+ }
1377
+ f = message.getValueMissing();
1378
+ if (f !== 0) {
1379
+ writer.writeUint32(
1380
+ 4,
1381
+ f
1382
+ );
1383
+ }
1384
+ f = message.getErrored();
1385
+ if (f !== 0) {
1386
+ writer.writeUint32(
1387
+ 5,
1388
+ f
1389
+ );
1390
+ }
1391
+ f = message.getUnreadable();
1392
+ if (f !== 0) {
1393
+ writer.writeUint32(
1394
+ 6,
1395
+ f
1396
+ );
1397
+ }
1398
+ };
1399
+
1400
+
1401
+ /**
1402
+ * optional uint32 candidates = 1;
1403
+ * @return {number}
1404
+ */
1405
+ proto.gateway.web.v1.TraceMeasureCoverage.prototype.getCandidates = function() {
1406
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1407
+ };
1408
+
1409
+
1410
+ /**
1411
+ * @param {number} value
1412
+ * @return {!proto.gateway.web.v1.TraceMeasureCoverage} returns this
1413
+ */
1414
+ proto.gateway.web.v1.TraceMeasureCoverage.prototype.setCandidates = function(value) {
1415
+ return jspb.Message.setProto3IntField(this, 1, value);
1416
+ };
1417
+
1418
+
1419
+ /**
1420
+ * optional uint32 contributing = 2;
1421
+ * @return {number}
1422
+ */
1423
+ proto.gateway.web.v1.TraceMeasureCoverage.prototype.getContributing = function() {
1424
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1425
+ };
1426
+
1427
+
1428
+ /**
1429
+ * @param {number} value
1430
+ * @return {!proto.gateway.web.v1.TraceMeasureCoverage} returns this
1431
+ */
1432
+ proto.gateway.web.v1.TraceMeasureCoverage.prototype.setContributing = function(value) {
1433
+ return jspb.Message.setProto3IntField(this, 2, value);
1434
+ };
1435
+
1436
+
1437
+ /**
1438
+ * optional uint32 out_of_population = 3;
1439
+ * @return {number}
1440
+ */
1441
+ proto.gateway.web.v1.TraceMeasureCoverage.prototype.getOutOfPopulation = function() {
1442
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
1443
+ };
1444
+
1445
+
1446
+ /**
1447
+ * @param {number} value
1448
+ * @return {!proto.gateway.web.v1.TraceMeasureCoverage} returns this
1449
+ */
1450
+ proto.gateway.web.v1.TraceMeasureCoverage.prototype.setOutOfPopulation = function(value) {
1451
+ return jspb.Message.setProto3IntField(this, 3, value);
1452
+ };
1453
+
1454
+
1455
+ /**
1456
+ * optional uint32 value_missing = 4;
1457
+ * @return {number}
1458
+ */
1459
+ proto.gateway.web.v1.TraceMeasureCoverage.prototype.getValueMissing = function() {
1460
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
1461
+ };
1462
+
1463
+
1464
+ /**
1465
+ * @param {number} value
1466
+ * @return {!proto.gateway.web.v1.TraceMeasureCoverage} returns this
1467
+ */
1468
+ proto.gateway.web.v1.TraceMeasureCoverage.prototype.setValueMissing = function(value) {
1469
+ return jspb.Message.setProto3IntField(this, 4, value);
1470
+ };
1471
+
1472
+
1473
+ /**
1474
+ * optional uint32 errored = 5;
1475
+ * @return {number}
1476
+ */
1477
+ proto.gateway.web.v1.TraceMeasureCoverage.prototype.getErrored = function() {
1478
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
1479
+ };
1480
+
1481
+
1482
+ /**
1483
+ * @param {number} value
1484
+ * @return {!proto.gateway.web.v1.TraceMeasureCoverage} returns this
1485
+ */
1486
+ proto.gateway.web.v1.TraceMeasureCoverage.prototype.setErrored = function(value) {
1487
+ return jspb.Message.setProto3IntField(this, 5, value);
1488
+ };
1489
+
1490
+
1491
+ /**
1492
+ * optional uint32 unreadable = 6;
1493
+ * @return {number}
1494
+ */
1495
+ proto.gateway.web.v1.TraceMeasureCoverage.prototype.getUnreadable = function() {
1496
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
1497
+ };
1498
+
1499
+
1500
+ /**
1501
+ * @param {number} value
1502
+ * @return {!proto.gateway.web.v1.TraceMeasureCoverage} returns this
1503
+ */
1504
+ proto.gateway.web.v1.TraceMeasureCoverage.prototype.setUnreadable = function(value) {
1505
+ return jspb.Message.setProto3IntField(this, 6, value);
1506
+ };
1507
+
1508
+
1509
+ goog.object.extend(exports, proto.gateway.web.v1);