@miradorlabs/web-grpc 1.0.0 → 1.1.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.
@@ -95,6 +95,8 @@ goog.exportSymbol('proto.gateway.web.v1.SafeTxTrackingFinished', null, global);
95
95
  goog.exportSymbol('proto.gateway.web.v1.SafeTxTrackingFinished.SafeTxHintStatus', null, global);
96
96
  goog.exportSymbol('proto.gateway.web.v1.SafeTxTrackingStarted', null, global);
97
97
  goog.exportSymbol('proto.gateway.web.v1.SolanaTxAdded', null, global);
98
+ goog.exportSymbol('proto.gateway.web.v1.SpanEnded', null, global);
99
+ goog.exportSymbol('proto.gateway.web.v1.SpanStarted', null, global);
98
100
  goog.exportSymbol('proto.gateway.web.v1.StreamTraceAnalyticsRequest', null, global);
99
101
  goog.exportSymbol('proto.gateway.web.v1.StreamTraceEventsRequest', null, global);
100
102
  goog.exportSymbol('proto.gateway.web.v1.StreamTraceMetadataRequest', null, global);
@@ -804,6 +806,48 @@ if (goog.DEBUG && !COMPILED) {
804
806
  */
805
807
  proto.gateway.web.v1.TraceEventEnvelope.displayName = 'proto.gateway.web.v1.TraceEventEnvelope';
806
808
  }
809
+ /**
810
+ * Generated by JsPbCodeGenerator.
811
+ * @param {Array=} opt_data Optional initial data array, typically from a
812
+ * server response, or constructed directly in Javascript. The array is used
813
+ * in place and becomes part of the constructed object. It is not cloned.
814
+ * If no data is provided, the constructed object will be empty, but still
815
+ * valid.
816
+ * @extends {jspb.Message}
817
+ * @constructor
818
+ */
819
+ proto.gateway.web.v1.SpanStarted = function(opt_data) {
820
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
821
+ };
822
+ goog.inherits(proto.gateway.web.v1.SpanStarted, jspb.Message);
823
+ if (goog.DEBUG && !COMPILED) {
824
+ /**
825
+ * @public
826
+ * @override
827
+ */
828
+ proto.gateway.web.v1.SpanStarted.displayName = 'proto.gateway.web.v1.SpanStarted';
829
+ }
830
+ /**
831
+ * Generated by JsPbCodeGenerator.
832
+ * @param {Array=} opt_data Optional initial data array, typically from a
833
+ * server response, or constructed directly in Javascript. The array is used
834
+ * in place and becomes part of the constructed object. It is not cloned.
835
+ * If no data is provided, the constructed object will be empty, but still
836
+ * valid.
837
+ * @extends {jspb.Message}
838
+ * @constructor
839
+ */
840
+ proto.gateway.web.v1.SpanEnded = function(opt_data) {
841
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
842
+ };
843
+ goog.inherits(proto.gateway.web.v1.SpanEnded, jspb.Message);
844
+ if (goog.DEBUG && !COMPILED) {
845
+ /**
846
+ * @public
847
+ * @override
848
+ */
849
+ proto.gateway.web.v1.SpanEnded.displayName = 'proto.gateway.web.v1.SpanEnded';
850
+ }
807
851
  /**
808
852
  * Generated by JsPbCodeGenerator.
809
853
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -9418,7 +9462,7 @@ proto.gateway.web.v1.RuleMatch.prototype.hasMatchedAt = function() {
9418
9462
  * @private {!Array<!Array<number>>}
9419
9463
  * @const
9420
9464
  */
9421
- proto.gateway.web.v1.TraceEventEnvelope.oneofGroups_ = [[20,21,22,23,24,25,26,28,29,30,31,32,33,34,35,36,38,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64]];
9465
+ proto.gateway.web.v1.TraceEventEnvelope.oneofGroups_ = [[20,21,22,23,24,25,26,28,29,30,31,32,33,34,35,36,38,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66]];
9422
9466
 
