@datadog/pprof 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/proto/profile.js CHANGED
@@ -1,4 +1,4 @@
1
- /*eslint-disable block-scoped-var, no-redeclare, no-control-regex, no-prototype-builtins*/
1
+ /*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/
2
2
  "use strict";
3
3
 
4
4
  var $protobuf = require("protobufjs/minimal");
@@ -33,26 +33,27 @@ $root.perftools = (function() {
33
33
  * Properties of a Profile.
34
34
  * @memberof perftools.profiles
35
35
  * @interface IProfile
36
- * @property {Array.<perftools.profiles.IValueType>} [sampleType] Profile sampleType
37
- * @property {Array.<perftools.profiles.ISample>} [sample] Profile sample
38
- * @property {Array.<perftools.profiles.IMapping>} [mapping] Profile mapping
39
- * @property {Array.<perftools.profiles.ILocation>} [location] Profile location
40
- * @property {Array.<perftools.profiles.IFunction>} ["function"] Profile function
41
- * @property {Array.<string>} [stringTable] Profile stringTable
42
- * @property {number|Long} [dropFrames] Profile dropFrames
43
- * @property {number|Long} [keepFrames] Profile keepFrames
44
- * @property {number|Long} [timeNanos] Profile timeNanos
45
- * @property {number|Long} [durationNanos] Profile durationNanos
46
- * @property {perftools.profiles.IValueType} [periodType] Profile periodType
47
- * @property {number|Long} [period] Profile period
48
- * @property {Array.<number|Long>} [comment] Profile comment
49
- * @property {number|Long} [defaultSampleType] Profile defaultSampleType
36
+ * @property {Array.<perftools.profiles.IValueType>|null} [sampleType] Profile sampleType
37
+ * @property {Array.<perftools.profiles.ISample>|null} [sample] Profile sample
38
+ * @property {Array.<perftools.profiles.IMapping>|null} [mapping] Profile mapping
39
+ * @property {Array.<perftools.profiles.ILocation>|null} [location] Profile location
40
+ * @property {Array.<perftools.profiles.IFunction>|null} ["function"] Profile function
41
+ * @property {Array.<string>|null} [stringTable] Profile stringTable
42
+ * @property {number|Long|null} [dropFrames] Profile dropFrames
43
+ * @property {number|Long|null} [keepFrames] Profile keepFrames
44
+ * @property {number|Long|null} [timeNanos] Profile timeNanos
45
+ * @property {number|Long|null} [durationNanos] Profile durationNanos
46
+ * @property {perftools.profiles.IValueType|null} [periodType] Profile periodType
47
+ * @property {number|Long|null} [period] Profile period
48
+ * @property {Array.<number|Long>|null} [comment] Profile comment
49
+ * @property {number|Long|null} [defaultSampleType] Profile defaultSampleType
50
50
  */
51
51
 
52
52
  /**
53
53
  * Constructs a new Profile.
54
54
  * @memberof perftools.profiles
55
55
  * @classdesc Represents a Profile.
56
+ * @implements IProfile
56
57
  * @constructor
57
58
  * @param {perftools.profiles.IProfile=} [properties] Properties to set
58
59
  */