9423
9467
  /**
9424
9468
  * @enum {number}
@@ -9466,7 +9510,9 @@ proto.gateway.web.v1.TraceEventEnvelope.PayloadCase = {
9466
9510
  RELAY_TRACKING_FINISHED: 61,
9467
9511
  RELAY_NOT_FOUND: 62,
9468
9512
  RULE_MATCH_ADDED: 63,
9469
- CANTON_TX_ADDED: 64
9513
+ CANTON_TX_ADDED: 64,
9514
+ SPAN_STARTED: 65,
9515
+ SPAN_ENDED: 66
9470
9516
  };
9471
9517
 
9472
9518
  /**
@@ -9517,6 +9563,7 @@ createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.to
9517
9563
  traceTimestamp: (f = msg.getTraceTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
9518
9564
  source: jspb.Message.getFieldWithDefault(msg, 9, 0),
9519
9565
  category: jspb.Message.getFieldWithDefault(msg, 11, 0),
9566
+ spanId: jspb.Message.getFieldWithDefault(msg, 13, ""),
9520
9567
  traceStarted: (f = msg.getTraceStarted()) && proto.gateway.web.v1.TraceStarted.toObject(includeInstance, f),
9521
9568
  traceFinished: (f = msg.getTraceFinished()) && proto.gateway.web.v1.TraceFinished.toObject(includeInstance, f),
9522
9569
  infoEventAdded: (f = msg.getInfoEventAdded()) && proto.gateway.web.v1.InfoEventAdded.toObject(includeInstance, f),
@@ -9558,7 +9605,9 @@ relayRefunded: (f = msg.getRelayRefunded()) && proto.gateway.web.v1.RelayRefunde
9558
9605
  relayTrackingFinished: (f = msg.getRelayTrackingFinished()) && proto.gateway.web.v1.RelayTrackingFinished.toObject(includeInstance, f),
9559
9606
  relayNotFound: (f = msg.getRelayNotFound()) && proto.gateway.web.v1.RelayNotFound.toObject(includeInstance, f),
9560
9607
  ruleMatchAdded: (f = msg.getRuleMatchAdded()) && proto.gateway.web.v1.RuleMatchAdded.toObject(includeInstance, f),
9561
- cantonTxAdded: (f = msg.getCantonTxAdded()) && proto.gateway.web.v1.CantonTxAdded.toObject(includeInstance, f)
9608
+ cantonTxAdded: (f = msg.getCantonTxAdded()) && proto.gateway.web.v1.CantonTxAdded.toObject(includeInstance, f),
9609
+ spanStarted: (f = msg.getSpanStarted()) && proto.gateway.web.v1.SpanStarted.toObject(includeInstance, f),
9610
+ spanEnded: (f = msg.getSpanEnded()) && proto.gateway.web.v1.SpanEnded.toObject(includeInstance, f)
9562
9611
  };
9563
9612
 
9564
9613
  if (includeInstance) {
@@ -9637,6 +9686,10 @@ proto.gateway.web.v1.TraceEventEnvelope.deserializeBinaryFromReader = function(m
9637
9686
  var value = /** @type {!proto.gateway.web.v1.TraceEventCategory} */ (reader.readEnum());
9638
9687
  msg.setCategory(value);
9639
9688
  break;
9689
+ case 13:
9690
+ var value = /** @type {string} */ (reader.readString());
9691
+ msg.setSpanId(value);
9692
+ break;
9640
9693
  case 20:
9641
9694
  var value = new proto.gateway.web.v1.TraceStarted;
9642
9695
  reader.readMessage(value,proto.gateway.web.v1.TraceStarted.deserializeBinaryFromReader);
@@ -9847,6 +9900,16 @@ proto.gateway.web.v1.TraceEventEnvelope.deserializeBinaryFromReader = function(m
9847
9900
  reader.readMessage(value,proto.gateway.web.v1.CantonTxAdded.deserializeBinaryFromReader);
9848
9901
  msg.setCantonTxAdded(value);
9849
9902
  break;
9903
+ case 65:
9904
+ var value = new proto.gateway.web.v1.SpanStarted;
9905
+ reader.readMessage(value,proto.gateway.web.v1.SpanStarted.deserializeBinaryFromReader);
9906
+ msg.setSpanStarted(value);
9907
+ break;
9908
+ case 66:
9909
+ var value = new proto.gateway.web.v1.SpanEnded;
9910
+ reader.readMessage(value,proto.gateway.web.v1.SpanEnded.deserializeBinaryFromReader);
9911
+ msg.setSpanEnded(value);
9912
+ break;
9850
9913
  default:
9851
9914
  reader.skipField();
9852
9915
  break;
@@ -9948,6 +10011,13 @@ proto.gateway.web.v1.TraceEventEnvelope.serializeBinaryToWriter = function(messa
9948
10011
  f
9949
10012
  );
9950
10013
  }
10014
+ f = message.getSpanId();
10015
+ if (f.length > 0) {
10016
+ writer.writeString(
10017
+ 13,
10018
+ f
10019
+ );
10020
+ }
9951
10021
  f = message.getTraceStarted();