@@ -72,7 +73,7 @@ $root.perftools = (function() {
72
73
 
73
74
  /**
74
75
  * Profile sampleType.
75
- * @member {Array.<perftools.profiles.IValueType>}sampleType
76
+ * @member {Array.<perftools.profiles.IValueType>} sampleType
76
77
  * @memberof perftools.profiles.Profile
77
78
  * @instance
78
79
  */
@@ -80,7 +81,7 @@ $root.perftools = (function() {
80
81
 
81
82
  /**
82
83
  * Profile sample.
83
- * @member {Array.<perftools.profiles.ISample>}sample
84
+ * @member {Array.<perftools.profiles.ISample>} sample
84
85
  * @memberof perftools.profiles.Profile
85
86
  * @instance
86
87
  */
@@ -88,7 +89,7 @@ $root.perftools = (function() {
88
89
 
89
90
  /**
90
91
  * Profile mapping.
91
- * @member {Array.<perftools.profiles.IMapping>}mapping
92
+ * @member {Array.<perftools.profiles.IMapping>} mapping
92
93
  * @memberof perftools.profiles.Profile
93
94
  * @instance
94
95
  */
@@ -96,7 +97,7 @@ $root.perftools = (function() {
96
97
 
97
98
  /**
98
99
  * Profile location.
99
- * @member {Array.<perftools.profiles.ILocation>}location
100
+ * @member {Array.<perftools.profiles.ILocation>} location
100
101
  * @memberof perftools.profiles.Profile
101
102
  * @instance
102
103
  */
@@ -104,7 +105,7 @@ $root.perftools = (function() {
104
105
 
105
106
  /**
106
107
  * Profile function.
107
- * @member {Array.<perftools.profiles.IFunction>}function_
108
+ * @member {Array.<perftools.profiles.IFunction>} function
108
109
  * @memberof perftools.profiles.Profile
109
110
  * @instance
110
111
  */
@@ -112,7 +113,7 @@ $root.perftools = (function() {
112
113
 
113
114
  /**
114
115
  * Profile stringTable.
115
- * @member {Array.<string>}stringTable
116
+ * @member {Array.<string>} stringTable
116
117
  * @memberof perftools.profiles.Profile
117
118
  * @instance
118
119
  */
@@ -120,7 +121,7 @@ $root.perftools = (function() {
120
121
 
121
122
  /**
122
123
  * Profile dropFrames.
123
- * @member {number|Long}dropFrames
124
+ * @member {number|Long} dropFrames
124
125
  * @memberof perftools.profiles.Profile
125
126
  * @instance
126
127
  */
@@ -128,7 +129,7 @@ $root.perftools = (function() {
128
129
 
129
130
  /**
130
131
  * Profile keepFrames.
131
- * @member {number|Long}keepFrames
132
+ * @member {number|Long} keepFrames
132
133
  * @memberof perftools.profiles.Profile
133
134
  * @instance
134
135
  */
@@ -136,7 +137,7 @@ $root.perftools = (function() {
136
137
 
137
138
  /**
138
139
  * Profile timeNanos.
139
- * @member {number|Long}timeNanos
140
+ * @member {number|Long} timeNanos
140
141
  * @memberof perftools.profiles.Profile
141
142
  * @instance
142
143
  */
@@ -144,7 +145,7 @@ $root.perftools = (function() {
144
145
 
145
146
  /**
146
147
  * Profile durationNanos.
147
- * @member {number|Long}durationNanos
148
+ * @member {number|Long} durationNanos
148
149
  * @memberof perftools.profiles.Profile
149
150
  * @instance
150
151
  */
@@ -152,7 +153,7 @@ $root.perftools = (function() {
152
153
 
153
154
  /**
154
155
  * Profile periodType.
155
- * @member {(perftools.profiles.IValueType|null|undefined)}periodType
156
+ * @member {perftools.profiles.IValueType|null|undefined} periodType
156
157
  * @memberof perftools.profiles.Profile
157
158
  * @instance
158
159
  */
@@ -160,7 +161,7 @@ $root.perftools = (function() {
160
161
 
161
162
  /**
162
163
  * Profile period.
163
- * @member {number|Long}period
164
+ * @member {number|Long} period
164
165
  * @memberof perftools.profiles.Profile
165
166
  * @instance
166
167
  */
@@ -168,7 +169,7 @@ $root.perftools = (function() {
168
169
 
169
170
  /**
170
171
  * Profile comment.
171
- * @member {Array.<number|Long>}comment
172
+ * @member {Array.<number|Long>} comment
172
173
  * @memberof perftools.profiles.Profile
173
174
  * @instance
174
175
  */
@@ -176,7 +177,7 @@ $root.perftools = (function() {
176
177
 
177
178
  /**
178
179
  * Profile defaultSampleType.
179
- * @member {number|Long}defaultSampleType
180
+ * @member {number|Long} defaultSampleType
180
181
  * @memberof perftools.profiles.Profile
181
182
  * @instance
182
183
  */
@@ -224,17 +225,17 @@ $root.perftools = (function() {
224
225
  if (message.stringTable != null && message.stringTable.length)
225
226
  for (var i = 0; i < message.stringTable.length; ++i)
226
227
  writer.uint32(/* id 6, wireType 2 =*/50).string(message.stringTable[i]);
227
- if (message.dropFrames != null && message.hasOwnProperty("dropFrames"))
228
+ if (message.dropFrames != null && Object.hasOwnProperty.call(message, "dropFrames"))
228
229
  writer.uint32(/* id 7, wireType 0 =*/56).int64(message.dropFrames);
229
- if (message.keepFrames != null && message.hasOwnProperty("keepFrames"))
230
+ if (message.keepFrames != null && Object.hasOwnProperty.call(message, "keepFrames"))
230
231
  writer.uint32(/* id 8, wireType 0 =*/64).int64(message.keepFrames);
231
- if (message.timeNanos != null && message.hasOwnProperty("timeNanos"))
232
+ if (message.timeNanos != null && Object.hasOwnProperty.call(message, "timeNanos"))
232
233
  writer.uint32(/* id 9, wireType 0 =*/72).int64(message.timeNanos);
233
- if (message.durationNanos != null && message.hasOwnProperty("durationNanos"))
234
+ if (message.durationNanos != null && Object.hasOwnProperty.call(message, "durationNanos"))
234
235
  writer.uint32(/* id 10, wireType 0 =*/80).int64(message.durationNanos);
235
- if (message.periodType != null && message.hasOwnProperty("periodType"))
236
+ if (message.periodType != null && Object.hasOwnProperty.call(message, "periodType"))
236
237
  $root.perftools.profiles.ValueType.encode(message.periodType, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
237
- if (message.period != null && message.hasOwnProperty("period"))
238
+ if (message.period != null && Object.hasOwnProperty.call(message, "period"))
238
239
  writer.uint32(/* id 12, wireType 0 =*/96).int64(message.period);
239
240
  if (message.comment != null && message.comment.length) {
240
241
  writer.uint32(/* id 13, wireType 2 =*/106).fork();
@@ -242,7 +243,7 @@ $root.perftools = (function() {
242
243
  writer.int64(message.comment[i]);
243
244
  writer.ldelim();
244
245
  }
245
- if (message.defaultSampleType != null && message.hasOwnProperty("defaultSampleType"))
246
+ if (message.defaultSampleType != null && Object.hasOwnProperty.call(message, "defaultSampleType"))
246
247
  writer.uint32(/* id 14, wireType 0 =*/112).int64(message.defaultSampleType);
247
248
  return writer;
248
249
  };
@@ -278,67 +279,81 @@ $root.perftools = (function() {
278
279
  while (reader.pos < end) {
279
280
  var tag = reader.uint32();
280
281
  switch (tag >>> 3) {
281
- case 1:
282
- if (!(message.sampleType && message.sampleType.length))
283
- message.sampleType = [];
284
- message.sampleType.push($root.perftools.profiles.ValueType.decode(reader, reader.uint32()));
285
- break;
286
- case 2:
287
- if (!(message.sample && message.sample.length))
288
- message.sample = [];
289
- message.sample.push($root.perftools.profiles.Sample.decode(reader, reader.uint32()));
290
- break;
291
- case 3:
292
- if (!(message.mapping && message.mapping.length))
293
- message.mapping = [];
294
- message.mapping.push($root.perftools.profiles.Mapping.decode(reader, reader.uint32()));
295
- break;
296
- case 4:
297
- if (!(message.location && message.location.length))
298
- message.location = [];
299
- message.location.push($root.perftools.profiles.Location.decode(reader, reader.uint32()));
300
- break;
301
- case 5:
302
- if (!(message["function"] && message["function"].length))
303
- message["function"] = [];
304
- message["function"].push($root.perftools.profiles.Function.decode(reader, reader.uint32()));
305
- break;
306
- case 6:
307
- if (!(message.stringTable && message.stringTable.length))
308
- message.stringTable = [];
309
- message.stringTable.push(reader.string());
310
- break;
311
- case 7:
312
- message.dropFrames = reader.int64();
313
- break;
314
- case 8:
315
- message.keepFrames = reader.int64();
316
- break;
317
- case 9:
318
- message.timeNanos = reader.int64();
319
- break;
320
- case 10:
321
- message.durationNanos = reader.int64();
322
- break;
323
- case 11:
324
- message.periodType = $root.perftools.profiles.ValueType.decode(reader, reader.uint32());
325
- break;
326
- case 12:
327
- message.period = reader.int64();
328
- break;
329
- case 13:
330
- if (!(message.comment && message.comment.length))
331
- message.comment = [];
332
- if ((tag & 7) === 2) {
333
- var end2 = reader.uint32() + reader.pos;
334
- while (reader.pos < end2)
282
+ case 1: {
283
+ if (!(message.sampleType && message.sampleType.length))
284
+ message.sampleType = [];
285
+ message.sampleType.push($root.perftools.profiles.ValueType.decode(reader, reader.uint32()));
286
+ break;
287
+ }
288
+ case 2: {
289
+ if (!(message.sample && message.sample.length))
290
+ message.sample = [];
291
+ message.sample.push($root.perftools.profiles.Sample.decode(reader, reader.uint32()));
292
+ break;
293
+ }
294
+ case 3: {
295
+ if (!(message.mapping && message.mapping.length))
296
+ message.mapping = [];
297
+ message.mapping.push($root.perftools.profiles.Mapping.decode(reader, reader.uint32()));
298
+ break;
299
+ }
300
+ case 4: {
301
+ if (!(message.location && message.location.length))
302
+ message.location = [];
303
+ message.location.push($root.perftools.profiles.Location.decode(reader, reader.uint32()));
304
+ break;
305
+ }
306
+ case 5: {
307
+ if (!(message["function"] && message["function"].length))
308
+ message["function"] = [];
309
+ message["function"].push($root.perftools.profiles.Function.decode(reader, reader.uint32()));
310
+ break;
311
+ }
312
+ case 6: {
313
+ if (!(message.stringTable && message.stringTable.length))
314
+ message.stringTable = [];
315
+ message.stringTable.push(reader.string());
316
+ break;
317
+ }
318
+ case 7: {
319
+ message.dropFrames = reader.int64();
320
+ break;
321
+ }
322
+ case 8: {
323
+ message.keepFrames = reader.int64();
324
+ break;
325
+ }
326
+ case 9: {
327
+ message.timeNanos = reader.int64();
328
+ break;
329
+ }
330
+ case 10: {
331
+ message.durationNanos = reader.int64();
332
+ break;
333
+ }
334
+ case 11: {
335
+ message.periodType = $root.perftools.profiles.ValueType.decode(reader, reader.uint32());
336
+ break;
337
+ }
338
+ case 12: {
339
+ message.period = reader.int64();
340
+ break;
341
+ }
342
+ case 13: {
343
+ if (!(message.comment && message.comment.length))
344
+ message.comment = [];
345
+ if ((tag & 7) === 2) {
346
+ var end2 = reader.uint32() + reader.pos;
347
+ while (reader.pos < end2)
348
+ message.comment.push(reader.int64());
349
+ } else
335
350
  message.comment.push(reader.int64());
336
- } else
337
- message.comment.push(reader.int64());
338
- break;
339
- case 14:
340
- message.defaultSampleType = reader.int64();
341
- break;
351
+ break;
352
+ }
353
+ case 14: {
354
+ message.defaultSampleType = reader.int64();
355
+ break;
356
+ }
342
357
  default:
343
358
  reader.skipType(tag & 7);
344
359
  break;
@@ -387,7 +402,7 @@ $root.perftools = (function() {
387
402
  if (!Array.isArray(message.sample))
388
403
  return "sample: array expected";
389
404
  for (var i = 0; i < message.sample.length; ++i) {
390
- error = $root.perftools.profiles.Sample.verify(message.sample[i]);
405
+ var error = $root.perftools.profiles.Sample.verify(message.sample[i]);
391
406
  if (error)
392
407
  return "sample." + error;
393
408
  }
@@ -396,7 +411,7 @@ $root.perftools = (function() {
396
411
  if (!Array.isArray(message.mapping))
397
412
  return "mapping: array expected";
398
413
  for (var i = 0; i < message.mapping.length; ++i) {
399
- error = $root.perftools.profiles.Mapping.verify(message.mapping[i]);
414
+ var error = $root.perftools.profiles.Mapping.verify(message.mapping[i]);
400
415
  if (error)
401
416
  return "mapping." + error;
402
417
  }
@@ -405,7 +420,7 @@ $root.perftools = (function() {
405
420
  if (!Array.isArray(message.location))
406
421
  return "location: array expected";
407
422
  for (var i = 0; i < message.location.length; ++i) {
408
- error = $root.perftools.profiles.Location.verify(message.location[i]);
423
+ var error = $root.perftools.profiles.Location.verify(message.location[i]);
409
424
  if (error)
410
425
  return "location." + error;
411
426
  }
@@ -414,7 +429,7 @@ $root.perftools = (function() {
414
429
  if (!Array.isArray(message["function"]))
415
430
  return "function: array expected";
416
431
  for (var i = 0; i < message["function"].length; ++i) {
417
- error = $root.perftools.profiles.Function.verify(message["function"][i]);
432
+ var error = $root.perftools.profiles.Function.verify(message["function"][i]);
418
433
  if (error)
419
434
  return "function." + error;
420
435
  }
@@ -439,7 +454,7 @@ $root.perftools = (function() {
439
454
  if (!$util.isInteger(message.durationNanos) && !(message.durationNanos && $util.isInteger(message.durationNanos.low) && $util.isInteger(message.durationNanos.high)))
440
455
  return "durationNanos: integer|Long expected";
441
456
  if (message.periodType != null && message.hasOwnProperty("periodType")) {
442
- error = $root.perftools.profiles.ValueType.verify(message.periodType);
457
+ var error = $root.perftools.profiles.ValueType.verify(message.periodType);
443
458
  if (error)
444
459
  return "periodType." + error;
445
460
  }
@@ -743,6 +758,21 @@ $root.perftools = (function() {
743
758
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
744
759
  };
745
760
 
761
+ /**
762
+ * Gets the default type url for Profile
763
+ * @function getTypeUrl
764
+ * @memberof perftools.profiles.Profile
765
+ * @static
766
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
767
+ * @returns {string} The default type url
768
+ */
769
+ Profile.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
770
+ if (typeUrlPrefix === undefined) {
771
+ typeUrlPrefix = "type.googleapis.com";
772
+ }
773
+ return typeUrlPrefix + "/perftools.profiles.Profile";
774
+ };
775
+
746
776
  return Profile;
747
777
  })();
748
778
 
@@ -752,14 +782,15 @@ $root.perftools = (function() {
752
782
  * Properties of a ValueType.
753
783
  * @memberof perftools.profiles
754
784
  * @interface IValueType
755
- * @property {number|Long} [type] ValueType type
756
- * @property {number|Long} [unit] ValueType unit
785
+ * @property {number|Long|null} [type] ValueType type
786
+ * @property {number|Long|null} [unit] ValueType unit
757
787
  */
758
788
 
759
789
  /**
760
790
  * Constructs a new ValueType.
761
791
  * @memberof perftools.profiles
762
792
  * @classdesc Represents a ValueType.
793
+ * @implements IValueType
763
794
  * @constructor
764
795
  * @param {perftools.profiles.IValueType=} [properties] Properties to set
765
796
  */
@@ -772,7 +803,7 @@ $root.perftools = (function() {
772
803
 
773
804
  /**
774
805
  * ValueType type.
775
- * @member {number|Long}type
806
+ * @member {number|Long} type
776
807
  * @memberof perftools.profiles.ValueType
777
808
  * @instance
778
809
  */
@@ -780,7 +811,7 @@ $root.perftools = (function() {
780
811
 
781
812
  /**
782
813
  * ValueType unit.
783
- * @member {number|Long}unit
814
+ * @member {number|Long} unit
784
815
  * @memberof perftools.profiles.ValueType
785
816
  * @instance
786
817
  */
@@ -810,9 +841,9 @@ $root.perftools = (function() {
810
841
  ValueType.encode = function encode(message, writer) {
811
842
  if (!writer)
812
843
  writer = $Writer.create();
813
- if (message.type != null && message.hasOwnProperty("type"))
844
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
814
845
  writer.uint32(/* id 1, wireType 0 =*/8).int64(message.type);
815
- if (message.unit != null && message.hasOwnProperty("unit"))
846
+ if (message.unit != null && Object.hasOwnProperty.call(message, "unit"))
816
847
  writer.uint32(/* id 2, wireType 0 =*/16).int64(message.unit);
817
848
  return writer;
818
849
  };
@@ -848,12 +879,14 @@ $root.perftools = (function() {
848
879
  while (reader.pos < end) {
849
880
  var tag = reader.uint32();
850
881
  switch (tag >>> 3) {
851
- case 1:
852
- message.type = reader.int64();
853
- break;
854
- case 2:
855
- message.unit = reader.int64();
856
- break;
882
+ case 1: {
883
+ message.type = reader.int64();
884
+ break;
885
+ }
886
+ case 2: {
887
+ message.unit = reader.int64();
888
+ break;
889
+ }
857
890
  default:
858
891
  reader.skipType(tag & 7);
859
892
  break;
@@ -980,6 +1013,21 @@ $root.perftools = (function() {
980
1013
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
981
1014
  };
982
1015
 
1016
+ /**
1017
+ * Gets the default type url for ValueType
1018
+ * @function getTypeUrl
1019
+ * @memberof perftools.profiles.ValueType
1020
+ * @static
1021
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1022
+ * @returns {string} The default type url
1023
+ */
1024
+ ValueType.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
1025
+ if (typeUrlPrefix === undefined) {
1026
+ typeUrlPrefix = "type.googleapis.com";
1027
+ }
1028
+ return typeUrlPrefix + "/perftools.profiles.ValueType";
1029
+ };
1030
+
983
1031
  return ValueType;
984
1032
  })();
985
1033
 
@@ -989,15 +1037,16 @@ $root.perftools = (function() {
989
1037
  * Properties of a Sample.
990
1038
  * @memberof perftools.profiles
991
1039
  * @interface ISample
992
- * @property {Array.<number|Long>} [locationId] Sample locationId
993
- * @property {Array.<number|Long>} [value] Sample value
994
- * @property {Array.<perftools.profiles.ILabel>} [label] Sample label
1040
+ * @property {Array.<number|Long>|null} [locationId] Sample locationId
1041
+ * @property {Array.<number|Long>|null} [value] Sample value
1042
+ * @property {Array.<perftools.profiles.ILabel>|null} [label] Sample label
995
1043
  */
996
1044
 
997
1045
  /**
998
1046
  * Constructs a new Sample.
999
1047
  * @memberof perftools.profiles
1000
1048
  * @classdesc Represents a Sample.
1049
+ * @implements ISample
1001
1050
  * @constructor
1002
1051
  * @param {perftools.profiles.ISample=} [properties] Properties to set
1003
1052
  */
@@ -1013,7 +1062,7 @@ $root.perftools = (function() {
1013
1062
 
1014
1063
  /**
1015
1064
  * Sample locationId.
1016
- * @member {Array.<number|Long>}locationId
1065
+ * @member {Array.<number|Long>} locationId
1017
1066
  * @memberof perftools.profiles.Sample
1018
1067
  * @instance
1019
1068
  */
@@ -1021,7 +1070,7 @@ $root.perftools = (function() {
1021
1070
 
1022
1071
  /**
1023
1072
  * Sample value.
1024
- * @member {Array.<number|Long>}value
1073
+ * @member {Array.<number|Long>} value
1025
1074
  * @memberof perftools.profiles.Sample
1026
1075
  * @instance
1027
1076
  */
@@ -1029,7 +1078,7 @@ $root.perftools = (function() {
1029
1078
 
1030
1079
  /**
1031
1080
  * Sample label.
1032
- * @member {Array.<perftools.profiles.ILabel>}label
1081
+ * @member {Array.<perftools.profiles.ILabel>} label
1033
1082
  * @memberof perftools.profiles.Sample
1034
1083
  * @instance
1035
1084
  */
@@ -1108,31 +1157,34 @@ $root.perftools = (function() {
1108
1157
  while (reader.pos < end) {
1109
1158
  var tag = reader.uint32();
1110
1159
  switch (tag >>> 3) {
1111
- case 1:
1112
- if (!(message.locationId && message.locationId.length))
1113
- message.locationId = [];
1114
- if ((tag & 7) === 2) {
1115
- var end2 = reader.uint32() + reader.pos;
1116
- while (reader.pos < end2)
1160
+ case 1: {
1161
+ if (!(message.locationId && message.locationId.length))
1162
+ message.locationId = [];
1163
+ if ((tag & 7) === 2) {
1164
+ var end2 = reader.uint32() + reader.pos;
1165
+ while (reader.pos < end2)
1166
+ message.locationId.push(reader.uint64());
1167
+ } else
1117
1168
  message.locationId.push(reader.uint64());
1118
- } else
1119
- message.locationId.push(reader.uint64());
1120
- break;
1121
- case 2:
1122
- if (!(message.value && message.value.length))
1123
- message.value = [];
1124
- if ((tag & 7) === 2) {
1125
- var end2 = reader.uint32() + reader.pos;
1126
- while (reader.pos < end2)
1169
+ break;
1170
+ }
1171
+ case 2: {
1172
+ if (!(message.value && message.value.length))
1173
+ message.value = [];
1174
+ if ((tag & 7) === 2) {
1175
+ var end2 = reader.uint32() + reader.pos;
1176
+ while (reader.pos < end2)
1177
+ message.value.push(reader.int64());
1178
+ } else
1127
1179
  message.value.push(reader.int64());
1128
- } else
1129
- message.value.push(reader.int64());
1130
- break;
1131
- case 3:
1132
- if (!(message.label && message.label.length))
1133
- message.label = [];
1134
- message.label.push($root.perftools.profiles.Label.decode(reader, reader.uint32()));
1135
- break;
1180
+ break;
1181
+ }
1182
+ case 3: {
1183
+ if (!(message.label && message.label.length))
1184
+ message.label = [];
1185
+ message.label.push($root.perftools.profiles.Label.decode(reader, reader.uint32()));
1186
+ break;
1187
+ }
1136
1188
  default:
1137
1189
  reader.skipType(tag & 7);
1138
1190
  break;
@@ -1300,6 +1352,21 @@ $root.perftools = (function() {
1300
1352
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
1301
1353
  };
1302
1354
 
1355
+ /**
1356
+ * Gets the default type url for Sample
1357
+ * @function getTypeUrl
1358
+ * @memberof perftools.profiles.Sample
1359
+ * @static
1360
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1361
+ * @returns {string} The default type url
1362
+ */
1363
+ Sample.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
1364
+ if (typeUrlPrefix === undefined) {
1365
+ typeUrlPrefix = "type.googleapis.com";
1366
+ }
1367
+ return typeUrlPrefix + "/perftools.profiles.Sample";
1368
+ };
1369
+
1303
1370
  return Sample;
1304
1371
  })();
1305
1372
 
@@ -1309,16 +1376,17 @@ $root.perftools = (function() {
1309
1376
  * Properties of a Label.
1310
1377
  * @memberof perftools.profiles
1311
1378
  * @interface ILabel
1312
- * @property {number|Long} [key] Label key
1313
- * @property {number|Long} [str] Label str
1314
- * @property {number|Long} [num] Label num
1315
- * @property {number|Long} [numUnit] Label numUnit
1379
+ * @property {number|Long|null} [key] Label key
1380
+ * @property {number|Long|null} [str] Label str
1381
+ * @property {number|Long|null} [num] Label num
1382
+ * @property {number|Long|null} [numUnit] Label numUnit
1316
1383
  */
1317
1384
 
1318
1385
  /**
1319
1386
  * Constructs a new Label.
1320
1387
  * @memberof perftools.profiles
1321
1388
  * @classdesc Represents a Label.
1389
+ * @implements ILabel
1322
1390
  * @constructor
1323
1391
  * @param {perftools.profiles.ILabel=} [properties] Properties to set
1324
1392
  */
@@ -1331,7 +1399,7 @@ $root.perftools = (function() {
1331
1399
 
1332
1400
  /**
1333
1401
  * Label key.
1334
- * @member {number|Long}key
1402
+ * @member {number|Long} key
1335
1403
  * @memberof perftools.profiles.Label
1336
1404
  * @instance
1337
1405
  */
@@ -1339,7 +1407,7 @@ $root.perftools = (function() {
1339
1407
 
1340
1408
  /**
1341
1409
  * Label str.
1342
- * @member {number|Long}str
1410
+ * @member {number|Long} str
1343
1411
  * @memberof perftools.profiles.Label
1344
1412
  * @instance
1345
1413
  */
@@ -1347,7 +1415,7 @@ $root.perftools = (function() {
1347
1415
 
1348
1416
  /**
1349
1417
  * Label num.
1350
- * @member {number|Long}num
1418
+ * @member {number|Long} num
1351
1419
  * @memberof perftools.profiles.Label
1352
1420
  * @instance
1353
1421
  */
@@ -1355,7 +1423,7 @@ $root.perftools = (function() {
1355
1423
 
1356
1424
  /**
1357
1425
  * Label numUnit.
1358
- * @member {number|Long}numUnit
1426
+ * @member {number|Long} numUnit
1359
1427
  * @memberof perftools.profiles.Label
1360
1428
  * @instance
1361
1429
  */
@@ -1385,13 +1453,13 @@ $root.perftools = (function() {
1385
1453
  Label.encode = function encode(message, writer) {
1386
1454
  if (!writer)
1387
1455
  writer = $Writer.create();
1388
- if (message.key != null && message.hasOwnProperty("key"))
1456
+ if (message.key != null && Object.hasOwnProperty.call(message, "key"))
1389
1457
  writer.uint32(/* id 1, wireType 0 =*/8).int64(message.key);
1390
- if (message.str != null && message.hasOwnProperty("str"))
1458
+ if (message.str != null && Object.hasOwnProperty.call(message, "str"))
1391
1459
  writer.uint32(/* id 2, wireType 0 =*/16).int64(message.str);
1392
- if (message.num != null && message.hasOwnProperty("num"))
1460
+ if (message.num != null && Object.hasOwnProperty.call(message, "num"))
1393
1461
  writer.uint32(/* id 3, wireType 0 =*/24).int64(message.num);
1394
- if (message.numUnit != null && message.hasOwnProperty("numUnit"))
1462
+ if (message.numUnit != null && Object.hasOwnProperty.call(message, "numUnit"))
1395
1463
  writer.uint32(/* id 4, wireType 0 =*/32).int64(message.numUnit);
1396
1464
  return writer;
1397
1465
  };
@@ -1427,18 +1495,22 @@ $root.perftools = (function() {
1427
1495
  while (reader.pos < end) {
1428
1496
  var tag = reader.uint32();
1429
1497
  switch (tag >>> 3) {
1430
- case 1:
1431
- message.key = reader.int64();
1432
- break;
1433
- case 2:
1434
- message.str = reader.int64();
1435
- break;
1436
- case 3:
1437
- message.num = reader.int64();
1438
- break;
1439
- case 4:
1440
- message.numUnit = reader.int64();
1441
- break;
1498
+ case 1: {
1499
+ message.key = reader.int64();
1500
+ break;
1501
+ }
1502
+ case 2: {
1503
+ message.str = reader.int64();
1504
+ break;
1505
+ }
1506
+ case 3: {
1507
+ message.num = reader.int64();
1508
+ break;
1509
+ }
1510
+ case 4: {
1511
+ message.numUnit = reader.int64();
1512
+ break;
1513
+ }
1442
1514
  default:
1443
1515
  reader.skipType(tag & 7);
1444
1516
  break;
@@ -1609,6 +1681,21 @@ $root.perftools = (function() {
1609
1681
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
1610
1682
  };
1611
1683
 
1684
+ /**
1685
+ * Gets the default type url for Label
1686
+ * @function getTypeUrl
1687
+ * @memberof perftools.profiles.Label
1688
+ * @static
1689
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1690
+ * @returns {string} The default type url
1691
+ */
1692
+ Label.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
1693
+ if (typeUrlPrefix === undefined) {
1694
+ typeUrlPrefix = "type.googleapis.com";
1695
+ }
1696
+ return typeUrlPrefix + "/perftools.profiles.Label";
1697
+ };
1698
+
1612
1699
  return Label;
1613
1700
  })();
1614
1701
 
@@ -1618,22 +1705,23 @@ $root.perftools = (function() {
1618
1705
  * Properties of a Mapping.
1619
1706
  * @memberof perftools.profiles
1620
1707
  * @interface IMapping
1621
- * @property {number|Long} [id] Mapping id
1622
- * @property {number|Long} [memoryStart] Mapping memoryStart
1623
- * @property {number|Long} [memoryLimit] Mapping memoryLimit
1624
- * @property {number|Long} [fileOffset] Mapping fileOffset
1625
- * @property {number|Long} [filename] Mapping filename
1626
- * @property {number|Long} [buildId] Mapping buildId
1627
- * @property {boolean} [hasFunctions] Mapping hasFunctions
1628
- * @property {boolean} [hasFilenames] Mapping hasFilenames
1629
- * @property {boolean} [hasLineNumbers] Mapping hasLineNumbers
1630
- * @property {boolean} [hasInlineFrames] Mapping hasInlineFrames
1708
+ * @property {number|Long|null} [id] Mapping id
1709
+ * @property {number|Long|null} [memoryStart] Mapping memoryStart
1710
+ * @property {number|Long|null} [memoryLimit] Mapping memoryLimit
1711
+ * @property {number|Long|null} [fileOffset] Mapping fileOffset
1712
+ * @property {number|Long|null} [filename] Mapping filename
1713
+ * @property {number|Long|null} [buildId] Mapping buildId
1714
+ * @property {boolean|null} [hasFunctions] Mapping hasFunctions
1715
+ * @property {boolean|null} [hasFilenames] Mapping hasFilenames
1716
+ * @property {boolean|null} [hasLineNumbers] Mapping hasLineNumbers
1717
+ * @property {boolean|null} [hasInlineFrames] Mapping hasInlineFrames
1631
1718
  */
1632
1719
 
1633
1720
  /**
1634
1721
  * Constructs a new Mapping.
1635
1722
  * @memberof perftools.profiles
1636
1723
  * @classdesc Represents a Mapping.
1724
+ * @implements IMapping
1637
1725
  * @constructor
1638
1726
  * @param {perftools.profiles.IMapping=} [properties] Properties to set
1639
1727
  */
@@ -1646,7 +1734,7 @@ $root.perftools = (function() {
1646
1734
 
1647
1735
  /**
1648
1736
  * Mapping id.
1649
- * @member {number|Long}id
1737
+ * @member {number|Long} id
1650
1738
  * @memberof perftools.profiles.Mapping
1651
1739
  * @instance
1652
1740
  */
@@ -1654,7 +1742,7 @@ $root.perftools = (function() {
1654
1742
 
1655
1743
  /**
1656
1744
  * Mapping memoryStart.
1657
- * @member {number|Long}memoryStart
1745
+ * @member {number|Long} memoryStart
1658
1746
  * @memberof perftools.profiles.Mapping
1659
1747
  * @instance
1660
1748
  */
@@ -1662,7 +1750,7 @@ $root.perftools = (function() {
1662
1750
 
1663
1751
  /**
1664
1752
  * Mapping memoryLimit.
1665
- * @member {number|Long}memoryLimit
1753
+ * @member {number|Long} memoryLimit
1666
1754
  * @memberof perftools.profiles.Mapping
1667
1755
  * @instance
1668
1756
  */
@@ -1670,7 +1758,7 @@ $root.perftools = (function() {
1670
1758
 
1671
1759
  /**
1672
1760
  * Mapping fileOffset.
1673
- * @member {number|Long}fileOffset
1761
+ * @member {number|Long} fileOffset
1674
1762
  * @memberof perftools.profiles.Mapping
1675
1763
  * @instance
1676
1764
  */
@@ -1678,7 +1766,7 @@ $root.perftools = (function() {
1678
1766
 
1679
1767
  /**
1680
1768
  * Mapping filename.
1681
- * @member {number|Long}filename
1769
+ * @member {number|Long} filename
1682
1770
  * @memberof perftools.profiles.Mapping
1683
1771
  * @instance
1684
1772
  */
@@ -1686,7 +1774,7 @@ $root.perftools = (function() {
1686
1774
 
1687
1775
  /**
1688
1776
  * Mapping buildId.
1689
- * @member {number|Long}buildId
1777
+ * @member {number|Long} buildId
1690
1778
  * @memberof perftools.profiles.Mapping
1691
1779
  * @instance
1692
1780
  */
@@ -1694,7 +1782,7 @@ $root.perftools = (function() {
1694
1782
 
1695
1783
  /**
1696
1784
  * Mapping hasFunctions.
1697
- * @member {boolean}hasFunctions
1785
+ * @member {boolean} hasFunctions
1698
1786
  * @memberof perftools.profiles.Mapping
1699
1787
  * @instance
1700
1788
  */
@@ -1702,7 +1790,7 @@ $root.perftools = (function() {
1702
1790
 
1703
1791
  /**
1704
1792
  * Mapping hasFilenames.
1705
- * @member {boolean}hasFilenames
1793
+ * @member {boolean} hasFilenames
1706
1794
  * @memberof perftools.profiles.Mapping
1707
1795
  * @instance
1708
1796
  */
@@ -1710,7 +1798,7 @@ $root.perftools = (function() {
1710
1798
 
1711
1799
  /**
1712
1800
  * Mapping hasLineNumbers.
1713
- * @member {boolean}hasLineNumbers
1801
+ * @member {boolean} hasLineNumbers
1714
1802
  * @memberof perftools.profiles.Mapping
1715
1803
  * @instance
1716
1804
  */
@@ -1718,7 +1806,7 @@ $root.perftools = (function() {
1718
1806
 
1719
1807
  /**
1720
1808
  * Mapping hasInlineFrames.
1721
- * @member {boolean}hasInlineFrames
1809
+ * @member {boolean} hasInlineFrames
1722
1810
  * @memberof perftools.profiles.Mapping
1723
1811
  * @instance
1724
1812
  */
@@ -1748,25 +1836,25 @@ $root.perftools = (function() {
1748
1836
  Mapping.encode = function encode(message, writer) {
1749
1837
  if (!writer)
1750
1838
  writer = $Writer.create();
1751
- if (message.id != null && message.hasOwnProperty("id"))
1839
+ if (message.id != null && Object.hasOwnProperty.call(message, "id"))
1752
1840
  writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.id);
1753
- if (message.memoryStart != null && message.hasOwnProperty("memoryStart"))
1841
+ if (message.memoryStart != null && Object.hasOwnProperty.call(message, "memoryStart"))
1754
1842
  writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.memoryStart);
1755
- if (message.memoryLimit != null && message.hasOwnProperty("memoryLimit"))
1843
+ if (message.memoryLimit != null && Object.hasOwnProperty.call(message, "memoryLimit"))
1756
1844
  writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.memoryLimit);
1757
- if (message.fileOffset != null && message.hasOwnProperty("fileOffset"))
1845
+ if (message.fileOffset != null && Object.hasOwnProperty.call(message, "fileOffset"))
1758
1846
  writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.fileOffset);
1759
- if (message.filename != null && message.hasOwnProperty("filename"))
1847
+ if (message.filename != null && Object.hasOwnProperty.call(message, "filename"))
1760
1848
  writer.uint32(/* id 5, wireType 0 =*/40).int64(message.filename);
1761
- if (message.buildId != null && message.hasOwnProperty("buildId"))
1849
+ if (message.buildId != null && Object.hasOwnProperty.call(message, "buildId"))
1762
1850
  writer.uint32(/* id 6, wireType 0 =*/48).int64(message.buildId);
1763
- if (message.hasFunctions != null && message.hasOwnProperty("hasFunctions"))
1851
+ if (message.hasFunctions != null && Object.hasOwnProperty.call(message, "hasFunctions"))
1764
1852
  writer.uint32(/* id 7, wireType 0 =*/56).bool(message.hasFunctions);
1765
- if (message.hasFilenames != null && message.hasOwnProperty("hasFilenames"))
1853
+ if (message.hasFilenames != null && Object.hasOwnProperty.call(message, "hasFilenames"))
1766
1854
  writer.uint32(/* id 8, wireType 0 =*/64).bool(message.hasFilenames);
1767
- if (message.hasLineNumbers != null && message.hasOwnProperty("hasLineNumbers"))
1855
+ if (message.hasLineNumbers != null && Object.hasOwnProperty.call(message, "hasLineNumbers"))
1768
1856
  writer.uint32(/* id 9, wireType 0 =*/72).bool(message.hasLineNumbers);
1769
- if (message.hasInlineFrames != null && message.hasOwnProperty("hasInlineFrames"))
1857
+ if (message.hasInlineFrames != null && Object.hasOwnProperty.call(message, "hasInlineFrames"))
1770
1858
  writer.uint32(/* id 10, wireType 0 =*/80).bool(message.hasInlineFrames);
1771
1859
  return writer;
1772
1860
  };
@@ -1802,36 +1890,46 @@ $root.perftools = (function() {
1802
1890
  while (reader.pos < end) {
1803
1891
  var tag = reader.uint32();
1804
1892
  switch (tag >>> 3) {
1805
- case 1:
1806
- message.id = reader.uint64();
1807
- break;
1808
- case 2:
1809
- message.memoryStart = reader.uint64();
1810
- break;
1811
- case 3:
1812
- message.memoryLimit = reader.uint64();
1813
- break;
1814
- case 4:
1815
- message.fileOffset = reader.uint64();
1816
- break;
1817
- case 5:
1818
- message.filename = reader.int64();
1819
- break;
1820
- case 6:
1821
- message.buildId = reader.int64();
1822
- break;
1823
- case 7:
1824
- message.hasFunctions = reader.bool();
1825
- break;
1826
- case 8:
1827
- message.hasFilenames = reader.bool();
1828
- break;
1829
- case 9:
1830
- message.hasLineNumbers = reader.bool();
1831
- break;
1832
- case 10:
1833
- message.hasInlineFrames = reader.bool();
1834
- break;
1893
+ case 1: {
1894
+ message.id = reader.uint64();
1895
+ break;
1896
+ }
1897
+ case 2: {
1898
+ message.memoryStart = reader.uint64();
1899
+ break;
1900
+ }
1901
+ case 3: {
1902
+ message.memoryLimit = reader.uint64();
1903
+ break;
1904
+ }
1905
+ case 4: {
1906
+ message.fileOffset = reader.uint64();
1907
+ break;
1908
+ }
1909
+ case 5: {
1910
+ message.filename = reader.int64();
1911
+ break;
1912
+ }
1913
+ case 6: {
1914
+ message.buildId = reader.int64();
1915
+ break;
1916
+ }
1917
+ case 7: {
1918
+ message.hasFunctions = reader.bool();
1919
+ break;
1920
+ }
1921
+ case 8: {
1922
+ message.hasFilenames = reader.bool();
1923
+ break;
1924
+ }
1925
+ case 9: {
1926
+ message.hasLineNumbers = reader.bool();
1927
+ break;
1928
+ }
1929
+ case 10: {
1930
+ message.hasInlineFrames = reader.bool();
1931
+ break;
1932
+ }
1835
1933
  default:
1836
1934
  reader.skipType(tag & 7);
1837
1935
  break;
@@ -2078,6 +2176,21 @@ $root.perftools = (function() {
2078
2176
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
2079
2177
  };
2080
2178
 
2179
+ /**
2180
+ * Gets the default type url for Mapping
2181
+ * @function getTypeUrl
2182
+ * @memberof perftools.profiles.Mapping
2183
+ * @static
2184
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2185
+ * @returns {string} The default type url
2186
+ */
2187
+ Mapping.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
2188
+ if (typeUrlPrefix === undefined) {
2189
+ typeUrlPrefix = "type.googleapis.com";
2190
+ }
2191
+ return typeUrlPrefix + "/perftools.profiles.Mapping";
2192
+ };
2193
+
2081
2194
  return Mapping;
2082
2195
  })();
2083
2196
 
@@ -2087,16 +2200,17 @@ $root.perftools = (function() {
2087
2200
  * Properties of a Location.
2088
2201
  * @memberof perftools.profiles
2089
2202
  * @interface ILocation
2090
- * @property {number|Long} [id] Location id
2091
- * @property {number|Long} [mappingId] Location mappingId
2092
- * @property {number|Long} [address] Location address
2093
- * @property {Array.<perftools.profiles.ILine>} [line] Location line
2203
+ * @property {number|Long|null} [id] Location id
2204
+ * @property {number|Long|null} [mappingId] Location mappingId
2205
+ * @property {number|Long|null} [address] Location address
2206
+ * @property {Array.<perftools.profiles.ILine>|null} [line] Location line
2094
2207
  */
2095
2208
 
2096
2209
  /**
2097
2210
  * Constructs a new Location.
2098
2211
  * @memberof perftools.profiles
2099
2212
  * @classdesc Represents a Location.
2213
+ * @implements ILocation
2100
2214
  * @constructor
2101
2215
  * @param {perftools.profiles.ILocation=} [properties] Properties to set
2102
2216
  */
@@ -2110,7 +2224,7 @@ $root.perftools = (function() {
2110
2224
 
2111
2225
  /**
2112
2226
  * Location id.
2113
- * @member {number|Long}id
2227
+ * @member {number|Long} id
2114
2228
  * @memberof perftools.profiles.Location
2115
2229
  * @instance
2116
2230
  */
@@ -2118,7 +2232,7 @@ $root.perftools = (function() {
2118
2232
 
2119
2233
  /**
2120
2234
  * Location mappingId.
2121
- * @member {number|Long}mappingId
2235
+ * @member {number|Long} mappingId
2122
2236
  * @memberof perftools.profiles.Location
2123
2237
  * @instance
2124
2238
  */
@@ -2126,7 +2240,7 @@ $root.perftools = (function() {
2126
2240
 
2127
2241
  /**
2128
2242
  * Location address.
2129
- * @member {number|Long}address
2243
+ * @member {number|Long} address
2130
2244
  * @memberof perftools.profiles.Location
2131
2245
  * @instance
2132
2246
  */
@@ -2134,7 +2248,7 @@ $root.perftools = (function() {
2134
2248
 
2135
2249
  /**
2136
2250
  * Location line.
2137
- * @member {Array.<perftools.profiles.ILine>}line
2251
+ * @member {Array.<perftools.profiles.ILine>} line
2138
2252
  * @memberof perftools.profiles.Location
2139
2253
  * @instance
2140
2254
  */
@@ -2164,11 +2278,11 @@ $root.perftools = (function() {
2164
2278
  Location.encode = function encode(message, writer) {
2165
2279
  if (!writer)
2166
2280
  writer = $Writer.create();
2167
- if (message.id != null && message.hasOwnProperty("id"))
2281
+ if (message.id != null && Object.hasOwnProperty.call(message, "id"))
2168
2282
  writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.id);
2169
- if (message.mappingId != null && message.hasOwnProperty("mappingId"))
2283
+ if (message.mappingId != null && Object.hasOwnProperty.call(message, "mappingId"))
2170
2284
  writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.mappingId);
2171
- if (message.address != null && message.hasOwnProperty("address"))
2285
+ if (message.address != null && Object.hasOwnProperty.call(message, "address"))
2172
2286
  writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.address);
2173
2287
  if (message.line != null && message.line.length)
2174
2288
  for (var i = 0; i < message.line.length; ++i)
@@ -2207,20 +2321,24 @@ $root.perftools = (function() {
2207
2321
  while (reader.pos < end) {
2208
2322
  var tag = reader.uint32();
2209
2323
  switch (tag >>> 3) {
2210
- case 1:
2211
- message.id = reader.uint64();
2212
- break;
2213
- case 2:
2214
- message.mappingId = reader.uint64();
2215
- break;
2216
- case 3:
2217
- message.address = reader.uint64();
2218
- break;
2219
- case 4:
2220
- if (!(message.line && message.line.length))
2221
- message.line = [];
2222
- message.line.push($root.perftools.profiles.Line.decode(reader, reader.uint32()));
2223
- break;
2324
+ case 1: {
2325
+ message.id = reader.uint64();
2326
+ break;
2327
+ }
2328
+ case 2: {
2329
+ message.mappingId = reader.uint64();
2330
+ break;
2331
+ }
2332
+ case 3: {
2333
+ message.address = reader.uint64();
2334
+ break;
2335
+ }
2336
+ case 4: {
2337
+ if (!(message.line && message.line.length))
2338
+ message.line = [];
2339
+ message.line.push($root.perftools.profiles.Line.decode(reader, reader.uint32()));
2340
+ break;
2341
+ }
2224
2342
  default:
2225
2343
  reader.skipType(tag & 7);
2226
2344
  break;
@@ -2395,6 +2513,21 @@ $root.perftools = (function() {
2395
2513
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
2396
2514
  };
2397
2515
 
2516
+ /**
2517
+ * Gets the default type url for Location
2518
+ * @function getTypeUrl
2519
+ * @memberof perftools.profiles.Location
2520
+ * @static
2521
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2522
+ * @returns {string} The default type url
2523
+ */
2524
+ Location.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
2525
+ if (typeUrlPrefix === undefined) {
2526
+ typeUrlPrefix = "type.googleapis.com";
2527
+ }
2528
+ return typeUrlPrefix + "/perftools.profiles.Location";
2529
+ };
2530
+
2398
2531
  return Location;
2399
2532
  })();
2400
2533
 
@@ -2404,14 +2537,15 @@ $root.perftools = (function() {
2404
2537
  * Properties of a Line.
2405
2538
  * @memberof perftools.profiles
2406
2539
  * @interface ILine
2407
- * @property {number|Long} [functionId] Line functionId
2408
- * @property {number|Long} [line] Line line
2540
+ * @property {number|Long|null} [functionId] Line functionId
2541
+ * @property {number|Long|null} [line] Line line
2409
2542
  */
2410
2543
 
2411
2544
  /**
2412
2545
  * Constructs a new Line.
2413
2546
  * @memberof perftools.profiles
2414
2547
  * @classdesc Represents a Line.
2548
+ * @implements ILine
2415
2549
  * @constructor
2416
2550
  * @param {perftools.profiles.ILine=} [properties] Properties to set
2417
2551
  */
@@ -2424,7 +2558,7 @@ $root.perftools = (function() {
2424
2558
 
2425
2559
  /**
2426
2560
  * Line functionId.
2427
- * @member {number|Long}functionId
2561
+ * @member {number|Long} functionId
2428
2562
  * @memberof perftools.profiles.Line
2429
2563
  * @instance
2430
2564
  */
@@ -2432,7 +2566,7 @@ $root.perftools = (function() {
2432
2566
 
2433
2567
  /**
2434
2568
  * Line line.
2435
- * @member {number|Long}line
2569
+ * @member {number|Long} line
2436
2570
  * @memberof perftools.profiles.Line
2437
2571
  * @instance
2438
2572
  */
@@ -2462,9 +2596,9 @@ $root.perftools = (function() {
2462
2596
  Line.encode = function encode(message, writer) {
2463
2597
  if (!writer)
2464
2598
  writer = $Writer.create();
2465
- if (message.functionId != null && message.hasOwnProperty("functionId"))
2599
+ if (message.functionId != null && Object.hasOwnProperty.call(message, "functionId"))
2466
2600
  writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.functionId);
2467
- if (message.line != null && message.hasOwnProperty("line"))
2601
+ if (message.line != null && Object.hasOwnProperty.call(message, "line"))
2468
2602
  writer.uint32(/* id 2, wireType 0 =*/16).int64(message.line);
2469
2603
  return writer;
2470
2604
  };
@@ -2500,12 +2634,14 @@ $root.perftools = (function() {
2500
2634
  while (reader.pos < end) {
2501
2635
  var tag = reader.uint32();
2502
2636
  switch (tag >>> 3) {
2503
- case 1:
2504
- message.functionId = reader.uint64();
2505
- break;
2506
- case 2:
2507
- message.line = reader.int64();
2508
- break;
2637
+ case 1: {
2638
+ message.functionId = reader.uint64();
2639
+ break;
2640
+ }
2641
+ case 2: {
2642
+ message.line = reader.int64();
2643
+ break;
2644
+ }
2509
2645
  default:
2510
2646
  reader.skipType(tag & 7);
2511
2647
  break;
@@ -2632,6 +2768,21 @@ $root.perftools = (function() {
2632
2768
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
2633
2769
  };
2634
2770
 
2771
+ /**
2772
+ * Gets the default type url for Line
2773
+ * @function getTypeUrl
2774
+ * @memberof perftools.profiles.Line
2775
+ * @static
2776
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2777
+ * @returns {string} The default type url
2778
+ */
2779
+ Line.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
2780
+ if (typeUrlPrefix === undefined) {
2781
+ typeUrlPrefix = "type.googleapis.com";
2782
+ }
2783
+ return typeUrlPrefix + "/perftools.profiles.Line";
2784
+ };
2785
+
2635
2786
  return Line;
2636
2787
  })();
2637
2788
 
@@ -2641,17 +2792,18 @@ $root.perftools = (function() {
2641
2792
  * Properties of a Function.
2642
2793
  * @memberof perftools.profiles
2643
2794
  * @interface IFunction
2644
- * @property {number|Long} [id] Function id
2645
- * @property {number|Long} [name] Function name
2646
- * @property {number|Long} [systemName] Function systemName
2647
- * @property {number|Long} [filename] Function filename
2648
- * @property {number|Long} [startLine] Function startLine
2795
+ * @property {number|Long|null} [id] Function id
2796
+ * @property {number|Long|null} [name] Function name
2797
+ * @property {number|Long|null} [systemName] Function systemName
2798
+ * @property {number|Long|null} [filename] Function filename
2799
+ * @property {number|Long|null} [startLine] Function startLine
2649
2800
  */
2650
2801
 
2651
2802
  /**
2652
2803
  * Constructs a new Function.
2653
2804
  * @memberof perftools.profiles
2654
2805
  * @classdesc Represents a Function.
2806
+ * @implements IFunction
2655
2807
  * @constructor
2656
2808
  * @param {perftools.profiles.IFunction=} [properties] Properties to set
2657
2809
  */
@@ -2664,7 +2816,7 @@ $root.perftools = (function() {
2664
2816
 
2665
2817
  /**
2666
2818
  * Function id.
2667
- * @member {number|Long}id
2819
+ * @member {number|Long} id
2668
2820
  * @memberof perftools.profiles.Function
2669
2821
  * @instance
2670
2822
  */
@@ -2672,7 +2824,7 @@ $root.perftools = (function() {
2672
2824
 
2673
2825
  /**
2674
2826
  * Function name.
2675
- * @member {number|Long}name
2827
+ * @member {number|Long} name
2676
2828
  * @memberof perftools.profiles.Function
2677
2829
  * @instance
2678
2830
  */
@@ -2680,7 +2832,7 @@ $root.perftools = (function() {
2680
2832
 
2681
2833
  /**
2682
2834
  * Function systemName.
2683
- * @member {number|Long}systemName
2835
+ * @member {number|Long} systemName
2684
2836
  * @memberof perftools.profiles.Function
2685
2837
  * @instance
2686
2838
  */
@@ -2688,7 +2840,7 @@ $root.perftools = (function() {
2688
2840
 
2689
2841
  /**
2690
2842
  * Function filename.
2691
- * @member {number|Long}filename
2843
+ * @member {number|Long} filename
2692
2844
  * @memberof perftools.profiles.Function
2693
2845
  * @instance
2694
2846
  */
@@ -2696,7 +2848,7 @@ $root.perftools = (function() {
2696
2848
 
2697
2849
  /**
2698
2850
  * Function startLine.
2699
- * @member {number|Long}startLine
2851
+ * @member {number|Long} startLine
2700
2852
  * @memberof perftools.profiles.Function
2701
2853
  * @instance
2702
2854
  */
@@ -2726,15 +2878,15 @@ $root.perftools = (function() {
2726
2878
  Function.encode = function encode(message, writer) {
2727
2879
  if (!writer)
2728
2880
  writer = $Writer.create();
2729
- if (message.id != null && message.hasOwnProperty("id"))
2881
+ if (message.id != null && Object.hasOwnProperty.call(message, "id"))
2730
2882
  writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.id);
2731
- if (message.name != null && message.hasOwnProperty("name"))
2883
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
2732
2884
  writer.uint32(/* id 2, wireType 0 =*/16).int64(message.name);
2733
- if (message.systemName != null && message.hasOwnProperty("systemName"))
2885
+ if (message.systemName != null && Object.hasOwnProperty.call(message, "systemName"))
2734
2886
  writer.uint32(/* id 3, wireType 0 =*/24).int64(message.systemName);
2735
- if (message.filename != null && message.hasOwnProperty("filename"))
2887
+ if (message.filename != null && Object.hasOwnProperty.call(message, "filename"))
2736
2888
  writer.uint32(/* id 4, wireType 0 =*/32).int64(message.filename);
2737
- if (message.startLine != null && message.hasOwnProperty("startLine"))
2889
+ if (message.startLine != null && Object.hasOwnProperty.call(message, "startLine"))
2738
2890
  writer.uint32(/* id 5, wireType 0 =*/40).int64(message.startLine);
2739
2891
  return writer;
2740
2892
  };
@@ -2770,21 +2922,26 @@ $root.perftools = (function() {
2770
2922
  while (reader.pos < end) {
2771
2923
  var tag = reader.uint32();
2772
2924
  switch (tag >>> 3) {
2773
- case 1:
2774
- message.id = reader.uint64();
2775
- break;
2776
- case 2:
2777
- message.name = reader.int64();
2778
- break;
2779
- case 3:
2780
- message.systemName = reader.int64();
2781
- break;
2782
- case 4:
2783
- message.filename = reader.int64();
2784
- break;
2785
- case 5:
2786
- message.startLine = reader.int64();
2787
- break;
2925
+ case 1: {
2926
+ message.id = reader.uint64();
2927
+ break;
2928
+ }
2929
+ case 2: {
2930
+ message.name = reader.int64();
2931
+ break;
2932
+ }
2933
+ case 3: {
2934
+ message.systemName = reader.int64();
2935
+ break;
2936
+ }
2937
+ case 4: {
2938
+ message.filename = reader.int64();
2939
+ break;
2940
+ }
2941
+ case 5: {
2942
+ message.startLine = reader.int64();
2943
+ break;
2944
+ }
2788
2945
  default:
2789
2946
  reader.skipType(tag & 7);
2790
2947
  break;
@@ -2977,6 +3134,21 @@ $root.perftools = (function() {
2977
3134
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
2978
3135
  };
2979
3136
 
3137
+ /**
3138
+ * Gets the default type url for Function
3139
+ * @function getTypeUrl
3140
+ * @memberof perftools.profiles.Function
3141
+ * @static
3142
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
3143
+ * @returns {string} The default type url
3144
+ */
3145
+ Function.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
3146
+ if (typeUrlPrefix === undefined) {
3147
+ typeUrlPrefix = "type.googleapis.com";
3148
+ }
3149
+ return typeUrlPrefix + "/perftools.profiles.Function";
3150
+ };
3151
+
2980
3152
  return Function;
2981
3153
  })();
2982
3154