9952
10022
  if (f != null) {
9953
10023
  writer.writeMessage(
@@ -10284,6 +10354,22 @@ proto.gateway.web.v1.TraceEventEnvelope.serializeBinaryToWriter = function(messa
10284
10354
  proto.gateway.web.v1.CantonTxAdded.serializeBinaryToWriter
10285
10355
  );
10286
10356
  }
10357
+ f = message.getSpanStarted();
10358
+ if (f != null) {
10359
+ writer.writeMessage(
10360
+ 65,
10361
+ f,
10362
+ proto.gateway.web.v1.SpanStarted.serializeBinaryToWriter
10363
+ );
10364
+ }
10365
+ f = message.getSpanEnded();
10366
+ if (f != null) {
10367
+ writer.writeMessage(
10368
+ 66,
10369
+ f,
10370
+ proto.gateway.web.v1.SpanEnded.serializeBinaryToWriter
10371
+ );
10372
+ }
10287
10373
  };
10288
10374
 
10289
10375
 
@@ -10505,6 +10591,24 @@ proto.gateway.web.v1.TraceEventEnvelope.prototype.setCategory = function(value)
10505
10591
  };
10506
10592
 
10507
10593
 
10594
+ /**
10595
+ * optional string span_id = 13;
10596
+ * @return {string}
10597
+ */
10598
+ proto.gateway.web.v1.TraceEventEnvelope.prototype.getSpanId = function() {
10599
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
10600
+ };
10601
+
10602
+
10603
+ /**
10604
+ * @param {string} value
10605
+ * @return {!proto.gateway.web.v1.TraceEventEnvelope} returns this
10606
+ */
10607
+ proto.gateway.web.v1.TraceEventEnvelope.prototype.setSpanId = function(value) {
10608
+ return jspb.Message.setProto3StringField(this, 13, value);
10609
+ };
10610
+
10611
+
10508
10612
  /**
10509
10613
  * optional TraceStarted trace_started = 20;
10510
10614
  * @return {?proto.gateway.web.v1.TraceStarted}
@@ -12059,6 +12163,650 @@ proto.gateway.web.v1.TraceEventEnvelope.prototype.hasCantonTxAdded = function()
12059
12163
  };
12060
12164
 
12061
12165
 
12166
+ /**
12167
+ * optional SpanStarted span_started = 65;
12168
+ * @return {?proto.gateway.web.v1.SpanStarted}
12169
+ */
12170
+ proto.gateway.web.v1.TraceEventEnvelope.prototype.getSpanStarted = function() {
12171
+ return /** @type{?proto.gateway.web.v1.SpanStarted} */ (
12172
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.SpanStarted, 65));
12173
+ };
12174
+
12175
+
12176
+ /**
12177
+ * @param {?proto.gateway.web.v1.SpanStarted|undefined} value
12178
+ * @return {!proto.gateway.web.v1.TraceEventEnvelope} returns this
12179
+ */
12180
+ proto.gateway.web.v1.TraceEventEnvelope.prototype.setSpanStarted = function(value) {
12181
+ return jspb.Message.setOneofWrapperField(this, 65, proto.gateway.web.v1.TraceEventEnvelope.oneofGroups_[0], value);
12182
+ };
12183
+
12184
+
12185
+ /**
12186
+ * Clears the message field making it undefined.
12187
+ * @return {!proto.gateway.web.v1.TraceEventEnvelope} returns this
12188
+ */
12189
+ proto.gateway.web.v1.TraceEventEnvelope.prototype.clearSpanStarted = function() {
12190
+ return this.setSpanStarted(undefined);
12191
+ };
12192
+
12193
+
12194
+ /**
12195
+ * Returns whether this field is set.
12196
+ * @return {boolean}
12197
+ */
12198
+ proto.gateway.web.v1.TraceEventEnvelope.prototype.hasSpanStarted = function() {
12199
+ return jspb.Message.getField(this, 65) != null;
12200
+ };
12201
+
12202
+
12203
+ /**
12204
+ * optional SpanEnded span_ended = 66;
12205
+ * @return {?proto.gateway.web.v1.SpanEnded}
12206
+ */
12207
+ proto.gateway.web.v1.TraceEventEnvelope.prototype.getSpanEnded = function() {
12208
+ return /** @type{?proto.gateway.web.v1.SpanEnded} */ (
12209
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.SpanEnded, 66));
12210
+ };
12211
+
12212
+
12213
+ /**
12214
+ * @param {?proto.gateway.web.v1.SpanEnded|undefined} value
12215
+ * @return {!proto.gateway.web.v1.TraceEventEnvelope} returns this
12216
+ */
12217
+ proto.gateway.web.v1.TraceEventEnvelope.prototype.setSpanEnded = function(value) {
12218
+ return jspb.Message.setOneofWrapperField(this, 66, proto.gateway.web.v1.TraceEventEnvelope.oneofGroups_[0], value);
12219
+ };
12220
+
12221
+
12222
+ /**
12223
+ * Clears the message field making it undefined.
12224
+ * @return {!proto.gateway.web.v1.TraceEventEnvelope} returns this
12225
+ */
12226
+ proto.gateway.web.v1.TraceEventEnvelope.prototype.clearSpanEnded = function() {
12227
+ return this.setSpanEnded(undefined);
12228
+ };
12229
+
12230
+
12231
+ /**
12232
+ * Returns whether this field is set.
12233
+ * @return {boolean}
12234
+ */
12235
+ proto.gateway.web.v1.TraceEventEnvelope.prototype.hasSpanEnded = function() {
12236
+ return jspb.Message.getField(this, 66) != null;
12237
+ };
12238
+
12239
+
12240
+
12241
+
12242
+
12243
+ if (jspb.Message.GENERATE_TO_OBJECT) {
12244
+ /**
12245
+ * Creates an object representation of this proto.
12246
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
12247
+ * Optional fields that are not set will be set to undefined.
12248
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
12249
+ * For the list of reserved names please see:
12250
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
12251
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
12252
+ * JSPB instance for transitional soy proto support:
12253
+ * http://goto/soy-param-migration
12254
+ * @return {!Object}
12255
+ */
12256
+ proto.gateway.web.v1.SpanStarted.prototype.toObject = function(opt_includeInstance) {
12257
+ return proto.gateway.web.v1.SpanStarted.toObject(opt_includeInstance, this);
12258
+ };
12259
+
12260
+
12261
+ /**
12262
+ * Static version of the {@see toObject} method.
12263
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
12264
+ * the JSPB instance for transitional soy proto support:
12265
+ * http://goto/soy-param-migration
12266
+ * @param {!proto.gateway.web.v1.SpanStarted} msg The msg instance to transform.
12267
+ * @return {!Object}
12268
+ * @suppress {unusedLocalVariables} f is only used for nested messages
12269
+ */
12270
+ proto.gateway.web.v1.SpanStarted.toObject = function(includeInstance, msg) {
12271
+ var f, obj = {
12272
+ spanId: jspb.Message.getFieldWithDefault(msg, 1, ""),
12273
+ parentSpanId: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
12274
+ name: jspb.Message.getFieldWithDefault(msg, 3, ""),
12275
+ startTime: (f = msg.getStartTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
12276
+ attributesMap: (f = msg.getAttributesMap()) ? f.toObject(includeInstance, undefined) : []
12277
+ };
12278
+
12279
+ if (includeInstance) {
12280
+ obj.$jspbMessageInstance = msg;
12281
+ }
12282
+ return obj;
12283
+ };
12284
+ }
12285
+
12286
+
12287
+ /**
12288
+ * Deserializes binary data (in protobuf wire format).
12289
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
12290
+ * @return {!proto.gateway.web.v1.SpanStarted}
12291
+ */
12292
+ proto.gateway.web.v1.SpanStarted.deserializeBinary = function(bytes) {
12293
+ var reader = new jspb.BinaryReader(bytes);
12294
+ var msg = new proto.gateway.web.v1.SpanStarted;
12295
+ return proto.gateway.web.v1.SpanStarted.deserializeBinaryFromReader(msg, reader);
12296
+ };
12297
+
12298
+
12299
+ /**
12300
+ * Deserializes binary data (in protobuf wire format) from the
12301
+ * given reader into the given message object.
12302
+ * @param {!proto.gateway.web.v1.SpanStarted} msg The message object to deserialize into.
12303
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
12304
+ * @return {!proto.gateway.web.v1.SpanStarted}
12305
+ */
12306
+ proto.gateway.web.v1.SpanStarted.deserializeBinaryFromReader = function(msg, reader) {
12307
+ while (reader.nextField()) {
12308
+ if (reader.isEndGroup()) {
12309
+ break;
12310
+ }
12311
+ var field = reader.getFieldNumber();
12312
+ switch (field) {
12313
+ case 1:
12314
+ var value = /** @type {string} */ (reader.readString());
12315
+ msg.setSpanId(value);
12316
+ break;
12317
+ case 2:
12318
+ var value = /** @type {string} */ (reader.readString());
12319
+ msg.setParentSpanId(value);
12320
+ break;
12321
+ case 3:
12322
+ var value = /** @type {string} */ (reader.readString());
12323
+ msg.setName(value);
12324
+ break;
12325
+ case 4:
12326
+ var value = new google_protobuf_timestamp_pb.Timestamp;
12327
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
12328
+ msg.setStartTime(value);
12329
+ break;
12330
+ case 5:
12331
+ var value = msg.getAttributesMap();
12332
+ reader.readMessage(value, function(message, reader) {
12333
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
12334
+ });
12335
+ break;
12336
+ default:
12337
+ reader.skipField();
12338
+ break;
12339
+ }
12340
+ }
12341
+ return msg;
12342
+ };
12343
+
12344
+
12345
+ /**
12346
+ * Serializes the message to binary data (in protobuf wire format).
12347
+ * @return {!Uint8Array}
12348
+ */
12349
+ proto.gateway.web.v1.SpanStarted.prototype.serializeBinary = function() {
12350
+ var writer = new jspb.BinaryWriter();
12351
+ proto.gateway.web.v1.SpanStarted.serializeBinaryToWriter(this, writer);
12352
+ return writer.getResultBuffer();
12353
+ };
12354
+
12355
+
12356
+ /**
12357
+ * Serializes the given message to binary data (in protobuf wire
12358
+ * format), writing to the given BinaryWriter.
12359
+ * @param {!proto.gateway.web.v1.SpanStarted} message
12360
+ * @param {!jspb.BinaryWriter} writer
12361
+ * @suppress {unusedLocalVariables} f is only used for nested messages
12362
+ */
12363
+ proto.gateway.web.v1.SpanStarted.serializeBinaryToWriter = function(message, writer) {
12364
+ var f = undefined;
12365
+ f = message.getSpanId();
12366
+ if (f.length > 0) {
12367
+ writer.writeString(
12368
+ 1,
12369
+ f
12370
+ );
12371
+ }
12372
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
12373
+ if (f != null) {
12374
+ writer.writeString(
12375
+ 2,
12376
+ f
12377
+ );
12378
+ }
12379
+ f = message.getName();
12380
+ if (f.length > 0) {
12381
+ writer.writeString(
12382
+ 3,
12383
+ f
12384
+ );
12385
+ }
12386
+ f = message.getStartTime();
12387
+ if (f != null) {
12388
+ writer.writeMessage(
12389
+ 4,
12390
+ f,
12391
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
12392
+ );
12393
+ }
12394
+ f = message.getAttributesMap(true);
12395
+ if (f && f.getLength() > 0) {
12396
+ f.serializeBinary(5, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
12397
+ }
12398
+ };
12399
+
12400
+
12401
+ /**
12402
+ * optional string span_id = 1;
12403
+ * @return {string}
12404
+ */
12405
+ proto.gateway.web.v1.SpanStarted.prototype.getSpanId = function() {
12406
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
12407
+ };
12408
+
12409
+
12410
+ /**
12411
+ * @param {string} value
12412
+ * @return {!proto.gateway.web.v1.SpanStarted} returns this
12413
+ */
12414
+ proto.gateway.web.v1.SpanStarted.prototype.setSpanId = function(value) {
12415
+ return jspb.Message.setProto3StringField(this, 1, value);
12416
+ };
12417
+
12418
+
12419
+ /**
12420
+ * optional string parent_span_id = 2;
12421
+ * @return {string}
12422
+ */
12423
+ proto.gateway.web.v1.SpanStarted.prototype.getParentSpanId = function() {
12424
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
12425
+ };
12426
+
12427
+
12428
+ /**
12429
+ * @param {string} value
12430
+ * @return {!proto.gateway.web.v1.SpanStarted} returns this
12431
+ */
12432
+ proto.gateway.web.v1.SpanStarted.prototype.setParentSpanId = function(value) {
12433
+ return jspb.Message.setField(this, 2, value);
12434
+ };
12435
+
12436
+
12437
+ /**
12438
+ * Clears the field making it undefined.
12439
+ * @return {!proto.gateway.web.v1.SpanStarted} returns this
12440
+ */
12441
+ proto.gateway.web.v1.SpanStarted.prototype.clearParentSpanId = function() {
12442
+ return jspb.Message.setField(this, 2, undefined);
12443
+ };
12444
+
12445
+
12446
+ /**
12447
+ * Returns whether this field is set.
12448
+ * @return {boolean}
12449
+ */
12450
+ proto.gateway.web.v1.SpanStarted.prototype.hasParentSpanId = function() {
12451
+ return jspb.Message.getField(this, 2) != null;
12452
+ };
12453
+
12454
+
12455
+ /**
12456
+ * optional string name = 3;
12457
+ * @return {string}
12458
+ */
12459
+ proto.gateway.web.v1.SpanStarted.prototype.getName = function() {
12460
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
12461
+ };
12462
+
12463
+
12464
+ /**
12465
+ * @param {string} value
12466
+ * @return {!proto.gateway.web.v1.SpanStarted} returns this
12467
+ */
12468
+ proto.gateway.web.v1.SpanStarted.prototype.setName = function(value) {
12469
+ return jspb.Message.setProto3StringField(this, 3, value);
12470
+ };
12471
+
12472
+
12473
+ /**
12474
+ * optional google.protobuf.Timestamp start_time = 4;
12475
+ * @return {?proto.google.protobuf.Timestamp}
12476
+ */
12477
+ proto.gateway.web.v1.SpanStarted.prototype.getStartTime = function() {
12478
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
12479
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
12480
+ };
12481
+
12482
+
12483
+ /**
12484
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
12485
+ * @return {!proto.gateway.web.v1.SpanStarted} returns this
12486
+ */
12487
+ proto.gateway.web.v1.SpanStarted.prototype.setStartTime = function(value) {
12488
+ return jspb.Message.setWrapperField(this, 4, value);
12489
+ };
12490
+
12491
+
12492
+ /**
12493
+ * Clears the message field making it undefined.
12494
+ * @return {!proto.gateway.web.v1.SpanStarted} returns this
12495
+ */
12496
+ proto.gateway.web.v1.SpanStarted.prototype.clearStartTime = function() {
12497
+ return this.setStartTime(undefined);
12498
+ };
12499
+
12500
+
12501
+ /**
12502
+ * Returns whether this field is set.
12503
+ * @return {boolean}
12504
+ */
12505
+ proto.gateway.web.v1.SpanStarted.prototype.hasStartTime = function() {
12506
+ return jspb.Message.getField(this, 4) != null;
12507
+ };
12508
+
12509
+
12510
+ /**
12511
+ * map<string, string> attributes = 5;
12512
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
12513
+ * empty, instead returning `undefined`
12514
+ * @return {!jspb.Map<string,string>}
12515
+ */
12516
+ proto.gateway.web.v1.SpanStarted.prototype.getAttributesMap = function(opt_noLazyCreate) {
12517
+ return /** @type {!jspb.Map<string,string>} */ (
12518
+ jspb.Message.getMapField(this, 5, opt_noLazyCreate,
12519
+ null));
12520
+ };
12521
+
12522
+
12523
+ /**
12524
+ * Clears values from the map. The map will be non-null.
12525
+ * @return {!proto.gateway.web.v1.SpanStarted} returns this
12526
+ */
12527
+ proto.gateway.web.v1.SpanStarted.prototype.clearAttributesMap = function() {
12528
+ this.getAttributesMap().clear();
12529
+ return this;
12530
+ };
12531
+
12532
+
12533
+
12534
+
12535
+
12536
+ if (jspb.Message.GENERATE_TO_OBJECT) {
12537
+ /**
12538
+ * Creates an object representation of this proto.
12539
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
12540
+ * Optional fields that are not set will be set to undefined.
12541
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
12542
+ * For the list of reserved names please see:
12543
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
12544
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
12545
+ * JSPB instance for transitional soy proto support:
12546
+ * http://goto/soy-param-migration
12547
+ * @return {!Object}
12548
+ */
12549
+ proto.gateway.web.v1.SpanEnded.prototype.toObject = function(opt_includeInstance) {
12550
+ return proto.gateway.web.v1.SpanEnded.toObject(opt_includeInstance, this);
12551
+ };
12552
+
12553
+
12554
+ /**
12555
+ * Static version of the {@see toObject} method.
12556
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
12557
+ * the JSPB instance for transitional soy proto support:
12558
+ * http://goto/soy-param-migration
12559
+ * @param {!proto.gateway.web.v1.SpanEnded} msg The msg instance to transform.
12560
+ * @return {!Object}
12561
+ * @suppress {unusedLocalVariables} f is only used for nested messages
12562
+ */
12563
+ proto.gateway.web.v1.SpanEnded.toObject = function(includeInstance, msg) {
12564
+ var f, obj = {
12565
+ spanId: jspb.Message.getFieldWithDefault(msg, 1, ""),
12566
+ endTime: (f = msg.getEndTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
12567
+ statusCode: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,
12568
+ statusMessage: (f = jspb.Message.getField(msg, 4)) == null ? undefined : f
12569
+ };
12570
+
12571
+ if (includeInstance) {
12572
+ obj.$jspbMessageInstance = msg;
12573
+ }
12574
+ return obj;
12575
+ };
12576
+ }
12577
+
12578
+
12579
+ /**
12580
+ * Deserializes binary data (in protobuf wire format).
12581
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
12582
+ * @return {!proto.gateway.web.v1.SpanEnded}
12583
+ */
12584
+ proto.gateway.web.v1.SpanEnded.deserializeBinary = function(bytes) {
12585
+ var reader = new jspb.BinaryReader(bytes);
12586
+ var msg = new proto.gateway.web.v1.SpanEnded;
12587
+ return proto.gateway.web.v1.SpanEnded.deserializeBinaryFromReader(msg, reader);
12588
+ };
12589
+
12590
+
12591
+ /**
12592
+ * Deserializes binary data (in protobuf wire format) from the
12593
+ * given reader into the given message object.
12594
+ * @param {!proto.gateway.web.v1.SpanEnded} msg The message object to deserialize into.
12595
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
12596
+ * @return {!proto.gateway.web.v1.SpanEnded}
12597
+ */
12598
+ proto.gateway.web.v1.SpanEnded.deserializeBinaryFromReader = function(msg, reader) {
12599
+ while (reader.nextField()) {
12600
+ if (reader.isEndGroup()) {
12601
+ break;
12602
+ }
12603
+ var field = reader.getFieldNumber();
12604
+ switch (field) {
12605
+ case 1:
12606
+ var value = /** @type {string} */ (reader.readString());
12607
+ msg.setSpanId(value);
12608
+ break;
12609
+ case 2:
12610
+ var value = new google_protobuf_timestamp_pb.Timestamp;
12611
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
12612
+ msg.setEndTime(value);
12613
+ break;
12614
+ case 3:
12615
+ var value = /** @type {string} */ (reader.readString());
12616
+ msg.setStatusCode(value);
12617
+ break;
12618
+ case 4:
12619
+ var value = /** @type {string} */ (reader.readString());
12620
+ msg.setStatusMessage(value);
12621
+ break;
12622
+ default:
12623
+ reader.skipField();
12624
+ break;
12625
+ }
12626
+ }
12627
+ return msg;
12628
+ };
12629
+
12630
+
12631
+ /**
12632
+ * Serializes the message to binary data (in protobuf wire format).
12633
+ * @return {!Uint8Array}
12634
+ */
12635
+ proto.gateway.web.v1.SpanEnded.prototype.serializeBinary = function() {
12636
+ var writer = new jspb.BinaryWriter();
12637
+ proto.gateway.web.v1.SpanEnded.serializeBinaryToWriter(this, writer);
12638
+ return writer.getResultBuffer();
12639
+ };
12640
+
12641
+
12642
+ /**
12643
+ * Serializes the given message to binary data (in protobuf wire
12644
+ * format), writing to the given BinaryWriter.
12645
+ * @param {!proto.gateway.web.v1.SpanEnded} message
12646
+ * @param {!jspb.BinaryWriter} writer
12647
+ * @suppress {unusedLocalVariables} f is only used for nested messages
12648
+ */
12649
+ proto.gateway.web.v1.SpanEnded.serializeBinaryToWriter = function(message, writer) {
12650
+ var f = undefined;
12651
+ f = message.getSpanId();
12652
+ if (f.length > 0) {
12653
+ writer.writeString(
12654
+ 1,
12655
+ f
12656
+ );
12657
+ }
12658
+ f = message.getEndTime();
12659
+ if (f != null) {
12660
+ writer.writeMessage(
12661
+ 2,
12662
+ f,
12663
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
12664
+ );
12665
+ }
12666
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
12667
+ if (f != null) {
12668
+ writer.writeString(
12669
+ 3,
12670
+ f
12671
+ );
12672
+ }
12673
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
12674
+ if (f != null) {
12675
+ writer.writeString(
12676
+ 4,
12677
+ f
12678
+ );
12679
+ }
12680
+ };
12681
+
12682
+
12683
+ /**
12684
+ * optional string span_id = 1;
12685
+ * @return {string}
12686
+ */
12687
+ proto.gateway.web.v1.SpanEnded.prototype.getSpanId = function() {
12688
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
12689
+ };
12690
+
12691
+
12692
+ /**
12693
+ * @param {string} value
12694
+ * @return {!proto.gateway.web.v1.SpanEnded} returns this
12695
+ */
12696
+ proto.gateway.web.v1.SpanEnded.prototype.setSpanId = function(value) {
12697
+ return jspb.Message.setProto3StringField(this, 1, value);
12698
+ };
12699
+
12700
+
12701
+ /**
12702
+ * optional google.protobuf.Timestamp end_time = 2;
12703
+ * @return {?proto.google.protobuf.Timestamp}
12704
+ */
12705
+ proto.gateway.web.v1.SpanEnded.prototype.getEndTime = function() {
12706
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
12707
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
12708
+ };
12709
+
12710
+
12711
+ /**
12712
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
12713
+ * @return {!proto.gateway.web.v1.SpanEnded} returns this
12714
+ */
12715
+ proto.gateway.web.v1.SpanEnded.prototype.setEndTime = function(value) {
12716
+ return jspb.Message.setWrapperField(this, 2, value);
12717
+ };
12718
+
12719
+
12720
+ /**
12721
+ * Clears the message field making it undefined.
12722
+ * @return {!proto.gateway.web.v1.SpanEnded} returns this
12723
+ */
12724
+ proto.gateway.web.v1.SpanEnded.prototype.clearEndTime = function() {
12725
+ return this.setEndTime(undefined);
12726
+ };
12727
+
12728
+
12729
+ /**
12730
+ * Returns whether this field is set.
12731
+ * @return {boolean}
12732
+ */
12733
+ proto.gateway.web.v1.SpanEnded.prototype.hasEndTime = function() {
12734
+ return jspb.Message.getField(this, 2) != null;
12735
+ };
12736
+
12737
+
12738
+ /**
12739
+ * optional string status_code = 3;
12740
+ * @return {string}
12741
+ */
12742
+ proto.gateway.web.v1.SpanEnded.prototype.getStatusCode = function() {
12743
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
12744
+ };
12745
+
12746
+
12747
+ /**
12748
+ * @param {string} value
12749
+ * @return {!proto.gateway.web.v1.SpanEnded} returns this
12750
+ */
12751
+ proto.gateway.web.v1.SpanEnded.prototype.setStatusCode = function(value) {
12752
+ return jspb.Message.setField(this, 3, value);
12753
+ };
12754
+
12755
+
12756
+ /**
12757
+ * Clears the field making it undefined.
12758
+ * @return {!proto.gateway.web.v1.SpanEnded} returns this
12759
+ */
12760
+ proto.gateway.web.v1.SpanEnded.prototype.clearStatusCode = function() {
12761
+ return jspb.Message.setField(this, 3, undefined);
12762
+ };
12763
+
12764
+
12765
+ /**
12766
+ * Returns whether this field is set.
12767
+ * @return {boolean}
12768
+ */
12769
+ proto.gateway.web.v1.SpanEnded.prototype.hasStatusCode = function() {
12770
+ return jspb.Message.getField(this, 3) != null;
12771
+ };
12772
+
12773
+
12774
+ /**
12775
+ * optional string status_message = 4;
12776
+ * @return {string}
12777
+ */
12778
+ proto.gateway.web.v1.SpanEnded.prototype.getStatusMessage = function() {
12779
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
12780
+ };
12781
+
12782
+
12783
+ /**
12784
+ * @param {string} value
12785
+ * @return {!proto.gateway.web.v1.SpanEnded} returns this
12786
+ */
12787
+ proto.gateway.web.v1.SpanEnded.prototype.setStatusMessage = function(value) {
12788
+ return jspb.Message.setField(this, 4, value);
12789
+ };
12790
+
12791
+
12792
+ /**
12793
+ * Clears the field making it undefined.
12794
+ * @return {!proto.gateway.web.v1.SpanEnded} returns this
12795
+ */
12796
+ proto.gateway.web.v1.SpanEnded.prototype.clearStatusMessage = function() {
12797
+ return jspb.Message.setField(this, 4, undefined);
12798
+ };
12799
+
12800
+
12801
+ /**
12802
+ * Returns whether this field is set.
12803
+ * @return {boolean}
12804
+ */
12805
+ proto.gateway.web.v1.SpanEnded.prototype.hasStatusMessage = function() {
12806
+ return jspb.Message.getField(this, 4) != null;
12807
+ };
12808
+
12809
+
12062
12810
 
12063
12811
 
12064
12812
 
@@ -28514,7 +29262,9 @@ proto.gateway.web.v1.TraceEventType = {
28514
29262
  TRACE_EVENT_TYPE_RELAY_TRACKING_FINISHED: 51,
28515
29263
  TRACE_EVENT_TYPE_RELAY_NOT_FOUND: 52,
28516
29264
  TRACE_EVENT_TYPE_RULE_MATCH_ADDED: 53,
28517
- TRACE_EVENT_TYPE_CANTON_TRANSACTION: 54
29265
+ TRACE_EVENT_TYPE_CANTON_TRANSACTION: 54,
29266
+ TRACE_EVENT_TYPE_SPAN_STARTED: 55,
29267
+ TRACE_EVENT_TYPE_SPAN_ENDED: 56
28518
29268
  };
28519
29269
 
28520
29270
  /**