@miradorlabs/parallax-web 1.0.4 → 1.0.7
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/README.md +300 -134
- package/dist/index.d.ts +206 -77
- package/dist/index.esm.js +770 -2828
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +772 -2827
- package/dist/index.umd.js.map +1 -1
- package/example/README.md +257 -0
- package/example/app.js +411 -0
- package/example/index.html +469 -0
- package/example/package-lock.json +1877 -0
- package/example/package.json +33 -0
- package/example/proxy-server.js +86 -0
- package/example/rollup.config.js +16 -0
- package/index.ts +3 -10
- package/package.json +3 -2
- package/src/parallax/ParallaxService.ts +296 -0
- package/src/parallax/index.ts +168 -155
package/dist/index.umd.js
CHANGED
|
@@ -706,22 +706,10 @@
|
|
|
706
706
|
goog.object.extend(proto, google_protobuf_timestamp_pb);
|
|
707
707
|
var proto_common_v1_status_pb = requireStatus_pb();
|
|
708
708
|
goog.object.extend(proto, proto_common_v1_status_pb);
|
|
709
|
-
goog.exportSymbol('proto.gateway.parallax.v1.AddSpanErrorRequest', null, global);
|
|
710
|
-
goog.exportSymbol('proto.gateway.parallax.v1.AddSpanErrorResponse', null, global);
|
|
711
|
-
goog.exportSymbol('proto.gateway.parallax.v1.AddSpanEventRequest', null, global);
|
|
712
|
-
goog.exportSymbol('proto.gateway.parallax.v1.AddSpanEventResponse', null, global);
|
|
713
|
-
goog.exportSymbol('proto.gateway.parallax.v1.AddSpanHintRequest', null, global);
|
|
714
|
-
goog.exportSymbol('proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction', null, global);
|
|
715
|
-
goog.exportSymbol('proto.gateway.parallax.v1.AddSpanHintRequest.HintTypeCase', null, global);
|
|
716
|
-
goog.exportSymbol('proto.gateway.parallax.v1.AddSpanHintResponse', null, global);
|
|
717
709
|
goog.exportSymbol('proto.gateway.parallax.v1.CreateTraceRequest', null, global);
|
|
710
|
+
goog.exportSymbol('proto.gateway.parallax.v1.CreateTraceRequest.Event', null, global);
|
|
711
|
+
goog.exportSymbol('proto.gateway.parallax.v1.CreateTraceRequest.TxHashHint', null, global);
|
|
718
712
|
goog.exportSymbol('proto.gateway.parallax.v1.CreateTraceResponse', null, global);
|
|
719
|
-
goog.exportSymbol('proto.gateway.parallax.v1.FinishSpanRequest', null, global);
|
|
720
|
-
goog.exportSymbol('proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus', null, global);
|
|
721
|
-
goog.exportSymbol('proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.StatusCode', null, global);
|
|
722
|
-
goog.exportSymbol('proto.gateway.parallax.v1.FinishSpanResponse', null, global);
|
|
723
|
-
goog.exportSymbol('proto.gateway.parallax.v1.StartSpanRequest', null, global);
|
|
724
|
-
goog.exportSymbol('proto.gateway.parallax.v1.StartSpanResponse', null, global);
|
|
725
713
|
/**
|
|
726
714
|
* Generated by JsPbCodeGenerator.
|
|
727
715
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -753,226 +741,16 @@
|
|
|
753
741
|
* @extends {jspb.Message}
|
|
754
742
|
* @constructor
|
|
755
743
|
*/
|
|
756
|
-
proto.gateway.parallax.v1.
|
|
757
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
758
|
-
};
|
|
759
|
-
goog.inherits(proto.gateway.parallax.v1.CreateTraceResponse, jspb.Message);
|
|
760
|
-
if (goog.DEBUG && !COMPILED) {
|
|
761
|
-
/**
|
|
762
|
-
* @public
|
|
763
|
-
* @override
|
|
764
|
-
*/
|
|
765
|
-
proto.gateway.parallax.v1.CreateTraceResponse.displayName = 'proto.gateway.parallax.v1.CreateTraceResponse';
|
|
766
|
-
}
|
|
767
|
-
/**
|
|
768
|
-
* Generated by JsPbCodeGenerator.
|
|
769
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
770
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
771
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
772
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
773
|
-
* valid.
|
|
774
|
-
* @extends {jspb.Message}
|
|
775
|
-
* @constructor
|
|
776
|
-
*/
|
|
777
|
-
proto.gateway.parallax.v1.StartSpanRequest = function(opt_data) {
|
|
778
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
779
|
-
};
|
|
780
|
-
goog.inherits(proto.gateway.parallax.v1.StartSpanRequest, jspb.Message);
|
|
781
|
-
if (goog.DEBUG && !COMPILED) {
|
|
782
|
-
/**
|
|
783
|
-
* @public
|
|
784
|
-
* @override
|
|
785
|
-
*/
|
|
786
|
-
proto.gateway.parallax.v1.StartSpanRequest.displayName = 'proto.gateway.parallax.v1.StartSpanRequest';
|
|
787
|
-
}
|
|
788
|
-
/**
|
|
789
|
-
* Generated by JsPbCodeGenerator.
|
|
790
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
791
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
792
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
793
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
794
|
-
* valid.
|
|
795
|
-
* @extends {jspb.Message}
|
|
796
|
-
* @constructor
|
|
797
|
-
*/
|
|
798
|
-
proto.gateway.parallax.v1.StartSpanResponse = function(opt_data) {
|
|
799
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
800
|
-
};
|
|
801
|
-
goog.inherits(proto.gateway.parallax.v1.StartSpanResponse, jspb.Message);
|
|
802
|
-
if (goog.DEBUG && !COMPILED) {
|
|
803
|
-
/**
|
|
804
|
-
* @public
|
|
805
|
-
* @override
|
|
806
|
-
*/
|
|
807
|
-
proto.gateway.parallax.v1.StartSpanResponse.displayName = 'proto.gateway.parallax.v1.StartSpanResponse';
|
|
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.parallax.v1.FinishSpanRequest = function(opt_data) {
|
|
820
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
821
|
-
};
|
|
822
|
-
goog.inherits(proto.gateway.parallax.v1.FinishSpanRequest, jspb.Message);
|
|
823
|
-
if (goog.DEBUG && !COMPILED) {
|
|
824
|
-
/**
|
|
825
|
-
* @public
|
|
826
|
-
* @override
|
|
827
|
-
*/
|
|
828
|
-
proto.gateway.parallax.v1.FinishSpanRequest.displayName = 'proto.gateway.parallax.v1.FinishSpanRequest';
|
|
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.parallax.v1.FinishSpanRequest.SpanStatus = function(opt_data) {
|
|
841
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
842
|
-
};
|
|
843
|
-
goog.inherits(proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus, jspb.Message);
|
|
844
|
-
if (goog.DEBUG && !COMPILED) {
|
|
845
|
-
/**
|
|
846
|
-
* @public
|
|
847
|
-
* @override
|
|
848
|
-
*/
|
|
849
|
-
proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.displayName = 'proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus';
|
|
850
|
-
}
|
|
851
|
-
/**
|
|
852
|
-
* Generated by JsPbCodeGenerator.
|
|
853
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
854
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
855
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
856
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
857
|
-
* valid.
|
|
858
|
-
* @extends {jspb.Message}
|
|
859
|
-
* @constructor
|
|
860
|
-
*/
|
|
861
|
-
proto.gateway.parallax.v1.FinishSpanResponse = function(opt_data) {
|
|
862
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
863
|
-
};
|
|
864
|
-
goog.inherits(proto.gateway.parallax.v1.FinishSpanResponse, jspb.Message);
|
|
865
|
-
if (goog.DEBUG && !COMPILED) {
|
|
866
|
-
/**
|
|
867
|
-
* @public
|
|
868
|
-
* @override
|
|
869
|
-
*/
|
|
870
|
-
proto.gateway.parallax.v1.FinishSpanResponse.displayName = 'proto.gateway.parallax.v1.FinishSpanResponse';
|
|
871
|
-
}
|
|
872
|
-
/**
|
|
873
|
-
* Generated by JsPbCodeGenerator.
|
|
874
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
875
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
876
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
877
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
878
|
-
* valid.
|
|
879
|
-
* @extends {jspb.Message}
|
|
880
|
-
* @constructor
|
|
881
|
-
*/
|
|
882
|
-
proto.gateway.parallax.v1.AddSpanEventRequest = function(opt_data) {
|
|
883
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
884
|
-
};
|
|
885
|
-
goog.inherits(proto.gateway.parallax.v1.AddSpanEventRequest, jspb.Message);
|
|
886
|
-
if (goog.DEBUG && !COMPILED) {
|
|
887
|
-
/**
|
|
888
|
-
* @public
|
|
889
|
-
* @override
|
|
890
|
-
*/
|
|
891
|
-
proto.gateway.parallax.v1.AddSpanEventRequest.displayName = 'proto.gateway.parallax.v1.AddSpanEventRequest';
|
|
892
|
-
}
|
|
893
|
-
/**
|
|
894
|
-
* Generated by JsPbCodeGenerator.
|
|
895
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
896
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
897
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
898
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
899
|
-
* valid.
|
|
900
|
-
* @extends {jspb.Message}
|
|
901
|
-
* @constructor
|
|
902
|
-
*/
|
|
903
|
-
proto.gateway.parallax.v1.AddSpanEventResponse = function(opt_data) {
|
|
904
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
905
|
-
};
|
|
906
|
-
goog.inherits(proto.gateway.parallax.v1.AddSpanEventResponse, jspb.Message);
|
|
907
|
-
if (goog.DEBUG && !COMPILED) {
|
|
908
|
-
/**
|
|
909
|
-
* @public
|
|
910
|
-
* @override
|
|
911
|
-
*/
|
|
912
|
-
proto.gateway.parallax.v1.AddSpanEventResponse.displayName = 'proto.gateway.parallax.v1.AddSpanEventResponse';
|
|
913
|
-
}
|
|
914
|
-
/**
|
|
915
|
-
* Generated by JsPbCodeGenerator.
|
|
916
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
917
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
918
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
919
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
920
|
-
* valid.
|
|
921
|
-
* @extends {jspb.Message}
|
|
922
|
-
* @constructor
|
|
923
|
-
*/
|
|
924
|
-
proto.gateway.parallax.v1.AddSpanErrorRequest = function(opt_data) {
|
|
925
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
926
|
-
};
|
|
927
|
-
goog.inherits(proto.gateway.parallax.v1.AddSpanErrorRequest, jspb.Message);
|
|
928
|
-
if (goog.DEBUG && !COMPILED) {
|
|
929
|
-
/**
|
|
930
|
-
* @public
|
|
931
|
-
* @override
|
|
932
|
-
*/
|
|
933
|
-
proto.gateway.parallax.v1.AddSpanErrorRequest.displayName = 'proto.gateway.parallax.v1.AddSpanErrorRequest';
|
|
934
|
-
}
|
|
935
|
-
/**
|
|
936
|
-
* Generated by JsPbCodeGenerator.
|
|
937
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
938
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
939
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
940
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
941
|
-
* valid.
|
|
942
|
-
* @extends {jspb.Message}
|
|
943
|
-
* @constructor
|
|
944
|
-
*/
|
|
945
|
-
proto.gateway.parallax.v1.AddSpanErrorResponse = function(opt_data) {
|
|
744
|
+
proto.gateway.parallax.v1.CreateTraceRequest.TxHashHint = function(opt_data) {
|
|
946
745
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
947
746
|
};
|
|
948
|
-
goog.inherits(proto.gateway.parallax.v1.
|
|
949
|
-
if (goog.DEBUG && !COMPILED) {
|
|
950
|
-
/**
|
|
951
|
-
* @public
|
|
952
|
-
* @override
|
|
953
|
-
*/
|
|
954
|
-
proto.gateway.parallax.v1.AddSpanErrorResponse.displayName = 'proto.gateway.parallax.v1.AddSpanErrorResponse';
|
|
955
|
-
}
|
|
956
|
-
/**
|
|
957
|
-
* Generated by JsPbCodeGenerator.
|
|
958
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
959
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
960
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
961
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
962
|
-
* valid.
|
|
963
|
-
* @extends {jspb.Message}
|
|
964
|
-
* @constructor
|
|
965
|
-
*/
|
|
966
|
-
proto.gateway.parallax.v1.AddSpanHintRequest = function(opt_data) {
|
|
967
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.gateway.parallax.v1.AddSpanHintRequest.oneofGroups_);
|
|
968
|
-
};
|
|
969
|
-
goog.inherits(proto.gateway.parallax.v1.AddSpanHintRequest, jspb.Message);
|
|
747
|
+
goog.inherits(proto.gateway.parallax.v1.CreateTraceRequest.TxHashHint, jspb.Message);
|
|
970
748
|
if (goog.DEBUG && !COMPILED) {
|
|
971
749
|
/**
|
|
972
750
|
* @public
|
|
973
751
|
* @override
|
|
974
752
|
*/
|
|
975
|
-
proto.gateway.parallax.v1.
|
|
753
|
+
proto.gateway.parallax.v1.CreateTraceRequest.TxHashHint.displayName = 'proto.gateway.parallax.v1.CreateTraceRequest.TxHashHint';
|
|
976
754
|
}
|
|
977
755
|
/**
|
|
978
756
|
* Generated by JsPbCodeGenerator.
|
|
@@ -984,16 +762,16 @@
|
|
|
984
762
|
* @extends {jspb.Message}
|
|
985
763
|
* @constructor
|
|
986
764
|
*/
|
|
987
|
-
proto.gateway.parallax.v1.
|
|
765
|
+
proto.gateway.parallax.v1.CreateTraceRequest.Event = function(opt_data) {
|
|
988
766
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
989
767
|
};
|
|
990
|
-
goog.inherits(proto.gateway.parallax.v1.
|
|
768
|
+
goog.inherits(proto.gateway.parallax.v1.CreateTraceRequest.Event, jspb.Message);
|
|
991
769
|
if (goog.DEBUG && !COMPILED) {
|
|
992
770
|
/**
|
|
993
771
|
* @public
|
|
994
772
|
* @override
|
|
995
773
|
*/
|
|
996
|
-
proto.gateway.parallax.v1.
|
|
774
|
+
proto.gateway.parallax.v1.CreateTraceRequest.Event.displayName = 'proto.gateway.parallax.v1.CreateTraceRequest.Event';
|
|
997
775
|
}
|
|
998
776
|
/**
|
|
999
777
|
* Generated by JsPbCodeGenerator.
|
|
@@ -1005,16 +783,16 @@
|
|
|
1005
783
|
* @extends {jspb.Message}
|
|
1006
784
|
* @constructor
|
|
1007
785
|
*/
|
|
1008
|
-
proto.gateway.parallax.v1.
|
|
786
|
+
proto.gateway.parallax.v1.CreateTraceResponse = function(opt_data) {
|
|
1009
787
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1010
788
|
};
|
|
1011
|
-
goog.inherits(proto.gateway.parallax.v1.
|
|
789
|
+
goog.inherits(proto.gateway.parallax.v1.CreateTraceResponse, jspb.Message);
|
|
1012
790
|
if (goog.DEBUG && !COMPILED) {
|
|
1013
791
|
/**
|
|
1014
792
|
* @public
|
|
1015
793
|
* @override
|
|
1016
794
|
*/
|
|
1017
|
-
proto.gateway.parallax.v1.
|
|
795
|
+
proto.gateway.parallax.v1.CreateTraceResponse.displayName = 'proto.gateway.parallax.v1.CreateTraceResponse';
|
|
1018
796
|
}
|
|
1019
797
|
|
|
1020
798
|
/**
|
|
@@ -1022,7 +800,7 @@
|
|
|
1022
800
|
* @private {!Array<number>}
|
|
1023
801
|
* @const
|
|
1024
802
|
*/
|
|
1025
|
-
proto.gateway.parallax.v1.CreateTraceRequest.repeatedFields_ = [3];
|
|
803
|
+
proto.gateway.parallax.v1.CreateTraceRequest.repeatedFields_ = [3,4];
|
|
1026
804
|
|
|
1027
805
|
|
|
1028
806
|
|
|
@@ -1057,7 +835,10 @@
|
|
|
1057
835
|
var f, obj = {
|
|
1058
836
|
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1059
837
|
attributesMap: (f = msg.getAttributesMap()) ? f.toObject(includeInstance, undefined) : [],
|
|
1060
|
-
tagsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
|
|
838
|
+
tagsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
|
|
839
|
+
eventsList: jspb.Message.toObjectList(msg.getEventsList(),
|
|
840
|
+
proto.gateway.parallax.v1.CreateTraceRequest.Event.toObject, includeInstance),
|
|
841
|
+
txHashHint: (f = msg.getTxHashHint()) && proto.gateway.parallax.v1.CreateTraceRequest.TxHashHint.toObject(includeInstance, f)
|
|
1061
842
|
};
|
|
1062
843
|
|
|
1063
844
|
if (includeInstance) {
|
|
@@ -1108,6 +889,16 @@
|
|
|
1108
889
|
var value = /** @type {string} */ (reader.readString());
|
|
1109
890
|
msg.addTags(value);
|
|
1110
891
|
break;
|
|
892
|
+
case 4:
|
|
893
|
+
var value = new proto.gateway.parallax.v1.CreateTraceRequest.Event;
|
|
894
|
+
reader.readMessage(value,proto.gateway.parallax.v1.CreateTraceRequest.Event.deserializeBinaryFromReader);
|
|
895
|
+
msg.addEvents(value);
|
|
896
|
+
break;
|
|
897
|
+
case 5:
|
|
898
|
+
var value = new proto.gateway.parallax.v1.CreateTraceRequest.TxHashHint;
|
|
899
|
+
reader.readMessage(value,proto.gateway.parallax.v1.CreateTraceRequest.TxHashHint.deserializeBinaryFromReader);
|
|
900
|
+
msg.setTxHashHint(value);
|
|
901
|
+
break;
|
|
1111
902
|
default:
|
|
1112
903
|
reader.skipField();
|
|
1113
904
|
break;
|
|
@@ -1155,1837 +946,91 @@
|
|
|
1155
946
|
f
|
|
1156
947
|
);
|
|
1157
948
|
}
|
|
949
|
+
f = message.getEventsList();
|
|
950
|
+
if (f.length > 0) {
|
|
951
|
+
writer.writeRepeatedMessage(
|
|
952
|
+
4,
|
|
953
|
+
f,
|
|
954
|
+
proto.gateway.parallax.v1.CreateTraceRequest.Event.serializeBinaryToWriter
|
|
955
|
+
);
|
|
956
|
+
}
|
|
957
|
+
f = message.getTxHashHint();
|
|
958
|
+
if (f != null) {
|
|
959
|
+
writer.writeMessage(
|
|
960
|
+
5,
|
|
961
|
+
f,
|
|
962
|
+
proto.gateway.parallax.v1.CreateTraceRequest.TxHashHint.serializeBinaryToWriter
|
|
963
|
+
);
|
|
964
|
+
}
|
|
1158
965
|
};
|
|
1159
966
|
|
|
1160
967
|
|
|
1161
|
-
/**
|
|
1162
|
-
* optional string name = 1;
|
|
1163
|
-
* @return {string}
|
|
1164
|
-
*/
|
|
1165
|
-
proto.gateway.parallax.v1.CreateTraceRequest.prototype.getName = function() {
|
|
1166
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1167
|
-
};
|
|
1168
968
|
|
|
1169
969
|
|
|
970
|
+
|
|
971
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1170
972
|
/**
|
|
1171
|
-
*
|
|
1172
|
-
*
|
|
973
|
+
* Creates an object representation of this proto.
|
|
974
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
975
|
+
* Optional fields that are not set will be set to undefined.
|
|
976
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
977
|
+
* For the list of reserved names please see:
|
|
978
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
979
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
980
|
+
* JSPB instance for transitional soy proto support:
|
|
981
|
+
* http://goto/soy-param-migration
|
|
982
|
+
* @return {!Object}
|
|
1173
983
|
*/
|
|
1174
|
-
proto.gateway.parallax.v1.CreateTraceRequest.prototype.
|
|
1175
|
-
return
|
|
984
|
+
proto.gateway.parallax.v1.CreateTraceRequest.TxHashHint.prototype.toObject = function(opt_includeInstance) {
|
|
985
|
+
return proto.gateway.parallax.v1.CreateTraceRequest.TxHashHint.toObject(opt_includeInstance, this);
|
|
1176
986
|
};
|
|
1177
987
|
|
|
1178
988
|
|
|
1179
989
|
/**
|
|
1180
|
-
*
|
|
1181
|
-
* @param {boolean
|
|
1182
|
-
*
|
|
1183
|
-
*
|
|
990
|
+
* Static version of the {@see toObject} method.
|
|
991
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
992
|
+
* the JSPB instance for transitional soy proto support:
|
|
993
|
+
* http://goto/soy-param-migration
|
|
994
|
+
* @param {!proto.gateway.parallax.v1.CreateTraceRequest.TxHashHint} msg The msg instance to transform.
|
|
995
|
+
* @return {!Object}
|
|
996
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1184
997
|
*/
|
|
1185
|
-
proto.gateway.parallax.v1.CreateTraceRequest.
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
998
|
+
proto.gateway.parallax.v1.CreateTraceRequest.TxHashHint.toObject = function(includeInstance, msg) {
|
|
999
|
+
var f, obj = {
|
|
1000
|
+
chainId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1001
|
+
txHash: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
1002
|
+
details: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,
|
|
1003
|
+
timestamp: (f = msg.getTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
1004
|
+
};
|
|
1005
|
+
|
|
1006
|
+
if (includeInstance) {
|
|
1007
|
+
obj.$jspbMessageInstance = msg;
|
|
1008
|
+
}
|
|
1009
|
+
return obj;
|
|
1189
1010
|
};
|
|
1011
|
+
}
|
|
1190
1012
|
|
|
1191
1013
|
|
|
1192
1014
|
/**
|
|
1193
|
-
*
|
|
1194
|
-
* @
|
|
1015
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1016
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1017
|
+
* @return {!proto.gateway.parallax.v1.CreateTraceRequest.TxHashHint}
|
|
1195
1018
|
*/
|
|
1196
|
-
proto.gateway.parallax.v1.CreateTraceRequest.
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
/**
|
|
1203
|
-
* repeated string tags = 3;
|
|
1204
|
-
* @return {!Array<string>}
|
|
1205
|
-
*/
|
|
1206
|
-
proto.gateway.parallax.v1.CreateTraceRequest.prototype.getTagsList = function() {
|
|
1207
|
-
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
|
|
1208
|
-
};
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
/**
|
|
1212
|
-
* @param {!Array<string>} value
|
|
1213
|
-
* @return {!proto.gateway.parallax.v1.CreateTraceRequest} returns this
|
|
1214
|
-
*/
|
|
1215
|
-
proto.gateway.parallax.v1.CreateTraceRequest.prototype.setTagsList = function(value) {
|
|
1216
|
-
return jspb.Message.setField(this, 3, value || []);
|
|
1217
|
-
};
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
/**
|
|
1221
|
-
* @param {string} value
|
|
1222
|
-
* @param {number=} opt_index
|
|
1223
|
-
* @return {!proto.gateway.parallax.v1.CreateTraceRequest} returns this
|
|
1224
|
-
*/
|
|
1225
|
-
proto.gateway.parallax.v1.CreateTraceRequest.prototype.addTags = function(value, opt_index) {
|
|
1226
|
-
return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
|
|
1227
|
-
};
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
/**
|
|
1231
|
-
* Clears the list making it empty but non-null.
|
|
1232
|
-
* @return {!proto.gateway.parallax.v1.CreateTraceRequest} returns this
|
|
1233
|
-
*/
|
|
1234
|
-
proto.gateway.parallax.v1.CreateTraceRequest.prototype.clearTagsList = function() {
|
|
1235
|
-
return this.setTagsList([]);
|
|
1236
|
-
};
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1243
|
-
/**
|
|
1244
|
-
* Creates an object representation of this proto.
|
|
1245
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1246
|
-
* Optional fields that are not set will be set to undefined.
|
|
1247
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1248
|
-
* For the list of reserved names please see:
|
|
1249
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1250
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1251
|
-
* JSPB instance for transitional soy proto support:
|
|
1252
|
-
* http://goto/soy-param-migration
|
|
1253
|
-
* @return {!Object}
|
|
1254
|
-
*/
|
|
1255
|
-
proto.gateway.parallax.v1.CreateTraceResponse.prototype.toObject = function(opt_includeInstance) {
|
|
1256
|
-
return proto.gateway.parallax.v1.CreateTraceResponse.toObject(opt_includeInstance, this);
|
|
1257
|
-
};
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
/**
|
|
1261
|
-
* Static version of the {@see toObject} method.
|
|
1262
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1263
|
-
* the JSPB instance for transitional soy proto support:
|
|
1264
|
-
* http://goto/soy-param-migration
|
|
1265
|
-
* @param {!proto.gateway.parallax.v1.CreateTraceResponse} msg The msg instance to transform.
|
|
1266
|
-
* @return {!Object}
|
|
1267
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1268
|
-
*/
|
|
1269
|
-
proto.gateway.parallax.v1.CreateTraceResponse.toObject = function(includeInstance, msg) {
|
|
1270
|
-
var f, obj = {
|
|
1271
|
-
status: (f = msg.getStatus()) && proto_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
|
|
1272
|
-
traceId: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
1273
|
-
};
|
|
1274
|
-
|
|
1275
|
-
if (includeInstance) {
|
|
1276
|
-
obj.$jspbMessageInstance = msg;
|
|
1277
|
-
}
|
|
1278
|
-
return obj;
|
|
1279
|
-
};
|
|
1280
|
-
}
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
/**
|
|
1284
|
-
* Deserializes binary data (in protobuf wire format).
|
|
1285
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1286
|
-
* @return {!proto.gateway.parallax.v1.CreateTraceResponse}
|
|
1287
|
-
*/
|
|
1288
|
-
proto.gateway.parallax.v1.CreateTraceResponse.deserializeBinary = function(bytes) {
|
|
1289
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
1290
|
-
var msg = new proto.gateway.parallax.v1.CreateTraceResponse;
|
|
1291
|
-
return proto.gateway.parallax.v1.CreateTraceResponse.deserializeBinaryFromReader(msg, reader);
|
|
1292
|
-
};
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
/**
|
|
1296
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
1297
|
-
* given reader into the given message object.
|
|
1298
|
-
* @param {!proto.gateway.parallax.v1.CreateTraceResponse} msg The message object to deserialize into.
|
|
1299
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1300
|
-
* @return {!proto.gateway.parallax.v1.CreateTraceResponse}
|
|
1301
|
-
*/
|
|
1302
|
-
proto.gateway.parallax.v1.CreateTraceResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
1303
|
-
while (reader.nextField()) {
|
|
1304
|
-
if (reader.isEndGroup()) {
|
|
1305
|
-
break;
|
|
1306
|
-
}
|
|
1307
|
-
var field = reader.getFieldNumber();
|
|
1308
|
-
switch (field) {
|
|
1309
|
-
case 1:
|
|
1310
|
-
var value = new proto_common_v1_status_pb.ResponseStatus;
|
|
1311
|
-
reader.readMessage(value,proto_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
|
|
1312
|
-
msg.setStatus(value);
|
|
1313
|
-
break;
|
|
1314
|
-
case 2:
|
|
1315
|
-
var value = /** @type {string} */ (reader.readString());
|
|
1316
|
-
msg.setTraceId(value);
|
|
1317
|
-
break;
|
|
1318
|
-
default:
|
|
1319
|
-
reader.skipField();
|
|
1320
|
-
break;
|
|
1321
|
-
}
|
|
1322
|
-
}
|
|
1323
|
-
return msg;
|
|
1324
|
-
};
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
/**
|
|
1328
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
1329
|
-
* @return {!Uint8Array}
|
|
1330
|
-
*/
|
|
1331
|
-
proto.gateway.parallax.v1.CreateTraceResponse.prototype.serializeBinary = function() {
|
|
1332
|
-
var writer = new jspb.BinaryWriter();
|
|
1333
|
-
proto.gateway.parallax.v1.CreateTraceResponse.serializeBinaryToWriter(this, writer);
|
|
1334
|
-
return writer.getResultBuffer();
|
|
1335
|
-
};
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
/**
|
|
1339
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
1340
|
-
* format), writing to the given BinaryWriter.
|
|
1341
|
-
* @param {!proto.gateway.parallax.v1.CreateTraceResponse} message
|
|
1342
|
-
* @param {!jspb.BinaryWriter} writer
|
|
1343
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1344
|
-
*/
|
|
1345
|
-
proto.gateway.parallax.v1.CreateTraceResponse.serializeBinaryToWriter = function(message, writer) {
|
|
1346
|
-
var f = undefined;
|
|
1347
|
-
f = message.getStatus();
|
|
1348
|
-
if (f != null) {
|
|
1349
|
-
writer.writeMessage(
|
|
1350
|
-
1,
|
|
1351
|
-
f,
|
|
1352
|
-
proto_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
|
|
1353
|
-
);
|
|
1354
|
-
}
|
|
1355
|
-
f = message.getTraceId();
|
|
1356
|
-
if (f.length > 0) {
|
|
1357
|
-
writer.writeString(
|
|
1358
|
-
2,
|
|
1359
|
-
f
|
|
1360
|
-
);
|
|
1361
|
-
}
|
|
1362
|
-
};
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
/**
|
|
1366
|
-
* optional common.v1.ResponseStatus status = 1;
|
|
1367
|
-
* @return {?proto.common.v1.ResponseStatus}
|
|
1368
|
-
*/
|
|
1369
|
-
proto.gateway.parallax.v1.CreateTraceResponse.prototype.getStatus = function() {
|
|
1370
|
-
return /** @type{?proto.common.v1.ResponseStatus} */ (
|
|
1371
|
-
jspb.Message.getWrapperField(this, proto_common_v1_status_pb.ResponseStatus, 1));
|
|
1372
|
-
};
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
/**
|
|
1376
|
-
* @param {?proto.common.v1.ResponseStatus|undefined} value
|
|
1377
|
-
* @return {!proto.gateway.parallax.v1.CreateTraceResponse} returns this
|
|
1378
|
-
*/
|
|
1379
|
-
proto.gateway.parallax.v1.CreateTraceResponse.prototype.setStatus = function(value) {
|
|
1380
|
-
return jspb.Message.setWrapperField(this, 1, value);
|
|
1381
|
-
};
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
/**
|
|
1385
|
-
* Clears the message field making it undefined.
|
|
1386
|
-
* @return {!proto.gateway.parallax.v1.CreateTraceResponse} returns this
|
|
1387
|
-
*/
|
|
1388
|
-
proto.gateway.parallax.v1.CreateTraceResponse.prototype.clearStatus = function() {
|
|
1389
|
-
return this.setStatus(undefined);
|
|
1390
|
-
};
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
/**
|
|
1394
|
-
* Returns whether this field is set.
|
|
1395
|
-
* @return {boolean}
|
|
1396
|
-
*/
|
|
1397
|
-
proto.gateway.parallax.v1.CreateTraceResponse.prototype.hasStatus = function() {
|
|
1398
|
-
return jspb.Message.getField(this, 1) != null;
|
|
1399
|
-
};
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
/**
|
|
1403
|
-
* optional string trace_id = 2;
|
|
1404
|
-
* @return {string}
|
|
1405
|
-
*/
|
|
1406
|
-
proto.gateway.parallax.v1.CreateTraceResponse.prototype.getTraceId = function() {
|
|
1407
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
1408
|
-
};
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
/**
|
|
1412
|
-
* @param {string} value
|
|
1413
|
-
* @return {!proto.gateway.parallax.v1.CreateTraceResponse} returns this
|
|
1414
|
-
*/
|
|
1415
|
-
proto.gateway.parallax.v1.CreateTraceResponse.prototype.setTraceId = function(value) {
|
|
1416
|
-
return jspb.Message.setProto3StringField(this, 2, value);
|
|
1417
|
-
};
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1424
|
-
/**
|
|
1425
|
-
* Creates an object representation of this proto.
|
|
1426
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1427
|
-
* Optional fields that are not set will be set to undefined.
|
|
1428
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1429
|
-
* For the list of reserved names please see:
|
|
1430
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1431
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1432
|
-
* JSPB instance for transitional soy proto support:
|
|
1433
|
-
* http://goto/soy-param-migration
|
|
1434
|
-
* @return {!Object}
|
|
1435
|
-
*/
|
|
1436
|
-
proto.gateway.parallax.v1.StartSpanRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1437
|
-
return proto.gateway.parallax.v1.StartSpanRequest.toObject(opt_includeInstance, this);
|
|
1438
|
-
};
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
/**
|
|
1442
|
-
* Static version of the {@see toObject} method.
|
|
1443
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1444
|
-
* the JSPB instance for transitional soy proto support:
|
|
1445
|
-
* http://goto/soy-param-migration
|
|
1446
|
-
* @param {!proto.gateway.parallax.v1.StartSpanRequest} msg The msg instance to transform.
|
|
1447
|
-
* @return {!Object}
|
|
1448
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1449
|
-
*/
|
|
1450
|
-
proto.gateway.parallax.v1.StartSpanRequest.toObject = function(includeInstance, msg) {
|
|
1451
|
-
var f, obj = {
|
|
1452
|
-
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1453
|
-
traceId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
1454
|
-
parentSpanId: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,
|
|
1455
|
-
attributesMap: (f = msg.getAttributesMap()) ? f.toObject(includeInstance, undefined) : [],
|
|
1456
|
-
startTime: (f = msg.getStartTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
1457
|
-
};
|
|
1458
|
-
|
|
1459
|
-
if (includeInstance) {
|
|
1460
|
-
obj.$jspbMessageInstance = msg;
|
|
1461
|
-
}
|
|
1462
|
-
return obj;
|
|
1463
|
-
};
|
|
1464
|
-
}
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
/**
|
|
1468
|
-
* Deserializes binary data (in protobuf wire format).
|
|
1469
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1470
|
-
* @return {!proto.gateway.parallax.v1.StartSpanRequest}
|
|
1471
|
-
*/
|
|
1472
|
-
proto.gateway.parallax.v1.StartSpanRequest.deserializeBinary = function(bytes) {
|
|
1473
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
1474
|
-
var msg = new proto.gateway.parallax.v1.StartSpanRequest;
|
|
1475
|
-
return proto.gateway.parallax.v1.StartSpanRequest.deserializeBinaryFromReader(msg, reader);
|
|
1476
|
-
};
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
/**
|
|
1480
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
1481
|
-
* given reader into the given message object.
|
|
1482
|
-
* @param {!proto.gateway.parallax.v1.StartSpanRequest} msg The message object to deserialize into.
|
|
1483
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1484
|
-
* @return {!proto.gateway.parallax.v1.StartSpanRequest}
|
|
1485
|
-
*/
|
|
1486
|
-
proto.gateway.parallax.v1.StartSpanRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1487
|
-
while (reader.nextField()) {
|
|
1488
|
-
if (reader.isEndGroup()) {
|
|
1489
|
-
break;
|
|
1490
|
-
}
|
|
1491
|
-
var field = reader.getFieldNumber();
|
|
1492
|
-
switch (field) {
|
|
1493
|
-
case 1:
|
|
1494
|
-
var value = /** @type {string} */ (reader.readString());
|
|
1495
|
-
msg.setName(value);
|
|
1496
|
-
break;
|
|
1497
|
-
case 2:
|
|
1498
|
-
var value = /** @type {string} */ (reader.readString());
|
|
1499
|
-
msg.setTraceId(value);
|
|
1500
|
-
break;
|
|
1501
|
-
case 3:
|
|
1502
|
-
var value = /** @type {string} */ (reader.readString());
|
|
1503
|
-
msg.setParentSpanId(value);
|
|
1504
|
-
break;
|
|
1505
|
-
case 4:
|
|
1506
|
-
var value = msg.getAttributesMap();
|
|
1507
|
-
reader.readMessage(value, function(message, reader) {
|
|
1508
|
-
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
|
|
1509
|
-
});
|
|
1510
|
-
break;
|
|
1511
|
-
case 5:
|
|
1512
|
-
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
1513
|
-
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
1514
|
-
msg.setStartTime(value);
|
|
1515
|
-
break;
|
|
1516
|
-
default:
|
|
1517
|
-
reader.skipField();
|
|
1518
|
-
break;
|
|
1519
|
-
}
|
|
1520
|
-
}
|
|
1521
|
-
return msg;
|
|
1522
|
-
};
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
/**
|
|
1526
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
1527
|
-
* @return {!Uint8Array}
|
|
1528
|
-
*/
|
|
1529
|
-
proto.gateway.parallax.v1.StartSpanRequest.prototype.serializeBinary = function() {
|
|
1530
|
-
var writer = new jspb.BinaryWriter();
|
|
1531
|
-
proto.gateway.parallax.v1.StartSpanRequest.serializeBinaryToWriter(this, writer);
|
|
1532
|
-
return writer.getResultBuffer();
|
|
1533
|
-
};
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
/**
|
|
1537
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
1538
|
-
* format), writing to the given BinaryWriter.
|
|
1539
|
-
* @param {!proto.gateway.parallax.v1.StartSpanRequest} message
|
|
1540
|
-
* @param {!jspb.BinaryWriter} writer
|
|
1541
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1542
|
-
*/
|
|
1543
|
-
proto.gateway.parallax.v1.StartSpanRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1544
|
-
var f = undefined;
|
|
1545
|
-
f = message.getName();
|
|
1546
|
-
if (f.length > 0) {
|
|
1547
|
-
writer.writeString(
|
|
1548
|
-
1,
|
|
1549
|
-
f
|
|
1550
|
-
);
|
|
1551
|
-
}
|
|
1552
|
-
f = message.getTraceId();
|
|
1553
|
-
if (f.length > 0) {
|
|
1554
|
-
writer.writeString(
|
|
1555
|
-
2,
|
|
1556
|
-
f
|
|
1557
|
-
);
|
|
1558
|
-
}
|
|
1559
|
-
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
1560
|
-
if (f != null) {
|
|
1561
|
-
writer.writeString(
|
|
1562
|
-
3,
|
|
1563
|
-
f
|
|
1564
|
-
);
|
|
1565
|
-
}
|
|
1566
|
-
f = message.getAttributesMap(true);
|
|
1567
|
-
if (f && f.getLength() > 0) {
|
|
1568
|
-
f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
|
|
1569
|
-
}
|
|
1570
|
-
f = message.getStartTime();
|
|
1571
|
-
if (f != null) {
|
|
1572
|
-
writer.writeMessage(
|
|
1573
|
-
5,
|
|
1574
|
-
f,
|
|
1575
|
-
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
1576
|
-
);
|
|
1577
|
-
}
|
|
1578
|
-
};
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
/**
|
|
1582
|
-
* optional string name = 1;
|
|
1583
|
-
* @return {string}
|
|
1584
|
-
*/
|
|
1585
|
-
proto.gateway.parallax.v1.StartSpanRequest.prototype.getName = function() {
|
|
1586
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1587
|
-
};
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
/**
|
|
1591
|
-
* @param {string} value
|
|
1592
|
-
* @return {!proto.gateway.parallax.v1.StartSpanRequest} returns this
|
|
1593
|
-
*/
|
|
1594
|
-
proto.gateway.parallax.v1.StartSpanRequest.prototype.setName = function(value) {
|
|
1595
|
-
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1596
|
-
};
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
/**
|
|
1600
|
-
* optional string trace_id = 2;
|
|
1601
|
-
* @return {string}
|
|
1602
|
-
*/
|
|
1603
|
-
proto.gateway.parallax.v1.StartSpanRequest.prototype.getTraceId = function() {
|
|
1604
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
1605
|
-
};
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
/**
|
|
1609
|
-
* @param {string} value
|
|
1610
|
-
* @return {!proto.gateway.parallax.v1.StartSpanRequest} returns this
|
|
1611
|
-
*/
|
|
1612
|
-
proto.gateway.parallax.v1.StartSpanRequest.prototype.setTraceId = function(value) {
|
|
1613
|
-
return jspb.Message.setProto3StringField(this, 2, value);
|
|
1614
|
-
};
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
/**
|
|
1618
|
-
* optional string parent_span_id = 3;
|
|
1619
|
-
* @return {string}
|
|
1620
|
-
*/
|
|
1621
|
-
proto.gateway.parallax.v1.StartSpanRequest.prototype.getParentSpanId = function() {
|
|
1622
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
1623
|
-
};
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
/**
|
|
1627
|
-
* @param {string} value
|
|
1628
|
-
* @return {!proto.gateway.parallax.v1.StartSpanRequest} returns this
|
|
1629
|
-
*/
|
|
1630
|
-
proto.gateway.parallax.v1.StartSpanRequest.prototype.setParentSpanId = function(value) {
|
|
1631
|
-
return jspb.Message.setField(this, 3, value);
|
|
1632
|
-
};
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
/**
|
|
1636
|
-
* Clears the field making it undefined.
|
|
1637
|
-
* @return {!proto.gateway.parallax.v1.StartSpanRequest} returns this
|
|
1638
|
-
*/
|
|
1639
|
-
proto.gateway.parallax.v1.StartSpanRequest.prototype.clearParentSpanId = function() {
|
|
1640
|
-
return jspb.Message.setField(this, 3, undefined);
|
|
1641
|
-
};
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
/**
|
|
1645
|
-
* Returns whether this field is set.
|
|
1646
|
-
* @return {boolean}
|
|
1647
|
-
*/
|
|
1648
|
-
proto.gateway.parallax.v1.StartSpanRequest.prototype.hasParentSpanId = function() {
|
|
1649
|
-
return jspb.Message.getField(this, 3) != null;
|
|
1650
|
-
};
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
/**
|
|
1654
|
-
* map<string, string> attributes = 4;
|
|
1655
|
-
* @param {boolean=} opt_noLazyCreate Do not create the map if
|
|
1656
|
-
* empty, instead returning `undefined`
|
|
1657
|
-
* @return {!jspb.Map<string,string>}
|
|
1658
|
-
*/
|
|
1659
|
-
proto.gateway.parallax.v1.StartSpanRequest.prototype.getAttributesMap = function(opt_noLazyCreate) {
|
|
1660
|
-
return /** @type {!jspb.Map<string,string>} */ (
|
|
1661
|
-
jspb.Message.getMapField(this, 4, opt_noLazyCreate,
|
|
1662
|
-
null));
|
|
1663
|
-
};
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
/**
|
|
1667
|
-
* Clears values from the map. The map will be non-null.
|
|
1668
|
-
* @return {!proto.gateway.parallax.v1.StartSpanRequest} returns this
|
|
1669
|
-
*/
|
|
1670
|
-
proto.gateway.parallax.v1.StartSpanRequest.prototype.clearAttributesMap = function() {
|
|
1671
|
-
this.getAttributesMap().clear();
|
|
1672
|
-
return this;
|
|
1673
|
-
};
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
/**
|
|
1677
|
-
* optional google.protobuf.Timestamp start_time = 5;
|
|
1678
|
-
* @return {?proto.google.protobuf.Timestamp}
|
|
1679
|
-
*/
|
|
1680
|
-
proto.gateway.parallax.v1.StartSpanRequest.prototype.getStartTime = function() {
|
|
1681
|
-
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
1682
|
-
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
|
|
1683
|
-
};
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
/**
|
|
1687
|
-
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
1688
|
-
* @return {!proto.gateway.parallax.v1.StartSpanRequest} returns this
|
|
1689
|
-
*/
|
|
1690
|
-
proto.gateway.parallax.v1.StartSpanRequest.prototype.setStartTime = function(value) {
|
|
1691
|
-
return jspb.Message.setWrapperField(this, 5, value);
|
|
1692
|
-
};
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
/**
|
|
1696
|
-
* Clears the message field making it undefined.
|
|
1697
|
-
* @return {!proto.gateway.parallax.v1.StartSpanRequest} returns this
|
|
1698
|
-
*/
|
|
1699
|
-
proto.gateway.parallax.v1.StartSpanRequest.prototype.clearStartTime = function() {
|
|
1700
|
-
return this.setStartTime(undefined);
|
|
1701
|
-
};
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
/**
|
|
1705
|
-
* Returns whether this field is set.
|
|
1706
|
-
* @return {boolean}
|
|
1707
|
-
*/
|
|
1708
|
-
proto.gateway.parallax.v1.StartSpanRequest.prototype.hasStartTime = function() {
|
|
1709
|
-
return jspb.Message.getField(this, 5) != null;
|
|
1710
|
-
};
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1717
|
-
/**
|
|
1718
|
-
* Creates an object representation of this proto.
|
|
1719
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1720
|
-
* Optional fields that are not set will be set to undefined.
|
|
1721
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1722
|
-
* For the list of reserved names please see:
|
|
1723
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1724
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1725
|
-
* JSPB instance for transitional soy proto support:
|
|
1726
|
-
* http://goto/soy-param-migration
|
|
1727
|
-
* @return {!Object}
|
|
1728
|
-
*/
|
|
1729
|
-
proto.gateway.parallax.v1.StartSpanResponse.prototype.toObject = function(opt_includeInstance) {
|
|
1730
|
-
return proto.gateway.parallax.v1.StartSpanResponse.toObject(opt_includeInstance, this);
|
|
1731
|
-
};
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
/**
|
|
1735
|
-
* Static version of the {@see toObject} method.
|
|
1736
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1737
|
-
* the JSPB instance for transitional soy proto support:
|
|
1738
|
-
* http://goto/soy-param-migration
|
|
1739
|
-
* @param {!proto.gateway.parallax.v1.StartSpanResponse} msg The msg instance to transform.
|
|
1740
|
-
* @return {!Object}
|
|
1741
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1742
|
-
*/
|
|
1743
|
-
proto.gateway.parallax.v1.StartSpanResponse.toObject = function(includeInstance, msg) {
|
|
1744
|
-
var f, obj = {
|
|
1745
|
-
status: (f = msg.getStatus()) && proto_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
|
|
1746
|
-
spanId: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
1747
|
-
};
|
|
1748
|
-
|
|
1749
|
-
if (includeInstance) {
|
|
1750
|
-
obj.$jspbMessageInstance = msg;
|
|
1751
|
-
}
|
|
1752
|
-
return obj;
|
|
1753
|
-
};
|
|
1754
|
-
}
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
/**
|
|
1758
|
-
* Deserializes binary data (in protobuf wire format).
|
|
1759
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1760
|
-
* @return {!proto.gateway.parallax.v1.StartSpanResponse}
|
|
1761
|
-
*/
|
|
1762
|
-
proto.gateway.parallax.v1.StartSpanResponse.deserializeBinary = function(bytes) {
|
|
1763
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
1764
|
-
var msg = new proto.gateway.parallax.v1.StartSpanResponse;
|
|
1765
|
-
return proto.gateway.parallax.v1.StartSpanResponse.deserializeBinaryFromReader(msg, reader);
|
|
1766
|
-
};
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
/**
|
|
1770
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
1771
|
-
* given reader into the given message object.
|
|
1772
|
-
* @param {!proto.gateway.parallax.v1.StartSpanResponse} msg The message object to deserialize into.
|
|
1773
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1774
|
-
* @return {!proto.gateway.parallax.v1.StartSpanResponse}
|
|
1775
|
-
*/
|
|
1776
|
-
proto.gateway.parallax.v1.StartSpanResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
1777
|
-
while (reader.nextField()) {
|
|
1778
|
-
if (reader.isEndGroup()) {
|
|
1779
|
-
break;
|
|
1780
|
-
}
|
|
1781
|
-
var field = reader.getFieldNumber();
|
|
1782
|
-
switch (field) {
|
|
1783
|
-
case 1:
|
|
1784
|
-
var value = new proto_common_v1_status_pb.ResponseStatus;
|
|
1785
|
-
reader.readMessage(value,proto_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
|
|
1786
|
-
msg.setStatus(value);
|
|
1787
|
-
break;
|
|
1788
|
-
case 2:
|
|
1789
|
-
var value = /** @type {string} */ (reader.readString());
|
|
1790
|
-
msg.setSpanId(value);
|
|
1791
|
-
break;
|
|
1792
|
-
default:
|
|
1793
|
-
reader.skipField();
|
|
1794
|
-
break;
|
|
1795
|
-
}
|
|
1796
|
-
}
|
|
1797
|
-
return msg;
|
|
1798
|
-
};
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
/**
|
|
1802
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
1803
|
-
* @return {!Uint8Array}
|
|
1804
|
-
*/
|
|
1805
|
-
proto.gateway.parallax.v1.StartSpanResponse.prototype.serializeBinary = function() {
|
|
1806
|
-
var writer = new jspb.BinaryWriter();
|
|
1807
|
-
proto.gateway.parallax.v1.StartSpanResponse.serializeBinaryToWriter(this, writer);
|
|
1808
|
-
return writer.getResultBuffer();
|
|
1809
|
-
};
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
/**
|
|
1813
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
1814
|
-
* format), writing to the given BinaryWriter.
|
|
1815
|
-
* @param {!proto.gateway.parallax.v1.StartSpanResponse} message
|
|
1816
|
-
* @param {!jspb.BinaryWriter} writer
|
|
1817
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1818
|
-
*/
|
|
1819
|
-
proto.gateway.parallax.v1.StartSpanResponse.serializeBinaryToWriter = function(message, writer) {
|
|
1820
|
-
var f = undefined;
|
|
1821
|
-
f = message.getStatus();
|
|
1822
|
-
if (f != null) {
|
|
1823
|
-
writer.writeMessage(
|
|
1824
|
-
1,
|
|
1825
|
-
f,
|
|
1826
|
-
proto_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
|
|
1827
|
-
);
|
|
1828
|
-
}
|
|
1829
|
-
f = message.getSpanId();
|
|
1830
|
-
if (f.length > 0) {
|
|
1831
|
-
writer.writeString(
|
|
1832
|
-
2,
|
|
1833
|
-
f
|
|
1834
|
-
);
|
|
1835
|
-
}
|
|
1836
|
-
};
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
/**
|
|
1840
|
-
* optional common.v1.ResponseStatus status = 1;
|
|
1841
|
-
* @return {?proto.common.v1.ResponseStatus}
|
|
1842
|
-
*/
|
|
1843
|
-
proto.gateway.parallax.v1.StartSpanResponse.prototype.getStatus = function() {
|
|
1844
|
-
return /** @type{?proto.common.v1.ResponseStatus} */ (
|
|
1845
|
-
jspb.Message.getWrapperField(this, proto_common_v1_status_pb.ResponseStatus, 1));
|
|
1846
|
-
};
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
/**
|
|
1850
|
-
* @param {?proto.common.v1.ResponseStatus|undefined} value
|
|
1851
|
-
* @return {!proto.gateway.parallax.v1.StartSpanResponse} returns this
|
|
1852
|
-
*/
|
|
1853
|
-
proto.gateway.parallax.v1.StartSpanResponse.prototype.setStatus = function(value) {
|
|
1854
|
-
return jspb.Message.setWrapperField(this, 1, value);
|
|
1855
|
-
};
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
/**
|
|
1859
|
-
* Clears the message field making it undefined.
|
|
1860
|
-
* @return {!proto.gateway.parallax.v1.StartSpanResponse} returns this
|
|
1861
|
-
*/
|
|
1862
|
-
proto.gateway.parallax.v1.StartSpanResponse.prototype.clearStatus = function() {
|
|
1863
|
-
return this.setStatus(undefined);
|
|
1864
|
-
};
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
/**
|
|
1868
|
-
* Returns whether this field is set.
|
|
1869
|
-
* @return {boolean}
|
|
1870
|
-
*/
|
|
1871
|
-
proto.gateway.parallax.v1.StartSpanResponse.prototype.hasStatus = function() {
|
|
1872
|
-
return jspb.Message.getField(this, 1) != null;
|
|
1873
|
-
};
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
/**
|
|
1877
|
-
* optional string span_id = 2;
|
|
1878
|
-
* @return {string}
|
|
1879
|
-
*/
|
|
1880
|
-
proto.gateway.parallax.v1.StartSpanResponse.prototype.getSpanId = function() {
|
|
1881
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
1882
|
-
};
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
/**
|
|
1886
|
-
* @param {string} value
|
|
1887
|
-
* @return {!proto.gateway.parallax.v1.StartSpanResponse} returns this
|
|
1888
|
-
*/
|
|
1889
|
-
proto.gateway.parallax.v1.StartSpanResponse.prototype.setSpanId = function(value) {
|
|
1890
|
-
return jspb.Message.setProto3StringField(this, 2, value);
|
|
1891
|
-
};
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1898
|
-
/**
|
|
1899
|
-
* Creates an object representation of this proto.
|
|
1900
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1901
|
-
* Optional fields that are not set will be set to undefined.
|
|
1902
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1903
|
-
* For the list of reserved names please see:
|
|
1904
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1905
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1906
|
-
* JSPB instance for transitional soy proto support:
|
|
1907
|
-
* http://goto/soy-param-migration
|
|
1908
|
-
* @return {!Object}
|
|
1909
|
-
*/
|
|
1910
|
-
proto.gateway.parallax.v1.FinishSpanRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1911
|
-
return proto.gateway.parallax.v1.FinishSpanRequest.toObject(opt_includeInstance, this);
|
|
1912
|
-
};
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
/**
|
|
1916
|
-
* Static version of the {@see toObject} method.
|
|
1917
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1918
|
-
* the JSPB instance for transitional soy proto support:
|
|
1919
|
-
* http://goto/soy-param-migration
|
|
1920
|
-
* @param {!proto.gateway.parallax.v1.FinishSpanRequest} msg The msg instance to transform.
|
|
1921
|
-
* @return {!Object}
|
|
1922
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1923
|
-
*/
|
|
1924
|
-
proto.gateway.parallax.v1.FinishSpanRequest.toObject = function(includeInstance, msg) {
|
|
1925
|
-
var f, obj = {
|
|
1926
|
-
traceId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1927
|
-
spanId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
1928
|
-
endTime: (f = msg.getEndTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
1929
|
-
status: (f = msg.getStatus()) && proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.toObject(includeInstance, f)
|
|
1930
|
-
};
|
|
1931
|
-
|
|
1932
|
-
if (includeInstance) {
|
|
1933
|
-
obj.$jspbMessageInstance = msg;
|
|
1934
|
-
}
|
|
1935
|
-
return obj;
|
|
1936
|
-
};
|
|
1937
|
-
}
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
/**
|
|
1941
|
-
* Deserializes binary data (in protobuf wire format).
|
|
1942
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1943
|
-
* @return {!proto.gateway.parallax.v1.FinishSpanRequest}
|
|
1944
|
-
*/
|
|
1945
|
-
proto.gateway.parallax.v1.FinishSpanRequest.deserializeBinary = function(bytes) {
|
|
1946
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
1947
|
-
var msg = new proto.gateway.parallax.v1.FinishSpanRequest;
|
|
1948
|
-
return proto.gateway.parallax.v1.FinishSpanRequest.deserializeBinaryFromReader(msg, reader);
|
|
1949
|
-
};
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
/**
|
|
1953
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
1954
|
-
* given reader into the given message object.
|
|
1955
|
-
* @param {!proto.gateway.parallax.v1.FinishSpanRequest} msg The message object to deserialize into.
|
|
1956
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1957
|
-
* @return {!proto.gateway.parallax.v1.FinishSpanRequest}
|
|
1958
|
-
*/
|
|
1959
|
-
proto.gateway.parallax.v1.FinishSpanRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1960
|
-
while (reader.nextField()) {
|
|
1961
|
-
if (reader.isEndGroup()) {
|
|
1962
|
-
break;
|
|
1963
|
-
}
|
|
1964
|
-
var field = reader.getFieldNumber();
|
|
1965
|
-
switch (field) {
|
|
1966
|
-
case 1:
|
|
1967
|
-
var value = /** @type {string} */ (reader.readString());
|
|
1968
|
-
msg.setTraceId(value);
|
|
1969
|
-
break;
|
|
1970
|
-
case 2:
|
|
1971
|
-
var value = /** @type {string} */ (reader.readString());
|
|
1972
|
-
msg.setSpanId(value);
|
|
1973
|
-
break;
|
|
1974
|
-
case 3:
|
|
1975
|
-
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
1976
|
-
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
1977
|
-
msg.setEndTime(value);
|
|
1978
|
-
break;
|
|
1979
|
-
case 4:
|
|
1980
|
-
var value = new proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus;
|
|
1981
|
-
reader.readMessage(value,proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.deserializeBinaryFromReader);
|
|
1982
|
-
msg.setStatus(value);
|
|
1983
|
-
break;
|
|
1984
|
-
default:
|
|
1985
|
-
reader.skipField();
|
|
1986
|
-
break;
|
|
1987
|
-
}
|
|
1988
|
-
}
|
|
1989
|
-
return msg;
|
|
1990
|
-
};
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
/**
|
|
1994
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
1995
|
-
* @return {!Uint8Array}
|
|
1996
|
-
*/
|
|
1997
|
-
proto.gateway.parallax.v1.FinishSpanRequest.prototype.serializeBinary = function() {
|
|
1998
|
-
var writer = new jspb.BinaryWriter();
|
|
1999
|
-
proto.gateway.parallax.v1.FinishSpanRequest.serializeBinaryToWriter(this, writer);
|
|
2000
|
-
return writer.getResultBuffer();
|
|
2001
|
-
};
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
/**
|
|
2005
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
2006
|
-
* format), writing to the given BinaryWriter.
|
|
2007
|
-
* @param {!proto.gateway.parallax.v1.FinishSpanRequest} message
|
|
2008
|
-
* @param {!jspb.BinaryWriter} writer
|
|
2009
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2010
|
-
*/
|
|
2011
|
-
proto.gateway.parallax.v1.FinishSpanRequest.serializeBinaryToWriter = function(message, writer) {
|
|
2012
|
-
var f = undefined;
|
|
2013
|
-
f = message.getTraceId();
|
|
2014
|
-
if (f.length > 0) {
|
|
2015
|
-
writer.writeString(
|
|
2016
|
-
1,
|
|
2017
|
-
f
|
|
2018
|
-
);
|
|
2019
|
-
}
|
|
2020
|
-
f = message.getSpanId();
|
|
2021
|
-
if (f.length > 0) {
|
|
2022
|
-
writer.writeString(
|
|
2023
|
-
2,
|
|
2024
|
-
f
|
|
2025
|
-
);
|
|
2026
|
-
}
|
|
2027
|
-
f = message.getEndTime();
|
|
2028
|
-
if (f != null) {
|
|
2029
|
-
writer.writeMessage(
|
|
2030
|
-
3,
|
|
2031
|
-
f,
|
|
2032
|
-
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
2033
|
-
);
|
|
2034
|
-
}
|
|
2035
|
-
f = message.getStatus();
|
|
2036
|
-
if (f != null) {
|
|
2037
|
-
writer.writeMessage(
|
|
2038
|
-
4,
|
|
2039
|
-
f,
|
|
2040
|
-
proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.serializeBinaryToWriter
|
|
2041
|
-
);
|
|
2042
|
-
}
|
|
2043
|
-
};
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2050
|
-
/**
|
|
2051
|
-
* Creates an object representation of this proto.
|
|
2052
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2053
|
-
* Optional fields that are not set will be set to undefined.
|
|
2054
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2055
|
-
* For the list of reserved names please see:
|
|
2056
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2057
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2058
|
-
* JSPB instance for transitional soy proto support:
|
|
2059
|
-
* http://goto/soy-param-migration
|
|
2060
|
-
* @return {!Object}
|
|
2061
|
-
*/
|
|
2062
|
-
proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.prototype.toObject = function(opt_includeInstance) {
|
|
2063
|
-
return proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.toObject(opt_includeInstance, this);
|
|
2064
|
-
};
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
/**
|
|
2068
|
-
* Static version of the {@see toObject} method.
|
|
2069
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2070
|
-
* the JSPB instance for transitional soy proto support:
|
|
2071
|
-
* http://goto/soy-param-migration
|
|
2072
|
-
* @param {!proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus} msg The msg instance to transform.
|
|
2073
|
-
* @return {!Object}
|
|
2074
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2075
|
-
*/
|
|
2076
|
-
proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.toObject = function(includeInstance, msg) {
|
|
2077
|
-
var f, obj = {
|
|
2078
|
-
code: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
2079
|
-
message: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f
|
|
2080
|
-
};
|
|
2081
|
-
|
|
2082
|
-
if (includeInstance) {
|
|
2083
|
-
obj.$jspbMessageInstance = msg;
|
|
2084
|
-
}
|
|
2085
|
-
return obj;
|
|
2086
|
-
};
|
|
2087
|
-
}
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
/**
|
|
2091
|
-
* Deserializes binary data (in protobuf wire format).
|
|
2092
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2093
|
-
* @return {!proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus}
|
|
2094
|
-
*/
|
|
2095
|
-
proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.deserializeBinary = function(bytes) {
|
|
2096
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
2097
|
-
var msg = new proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus;
|
|
2098
|
-
return proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.deserializeBinaryFromReader(msg, reader);
|
|
2099
|
-
};
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
/**
|
|
2103
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
2104
|
-
* given reader into the given message object.
|
|
2105
|
-
* @param {!proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus} msg The message object to deserialize into.
|
|
2106
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2107
|
-
* @return {!proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus}
|
|
2108
|
-
*/
|
|
2109
|
-
proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.deserializeBinaryFromReader = function(msg, reader) {
|
|
2110
|
-
while (reader.nextField()) {
|
|
2111
|
-
if (reader.isEndGroup()) {
|
|
2112
|
-
break;
|
|
2113
|
-
}
|
|
2114
|
-
var field = reader.getFieldNumber();
|
|
2115
|
-
switch (field) {
|
|
2116
|
-
case 1:
|
|
2117
|
-
var value = /** @type {!proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.StatusCode} */ (reader.readEnum());
|
|
2118
|
-
msg.setCode(value);
|
|
2119
|
-
break;
|
|
2120
|
-
case 2:
|
|
2121
|
-
var value = /** @type {string} */ (reader.readString());
|
|
2122
|
-
msg.setMessage(value);
|
|
2123
|
-
break;
|
|
2124
|
-
default:
|
|
2125
|
-
reader.skipField();
|
|
2126
|
-
break;
|
|
2127
|
-
}
|
|
2128
|
-
}
|
|
2129
|
-
return msg;
|
|
2130
|
-
};
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
/**
|
|
2134
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
2135
|
-
* @return {!Uint8Array}
|
|
2136
|
-
*/
|
|
2137
|
-
proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.prototype.serializeBinary = function() {
|
|
2138
|
-
var writer = new jspb.BinaryWriter();
|
|
2139
|
-
proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.serializeBinaryToWriter(this, writer);
|
|
2140
|
-
return writer.getResultBuffer();
|
|
2141
|
-
};
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
/**
|
|
2145
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
2146
|
-
* format), writing to the given BinaryWriter.
|
|
2147
|
-
* @param {!proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus} message
|
|
2148
|
-
* @param {!jspb.BinaryWriter} writer
|
|
2149
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2150
|
-
*/
|
|
2151
|
-
proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.serializeBinaryToWriter = function(message, writer) {
|
|
2152
|
-
var f = undefined;
|
|
2153
|
-
f = message.getCode();
|
|
2154
|
-
if (f !== 0.0) {
|
|
2155
|
-
writer.writeEnum(
|
|
2156
|
-
1,
|
|
2157
|
-
f
|
|
2158
|
-
);
|
|
2159
|
-
}
|
|
2160
|
-
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
|
2161
|
-
if (f != null) {
|
|
2162
|
-
writer.writeString(
|
|
2163
|
-
2,
|
|
2164
|
-
f
|
|
2165
|
-
);
|
|
2166
|
-
}
|
|
2167
|
-
};
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
/**
|
|
2171
|
-
* @enum {number}
|
|
2172
|
-
*/
|
|
2173
|
-
proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.StatusCode = {
|
|
2174
|
-
STATUS_CODE_UNSPECIFIED: 0,
|
|
2175
|
-
STATUS_CODE_OK: 1,
|
|
2176
|
-
STATUS_CODE_ERROR: 2
|
|
2177
|
-
};
|
|
2178
|
-
|
|
2179
|
-
/**
|
|
2180
|
-
* optional StatusCode code = 1;
|
|
2181
|
-
* @return {!proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.StatusCode}
|
|
2182
|
-
*/
|
|
2183
|
-
proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.prototype.getCode = function() {
|
|
2184
|
-
return /** @type {!proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.StatusCode} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
2185
|
-
};
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
/**
|
|
2189
|
-
* @param {!proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.StatusCode} value
|
|
2190
|
-
* @return {!proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus} returns this
|
|
2191
|
-
*/
|
|
2192
|
-
proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.prototype.setCode = function(value) {
|
|
2193
|
-
return jspb.Message.setProto3EnumField(this, 1, value);
|
|
2194
|
-
};
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
/**
|
|
2198
|
-
* optional string message = 2;
|
|
2199
|
-
* @return {string}
|
|
2200
|
-
*/
|
|
2201
|
-
proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.prototype.getMessage = function() {
|
|
2202
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
2203
|
-
};
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
/**
|
|
2207
|
-
* @param {string} value
|
|
2208
|
-
* @return {!proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus} returns this
|
|
2209
|
-
*/
|
|
2210
|
-
proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.prototype.setMessage = function(value) {
|
|
2211
|
-
return jspb.Message.setField(this, 2, value);
|
|
2212
|
-
};
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
/**
|
|
2216
|
-
* Clears the field making it undefined.
|
|
2217
|
-
* @return {!proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus} returns this
|
|
2218
|
-
*/
|
|
2219
|
-
proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.prototype.clearMessage = function() {
|
|
2220
|
-
return jspb.Message.setField(this, 2, undefined);
|
|
2221
|
-
};
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
/**
|
|
2225
|
-
* Returns whether this field is set.
|
|
2226
|
-
* @return {boolean}
|
|
2227
|
-
*/
|
|
2228
|
-
proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus.prototype.hasMessage = function() {
|
|
2229
|
-
return jspb.Message.getField(this, 2) != null;
|
|
2230
|
-
};
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
/**
|
|
2234
|
-
* optional string trace_id = 1;
|
|
2235
|
-
* @return {string}
|
|
2236
|
-
*/
|
|
2237
|
-
proto.gateway.parallax.v1.FinishSpanRequest.prototype.getTraceId = function() {
|
|
2238
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
2239
|
-
};
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
/**
|
|
2243
|
-
* @param {string} value
|
|
2244
|
-
* @return {!proto.gateway.parallax.v1.FinishSpanRequest} returns this
|
|
2245
|
-
*/
|
|
2246
|
-
proto.gateway.parallax.v1.FinishSpanRequest.prototype.setTraceId = function(value) {
|
|
2247
|
-
return jspb.Message.setProto3StringField(this, 1, value);
|
|
2248
|
-
};
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
/**
|
|
2252
|
-
* optional string span_id = 2;
|
|
2253
|
-
* @return {string}
|
|
2254
|
-
*/
|
|
2255
|
-
proto.gateway.parallax.v1.FinishSpanRequest.prototype.getSpanId = function() {
|
|
2256
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
2257
|
-
};
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
/**
|
|
2261
|
-
* @param {string} value
|
|
2262
|
-
* @return {!proto.gateway.parallax.v1.FinishSpanRequest} returns this
|
|
2263
|
-
*/
|
|
2264
|
-
proto.gateway.parallax.v1.FinishSpanRequest.prototype.setSpanId = function(value) {
|
|
2265
|
-
return jspb.Message.setProto3StringField(this, 2, value);
|
|
2266
|
-
};
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
/**
|
|
2270
|
-
* optional google.protobuf.Timestamp end_time = 3;
|
|
2271
|
-
* @return {?proto.google.protobuf.Timestamp}
|
|
2272
|
-
*/
|
|
2273
|
-
proto.gateway.parallax.v1.FinishSpanRequest.prototype.getEndTime = function() {
|
|
2274
|
-
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
2275
|
-
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
|
|
2276
|
-
};
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
/**
|
|
2280
|
-
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
2281
|
-
* @return {!proto.gateway.parallax.v1.FinishSpanRequest} returns this
|
|
2282
|
-
*/
|
|
2283
|
-
proto.gateway.parallax.v1.FinishSpanRequest.prototype.setEndTime = function(value) {
|
|
2284
|
-
return jspb.Message.setWrapperField(this, 3, value);
|
|
2285
|
-
};
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
/**
|
|
2289
|
-
* Clears the message field making it undefined.
|
|
2290
|
-
* @return {!proto.gateway.parallax.v1.FinishSpanRequest} returns this
|
|
2291
|
-
*/
|
|
2292
|
-
proto.gateway.parallax.v1.FinishSpanRequest.prototype.clearEndTime = function() {
|
|
2293
|
-
return this.setEndTime(undefined);
|
|
2294
|
-
};
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
/**
|
|
2298
|
-
* Returns whether this field is set.
|
|
2299
|
-
* @return {boolean}
|
|
2300
|
-
*/
|
|
2301
|
-
proto.gateway.parallax.v1.FinishSpanRequest.prototype.hasEndTime = function() {
|
|
2302
|
-
return jspb.Message.getField(this, 3) != null;
|
|
2303
|
-
};
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
/**
|
|
2307
|
-
* optional SpanStatus status = 4;
|
|
2308
|
-
* @return {?proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus}
|
|
2309
|
-
*/
|
|
2310
|
-
proto.gateway.parallax.v1.FinishSpanRequest.prototype.getStatus = function() {
|
|
2311
|
-
return /** @type{?proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus} */ (
|
|
2312
|
-
jspb.Message.getWrapperField(this, proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus, 4));
|
|
2313
|
-
};
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
/**
|
|
2317
|
-
* @param {?proto.gateway.parallax.v1.FinishSpanRequest.SpanStatus|undefined} value
|
|
2318
|
-
* @return {!proto.gateway.parallax.v1.FinishSpanRequest} returns this
|
|
2319
|
-
*/
|
|
2320
|
-
proto.gateway.parallax.v1.FinishSpanRequest.prototype.setStatus = function(value) {
|
|
2321
|
-
return jspb.Message.setWrapperField(this, 4, value);
|
|
2322
|
-
};
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
/**
|
|
2326
|
-
* Clears the message field making it undefined.
|
|
2327
|
-
* @return {!proto.gateway.parallax.v1.FinishSpanRequest} returns this
|
|
2328
|
-
*/
|
|
2329
|
-
proto.gateway.parallax.v1.FinishSpanRequest.prototype.clearStatus = function() {
|
|
2330
|
-
return this.setStatus(undefined);
|
|
2331
|
-
};
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
/**
|
|
2335
|
-
* Returns whether this field is set.
|
|
2336
|
-
* @return {boolean}
|
|
2337
|
-
*/
|
|
2338
|
-
proto.gateway.parallax.v1.FinishSpanRequest.prototype.hasStatus = function() {
|
|
2339
|
-
return jspb.Message.getField(this, 4) != null;
|
|
2340
|
-
};
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2347
|
-
/**
|
|
2348
|
-
* Creates an object representation of this proto.
|
|
2349
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2350
|
-
* Optional fields that are not set will be set to undefined.
|
|
2351
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2352
|
-
* For the list of reserved names please see:
|
|
2353
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2354
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2355
|
-
* JSPB instance for transitional soy proto support:
|
|
2356
|
-
* http://goto/soy-param-migration
|
|
2357
|
-
* @return {!Object}
|
|
2358
|
-
*/
|
|
2359
|
-
proto.gateway.parallax.v1.FinishSpanResponse.prototype.toObject = function(opt_includeInstance) {
|
|
2360
|
-
return proto.gateway.parallax.v1.FinishSpanResponse.toObject(opt_includeInstance, this);
|
|
2361
|
-
};
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
/**
|
|
2365
|
-
* Static version of the {@see toObject} method.
|
|
2366
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2367
|
-
* the JSPB instance for transitional soy proto support:
|
|
2368
|
-
* http://goto/soy-param-migration
|
|
2369
|
-
* @param {!proto.gateway.parallax.v1.FinishSpanResponse} msg The msg instance to transform.
|
|
2370
|
-
* @return {!Object}
|
|
2371
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2372
|
-
*/
|
|
2373
|
-
proto.gateway.parallax.v1.FinishSpanResponse.toObject = function(includeInstance, msg) {
|
|
2374
|
-
var f, obj = {
|
|
2375
|
-
status: (f = msg.getStatus()) && proto_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f)
|
|
2376
|
-
};
|
|
2377
|
-
|
|
2378
|
-
if (includeInstance) {
|
|
2379
|
-
obj.$jspbMessageInstance = msg;
|
|
2380
|
-
}
|
|
2381
|
-
return obj;
|
|
2382
|
-
};
|
|
2383
|
-
}
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
/**
|
|
2387
|
-
* Deserializes binary data (in protobuf wire format).
|
|
2388
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2389
|
-
* @return {!proto.gateway.parallax.v1.FinishSpanResponse}
|
|
2390
|
-
*/
|
|
2391
|
-
proto.gateway.parallax.v1.FinishSpanResponse.deserializeBinary = function(bytes) {
|
|
2392
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
2393
|
-
var msg = new proto.gateway.parallax.v1.FinishSpanResponse;
|
|
2394
|
-
return proto.gateway.parallax.v1.FinishSpanResponse.deserializeBinaryFromReader(msg, reader);
|
|
2395
|
-
};
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
/**
|
|
2399
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
2400
|
-
* given reader into the given message object.
|
|
2401
|
-
* @param {!proto.gateway.parallax.v1.FinishSpanResponse} msg The message object to deserialize into.
|
|
2402
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2403
|
-
* @return {!proto.gateway.parallax.v1.FinishSpanResponse}
|
|
2404
|
-
*/
|
|
2405
|
-
proto.gateway.parallax.v1.FinishSpanResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
2406
|
-
while (reader.nextField()) {
|
|
2407
|
-
if (reader.isEndGroup()) {
|
|
2408
|
-
break;
|
|
2409
|
-
}
|
|
2410
|
-
var field = reader.getFieldNumber();
|
|
2411
|
-
switch (field) {
|
|
2412
|
-
case 1:
|
|
2413
|
-
var value = new proto_common_v1_status_pb.ResponseStatus;
|
|
2414
|
-
reader.readMessage(value,proto_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
|
|
2415
|
-
msg.setStatus(value);
|
|
2416
|
-
break;
|
|
2417
|
-
default:
|
|
2418
|
-
reader.skipField();
|
|
2419
|
-
break;
|
|
2420
|
-
}
|
|
2421
|
-
}
|
|
2422
|
-
return msg;
|
|
2423
|
-
};
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
/**
|
|
2427
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
2428
|
-
* @return {!Uint8Array}
|
|
2429
|
-
*/
|
|
2430
|
-
proto.gateway.parallax.v1.FinishSpanResponse.prototype.serializeBinary = function() {
|
|
2431
|
-
var writer = new jspb.BinaryWriter();
|
|
2432
|
-
proto.gateway.parallax.v1.FinishSpanResponse.serializeBinaryToWriter(this, writer);
|
|
2433
|
-
return writer.getResultBuffer();
|
|
2434
|
-
};
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
/**
|
|
2438
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
2439
|
-
* format), writing to the given BinaryWriter.
|
|
2440
|
-
* @param {!proto.gateway.parallax.v1.FinishSpanResponse} message
|
|
2441
|
-
* @param {!jspb.BinaryWriter} writer
|
|
2442
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2443
|
-
*/
|
|
2444
|
-
proto.gateway.parallax.v1.FinishSpanResponse.serializeBinaryToWriter = function(message, writer) {
|
|
2445
|
-
var f = undefined;
|
|
2446
|
-
f = message.getStatus();
|
|
2447
|
-
if (f != null) {
|
|
2448
|
-
writer.writeMessage(
|
|
2449
|
-
1,
|
|
2450
|
-
f,
|
|
2451
|
-
proto_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
|
|
2452
|
-
);
|
|
2453
|
-
}
|
|
2454
|
-
};
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
/**
|
|
2458
|
-
* optional common.v1.ResponseStatus status = 1;
|
|
2459
|
-
* @return {?proto.common.v1.ResponseStatus}
|
|
2460
|
-
*/
|
|
2461
|
-
proto.gateway.parallax.v1.FinishSpanResponse.prototype.getStatus = function() {
|
|
2462
|
-
return /** @type{?proto.common.v1.ResponseStatus} */ (
|
|
2463
|
-
jspb.Message.getWrapperField(this, proto_common_v1_status_pb.ResponseStatus, 1));
|
|
2464
|
-
};
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
/**
|
|
2468
|
-
* @param {?proto.common.v1.ResponseStatus|undefined} value
|
|
2469
|
-
* @return {!proto.gateway.parallax.v1.FinishSpanResponse} returns this
|
|
2470
|
-
*/
|
|
2471
|
-
proto.gateway.parallax.v1.FinishSpanResponse.prototype.setStatus = function(value) {
|
|
2472
|
-
return jspb.Message.setWrapperField(this, 1, value);
|
|
2473
|
-
};
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
/**
|
|
2477
|
-
* Clears the message field making it undefined.
|
|
2478
|
-
* @return {!proto.gateway.parallax.v1.FinishSpanResponse} returns this
|
|
2479
|
-
*/
|
|
2480
|
-
proto.gateway.parallax.v1.FinishSpanResponse.prototype.clearStatus = function() {
|
|
2481
|
-
return this.setStatus(undefined);
|
|
2482
|
-
};
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
/**
|
|
2486
|
-
* Returns whether this field is set.
|
|
2487
|
-
* @return {boolean}
|
|
2488
|
-
*/
|
|
2489
|
-
proto.gateway.parallax.v1.FinishSpanResponse.prototype.hasStatus = function() {
|
|
2490
|
-
return jspb.Message.getField(this, 1) != null;
|
|
2491
|
-
};
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2498
|
-
/**
|
|
2499
|
-
* Creates an object representation of this proto.
|
|
2500
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2501
|
-
* Optional fields that are not set will be set to undefined.
|
|
2502
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2503
|
-
* For the list of reserved names please see:
|
|
2504
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2505
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2506
|
-
* JSPB instance for transitional soy proto support:
|
|
2507
|
-
* http://goto/soy-param-migration
|
|
2508
|
-
* @return {!Object}
|
|
2509
|
-
*/
|
|
2510
|
-
proto.gateway.parallax.v1.AddSpanEventRequest.prototype.toObject = function(opt_includeInstance) {
|
|
2511
|
-
return proto.gateway.parallax.v1.AddSpanEventRequest.toObject(opt_includeInstance, this);
|
|
2512
|
-
};
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
/**
|
|
2516
|
-
* Static version of the {@see toObject} method.
|
|
2517
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2518
|
-
* the JSPB instance for transitional soy proto support:
|
|
2519
|
-
* http://goto/soy-param-migration
|
|
2520
|
-
* @param {!proto.gateway.parallax.v1.AddSpanEventRequest} msg The msg instance to transform.
|
|
2521
|
-
* @return {!Object}
|
|
2522
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2523
|
-
*/
|
|
2524
|
-
proto.gateway.parallax.v1.AddSpanEventRequest.toObject = function(includeInstance, msg) {
|
|
2525
|
-
var f, obj = {
|
|
2526
|
-
traceId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
2527
|
-
spanId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
2528
|
-
eventName: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
2529
|
-
attributesMap: (f = msg.getAttributesMap()) ? f.toObject(includeInstance, undefined) : [],
|
|
2530
|
-
timestamp: (f = msg.getTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
2531
|
-
};
|
|
2532
|
-
|
|
2533
|
-
if (includeInstance) {
|
|
2534
|
-
obj.$jspbMessageInstance = msg;
|
|
2535
|
-
}
|
|
2536
|
-
return obj;
|
|
2537
|
-
};
|
|
2538
|
-
}
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
/**
|
|
2542
|
-
* Deserializes binary data (in protobuf wire format).
|
|
2543
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2544
|
-
* @return {!proto.gateway.parallax.v1.AddSpanEventRequest}
|
|
2545
|
-
*/
|
|
2546
|
-
proto.gateway.parallax.v1.AddSpanEventRequest.deserializeBinary = function(bytes) {
|
|
2547
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
2548
|
-
var msg = new proto.gateway.parallax.v1.AddSpanEventRequest;
|
|
2549
|
-
return proto.gateway.parallax.v1.AddSpanEventRequest.deserializeBinaryFromReader(msg, reader);
|
|
2550
|
-
};
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
/**
|
|
2554
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
2555
|
-
* given reader into the given message object.
|
|
2556
|
-
* @param {!proto.gateway.parallax.v1.AddSpanEventRequest} msg The message object to deserialize into.
|
|
2557
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2558
|
-
* @return {!proto.gateway.parallax.v1.AddSpanEventRequest}
|
|
2559
|
-
*/
|
|
2560
|
-
proto.gateway.parallax.v1.AddSpanEventRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
2561
|
-
while (reader.nextField()) {
|
|
2562
|
-
if (reader.isEndGroup()) {
|
|
2563
|
-
break;
|
|
2564
|
-
}
|
|
2565
|
-
var field = reader.getFieldNumber();
|
|
2566
|
-
switch (field) {
|
|
2567
|
-
case 1:
|
|
2568
|
-
var value = /** @type {string} */ (reader.readString());
|
|
2569
|
-
msg.setTraceId(value);
|
|
2570
|
-
break;
|
|
2571
|
-
case 2:
|
|
2572
|
-
var value = /** @type {string} */ (reader.readString());
|
|
2573
|
-
msg.setSpanId(value);
|
|
2574
|
-
break;
|
|
2575
|
-
case 3:
|
|
2576
|
-
var value = /** @type {string} */ (reader.readString());
|
|
2577
|
-
msg.setEventName(value);
|
|
2578
|
-
break;
|
|
2579
|
-
case 4:
|
|
2580
|
-
var value = msg.getAttributesMap();
|
|
2581
|
-
reader.readMessage(value, function(message, reader) {
|
|
2582
|
-
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
|
|
2583
|
-
});
|
|
2584
|
-
break;
|
|
2585
|
-
case 5:
|
|
2586
|
-
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
2587
|
-
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
2588
|
-
msg.setTimestamp(value);
|
|
2589
|
-
break;
|
|
2590
|
-
default:
|
|
2591
|
-
reader.skipField();
|
|
2592
|
-
break;
|
|
2593
|
-
}
|
|
2594
|
-
}
|
|
2595
|
-
return msg;
|
|
2596
|
-
};
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
/**
|
|
2600
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
2601
|
-
* @return {!Uint8Array}
|
|
2602
|
-
*/
|
|
2603
|
-
proto.gateway.parallax.v1.AddSpanEventRequest.prototype.serializeBinary = function() {
|
|
2604
|
-
var writer = new jspb.BinaryWriter();
|
|
2605
|
-
proto.gateway.parallax.v1.AddSpanEventRequest.serializeBinaryToWriter(this, writer);
|
|
2606
|
-
return writer.getResultBuffer();
|
|
2607
|
-
};
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
/**
|
|
2611
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
2612
|
-
* format), writing to the given BinaryWriter.
|
|
2613
|
-
* @param {!proto.gateway.parallax.v1.AddSpanEventRequest} message
|
|
2614
|
-
* @param {!jspb.BinaryWriter} writer
|
|
2615
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2616
|
-
*/
|
|
2617
|
-
proto.gateway.parallax.v1.AddSpanEventRequest.serializeBinaryToWriter = function(message, writer) {
|
|
2618
|
-
var f = undefined;
|
|
2619
|
-
f = message.getTraceId();
|
|
2620
|
-
if (f.length > 0) {
|
|
2621
|
-
writer.writeString(
|
|
2622
|
-
1,
|
|
2623
|
-
f
|
|
2624
|
-
);
|
|
2625
|
-
}
|
|
2626
|
-
f = message.getSpanId();
|
|
2627
|
-
if (f.length > 0) {
|
|
2628
|
-
writer.writeString(
|
|
2629
|
-
2,
|
|
2630
|
-
f
|
|
2631
|
-
);
|
|
2632
|
-
}
|
|
2633
|
-
f = message.getEventName();
|
|
2634
|
-
if (f.length > 0) {
|
|
2635
|
-
writer.writeString(
|
|
2636
|
-
3,
|
|
2637
|
-
f
|
|
2638
|
-
);
|
|
2639
|
-
}
|
|
2640
|
-
f = message.getAttributesMap(true);
|
|
2641
|
-
if (f && f.getLength() > 0) {
|
|
2642
|
-
f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
|
|
2643
|
-
}
|
|
2644
|
-
f = message.getTimestamp();
|
|
2645
|
-
if (f != null) {
|
|
2646
|
-
writer.writeMessage(
|
|
2647
|
-
5,
|
|
2648
|
-
f,
|
|
2649
|
-
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
2650
|
-
);
|
|
2651
|
-
}
|
|
2652
|
-
};
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
/**
|
|
2656
|
-
* optional string trace_id = 1;
|
|
2657
|
-
* @return {string}
|
|
2658
|
-
*/
|
|
2659
|
-
proto.gateway.parallax.v1.AddSpanEventRequest.prototype.getTraceId = function() {
|
|
2660
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
2661
|
-
};
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
/**
|
|
2665
|
-
* @param {string} value
|
|
2666
|
-
* @return {!proto.gateway.parallax.v1.AddSpanEventRequest} returns this
|
|
2667
|
-
*/
|
|
2668
|
-
proto.gateway.parallax.v1.AddSpanEventRequest.prototype.setTraceId = function(value) {
|
|
2669
|
-
return jspb.Message.setProto3StringField(this, 1, value);
|
|
2670
|
-
};
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
/**
|
|
2674
|
-
* optional string span_id = 2;
|
|
2675
|
-
* @return {string}
|
|
2676
|
-
*/
|
|
2677
|
-
proto.gateway.parallax.v1.AddSpanEventRequest.prototype.getSpanId = function() {
|
|
2678
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
2679
|
-
};
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
/**
|
|
2683
|
-
* @param {string} value
|
|
2684
|
-
* @return {!proto.gateway.parallax.v1.AddSpanEventRequest} returns this
|
|
2685
|
-
*/
|
|
2686
|
-
proto.gateway.parallax.v1.AddSpanEventRequest.prototype.setSpanId = function(value) {
|
|
2687
|
-
return jspb.Message.setProto3StringField(this, 2, value);
|
|
2688
|
-
};
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
/**
|
|
2692
|
-
* optional string event_name = 3;
|
|
2693
|
-
* @return {string}
|
|
2694
|
-
*/
|
|
2695
|
-
proto.gateway.parallax.v1.AddSpanEventRequest.prototype.getEventName = function() {
|
|
2696
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
2697
|
-
};
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
/**
|
|
2701
|
-
* @param {string} value
|
|
2702
|
-
* @return {!proto.gateway.parallax.v1.AddSpanEventRequest} returns this
|
|
2703
|
-
*/
|
|
2704
|
-
proto.gateway.parallax.v1.AddSpanEventRequest.prototype.setEventName = function(value) {
|
|
2705
|
-
return jspb.Message.setProto3StringField(this, 3, value);
|
|
2706
|
-
};
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
/**
|
|
2710
|
-
* map<string, string> attributes = 4;
|
|
2711
|
-
* @param {boolean=} opt_noLazyCreate Do not create the map if
|
|
2712
|
-
* empty, instead returning `undefined`
|
|
2713
|
-
* @return {!jspb.Map<string,string>}
|
|
2714
|
-
*/
|
|
2715
|
-
proto.gateway.parallax.v1.AddSpanEventRequest.prototype.getAttributesMap = function(opt_noLazyCreate) {
|
|
2716
|
-
return /** @type {!jspb.Map<string,string>} */ (
|
|
2717
|
-
jspb.Message.getMapField(this, 4, opt_noLazyCreate,
|
|
2718
|
-
null));
|
|
2719
|
-
};
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
/**
|
|
2723
|
-
* Clears values from the map. The map will be non-null.
|
|
2724
|
-
* @return {!proto.gateway.parallax.v1.AddSpanEventRequest} returns this
|
|
2725
|
-
*/
|
|
2726
|
-
proto.gateway.parallax.v1.AddSpanEventRequest.prototype.clearAttributesMap = function() {
|
|
2727
|
-
this.getAttributesMap().clear();
|
|
2728
|
-
return this;
|
|
2729
|
-
};
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
/**
|
|
2733
|
-
* optional google.protobuf.Timestamp timestamp = 5;
|
|
2734
|
-
* @return {?proto.google.protobuf.Timestamp}
|
|
2735
|
-
*/
|
|
2736
|
-
proto.gateway.parallax.v1.AddSpanEventRequest.prototype.getTimestamp = function() {
|
|
2737
|
-
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
2738
|
-
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
|
|
2739
|
-
};
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
/**
|
|
2743
|
-
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
2744
|
-
* @return {!proto.gateway.parallax.v1.AddSpanEventRequest} returns this
|
|
2745
|
-
*/
|
|
2746
|
-
proto.gateway.parallax.v1.AddSpanEventRequest.prototype.setTimestamp = function(value) {
|
|
2747
|
-
return jspb.Message.setWrapperField(this, 5, value);
|
|
2748
|
-
};
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
/**
|
|
2752
|
-
* Clears the message field making it undefined.
|
|
2753
|
-
* @return {!proto.gateway.parallax.v1.AddSpanEventRequest} returns this
|
|
2754
|
-
*/
|
|
2755
|
-
proto.gateway.parallax.v1.AddSpanEventRequest.prototype.clearTimestamp = function() {
|
|
2756
|
-
return this.setTimestamp(undefined);
|
|
2757
|
-
};
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
/**
|
|
2761
|
-
* Returns whether this field is set.
|
|
2762
|
-
* @return {boolean}
|
|
2763
|
-
*/
|
|
2764
|
-
proto.gateway.parallax.v1.AddSpanEventRequest.prototype.hasTimestamp = function() {
|
|
2765
|
-
return jspb.Message.getField(this, 5) != null;
|
|
2766
|
-
};
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2773
|
-
/**
|
|
2774
|
-
* Creates an object representation of this proto.
|
|
2775
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2776
|
-
* Optional fields that are not set will be set to undefined.
|
|
2777
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2778
|
-
* For the list of reserved names please see:
|
|
2779
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2780
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2781
|
-
* JSPB instance for transitional soy proto support:
|
|
2782
|
-
* http://goto/soy-param-migration
|
|
2783
|
-
* @return {!Object}
|
|
2784
|
-
*/
|
|
2785
|
-
proto.gateway.parallax.v1.AddSpanEventResponse.prototype.toObject = function(opt_includeInstance) {
|
|
2786
|
-
return proto.gateway.parallax.v1.AddSpanEventResponse.toObject(opt_includeInstance, this);
|
|
2787
|
-
};
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
/**
|
|
2791
|
-
* Static version of the {@see toObject} method.
|
|
2792
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2793
|
-
* the JSPB instance for transitional soy proto support:
|
|
2794
|
-
* http://goto/soy-param-migration
|
|
2795
|
-
* @param {!proto.gateway.parallax.v1.AddSpanEventResponse} msg The msg instance to transform.
|
|
2796
|
-
* @return {!Object}
|
|
2797
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2798
|
-
*/
|
|
2799
|
-
proto.gateway.parallax.v1.AddSpanEventResponse.toObject = function(includeInstance, msg) {
|
|
2800
|
-
var f, obj = {
|
|
2801
|
-
status: (f = msg.getStatus()) && proto_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f)
|
|
2802
|
-
};
|
|
2803
|
-
|
|
2804
|
-
if (includeInstance) {
|
|
2805
|
-
obj.$jspbMessageInstance = msg;
|
|
2806
|
-
}
|
|
2807
|
-
return obj;
|
|
2808
|
-
};
|
|
2809
|
-
}
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
/**
|
|
2813
|
-
* Deserializes binary data (in protobuf wire format).
|
|
2814
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2815
|
-
* @return {!proto.gateway.parallax.v1.AddSpanEventResponse}
|
|
2816
|
-
*/
|
|
2817
|
-
proto.gateway.parallax.v1.AddSpanEventResponse.deserializeBinary = function(bytes) {
|
|
2818
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
2819
|
-
var msg = new proto.gateway.parallax.v1.AddSpanEventResponse;
|
|
2820
|
-
return proto.gateway.parallax.v1.AddSpanEventResponse.deserializeBinaryFromReader(msg, reader);
|
|
2821
|
-
};
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
/**
|
|
2825
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
2826
|
-
* given reader into the given message object.
|
|
2827
|
-
* @param {!proto.gateway.parallax.v1.AddSpanEventResponse} msg The message object to deserialize into.
|
|
2828
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2829
|
-
* @return {!proto.gateway.parallax.v1.AddSpanEventResponse}
|
|
2830
|
-
*/
|
|
2831
|
-
proto.gateway.parallax.v1.AddSpanEventResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
2832
|
-
while (reader.nextField()) {
|
|
2833
|
-
if (reader.isEndGroup()) {
|
|
2834
|
-
break;
|
|
2835
|
-
}
|
|
2836
|
-
var field = reader.getFieldNumber();
|
|
2837
|
-
switch (field) {
|
|
2838
|
-
case 1:
|
|
2839
|
-
var value = new proto_common_v1_status_pb.ResponseStatus;
|
|
2840
|
-
reader.readMessage(value,proto_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
|
|
2841
|
-
msg.setStatus(value);
|
|
2842
|
-
break;
|
|
2843
|
-
default:
|
|
2844
|
-
reader.skipField();
|
|
2845
|
-
break;
|
|
2846
|
-
}
|
|
2847
|
-
}
|
|
2848
|
-
return msg;
|
|
2849
|
-
};
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
/**
|
|
2853
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
2854
|
-
* @return {!Uint8Array}
|
|
2855
|
-
*/
|
|
2856
|
-
proto.gateway.parallax.v1.AddSpanEventResponse.prototype.serializeBinary = function() {
|
|
2857
|
-
var writer = new jspb.BinaryWriter();
|
|
2858
|
-
proto.gateway.parallax.v1.AddSpanEventResponse.serializeBinaryToWriter(this, writer);
|
|
2859
|
-
return writer.getResultBuffer();
|
|
2860
|
-
};
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
/**
|
|
2864
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
2865
|
-
* format), writing to the given BinaryWriter.
|
|
2866
|
-
* @param {!proto.gateway.parallax.v1.AddSpanEventResponse} message
|
|
2867
|
-
* @param {!jspb.BinaryWriter} writer
|
|
2868
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2869
|
-
*/
|
|
2870
|
-
proto.gateway.parallax.v1.AddSpanEventResponse.serializeBinaryToWriter = function(message, writer) {
|
|
2871
|
-
var f = undefined;
|
|
2872
|
-
f = message.getStatus();
|
|
2873
|
-
if (f != null) {
|
|
2874
|
-
writer.writeMessage(
|
|
2875
|
-
1,
|
|
2876
|
-
f,
|
|
2877
|
-
proto_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
|
|
2878
|
-
);
|
|
2879
|
-
}
|
|
2880
|
-
};
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
/**
|
|
2884
|
-
* optional common.v1.ResponseStatus status = 1;
|
|
2885
|
-
* @return {?proto.common.v1.ResponseStatus}
|
|
2886
|
-
*/
|
|
2887
|
-
proto.gateway.parallax.v1.AddSpanEventResponse.prototype.getStatus = function() {
|
|
2888
|
-
return /** @type{?proto.common.v1.ResponseStatus} */ (
|
|
2889
|
-
jspb.Message.getWrapperField(this, proto_common_v1_status_pb.ResponseStatus, 1));
|
|
2890
|
-
};
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
/**
|
|
2894
|
-
* @param {?proto.common.v1.ResponseStatus|undefined} value
|
|
2895
|
-
* @return {!proto.gateway.parallax.v1.AddSpanEventResponse} returns this
|
|
2896
|
-
*/
|
|
2897
|
-
proto.gateway.parallax.v1.AddSpanEventResponse.prototype.setStatus = function(value) {
|
|
2898
|
-
return jspb.Message.setWrapperField(this, 1, value);
|
|
2899
|
-
};
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
/**
|
|
2903
|
-
* Clears the message field making it undefined.
|
|
2904
|
-
* @return {!proto.gateway.parallax.v1.AddSpanEventResponse} returns this
|
|
2905
|
-
*/
|
|
2906
|
-
proto.gateway.parallax.v1.AddSpanEventResponse.prototype.clearStatus = function() {
|
|
2907
|
-
return this.setStatus(undefined);
|
|
2908
|
-
};
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
/**
|
|
2912
|
-
* Returns whether this field is set.
|
|
2913
|
-
* @return {boolean}
|
|
2914
|
-
*/
|
|
2915
|
-
proto.gateway.parallax.v1.AddSpanEventResponse.prototype.hasStatus = function() {
|
|
2916
|
-
return jspb.Message.getField(this, 1) != null;
|
|
2917
|
-
};
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2924
|
-
/**
|
|
2925
|
-
* Creates an object representation of this proto.
|
|
2926
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2927
|
-
* Optional fields that are not set will be set to undefined.
|
|
2928
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2929
|
-
* For the list of reserved names please see:
|
|
2930
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2931
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2932
|
-
* JSPB instance for transitional soy proto support:
|
|
2933
|
-
* http://goto/soy-param-migration
|
|
2934
|
-
* @return {!Object}
|
|
2935
|
-
*/
|
|
2936
|
-
proto.gateway.parallax.v1.AddSpanErrorRequest.prototype.toObject = function(opt_includeInstance) {
|
|
2937
|
-
return proto.gateway.parallax.v1.AddSpanErrorRequest.toObject(opt_includeInstance, this);
|
|
2938
|
-
};
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
/**
|
|
2942
|
-
* Static version of the {@see toObject} method.
|
|
2943
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2944
|
-
* the JSPB instance for transitional soy proto support:
|
|
2945
|
-
* http://goto/soy-param-migration
|
|
2946
|
-
* @param {!proto.gateway.parallax.v1.AddSpanErrorRequest} msg The msg instance to transform.
|
|
2947
|
-
* @return {!Object}
|
|
2948
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2949
|
-
*/
|
|
2950
|
-
proto.gateway.parallax.v1.AddSpanErrorRequest.toObject = function(includeInstance, msg) {
|
|
2951
|
-
var f, obj = {
|
|
2952
|
-
traceId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
2953
|
-
spanId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
2954
|
-
errorType: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
2955
|
-
message: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
2956
|
-
stackTrace: (f = jspb.Message.getField(msg, 5)) == null ? undefined : f,
|
|
2957
|
-
attributesMap: (f = msg.getAttributesMap()) ? f.toObject(includeInstance, undefined) : [],
|
|
2958
|
-
timestamp: (f = msg.getTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
2959
|
-
};
|
|
2960
|
-
|
|
2961
|
-
if (includeInstance) {
|
|
2962
|
-
obj.$jspbMessageInstance = msg;
|
|
2963
|
-
}
|
|
2964
|
-
return obj;
|
|
2965
|
-
};
|
|
2966
|
-
}
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
/**
|
|
2970
|
-
* Deserializes binary data (in protobuf wire format).
|
|
2971
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2972
|
-
* @return {!proto.gateway.parallax.v1.AddSpanErrorRequest}
|
|
2973
|
-
*/
|
|
2974
|
-
proto.gateway.parallax.v1.AddSpanErrorRequest.deserializeBinary = function(bytes) {
|
|
2975
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
2976
|
-
var msg = new proto.gateway.parallax.v1.AddSpanErrorRequest;
|
|
2977
|
-
return proto.gateway.parallax.v1.AddSpanErrorRequest.deserializeBinaryFromReader(msg, reader);
|
|
1019
|
+
proto.gateway.parallax.v1.CreateTraceRequest.TxHashHint.deserializeBinary = function(bytes) {
|
|
1020
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1021
|
+
var msg = new proto.gateway.parallax.v1.CreateTraceRequest.TxHashHint;
|
|
1022
|
+
return proto.gateway.parallax.v1.CreateTraceRequest.TxHashHint.deserializeBinaryFromReader(msg, reader);
|
|
2978
1023
|
};
|
|
2979
1024
|
|
|
2980
1025
|
|
|
2981
1026
|
/**
|
|
2982
1027
|
* Deserializes binary data (in protobuf wire format) from the
|
|
2983
1028
|
* given reader into the given message object.
|
|
2984
|
-
* @param {!proto.gateway.parallax.v1.
|
|
1029
|
+
* @param {!proto.gateway.parallax.v1.CreateTraceRequest.TxHashHint} msg The message object to deserialize into.
|
|
2985
1030
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2986
|
-
* @return {!proto.gateway.parallax.v1.
|
|
1031
|
+
* @return {!proto.gateway.parallax.v1.CreateTraceRequest.TxHashHint}
|
|
2987
1032
|
*/
|
|
2988
|
-
proto.gateway.parallax.v1.
|
|
1033
|
+
proto.gateway.parallax.v1.CreateTraceRequest.TxHashHint.deserializeBinaryFromReader = function(msg, reader) {
|
|
2989
1034
|
while (reader.nextField()) {
|
|
2990
1035
|
if (reader.isEndGroup()) {
|
|
2991
1036
|
break;
|
|
@@ -2994,31 +1039,17 @@
|
|
|
2994
1039
|
switch (field) {
|
|
2995
1040
|
case 1:
|
|
2996
1041
|
var value = /** @type {string} */ (reader.readString());
|
|
2997
|
-
msg.
|
|
1042
|
+
msg.setChainId(value);
|
|
2998
1043
|
break;
|
|
2999
1044
|
case 2:
|
|
3000
1045
|
var value = /** @type {string} */ (reader.readString());
|
|
3001
|
-
msg.
|
|
1046
|
+
msg.setTxHash(value);
|
|
3002
1047
|
break;
|
|
3003
1048
|
case 3:
|
|
3004
1049
|
var value = /** @type {string} */ (reader.readString());
|
|
3005
|
-
msg.
|
|
1050
|
+
msg.setDetails(value);
|
|
3006
1051
|
break;
|
|
3007
1052
|
case 4:
|
|
3008
|
-
var value = /** @type {string} */ (reader.readString());
|
|
3009
|
-
msg.setMessage(value);
|
|
3010
|
-
break;
|
|
3011
|
-
case 5:
|
|
3012
|
-
var value = /** @type {string} */ (reader.readString());
|
|
3013
|
-
msg.setStackTrace(value);
|
|
3014
|
-
break;
|
|
3015
|
-
case 6:
|
|
3016
|
-
var value = msg.getAttributesMap();
|
|
3017
|
-
reader.readMessage(value, function(message, reader) {
|
|
3018
|
-
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
|
|
3019
|
-
});
|
|
3020
|
-
break;
|
|
3021
|
-
case 7:
|
|
3022
1053
|
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
3023
1054
|
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
3024
1055
|
msg.setTimestamp(value);
|
|
@@ -3036,9 +1067,9 @@
|
|
|
3036
1067
|
* Serializes the message to binary data (in protobuf wire format).
|
|
3037
1068
|
* @return {!Uint8Array}
|
|
3038
1069
|
*/
|
|
3039
|
-
proto.gateway.parallax.v1.
|
|
1070
|
+
proto.gateway.parallax.v1.CreateTraceRequest.TxHashHint.prototype.serializeBinary = function() {
|
|
3040
1071
|
var writer = new jspb.BinaryWriter();
|
|
3041
|
-
proto.gateway.parallax.v1.
|
|
1072
|
+
proto.gateway.parallax.v1.CreateTraceRequest.TxHashHint.serializeBinaryToWriter(this, writer);
|
|
3042
1073
|
return writer.getResultBuffer();
|
|
3043
1074
|
};
|
|
3044
1075
|
|
|
@@ -3046,55 +1077,37 @@
|
|
|
3046
1077
|
/**
|
|
3047
1078
|
* Serializes the given message to binary data (in protobuf wire
|
|
3048
1079
|
* format), writing to the given BinaryWriter.
|
|
3049
|
-
* @param {!proto.gateway.parallax.v1.
|
|
1080
|
+
* @param {!proto.gateway.parallax.v1.CreateTraceRequest.TxHashHint} message
|
|
3050
1081
|
* @param {!jspb.BinaryWriter} writer
|
|
3051
1082
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3052
1083
|
*/
|
|
3053
|
-
proto.gateway.parallax.v1.
|
|
1084
|
+
proto.gateway.parallax.v1.CreateTraceRequest.TxHashHint.serializeBinaryToWriter = function(message, writer) {
|
|
3054
1085
|
var f = undefined;
|
|
3055
|
-
f = message.
|
|
1086
|
+
f = message.getChainId();
|
|
3056
1087
|
if (f.length > 0) {
|
|
3057
1088
|
writer.writeString(
|
|
3058
1089
|
1,
|
|
3059
1090
|
f
|
|
3060
1091
|
);
|
|
3061
1092
|
}
|
|
3062
|
-
f = message.
|
|
1093
|
+
f = message.getTxHash();
|
|
3063
1094
|
if (f.length > 0) {
|
|
3064
1095
|
writer.writeString(
|
|
3065
1096
|
2,
|
|
3066
1097
|
f
|
|
3067
1098
|
);
|
|
3068
1099
|
}
|
|
3069
|
-
f =
|
|
3070
|
-
if (f.length > 0) {
|
|
3071
|
-
writer.writeString(
|
|
3072
|
-
3,
|
|
3073
|
-
f
|
|
3074
|
-
);
|
|
3075
|
-
}
|
|
3076
|
-
f = message.getMessage();
|
|
3077
|
-
if (f.length > 0) {
|
|
3078
|
-
writer.writeString(
|
|
3079
|
-
4,
|
|
3080
|
-
f
|
|
3081
|
-
);
|
|
3082
|
-
}
|
|
3083
|
-
f = /** @type {string} */ (jspb.Message.getField(message, 5));
|
|
1100
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
3084
1101
|
if (f != null) {
|
|
3085
1102
|
writer.writeString(
|
|
3086
|
-
|
|
1103
|
+
3,
|
|
3087
1104
|
f
|
|
3088
1105
|
);
|
|
3089
1106
|
}
|
|
3090
|
-
f = message.getAttributesMap(true);
|
|
3091
|
-
if (f && f.getLength() > 0) {
|
|
3092
|
-
f.serializeBinary(6, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
|
|
3093
|
-
}
|
|
3094
1107
|
f = message.getTimestamp();
|
|
3095
1108
|
if (f != null) {
|
|
3096
1109
|
writer.writeMessage(
|
|
3097
|
-
|
|
1110
|
+
4,
|
|
3098
1111
|
f,
|
|
3099
1112
|
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
3100
1113
|
);
|
|
@@ -3103,312 +1116,65 @@
|
|
|
3103
1116
|
|
|
3104
1117
|
|
|
3105
1118
|
/**
|
|
3106
|
-
* optional string
|
|
1119
|
+
* optional string chain_id = 1;
|
|
3107
1120
|
* @return {string}
|
|
3108
1121
|
*/
|
|
3109
|
-
proto.gateway.parallax.v1.
|
|
1122
|
+
proto.gateway.parallax.v1.CreateTraceRequest.TxHashHint.prototype.getChainId = function() {
|
|
3110
1123
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
3111
1124
|
};
|
|
3112
1125
|
|
|
3113
1126
|
|
|
3114
1127
|
/**
|
|
3115
|
-
* @param {string} value
|
|
3116
|
-
* @return {!proto.gateway.parallax.v1.
|
|
3117
|
-
*/
|
|
3118
|
-
proto.gateway.parallax.v1.
|
|
3119
|
-
return jspb.Message.setProto3StringField(this, 1, value);
|
|
3120
|
-
};
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
/**
|
|
3124
|
-
* optional string span_id = 2;
|
|
3125
|
-
* @return {string}
|
|
3126
|
-
*/
|
|
3127
|
-
proto.gateway.parallax.v1.AddSpanErrorRequest.prototype.getSpanId = function() {
|
|
3128
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
3129
|
-
};
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
/**
|
|
3133
|
-
* @param {string} value
|
|
3134
|
-
* @return {!proto.gateway.parallax.v1.AddSpanErrorRequest} returns this
|
|
3135
|
-
*/
|
|
3136
|
-
proto.gateway.parallax.v1.AddSpanErrorRequest.prototype.setSpanId = function(value) {
|
|
3137
|
-
return jspb.Message.setProto3StringField(this, 2, value);
|
|
3138
|
-
};
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
/**
|
|
3142
|
-
* optional string error_type = 3;
|
|
3143
|
-
* @return {string}
|
|
3144
|
-
*/
|
|
3145
|
-
proto.gateway.parallax.v1.AddSpanErrorRequest.prototype.getErrorType = function() {
|
|
3146
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
3147
|
-
};
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
/**
|
|
3151
|
-
* @param {string} value
|
|
3152
|
-
* @return {!proto.gateway.parallax.v1.AddSpanErrorRequest} returns this
|
|
3153
|
-
*/
|
|
3154
|
-
proto.gateway.parallax.v1.AddSpanErrorRequest.prototype.setErrorType = function(value) {
|
|
3155
|
-
return jspb.Message.setProto3StringField(this, 3, value);
|
|
3156
|
-
};
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
/**
|
|
3160
|
-
* optional string message = 4;
|
|
3161
|
-
* @return {string}
|
|
3162
|
-
*/
|
|
3163
|
-
proto.gateway.parallax.v1.AddSpanErrorRequest.prototype.getMessage = function() {
|
|
3164
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
3165
|
-
};
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
/**
|
|
3169
|
-
* @param {string} value
|
|
3170
|
-
* @return {!proto.gateway.parallax.v1.AddSpanErrorRequest} returns this
|
|
3171
|
-
*/
|
|
3172
|
-
proto.gateway.parallax.v1.AddSpanErrorRequest.prototype.setMessage = function(value) {
|
|
3173
|
-
return jspb.Message.setProto3StringField(this, 4, value);
|
|
3174
|
-
};
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
/**
|
|
3178
|
-
* optional string stack_trace = 5;
|
|
3179
|
-
* @return {string}
|
|
3180
|
-
*/
|
|
3181
|
-
proto.gateway.parallax.v1.AddSpanErrorRequest.prototype.getStackTrace = function() {
|
|
3182
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
3183
|
-
};
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
/**
|
|
3187
|
-
* @param {string} value
|
|
3188
|
-
* @return {!proto.gateway.parallax.v1.AddSpanErrorRequest} returns this
|
|
3189
|
-
*/
|
|
3190
|
-
proto.gateway.parallax.v1.AddSpanErrorRequest.prototype.setStackTrace = function(value) {
|
|
3191
|
-
return jspb.Message.setField(this, 5, value);
|
|
3192
|
-
};
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
/**
|
|
3196
|
-
* Clears the field making it undefined.
|
|
3197
|
-
* @return {!proto.gateway.parallax.v1.AddSpanErrorRequest} returns this
|
|
3198
|
-
*/
|
|
3199
|
-
proto.gateway.parallax.v1.AddSpanErrorRequest.prototype.clearStackTrace = function() {
|
|
3200
|
-
return jspb.Message.setField(this, 5, undefined);
|
|
3201
|
-
};
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
/**
|
|
3205
|
-
* Returns whether this field is set.
|
|
3206
|
-
* @return {boolean}
|
|
3207
|
-
*/
|
|
3208
|
-
proto.gateway.parallax.v1.AddSpanErrorRequest.prototype.hasStackTrace = function() {
|
|
3209
|
-
return jspb.Message.getField(this, 5) != null;
|
|
3210
|
-
};
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
/**
|
|
3214
|
-
* map<string, string> attributes = 6;
|
|
3215
|
-
* @param {boolean=} opt_noLazyCreate Do not create the map if
|
|
3216
|
-
* empty, instead returning `undefined`
|
|
3217
|
-
* @return {!jspb.Map<string,string>}
|
|
3218
|
-
*/
|
|
3219
|
-
proto.gateway.parallax.v1.AddSpanErrorRequest.prototype.getAttributesMap = function(opt_noLazyCreate) {
|
|
3220
|
-
return /** @type {!jspb.Map<string,string>} */ (
|
|
3221
|
-
jspb.Message.getMapField(this, 6, opt_noLazyCreate,
|
|
3222
|
-
null));
|
|
3223
|
-
};
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
/**
|
|
3227
|
-
* Clears values from the map. The map will be non-null.
|
|
3228
|
-
* @return {!proto.gateway.parallax.v1.AddSpanErrorRequest} returns this
|
|
3229
|
-
*/
|
|
3230
|
-
proto.gateway.parallax.v1.AddSpanErrorRequest.prototype.clearAttributesMap = function() {
|
|
3231
|
-
this.getAttributesMap().clear();
|
|
3232
|
-
return this;
|
|
3233
|
-
};
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
/**
|
|
3237
|
-
* optional google.protobuf.Timestamp timestamp = 7;
|
|
3238
|
-
* @return {?proto.google.protobuf.Timestamp}
|
|
3239
|
-
*/
|
|
3240
|
-
proto.gateway.parallax.v1.AddSpanErrorRequest.prototype.getTimestamp = function() {
|
|
3241
|
-
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
3242
|
-
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7));
|
|
3243
|
-
};
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
/**
|
|
3247
|
-
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
3248
|
-
* @return {!proto.gateway.parallax.v1.AddSpanErrorRequest} returns this
|
|
3249
|
-
*/
|
|
3250
|
-
proto.gateway.parallax.v1.AddSpanErrorRequest.prototype.setTimestamp = function(value) {
|
|
3251
|
-
return jspb.Message.setWrapperField(this, 7, value);
|
|
3252
|
-
};
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
/**
|
|
3256
|
-
* Clears the message field making it undefined.
|
|
3257
|
-
* @return {!proto.gateway.parallax.v1.AddSpanErrorRequest} returns this
|
|
3258
|
-
*/
|
|
3259
|
-
proto.gateway.parallax.v1.AddSpanErrorRequest.prototype.clearTimestamp = function() {
|
|
3260
|
-
return this.setTimestamp(undefined);
|
|
3261
|
-
};
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
/**
|
|
3265
|
-
* Returns whether this field is set.
|
|
3266
|
-
* @return {boolean}
|
|
3267
|
-
*/
|
|
3268
|
-
proto.gateway.parallax.v1.AddSpanErrorRequest.prototype.hasTimestamp = function() {
|
|
3269
|
-
return jspb.Message.getField(this, 7) != null;
|
|
3270
|
-
};
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3277
|
-
/**
|
|
3278
|
-
* Creates an object representation of this proto.
|
|
3279
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3280
|
-
* Optional fields that are not set will be set to undefined.
|
|
3281
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3282
|
-
* For the list of reserved names please see:
|
|
3283
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3284
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3285
|
-
* JSPB instance for transitional soy proto support:
|
|
3286
|
-
* http://goto/soy-param-migration
|
|
3287
|
-
* @return {!Object}
|
|
3288
|
-
*/
|
|
3289
|
-
proto.gateway.parallax.v1.AddSpanErrorResponse.prototype.toObject = function(opt_includeInstance) {
|
|
3290
|
-
return proto.gateway.parallax.v1.AddSpanErrorResponse.toObject(opt_includeInstance, this);
|
|
3291
|
-
};
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
/**
|
|
3295
|
-
* Static version of the {@see toObject} method.
|
|
3296
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3297
|
-
* the JSPB instance for transitional soy proto support:
|
|
3298
|
-
* http://goto/soy-param-migration
|
|
3299
|
-
* @param {!proto.gateway.parallax.v1.AddSpanErrorResponse} msg The msg instance to transform.
|
|
3300
|
-
* @return {!Object}
|
|
3301
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3302
|
-
*/
|
|
3303
|
-
proto.gateway.parallax.v1.AddSpanErrorResponse.toObject = function(includeInstance, msg) {
|
|
3304
|
-
var f, obj = {
|
|
3305
|
-
status: (f = msg.getStatus()) && proto_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f)
|
|
3306
|
-
};
|
|
3307
|
-
|
|
3308
|
-
if (includeInstance) {
|
|
3309
|
-
obj.$jspbMessageInstance = msg;
|
|
3310
|
-
}
|
|
3311
|
-
return obj;
|
|
3312
|
-
};
|
|
3313
|
-
}
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
/**
|
|
3317
|
-
* Deserializes binary data (in protobuf wire format).
|
|
3318
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3319
|
-
* @return {!proto.gateway.parallax.v1.AddSpanErrorResponse}
|
|
3320
|
-
*/
|
|
3321
|
-
proto.gateway.parallax.v1.AddSpanErrorResponse.deserializeBinary = function(bytes) {
|
|
3322
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
3323
|
-
var msg = new proto.gateway.parallax.v1.AddSpanErrorResponse;
|
|
3324
|
-
return proto.gateway.parallax.v1.AddSpanErrorResponse.deserializeBinaryFromReader(msg, reader);
|
|
3325
|
-
};
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
/**
|
|
3329
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
3330
|
-
* given reader into the given message object.
|
|
3331
|
-
* @param {!proto.gateway.parallax.v1.AddSpanErrorResponse} msg The message object to deserialize into.
|
|
3332
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3333
|
-
* @return {!proto.gateway.parallax.v1.AddSpanErrorResponse}
|
|
3334
|
-
*/
|
|
3335
|
-
proto.gateway.parallax.v1.AddSpanErrorResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
3336
|
-
while (reader.nextField()) {
|
|
3337
|
-
if (reader.isEndGroup()) {
|
|
3338
|
-
break;
|
|
3339
|
-
}
|
|
3340
|
-
var field = reader.getFieldNumber();
|
|
3341
|
-
switch (field) {
|
|
3342
|
-
case 1:
|
|
3343
|
-
var value = new proto_common_v1_status_pb.ResponseStatus;
|
|
3344
|
-
reader.readMessage(value,proto_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
|
|
3345
|
-
msg.setStatus(value);
|
|
3346
|
-
break;
|
|
3347
|
-
default:
|
|
3348
|
-
reader.skipField();
|
|
3349
|
-
break;
|
|
3350
|
-
}
|
|
3351
|
-
}
|
|
3352
|
-
return msg;
|
|
1128
|
+
* @param {string} value
|
|
1129
|
+
* @return {!proto.gateway.parallax.v1.CreateTraceRequest.TxHashHint} returns this
|
|
1130
|
+
*/
|
|
1131
|
+
proto.gateway.parallax.v1.CreateTraceRequest.TxHashHint.prototype.setChainId = function(value) {
|
|
1132
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
3353
1133
|
};
|
|
3354
1134
|
|
|
3355
1135
|
|
|
3356
1136
|
/**
|
|
3357
|
-
*
|
|
3358
|
-
* @return {
|
|
1137
|
+
* optional string tx_hash = 2;
|
|
1138
|
+
* @return {string}
|
|
3359
1139
|
*/
|
|
3360
|
-
proto.gateway.parallax.v1.
|
|
3361
|
-
|
|
3362
|
-
proto.gateway.parallax.v1.AddSpanErrorResponse.serializeBinaryToWriter(this, writer);
|
|
3363
|
-
return writer.getResultBuffer();
|
|
1140
|
+
proto.gateway.parallax.v1.CreateTraceRequest.TxHashHint.prototype.getTxHash = function() {
|
|
1141
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
3364
1142
|
};
|
|
3365
1143
|
|
|
3366
1144
|
|
|
3367
1145
|
/**
|
|
3368
|
-
*
|
|
3369
|
-
*
|
|
3370
|
-
* @param {!proto.gateway.parallax.v1.AddSpanErrorResponse} message
|
|
3371
|
-
* @param {!jspb.BinaryWriter} writer
|
|
3372
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1146
|
+
* @param {string} value
|
|
1147
|
+
* @return {!proto.gateway.parallax.v1.CreateTraceRequest.TxHashHint} returns this
|
|
3373
1148
|
*/
|
|
3374
|
-
proto.gateway.parallax.v1.
|
|
3375
|
-
|
|
3376
|
-
f = message.getStatus();
|
|
3377
|
-
if (f != null) {
|
|
3378
|
-
writer.writeMessage(
|
|
3379
|
-
1,
|
|
3380
|
-
f,
|
|
3381
|
-
proto_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
|
|
3382
|
-
);
|
|
3383
|
-
}
|
|
1149
|
+
proto.gateway.parallax.v1.CreateTraceRequest.TxHashHint.prototype.setTxHash = function(value) {
|
|
1150
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
3384
1151
|
};
|
|
3385
1152
|
|
|
3386
1153
|
|
|
3387
1154
|
/**
|
|
3388
|
-
* optional
|
|
3389
|
-
* @return {
|
|
1155
|
+
* optional string details = 3;
|
|
1156
|
+
* @return {string}
|
|
3390
1157
|
*/
|
|
3391
|
-
proto.gateway.parallax.v1.
|
|
3392
|
-
return /** @type{
|
|
3393
|
-
jspb.Message.getWrapperField(this, proto_common_v1_status_pb.ResponseStatus, 1));
|
|
1158
|
+
proto.gateway.parallax.v1.CreateTraceRequest.TxHashHint.prototype.getDetails = function() {
|
|
1159
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
3394
1160
|
};
|
|
3395
1161
|
|
|
3396
1162
|
|
|
3397
1163
|
/**
|
|
3398
|
-
* @param {
|
|
3399
|
-
* @return {!proto.gateway.parallax.v1.
|
|
3400
|
-
|
|
3401
|
-
proto.gateway.parallax.v1.
|
|
3402
|
-
return jspb.Message.
|
|
1164
|
+
* @param {string} value
|
|
1165
|
+
* @return {!proto.gateway.parallax.v1.CreateTraceRequest.TxHashHint} returns this
|
|
1166
|
+
*/
|
|
1167
|
+
proto.gateway.parallax.v1.CreateTraceRequest.TxHashHint.prototype.setDetails = function(value) {
|
|
1168
|
+
return jspb.Message.setField(this, 3, value);
|
|
3403
1169
|
};
|
|
3404
1170
|
|
|
3405
1171
|
|
|
3406
1172
|
/**
|
|
3407
|
-
* Clears the
|
|
3408
|
-
* @return {!proto.gateway.parallax.v1.
|
|
1173
|
+
* Clears the field making it undefined.
|
|
1174
|
+
* @return {!proto.gateway.parallax.v1.CreateTraceRequest.TxHashHint} returns this
|
|
3409
1175
|
*/
|
|
3410
|
-
proto.gateway.parallax.v1.
|
|
3411
|
-
return
|
|
1176
|
+
proto.gateway.parallax.v1.CreateTraceRequest.TxHashHint.prototype.clearDetails = function() {
|
|
1177
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
3412
1178
|
};
|
|
3413
1179
|
|
|
3414
1180
|
|
|
@@ -3416,39 +1182,51 @@
|
|
|
3416
1182
|
* Returns whether this field is set.
|
|
3417
1183
|
* @return {boolean}
|
|
3418
1184
|
*/
|
|
3419
|
-
proto.gateway.parallax.v1.
|
|
3420
|
-
return jspb.Message.getField(this,
|
|
1185
|
+
proto.gateway.parallax.v1.CreateTraceRequest.TxHashHint.prototype.hasDetails = function() {
|
|
1186
|
+
return jspb.Message.getField(this, 3) != null;
|
|
3421
1187
|
};
|
|
3422
1188
|
|
|
3423
1189
|
|
|
3424
|
-
|
|
3425
1190
|
/**
|
|
3426
|
-
*
|
|
3427
|
-
*
|
|
3428
|
-
* other fields in the group are cleared. During deserialization, if multiple
|
|
3429
|
-
* fields are encountered for a group, only the last value seen will be kept.
|
|
3430
|
-
* @private {!Array<!Array<number>>}
|
|
3431
|
-
* @const
|
|
1191
|
+
* optional google.protobuf.Timestamp timestamp = 4;
|
|
1192
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
3432
1193
|
*/
|
|
3433
|
-
proto.gateway.parallax.v1.
|
|
1194
|
+
proto.gateway.parallax.v1.CreateTraceRequest.TxHashHint.prototype.getTimestamp = function() {
|
|
1195
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
1196
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
|
|
1197
|
+
};
|
|
1198
|
+
|
|
3434
1199
|
|
|
3435
1200
|
/**
|
|
3436
|
-
* @
|
|
1201
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
1202
|
+
* @return {!proto.gateway.parallax.v1.CreateTraceRequest.TxHashHint} returns this
|
|
1203
|
+
*/
|
|
1204
|
+
proto.gateway.parallax.v1.CreateTraceRequest.TxHashHint.prototype.setTimestamp = function(value) {
|
|
1205
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
1206
|
+
};
|
|
1207
|
+
|
|
1208
|
+
|
|
1209
|
+
/**
|
|
1210
|
+
* Clears the message field making it undefined.
|
|
1211
|
+
* @return {!proto.gateway.parallax.v1.CreateTraceRequest.TxHashHint} returns this
|
|
3437
1212
|
*/
|
|
3438
|
-
proto.gateway.parallax.v1.
|
|
3439
|
-
|
|
3440
|
-
CHAIN_TRANSACTION: 10
|
|
1213
|
+
proto.gateway.parallax.v1.CreateTraceRequest.TxHashHint.prototype.clearTimestamp = function() {
|
|
1214
|
+
return this.setTimestamp(undefined);
|
|
3441
1215
|
};
|
|
3442
1216
|
|
|
1217
|
+
|
|
3443
1218
|
/**
|
|
3444
|
-
*
|
|
1219
|
+
* Returns whether this field is set.
|
|
1220
|
+
* @return {boolean}
|
|
3445
1221
|
*/
|
|
3446
|
-
proto.gateway.parallax.v1.
|
|
3447
|
-
return
|
|
1222
|
+
proto.gateway.parallax.v1.CreateTraceRequest.TxHashHint.prototype.hasTimestamp = function() {
|
|
1223
|
+
return jspb.Message.getField(this, 4) != null;
|
|
3448
1224
|
};
|
|
3449
1225
|
|
|
3450
1226
|
|
|
3451
1227
|
|
|
1228
|
+
|
|
1229
|
+
|
|
3452
1230
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3453
1231
|
/**
|
|
3454
1232
|
* Creates an object representation of this proto.
|
|
@@ -3462,8 +1240,8 @@
|
|
|
3462
1240
|
* http://goto/soy-param-migration
|
|
3463
1241
|
* @return {!Object}
|
|
3464
1242
|
*/
|
|
3465
|
-
proto.gateway.parallax.v1.
|
|
3466
|
-
return proto.gateway.parallax.v1.
|
|
1243
|
+
proto.gateway.parallax.v1.CreateTraceRequest.Event.prototype.toObject = function(opt_includeInstance) {
|
|
1244
|
+
return proto.gateway.parallax.v1.CreateTraceRequest.Event.toObject(opt_includeInstance, this);
|
|
3467
1245
|
};
|
|
3468
1246
|
|
|
3469
1247
|
|
|
@@ -3472,16 +1250,15 @@
|
|
|
3472
1250
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3473
1251
|
* the JSPB instance for transitional soy proto support:
|
|
3474
1252
|
* http://goto/soy-param-migration
|
|
3475
|
-
* @param {!proto.gateway.parallax.v1.
|
|
1253
|
+
* @param {!proto.gateway.parallax.v1.CreateTraceRequest.Event} msg The msg instance to transform.
|
|
3476
1254
|
* @return {!Object}
|
|
3477
1255
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3478
1256
|
*/
|
|
3479
|
-
proto.gateway.parallax.v1.
|
|
1257
|
+
proto.gateway.parallax.v1.CreateTraceRequest.Event.toObject = function(includeInstance, msg) {
|
|
3480
1258
|
var f, obj = {
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
timestamp: (f = msg.getTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
3484
|
-
chainTransaction: (f = msg.getChainTransaction()) && proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction.toObject(includeInstance, f)
|
|
1259
|
+
eventName: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1260
|
+
details: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
|
|
1261
|
+
timestamp: (f = msg.getTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
3485
1262
|
};
|
|
3486
1263
|
|
|
3487
1264
|
if (includeInstance) {
|
|
@@ -3495,23 +1272,23 @@
|
|
|
3495
1272
|
/**
|
|
3496
1273
|
* Deserializes binary data (in protobuf wire format).
|
|
3497
1274
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3498
|
-
* @return {!proto.gateway.parallax.v1.
|
|
1275
|
+
* @return {!proto.gateway.parallax.v1.CreateTraceRequest.Event}
|
|
3499
1276
|
*/
|
|
3500
|
-
proto.gateway.parallax.v1.
|
|
1277
|
+
proto.gateway.parallax.v1.CreateTraceRequest.Event.deserializeBinary = function(bytes) {
|
|
3501
1278
|
var reader = new jspb.BinaryReader(bytes);
|
|
3502
|
-
var msg = new proto.gateway.parallax.v1.
|
|
3503
|
-
return proto.gateway.parallax.v1.
|
|
1279
|
+
var msg = new proto.gateway.parallax.v1.CreateTraceRequest.Event;
|
|
1280
|
+
return proto.gateway.parallax.v1.CreateTraceRequest.Event.deserializeBinaryFromReader(msg, reader);
|
|
3504
1281
|
};
|
|
3505
1282
|
|
|
3506
1283
|
|
|
3507
1284
|
/**
|
|
3508
1285
|
* Deserializes binary data (in protobuf wire format) from the
|
|
3509
1286
|
* given reader into the given message object.
|
|
3510
|
-
* @param {!proto.gateway.parallax.v1.
|
|
1287
|
+
* @param {!proto.gateway.parallax.v1.CreateTraceRequest.Event} msg The message object to deserialize into.
|
|
3511
1288
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3512
|
-
* @return {!proto.gateway.parallax.v1.
|
|
1289
|
+
* @return {!proto.gateway.parallax.v1.CreateTraceRequest.Event}
|
|
3513
1290
|
*/
|
|
3514
|
-
proto.gateway.parallax.v1.
|
|
1291
|
+
proto.gateway.parallax.v1.CreateTraceRequest.Event.deserializeBinaryFromReader = function(msg, reader) {
|
|
3515
1292
|
while (reader.nextField()) {
|
|
3516
1293
|
if (reader.isEndGroup()) {
|
|
3517
1294
|
break;
|
|
@@ -3520,22 +1297,17 @@
|
|
|
3520
1297
|
switch (field) {
|
|
3521
1298
|
case 1:
|
|
3522
1299
|
var value = /** @type {string} */ (reader.readString());
|
|
3523
|
-
msg.
|
|
1300
|
+
msg.setEventName(value);
|
|
3524
1301
|
break;
|
|
3525
1302
|
case 2:
|
|
3526
1303
|
var value = /** @type {string} */ (reader.readString());
|
|
3527
|
-
msg.
|
|
1304
|
+
msg.setDetails(value);
|
|
3528
1305
|
break;
|
|
3529
1306
|
case 3:
|
|
3530
1307
|
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
3531
1308
|
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
3532
1309
|
msg.setTimestamp(value);
|
|
3533
1310
|
break;
|
|
3534
|
-
case 10:
|
|
3535
|
-
var value = new proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction;
|
|
3536
|
-
reader.readMessage(value,proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction.deserializeBinaryFromReader);
|
|
3537
|
-
msg.setChainTransaction(value);
|
|
3538
|
-
break;
|
|
3539
1311
|
default:
|
|
3540
1312
|
reader.skipField();
|
|
3541
1313
|
break;
|
|
@@ -3549,9 +1321,9 @@
|
|
|
3549
1321
|
* Serializes the message to binary data (in protobuf wire format).
|
|
3550
1322
|
* @return {!Uint8Array}
|
|
3551
1323
|
*/
|
|
3552
|
-
proto.gateway.parallax.v1.
|
|
1324
|
+
proto.gateway.parallax.v1.CreateTraceRequest.Event.prototype.serializeBinary = function() {
|
|
3553
1325
|
var writer = new jspb.BinaryWriter();
|
|
3554
|
-
proto.gateway.parallax.v1.
|
|
1326
|
+
proto.gateway.parallax.v1.CreateTraceRequest.Event.serializeBinaryToWriter(this, writer);
|
|
3555
1327
|
return writer.getResultBuffer();
|
|
3556
1328
|
};
|
|
3557
1329
|
|
|
@@ -3559,21 +1331,21 @@
|
|
|
3559
1331
|
/**
|
|
3560
1332
|
* Serializes the given message to binary data (in protobuf wire
|
|
3561
1333
|
* format), writing to the given BinaryWriter.
|
|
3562
|
-
* @param {!proto.gateway.parallax.v1.
|
|
1334
|
+
* @param {!proto.gateway.parallax.v1.CreateTraceRequest.Event} message
|
|
3563
1335
|
* @param {!jspb.BinaryWriter} writer
|
|
3564
1336
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3565
1337
|
*/
|
|
3566
|
-
proto.gateway.parallax.v1.
|
|
1338
|
+
proto.gateway.parallax.v1.CreateTraceRequest.Event.serializeBinaryToWriter = function(message, writer) {
|
|
3567
1339
|
var f = undefined;
|
|
3568
|
-
f = message.
|
|
1340
|
+
f = message.getEventName();
|
|
3569
1341
|
if (f.length > 0) {
|
|
3570
1342
|
writer.writeString(
|
|
3571
1343
|
1,
|
|
3572
1344
|
f
|
|
3573
1345
|
);
|
|
3574
1346
|
}
|
|
3575
|
-
f =
|
|
3576
|
-
if (f
|
|
1347
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
|
1348
|
+
if (f != null) {
|
|
3577
1349
|
writer.writeString(
|
|
3578
1350
|
2,
|
|
3579
1351
|
f
|
|
@@ -3587,275 +1359,241 @@
|
|
|
3587
1359
|
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
3588
1360
|
);
|
|
3589
1361
|
}
|
|
3590
|
-
f = message.getChainTransaction();
|
|
3591
|
-
if (f != null) {
|
|
3592
|
-
writer.writeMessage(
|
|
3593
|
-
10,
|
|
3594
|
-
f,
|
|
3595
|
-
proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction.serializeBinaryToWriter
|
|
3596
|
-
);
|
|
3597
|
-
}
|
|
3598
1362
|
};
|
|
3599
1363
|
|
|
3600
1364
|
|
|
1365
|
+
/**
|
|
1366
|
+
* optional string event_name = 1;
|
|
1367
|
+
* @return {string}
|
|
1368
|
+
*/
|
|
1369
|
+
proto.gateway.parallax.v1.CreateTraceRequest.Event.prototype.getEventName = function() {
|
|
1370
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1371
|
+
};
|
|
1372
|
+
|
|
3601
1373
|
|
|
1374
|
+
/**
|
|
1375
|
+
* @param {string} value
|
|
1376
|
+
* @return {!proto.gateway.parallax.v1.CreateTraceRequest.Event} returns this
|
|
1377
|
+
*/
|
|
1378
|
+
proto.gateway.parallax.v1.CreateTraceRequest.Event.prototype.setEventName = function(value) {
|
|
1379
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1380
|
+
};
|
|
3602
1381
|
|
|
3603
1382
|
|
|
3604
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3605
1383
|
/**
|
|
3606
|
-
*
|
|
3607
|
-
*
|
|
3608
|
-
* Optional fields that are not set will be set to undefined.
|
|
3609
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3610
|
-
* For the list of reserved names please see:
|
|
3611
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3612
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3613
|
-
* JSPB instance for transitional soy proto support:
|
|
3614
|
-
* http://goto/soy-param-migration
|
|
3615
|
-
* @return {!Object}
|
|
1384
|
+
* optional string details = 2;
|
|
1385
|
+
* @return {string}
|
|
3616
1386
|
*/
|
|
3617
|
-
proto.gateway.parallax.v1.
|
|
3618
|
-
return
|
|
1387
|
+
proto.gateway.parallax.v1.CreateTraceRequest.Event.prototype.getDetails = function() {
|
|
1388
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
3619
1389
|
};
|
|
3620
1390
|
|
|
3621
1391
|
|
|
3622
1392
|
/**
|
|
3623
|
-
*
|
|
3624
|
-
* @
|
|
3625
|
-
* the JSPB instance for transitional soy proto support:
|
|
3626
|
-
* http://goto/soy-param-migration
|
|
3627
|
-
* @param {!proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction} msg The msg instance to transform.
|
|
3628
|
-
* @return {!Object}
|
|
3629
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1393
|
+
* @param {string} value
|
|
1394
|
+
* @return {!proto.gateway.parallax.v1.CreateTraceRequest.Event} returns this
|
|
3630
1395
|
*/
|
|
3631
|
-
proto.gateway.parallax.v1.
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
chainId: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
3635
|
-
};
|
|
1396
|
+
proto.gateway.parallax.v1.CreateTraceRequest.Event.prototype.setDetails = function(value) {
|
|
1397
|
+
return jspb.Message.setField(this, 2, value);
|
|
1398
|
+
};
|
|
3636
1399
|
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
1400
|
+
|
|
1401
|
+
/**
|
|
1402
|
+
* Clears the field making it undefined.
|
|
1403
|
+
* @return {!proto.gateway.parallax.v1.CreateTraceRequest.Event} returns this
|
|
1404
|
+
*/
|
|
1405
|
+
proto.gateway.parallax.v1.CreateTraceRequest.Event.prototype.clearDetails = function() {
|
|
1406
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
3641
1407
|
};
|
|
3642
|
-
}
|
|
3643
1408
|
|
|
3644
1409
|
|
|
3645
1410
|
/**
|
|
3646
|
-
*
|
|
3647
|
-
* @
|
|
3648
|
-
* @return {!proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction}
|
|
1411
|
+
* Returns whether this field is set.
|
|
1412
|
+
* @return {boolean}
|
|
3649
1413
|
*/
|
|
3650
|
-
proto.gateway.parallax.v1.
|
|
3651
|
-
|
|
3652
|
-
var msg = new proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction;
|
|
3653
|
-
return proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction.deserializeBinaryFromReader(msg, reader);
|
|
1414
|
+
proto.gateway.parallax.v1.CreateTraceRequest.Event.prototype.hasDetails = function() {
|
|
1415
|
+
return jspb.Message.getField(this, 2) != null;
|
|
3654
1416
|
};
|
|
3655
1417
|
|
|
3656
1418
|
|
|
3657
1419
|
/**
|
|
3658
|
-
*
|
|
3659
|
-
*
|
|
3660
|
-
* @param {!proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction} msg The message object to deserialize into.
|
|
3661
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3662
|
-
* @return {!proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction}
|
|
1420
|
+
* optional google.protobuf.Timestamp timestamp = 3;
|
|
1421
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
3663
1422
|
*/
|
|
3664
|
-
proto.gateway.parallax.v1.
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
break;
|
|
3668
|
-
}
|
|
3669
|
-
var field = reader.getFieldNumber();
|
|
3670
|
-
switch (field) {
|
|
3671
|
-
case 1:
|
|
3672
|
-
var value = /** @type {string} */ (reader.readString());
|
|
3673
|
-
msg.setTxHash(value);
|
|
3674
|
-
break;
|
|
3675
|
-
case 2:
|
|
3676
|
-
var value = /** @type {number} */ (reader.readUint64());
|
|
3677
|
-
msg.setChainId(value);
|
|
3678
|
-
break;
|
|
3679
|
-
default:
|
|
3680
|
-
reader.skipField();
|
|
3681
|
-
break;
|
|
3682
|
-
}
|
|
3683
|
-
}
|
|
3684
|
-
return msg;
|
|
1423
|
+
proto.gateway.parallax.v1.CreateTraceRequest.Event.prototype.getTimestamp = function() {
|
|
1424
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
1425
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
|
|
3685
1426
|
};
|
|
3686
1427
|
|
|
3687
1428
|
|
|
3688
1429
|
/**
|
|
3689
|
-
*
|
|
3690
|
-
* @return {!
|
|
1430
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
1431
|
+
* @return {!proto.gateway.parallax.v1.CreateTraceRequest.Event} returns this
|
|
1432
|
+
*/
|
|
1433
|
+
proto.gateway.parallax.v1.CreateTraceRequest.Event.prototype.setTimestamp = function(value) {
|
|
1434
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
1435
|
+
};
|
|
1436
|
+
|
|
1437
|
+
|
|
1438
|
+
/**
|
|
1439
|
+
* Clears the message field making it undefined.
|
|
1440
|
+
* @return {!proto.gateway.parallax.v1.CreateTraceRequest.Event} returns this
|
|
3691
1441
|
*/
|
|
3692
|
-
proto.gateway.parallax.v1.
|
|
3693
|
-
|
|
3694
|
-
proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction.serializeBinaryToWriter(this, writer);
|
|
3695
|
-
return writer.getResultBuffer();
|
|
1442
|
+
proto.gateway.parallax.v1.CreateTraceRequest.Event.prototype.clearTimestamp = function() {
|
|
1443
|
+
return this.setTimestamp(undefined);
|
|
3696
1444
|
};
|
|
3697
1445
|
|
|
3698
1446
|
|
|
3699
1447
|
/**
|
|
3700
|
-
*
|
|
3701
|
-
*
|
|
3702
|
-
* @param {!proto.gateway.parallax.v1.AddSpanHintRequest.ChainTransaction} message
|
|
3703
|
-
* @param {!jspb.BinaryWriter} writer
|
|
3704
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1448
|
+
* Returns whether this field is set.
|
|
1449
|
+
* @return {boolean}
|
|
3705
1450
|
*/
|
|
3706
|
-
proto.gateway.parallax.v1.
|
|
3707
|
-
|
|
3708
|
-
f = message.getTxHash();
|
|
3709
|
-
if (f.length > 0) {
|
|
3710
|
-
writer.writeString(
|
|
3711
|
-
1,
|
|
3712
|
-
f
|
|
3713
|
-
);
|
|
3714
|
-
}
|
|
3715
|
-
f = message.getChainId();
|
|
3716
|
-
if (f !== 0) {
|
|
3717
|
-
writer.writeUint64(
|
|
3718
|
-
2,
|
|
3719
|
-
f
|
|
3720
|
-
);
|
|
3721
|
-
}
|
|
1451
|
+
proto.gateway.parallax.v1.CreateTraceRequest.Event.prototype.hasTimestamp = function() {
|
|
1452
|
+
return jspb.Message.getField(this, 3) != null;
|
|
3722
1453
|
};
|
|
3723
1454
|
|
|
3724
1455
|
|
|
3725
1456
|
/**
|
|
3726
|
-
* optional string
|
|
1457
|
+
* optional string name = 1;
|
|
3727
1458
|
* @return {string}
|
|
3728
1459
|
*/
|
|
3729
|
-
proto.gateway.parallax.v1.
|
|
1460
|
+
proto.gateway.parallax.v1.CreateTraceRequest.prototype.getName = function() {
|
|
3730
1461
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
3731
1462
|
};
|
|
3732
1463
|
|
|
3733
1464
|
|
|
3734
1465
|
/**
|
|
3735
1466
|
* @param {string} value
|
|
3736
|
-
* @return {!proto.gateway.parallax.v1.
|
|
1467
|
+
* @return {!proto.gateway.parallax.v1.CreateTraceRequest} returns this
|
|
3737
1468
|
*/
|
|
3738
|
-
proto.gateway.parallax.v1.
|
|
1469
|
+
proto.gateway.parallax.v1.CreateTraceRequest.prototype.setName = function(value) {
|
|
3739
1470
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
3740
1471
|
};
|
|
3741
1472
|
|
|
3742
1473
|
|
|
3743
1474
|
/**
|
|
3744
|
-
*
|
|
3745
|
-
* @
|
|
1475
|
+
* map<string, string> attributes = 2;
|
|
1476
|
+
* @param {boolean=} opt_noLazyCreate Do not create the map if
|
|
1477
|
+
* empty, instead returning `undefined`
|
|
1478
|
+
* @return {!jspb.Map<string,string>}
|
|
3746
1479
|
*/
|
|
3747
|
-
proto.gateway.parallax.v1.
|
|
3748
|
-
return /** @type {
|
|
1480
|
+
proto.gateway.parallax.v1.CreateTraceRequest.prototype.getAttributesMap = function(opt_noLazyCreate) {
|
|
1481
|
+
return /** @type {!jspb.Map<string,string>} */ (
|
|
1482
|
+
jspb.Message.getMapField(this, 2, opt_noLazyCreate,
|
|
1483
|
+
null));
|
|
3749
1484
|
};
|
|
3750
1485
|
|
|
3751
1486
|
|
|
3752
1487
|
/**
|
|
3753
|
-
*
|
|
3754
|
-
* @return {!proto.gateway.parallax.v1.
|
|
1488
|
+
* Clears values from the map. The map will be non-null.
|
|
1489
|
+
* @return {!proto.gateway.parallax.v1.CreateTraceRequest} returns this
|
|
3755
1490
|
*/
|
|
3756
|
-
proto.gateway.parallax.v1.
|
|
3757
|
-
|
|
1491
|
+
proto.gateway.parallax.v1.CreateTraceRequest.prototype.clearAttributesMap = function() {
|
|
1492
|
+
this.getAttributesMap().clear();
|
|
1493
|
+
return this;
|
|
3758
1494
|
};
|
|
3759
1495
|
|
|
3760
1496
|
|
|
3761
1497
|
/**
|
|
3762
|
-
*
|
|
3763
|
-
* @return {string}
|
|
1498
|
+
* repeated string tags = 3;
|
|
1499
|
+
* @return {!Array<string>}
|
|
3764
1500
|
*/
|
|
3765
|
-
proto.gateway.parallax.v1.
|
|
3766
|
-
return /** @type {string} */ (jspb.Message.
|
|
1501
|
+
proto.gateway.parallax.v1.CreateTraceRequest.prototype.getTagsList = function() {
|
|
1502
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
|
|
3767
1503
|
};
|
|
3768
1504
|
|
|
3769
1505
|
|
|
3770
1506
|
/**
|
|
3771
|
-
* @param {string} value
|
|
3772
|
-
* @return {!proto.gateway.parallax.v1.
|
|
1507
|
+
* @param {!Array<string>} value
|
|
1508
|
+
* @return {!proto.gateway.parallax.v1.CreateTraceRequest} returns this
|
|
3773
1509
|
*/
|
|
3774
|
-
proto.gateway.parallax.v1.
|
|
3775
|
-
return jspb.Message.
|
|
1510
|
+
proto.gateway.parallax.v1.CreateTraceRequest.prototype.setTagsList = function(value) {
|
|
1511
|
+
return jspb.Message.setField(this, 3, value || []);
|
|
3776
1512
|
};
|
|
3777
1513
|
|
|
3778
1514
|
|
|
3779
1515
|
/**
|
|
3780
|
-
*
|
|
3781
|
-
* @
|
|
1516
|
+
* @param {string} value
|
|
1517
|
+
* @param {number=} opt_index
|
|
1518
|
+
* @return {!proto.gateway.parallax.v1.CreateTraceRequest} returns this
|
|
3782
1519
|
*/
|
|
3783
|
-
proto.gateway.parallax.v1.
|
|
3784
|
-
return
|
|
1520
|
+
proto.gateway.parallax.v1.CreateTraceRequest.prototype.addTags = function(value, opt_index) {
|
|
1521
|
+
return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
|
|
3785
1522
|
};
|
|
3786
1523
|
|
|
3787
1524
|
|
|
3788
1525
|
/**
|
|
3789
|
-
*
|
|
3790
|
-
* @return {!proto.gateway.parallax.v1.
|
|
1526
|
+
* Clears the list making it empty but non-null.
|
|
1527
|
+
* @return {!proto.gateway.parallax.v1.CreateTraceRequest} returns this
|
|
3791
1528
|
*/
|
|
3792
|
-
proto.gateway.parallax.v1.
|
|
3793
|
-
return
|
|
1529
|
+
proto.gateway.parallax.v1.CreateTraceRequest.prototype.clearTagsList = function() {
|
|
1530
|
+
return this.setTagsList([]);
|
|
3794
1531
|
};
|
|
3795
1532
|
|
|
3796
1533
|
|
|
3797
1534
|
/**
|
|
3798
|
-
*
|
|
3799
|
-
* @return {
|
|
1535
|
+
* repeated Event events = 4;
|
|
1536
|
+
* @return {!Array<!proto.gateway.parallax.v1.CreateTraceRequest.Event>}
|
|
3800
1537
|
*/
|
|
3801
|
-
proto.gateway.parallax.v1.
|
|
3802
|
-
return /** @type{
|
|
3803
|
-
jspb.Message.
|
|
1538
|
+
proto.gateway.parallax.v1.CreateTraceRequest.prototype.getEventsList = function() {
|
|
1539
|
+
return /** @type{!Array<!proto.gateway.parallax.v1.CreateTraceRequest.Event>} */ (
|
|
1540
|
+
jspb.Message.getRepeatedWrapperField(this, proto.gateway.parallax.v1.CreateTraceRequest.Event, 4));
|
|
3804
1541
|
};
|
|
3805
1542
|
|
|
3806
1543
|
|
|
3807
1544
|
/**
|
|
3808
|
-
* @param {
|
|
3809
|
-
* @return {!proto.gateway.parallax.v1.
|
|
1545
|
+
* @param {!Array<!proto.gateway.parallax.v1.CreateTraceRequest.Event>} value
|
|
1546
|
+
* @return {!proto.gateway.parallax.v1.CreateTraceRequest} returns this
|
|
3810
1547
|
*/
|
|
3811
|
-
proto.gateway.parallax.v1.
|
|
3812
|
-
return jspb.Message.
|
|
1548
|
+
proto.gateway.parallax.v1.CreateTraceRequest.prototype.setEventsList = function(value) {
|
|
1549
|
+
return jspb.Message.setRepeatedWrapperField(this, 4, value);
|
|
3813
1550
|
};
|
|
3814
1551
|
|
|
3815
1552
|
|
|
3816
1553
|
/**
|
|
3817
|
-
*
|
|
3818
|
-
* @
|
|
1554
|
+
* @param {!proto.gateway.parallax.v1.CreateTraceRequest.Event=} opt_value
|
|
1555
|
+
* @param {number=} opt_index
|
|
1556
|
+
* @return {!proto.gateway.parallax.v1.CreateTraceRequest.Event}
|
|
3819
1557
|
*/
|
|
3820
|
-
proto.gateway.parallax.v1.
|
|
3821
|
-
return this.
|
|
1558
|
+
proto.gateway.parallax.v1.CreateTraceRequest.prototype.addEvents = function(opt_value, opt_index) {
|
|
1559
|
+
return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.gateway.parallax.v1.CreateTraceRequest.Event, opt_index);
|
|
3822
1560
|
};
|
|
3823
1561
|
|
|
3824
1562
|
|
|
3825
1563
|
/**
|
|
3826
|
-
*
|
|
3827
|
-
* @return {
|
|
1564
|
+
* Clears the list making it empty but non-null.
|
|
1565
|
+
* @return {!proto.gateway.parallax.v1.CreateTraceRequest} returns this
|
|
3828
1566
|
*/
|
|
3829
|
-
proto.gateway.parallax.v1.
|
|
3830
|
-
return
|
|
1567
|
+
proto.gateway.parallax.v1.CreateTraceRequest.prototype.clearEventsList = function() {
|
|
1568
|
+
return this.setEventsList([]);
|
|
3831
1569
|
};
|
|
3832
1570
|
|
|
3833
1571
|
|
|
3834
1572
|
/**
|
|
3835
|
-
* optional
|
|
3836
|
-
* @return {?proto.gateway.parallax.v1.
|
|
1573
|
+
* optional TxHashHint tx_hash_hint = 5;
|
|
1574
|
+
* @return {?proto.gateway.parallax.v1.CreateTraceRequest.TxHashHint}
|
|
3837
1575
|
*/
|
|
3838
|
-
proto.gateway.parallax.v1.
|
|
3839
|
-
return /** @type{?proto.gateway.parallax.v1.
|
|
3840
|
-
jspb.Message.getWrapperField(this, proto.gateway.parallax.v1.
|
|
1576
|
+
proto.gateway.parallax.v1.CreateTraceRequest.prototype.getTxHashHint = function() {
|
|
1577
|
+
return /** @type{?proto.gateway.parallax.v1.CreateTraceRequest.TxHashHint} */ (
|
|
1578
|
+
jspb.Message.getWrapperField(this, proto.gateway.parallax.v1.CreateTraceRequest.TxHashHint, 5));
|
|
3841
1579
|
};
|
|
3842
1580
|
|
|
3843
1581
|
|
|
3844
1582
|
/**
|
|
3845
|
-
* @param {?proto.gateway.parallax.v1.
|
|
3846
|
-
* @return {!proto.gateway.parallax.v1.
|
|
1583
|
+
* @param {?proto.gateway.parallax.v1.CreateTraceRequest.TxHashHint|undefined} value
|
|
1584
|
+
* @return {!proto.gateway.parallax.v1.CreateTraceRequest} returns this
|
|
3847
1585
|
*/
|
|
3848
|
-
proto.gateway.parallax.v1.
|
|
3849
|
-
return jspb.Message.
|
|
1586
|
+
proto.gateway.parallax.v1.CreateTraceRequest.prototype.setTxHashHint = function(value) {
|
|
1587
|
+
return jspb.Message.setWrapperField(this, 5, value);
|
|
3850
1588
|
};
|
|
3851
1589
|
|
|
3852
1590
|
|
|
3853
1591
|
/**
|
|
3854
1592
|
* Clears the message field making it undefined.
|
|
3855
|
-
* @return {!proto.gateway.parallax.v1.
|
|
1593
|
+
* @return {!proto.gateway.parallax.v1.CreateTraceRequest} returns this
|
|
3856
1594
|
*/
|
|
3857
|
-
proto.gateway.parallax.v1.
|
|
3858
|
-
return this.
|
|
1595
|
+
proto.gateway.parallax.v1.CreateTraceRequest.prototype.clearTxHashHint = function() {
|
|
1596
|
+
return this.setTxHashHint(undefined);
|
|
3859
1597
|
};
|
|
3860
1598
|
|
|
3861
1599
|
|
|
@@ -3863,8 +1601,8 @@
|
|
|
3863
1601
|
* Returns whether this field is set.
|
|
3864
1602
|
* @return {boolean}
|
|
3865
1603
|
*/
|
|
3866
|
-
proto.gateway.parallax.v1.
|
|
3867
|
-
return jspb.Message.getField(this,
|
|
1604
|
+
proto.gateway.parallax.v1.CreateTraceRequest.prototype.hasTxHashHint = function() {
|
|
1605
|
+
return jspb.Message.getField(this, 5) != null;
|
|
3868
1606
|
};
|
|
3869
1607
|
|
|
3870
1608
|
|
|
@@ -3884,8 +1622,8 @@
|
|
|
3884
1622
|
* http://goto/soy-param-migration
|
|
3885
1623
|
* @return {!Object}
|
|
3886
1624
|
*/
|
|
3887
|
-
proto.gateway.parallax.v1.
|
|
3888
|
-
return proto.gateway.parallax.v1.
|
|
1625
|
+
proto.gateway.parallax.v1.CreateTraceResponse.prototype.toObject = function(opt_includeInstance) {
|
|
1626
|
+
return proto.gateway.parallax.v1.CreateTraceResponse.toObject(opt_includeInstance, this);
|
|
3889
1627
|
};
|
|
3890
1628
|
|
|
3891
1629
|
|
|
@@ -3894,13 +1632,14 @@
|
|
|
3894
1632
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3895
1633
|
* the JSPB instance for transitional soy proto support:
|
|
3896
1634
|
* http://goto/soy-param-migration
|
|
3897
|
-
* @param {!proto.gateway.parallax.v1.
|
|
1635
|
+
* @param {!proto.gateway.parallax.v1.CreateTraceResponse} msg The msg instance to transform.
|
|
3898
1636
|
* @return {!Object}
|
|
3899
1637
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3900
1638
|
*/
|
|
3901
|
-
proto.gateway.parallax.v1.
|
|
1639
|
+
proto.gateway.parallax.v1.CreateTraceResponse.toObject = function(includeInstance, msg) {
|
|
3902
1640
|
var f, obj = {
|
|
3903
|
-
status: (f = msg.getStatus()) && proto_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f)
|
|
1641
|
+
status: (f = msg.getStatus()) && proto_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
|
|
1642
|
+
traceId: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
3904
1643
|
};
|
|
3905
1644
|
|
|
3906
1645
|
if (includeInstance) {
|
|
@@ -3914,23 +1653,23 @@
|
|
|
3914
1653
|
/**
|
|
3915
1654
|
* Deserializes binary data (in protobuf wire format).
|
|
3916
1655
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3917
|
-
* @return {!proto.gateway.parallax.v1.
|
|
1656
|
+
* @return {!proto.gateway.parallax.v1.CreateTraceResponse}
|
|
3918
1657
|
*/
|
|
3919
|
-
proto.gateway.parallax.v1.
|
|
1658
|
+
proto.gateway.parallax.v1.CreateTraceResponse.deserializeBinary = function(bytes) {
|
|
3920
1659
|
var reader = new jspb.BinaryReader(bytes);
|
|
3921
|
-
var msg = new proto.gateway.parallax.v1.
|
|
3922
|
-
return proto.gateway.parallax.v1.
|
|
1660
|
+
var msg = new proto.gateway.parallax.v1.CreateTraceResponse;
|
|
1661
|
+
return proto.gateway.parallax.v1.CreateTraceResponse.deserializeBinaryFromReader(msg, reader);
|
|
3923
1662
|
};
|
|
3924
1663
|
|
|
3925
1664
|
|
|
3926
1665
|
/**
|
|
3927
1666
|
* Deserializes binary data (in protobuf wire format) from the
|
|
3928
1667
|
* given reader into the given message object.
|
|
3929
|
-
* @param {!proto.gateway.parallax.v1.
|
|
1668
|
+
* @param {!proto.gateway.parallax.v1.CreateTraceResponse} msg The message object to deserialize into.
|
|
3930
1669
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3931
|
-
* @return {!proto.gateway.parallax.v1.
|
|
1670
|
+
* @return {!proto.gateway.parallax.v1.CreateTraceResponse}
|
|
3932
1671
|
*/
|
|
3933
|
-
proto.gateway.parallax.v1.
|
|
1672
|
+
proto.gateway.parallax.v1.CreateTraceResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
3934
1673
|
while (reader.nextField()) {
|
|
3935
1674
|
if (reader.isEndGroup()) {
|
|
3936
1675
|
break;
|
|
@@ -3942,6 +1681,10 @@
|
|
|
3942
1681
|
reader.readMessage(value,proto_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
|
|
3943
1682
|
msg.setStatus(value);
|
|
3944
1683
|
break;
|
|
1684
|
+
case 2:
|
|
1685
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1686
|
+
msg.setTraceId(value);
|
|
1687
|
+
break;
|
|
3945
1688
|
default:
|
|
3946
1689
|
reader.skipField();
|
|
3947
1690
|
break;
|
|
@@ -3955,9 +1698,9 @@
|
|
|
3955
1698
|
* Serializes the message to binary data (in protobuf wire format).
|
|
3956
1699
|
* @return {!Uint8Array}
|
|
3957
1700
|
*/
|
|
3958
|
-
proto.gateway.parallax.v1.
|
|
1701
|
+
proto.gateway.parallax.v1.CreateTraceResponse.prototype.serializeBinary = function() {
|
|
3959
1702
|
var writer = new jspb.BinaryWriter();
|
|
3960
|
-
proto.gateway.parallax.v1.
|
|
1703
|
+
proto.gateway.parallax.v1.CreateTraceResponse.serializeBinaryToWriter(this, writer);
|
|
3961
1704
|
return writer.getResultBuffer();
|
|
3962
1705
|
};
|
|
3963
1706
|
|
|
@@ -3965,11 +1708,11 @@
|
|
|
3965
1708
|
/**
|
|
3966
1709
|
* Serializes the given message to binary data (in protobuf wire
|
|
3967
1710
|
* format), writing to the given BinaryWriter.
|
|
3968
|
-
* @param {!proto.gateway.parallax.v1.
|
|
1711
|
+
* @param {!proto.gateway.parallax.v1.CreateTraceResponse} message
|
|
3969
1712
|
* @param {!jspb.BinaryWriter} writer
|
|
3970
1713
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3971
1714
|
*/
|
|
3972
|
-
proto.gateway.parallax.v1.
|
|
1715
|
+
proto.gateway.parallax.v1.CreateTraceResponse.serializeBinaryToWriter = function(message, writer) {
|
|
3973
1716
|
var f = undefined;
|
|
3974
1717
|
f = message.getStatus();
|
|
3975
1718
|
if (f != null) {
|
|
@@ -3979,6 +1722,13 @@
|
|
|
3979
1722
|
proto_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
|
|
3980
1723
|
);
|
|
3981
1724
|
}
|
|
1725
|
+
f = message.getTraceId();
|
|
1726
|
+
if (f.length > 0) {
|
|
1727
|
+
writer.writeString(
|
|
1728
|
+
2,
|
|
1729
|
+
f
|
|
1730
|
+
);
|
|
1731
|
+
}
|
|
3982
1732
|
};
|
|
3983
1733
|
|
|
3984
1734
|
|
|
@@ -3986,7 +1736,7 @@
|
|
|
3986
1736
|
* optional common.v1.ResponseStatus status = 1;
|
|
3987
1737
|
* @return {?proto.common.v1.ResponseStatus}
|
|
3988
1738
|
*/
|
|
3989
|
-
proto.gateway.parallax.v1.
|
|
1739
|
+
proto.gateway.parallax.v1.CreateTraceResponse.prototype.getStatus = function() {
|
|
3990
1740
|
return /** @type{?proto.common.v1.ResponseStatus} */ (
|
|
3991
1741
|
jspb.Message.getWrapperField(this, proto_common_v1_status_pb.ResponseStatus, 1));
|
|
3992
1742
|
};
|
|
@@ -3994,18 +1744,18 @@
|
|
|
3994
1744
|
|
|
3995
1745
|
/**
|
|
3996
1746
|
* @param {?proto.common.v1.ResponseStatus|undefined} value
|
|
3997
|
-
* @return {!proto.gateway.parallax.v1.
|
|
1747
|
+
* @return {!proto.gateway.parallax.v1.CreateTraceResponse} returns this
|
|
3998
1748
|
*/
|
|
3999
|
-
proto.gateway.parallax.v1.
|
|
1749
|
+
proto.gateway.parallax.v1.CreateTraceResponse.prototype.setStatus = function(value) {
|
|
4000
1750
|
return jspb.Message.setWrapperField(this, 1, value);
|
|
4001
1751
|
};
|
|
4002
1752
|
|
|
4003
1753
|
|
|
4004
1754
|
/**
|
|
4005
1755
|
* Clears the message field making it undefined.
|
|
4006
|
-
* @return {!proto.gateway.parallax.v1.
|
|
1756
|
+
* @return {!proto.gateway.parallax.v1.CreateTraceResponse} returns this
|
|
4007
1757
|
*/
|
|
4008
|
-
proto.gateway.parallax.v1.
|
|
1758
|
+
proto.gateway.parallax.v1.CreateTraceResponse.prototype.clearStatus = function() {
|
|
4009
1759
|
return this.setStatus(undefined);
|
|
4010
1760
|
};
|
|
4011
1761
|
|
|
@@ -4014,11 +1764,29 @@
|
|
|
4014
1764
|
* Returns whether this field is set.
|
|
4015
1765
|
* @return {boolean}
|
|
4016
1766
|
*/
|
|
4017
|
-
proto.gateway.parallax.v1.
|
|
1767
|
+
proto.gateway.parallax.v1.CreateTraceResponse.prototype.hasStatus = function() {
|
|
4018
1768
|
return jspb.Message.getField(this, 1) != null;
|
|
4019
1769
|
};
|
|
4020
1770
|
|
|
4021
1771
|
|
|
1772
|
+
/**
|
|
1773
|
+
* optional string trace_id = 2;
|
|
1774
|
+
* @return {string}
|
|
1775
|
+
*/
|
|
1776
|
+
proto.gateway.parallax.v1.CreateTraceResponse.prototype.getTraceId = function() {
|
|
1777
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
1778
|
+
};
|
|
1779
|
+
|
|
1780
|
+
|
|
1781
|
+
/**
|
|
1782
|
+
* @param {string} value
|
|
1783
|
+
* @return {!proto.gateway.parallax.v1.CreateTraceResponse} returns this
|
|
1784
|
+
*/
|
|
1785
|
+
proto.gateway.parallax.v1.CreateTraceResponse.prototype.setTraceId = function(value) {
|
|
1786
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
1787
|
+
};
|
|
1788
|
+
|
|
1789
|
+
|
|
4022
1790
|
goog.object.extend(exports$1, proto.gateway.parallax.v1);
|
|
4023
1791
|
} (parallax_gateway_pb));
|
|
4024
1792
|
return parallax_gateway_pb;
|
|
@@ -4133,46 +1901,6 @@
|
|
|
4133
1901
|
return request.serializeBinary();
|
|
4134
1902
|
}, parallax_gateway_pbExports.CreateTraceResponse.deserializeBinary)
|
|
4135
1903
|
});
|
|
4136
|
-
Object.defineProperty(this, "methodDescriptorStartSpan", {
|
|
4137
|
-
enumerable: true,
|
|
4138
|
-
configurable: true,
|
|
4139
|
-
writable: true,
|
|
4140
|
-
value: new grpcWebExports.MethodDescriptor('/gateway.parallax.v1.ParallaxGatewayService/StartSpan', grpcWebExports.MethodType.UNARY, parallax_gateway_pbExports.StartSpanRequest, parallax_gateway_pbExports.StartSpanResponse, (request) => {
|
|
4141
|
-
return request.serializeBinary();
|
|
4142
|
-
}, parallax_gateway_pbExports.StartSpanResponse.deserializeBinary)
|
|
4143
|
-
});
|
|
4144
|
-
Object.defineProperty(this, "methodDescriptorFinishSpan", {
|
|
4145
|
-
enumerable: true,
|
|
4146
|
-
configurable: true,
|
|
4147
|
-
writable: true,
|
|
4148
|
-
value: new grpcWebExports.MethodDescriptor('/gateway.parallax.v1.ParallaxGatewayService/FinishSpan', grpcWebExports.MethodType.UNARY, parallax_gateway_pbExports.FinishSpanRequest, parallax_gateway_pbExports.FinishSpanResponse, (request) => {
|
|
4149
|
-
return request.serializeBinary();
|
|
4150
|
-
}, parallax_gateway_pbExports.FinishSpanResponse.deserializeBinary)
|
|
4151
|
-
});
|
|
4152
|
-
Object.defineProperty(this, "methodDescriptorAddSpanEvent", {
|
|
4153
|
-
enumerable: true,
|
|
4154
|
-
configurable: true,
|
|
4155
|
-
writable: true,
|
|
4156
|
-
value: new grpcWebExports.MethodDescriptor('/gateway.parallax.v1.ParallaxGatewayService/AddSpanEvent', grpcWebExports.MethodType.UNARY, parallax_gateway_pbExports.AddSpanEventRequest, parallax_gateway_pbExports.AddSpanEventResponse, (request) => {
|
|
4157
|
-
return request.serializeBinary();
|
|
4158
|
-
}, parallax_gateway_pbExports.AddSpanEventResponse.deserializeBinary)
|
|
4159
|
-
});
|
|
4160
|
-
Object.defineProperty(this, "methodDescriptorAddSpanError", {
|
|
4161
|
-
enumerable: true,
|
|
4162
|
-
configurable: true,
|
|
4163
|
-
writable: true,
|
|
4164
|
-
value: new grpcWebExports.MethodDescriptor('/gateway.parallax.v1.ParallaxGatewayService/AddSpanError', grpcWebExports.MethodType.UNARY, parallax_gateway_pbExports.AddSpanErrorRequest, parallax_gateway_pbExports.AddSpanErrorResponse, (request) => {
|
|
4165
|
-
return request.serializeBinary();
|
|
4166
|
-
}, parallax_gateway_pbExports.AddSpanErrorResponse.deserializeBinary)
|
|
4167
|
-
});
|
|
4168
|
-
Object.defineProperty(this, "methodDescriptorAddSpanHint", {
|
|
4169
|
-
enumerable: true,
|
|
4170
|
-
configurable: true,
|
|
4171
|
-
writable: true,
|
|
4172
|
-
value: new grpcWebExports.MethodDescriptor('/gateway.parallax.v1.ParallaxGatewayService/AddSpanHint', grpcWebExports.MethodType.UNARY, parallax_gateway_pbExports.AddSpanHintRequest, parallax_gateway_pbExports.AddSpanHintResponse, (request) => {
|
|
4173
|
-
return request.serializeBinary();
|
|
4174
|
-
}, parallax_gateway_pbExports.AddSpanHintResponse.deserializeBinary)
|
|
4175
|
-
});
|
|
4176
1904
|
if (!options)
|
|
4177
1905
|
options = {};
|
|
4178
1906
|
if (!credentials)
|
|
@@ -4191,50 +1919,12 @@
|
|
|
4191
1919
|
return this.client_.unaryCall(this.hostname_ +
|
|
4192
1920
|
'/gateway.parallax.v1.ParallaxGatewayService/CreateTrace', request, metadata || {}, this.methodDescriptorCreateTrace);
|
|
4193
1921
|
}
|
|
4194
|
-
startSpan(request, metadata, callback) {
|
|
4195
|
-
if (callback !== undefined) {
|
|
4196
|
-
return this.client_.rpcCall(this.hostname_ +
|
|
4197
|
-
'/gateway.parallax.v1.ParallaxGatewayService/StartSpan', request, metadata || {}, this.methodDescriptorStartSpan, callback);
|
|
4198
|
-
}
|
|
4199
|
-
return this.client_.unaryCall(this.hostname_ +
|
|
4200
|
-
'/gateway.parallax.v1.ParallaxGatewayService/StartSpan', request, metadata || {}, this.methodDescriptorStartSpan);
|
|
4201
|
-
}
|
|
4202
|
-
finishSpan(request, metadata, callback) {
|
|
4203
|
-
if (callback !== undefined) {
|
|
4204
|
-
return this.client_.rpcCall(this.hostname_ +
|
|
4205
|
-
'/gateway.parallax.v1.ParallaxGatewayService/FinishSpan', request, metadata || {}, this.methodDescriptorFinishSpan, callback);
|
|
4206
|
-
}
|
|
4207
|
-
return this.client_.unaryCall(this.hostname_ +
|
|
4208
|
-
'/gateway.parallax.v1.ParallaxGatewayService/FinishSpan', request, metadata || {}, this.methodDescriptorFinishSpan);
|
|
4209
|
-
}
|
|
4210
|
-
addSpanEvent(request, metadata, callback) {
|
|
4211
|
-
if (callback !== undefined) {
|
|
4212
|
-
return this.client_.rpcCall(this.hostname_ +
|
|
4213
|
-
'/gateway.parallax.v1.ParallaxGatewayService/AddSpanEvent', request, metadata || {}, this.methodDescriptorAddSpanEvent, callback);
|
|
4214
|
-
}
|
|
4215
|
-
return this.client_.unaryCall(this.hostname_ +
|
|
4216
|
-
'/gateway.parallax.v1.ParallaxGatewayService/AddSpanEvent', request, metadata || {}, this.methodDescriptorAddSpanEvent);
|
|
4217
|
-
}
|
|
4218
|
-
addSpanError(request, metadata, callback) {
|
|
4219
|
-
if (callback !== undefined) {
|
|
4220
|
-
return this.client_.rpcCall(this.hostname_ +
|
|
4221
|
-
'/gateway.parallax.v1.ParallaxGatewayService/AddSpanError', request, metadata || {}, this.methodDescriptorAddSpanError, callback);
|
|
4222
|
-
}
|
|
4223
|
-
return this.client_.unaryCall(this.hostname_ +
|
|
4224
|
-
'/gateway.parallax.v1.ParallaxGatewayService/AddSpanError', request, metadata || {}, this.methodDescriptorAddSpanError);
|
|
4225
|
-
}
|
|
4226
|
-
addSpanHint(request, metadata, callback) {
|
|
4227
|
-
if (callback !== undefined) {
|
|
4228
|
-
return this.client_.rpcCall(this.hostname_ +
|
|
4229
|
-
'/gateway.parallax.v1.ParallaxGatewayService/AddSpanHint', request, metadata || {}, this.methodDescriptorAddSpanHint, callback);
|
|
4230
|
-
}
|
|
4231
|
-
return this.client_.unaryCall(this.hostname_ +
|
|
4232
|
-
'/gateway.parallax.v1.ParallaxGatewayService/AddSpanHint', request, metadata || {}, this.methodDescriptorAddSpanHint);
|
|
4233
|
-
}
|
|
4234
1922
|
}
|
|
4235
1923
|
|
|
1924
|
+
var timestamp_pbExports = requireTimestamp_pb();
|
|
1925
|
+
|
|
4236
1926
|
// Parallax SDK Web Client
|
|
4237
|
-
const GRPC_GATEWAY_API_URL = "https://
|
|
1927
|
+
const GRPC_GATEWAY_API_URL = "https://parallax-gateway.dev.mirador.org:443";
|
|
4238
1928
|
const debugIssue = (trace, error) => {
|
|
4239
1929
|
// Handle our own debugging / logging here
|
|
4240
1930
|
console.error(`[ParallaxClient][${trace}] Error:`, error);
|
|
@@ -4407,182 +2097,206 @@
|
|
|
4407
2097
|
}
|
|
4408
2098
|
}
|
|
4409
2099
|
/**
|
|
4410
|
-
* Create a
|
|
4411
|
-
*
|
|
4412
|
-
*
|
|
4413
|
-
*
|
|
4414
|
-
*
|
|
4415
|
-
*
|
|
4416
|
-
*
|
|
2100
|
+
* Create a new trace builder
|
|
2101
|
+
*
|
|
2102
|
+
* Example usage:
|
|
2103
|
+
* ```typescript
|
|
2104
|
+
* const response = await client.trace("swap_execution")
|
|
2105
|
+
* .addAttribute("user", "0xabc...")
|
|
2106
|
+
* .addAttribute("slippage_bps", 25)
|
|
2107
|
+
* .addTag("dex")
|
|
2108
|
+
* .addTag("swap")
|
|
2109
|
+
* .addEvent("wallet_connected", { wallet: "MetaMask" })
|
|
2110
|
+
* .addEvent("quote_received")
|
|
2111
|
+
* .submit("0x123...", "ethereum");
|
|
2112
|
+
* ```
|
|
2113
|
+
*
|
|
2114
|
+
* @param name The name of the trace
|
|
2115
|
+
* @param includeClientMeta Optional flag to automatically include client metadata
|
|
2116
|
+
* @returns A ParallaxTrace builder instance
|
|
4417
2117
|
*/
|
|
4418
|
-
|
|
4419
|
-
|
|
4420
|
-
startSpanReq.setTraceId(traceId);
|
|
4421
|
-
startSpanReq.setName(name);
|
|
4422
|
-
if (parentSpanId) {
|
|
4423
|
-
startSpanReq.setParentSpanId(parentSpanId);
|
|
4424
|
-
}
|
|
4425
|
-
const spanAttrs = startSpanReq.getAttributesMap();
|
|
4426
|
-
if (attr) {
|
|
4427
|
-
Object.entries(attr).forEach(([key, value]) => {
|
|
4428
|
-
if (key.includes('client.')) {
|
|
4429
|
-
console.warn(`Attribute key "${key}" is reserved for client metadata. It will be prefixed with "custom."`);
|
|
4430
|
-
}
|
|
4431
|
-
else {
|
|
4432
|
-
spanAttrs.set(key, typeof value === 'object' ? JSON.stringify(value) : String(value));
|
|
4433
|
-
}
|
|
4434
|
-
});
|
|
4435
|
-
}
|
|
4436
|
-
try {
|
|
4437
|
-
if (includeClientMeta) {
|
|
4438
|
-
const clientMetadata = await this.getClientMetadata();
|
|
4439
|
-
Object.entries(clientMetadata).forEach(([key, value]) => {
|
|
4440
|
-
spanAttrs.set(`client.${key}`, value);
|
|
4441
|
-
});
|
|
4442
|
-
}
|
|
4443
|
-
}
|
|
4444
|
-
catch (error) {
|
|
4445
|
-
console.error('Error gathering client metadata for span:', error);
|
|
4446
|
-
}
|
|
4447
|
-
return startSpanReq;
|
|
2118
|
+
trace(name, includeClientMeta = false) {
|
|
2119
|
+
return new ParallaxTrace(this, name, includeClientMeta);
|
|
4448
2120
|
}
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
|
|
2121
|
+
}
|
|
2122
|
+
/**
|
|
2123
|
+
* Builder class for constructing traces with method chaining
|
|
2124
|
+
* Automatically handles web-specific features like client metadata
|
|
2125
|
+
*/
|
|
2126
|
+
class ParallaxTrace {
|
|
2127
|
+
constructor(client, name, includeClientMeta = false) {
|
|
2128
|
+
Object.defineProperty(this, "name", {
|
|
2129
|
+
enumerable: true,
|
|
2130
|
+
configurable: true,
|
|
2131
|
+
writable: true,
|
|
2132
|
+
value: void 0
|
|
2133
|
+
});
|
|
2134
|
+
Object.defineProperty(this, "attributes", {
|
|
2135
|
+
enumerable: true,
|
|
2136
|
+
configurable: true,
|
|
2137
|
+
writable: true,
|
|
2138
|
+
value: {}
|
|
2139
|
+
});
|
|
2140
|
+
Object.defineProperty(this, "tags", {
|
|
2141
|
+
enumerable: true,
|
|
2142
|
+
configurable: true,
|
|
2143
|
+
writable: true,
|
|
2144
|
+
value: []
|
|
2145
|
+
});
|
|
2146
|
+
Object.defineProperty(this, "events", {
|
|
2147
|
+
enumerable: true,
|
|
2148
|
+
configurable: true,
|
|
2149
|
+
writable: true,
|
|
2150
|
+
value: []
|
|
2151
|
+
});
|
|
2152
|
+
Object.defineProperty(this, "txHashHint", {
|
|
2153
|
+
enumerable: true,
|
|
2154
|
+
configurable: true,
|
|
2155
|
+
writable: true,
|
|
2156
|
+
value: void 0
|
|
2157
|
+
});
|
|
2158
|
+
Object.defineProperty(this, "client", {
|
|
2159
|
+
enumerable: true,
|
|
2160
|
+
configurable: true,
|
|
2161
|
+
writable: true,
|
|
2162
|
+
value: void 0
|
|
2163
|
+
});
|
|
2164
|
+
Object.defineProperty(this, "includeClientMeta", {
|
|
2165
|
+
enumerable: true,
|
|
2166
|
+
configurable: true,
|
|
2167
|
+
writable: true,
|
|
2168
|
+
value: void 0
|
|
2169
|
+
});
|
|
2170
|
+
this.client = client;
|
|
2171
|
+
this.name = name;
|
|
2172
|
+
this.includeClientMeta = includeClientMeta;
|
|
4461
2173
|
}
|
|
4462
2174
|
/**
|
|
4463
|
-
*
|
|
4464
|
-
* @param
|
|
4465
|
-
* @
|
|
2175
|
+
* Add an attribute to the trace
|
|
2176
|
+
* @param key Attribute key
|
|
2177
|
+
* @param value Attribute value (will be converted to string)
|
|
2178
|
+
* @returns This trace builder for chaining
|
|
4466
2179
|
*/
|
|
4467
|
-
|
|
4468
|
-
|
|
4469
|
-
|
|
4470
|
-
request.setSpanId(spanId);
|
|
4471
|
-
if (status !== undefined) {
|
|
4472
|
-
const spanStatus = new parallax_gateway_pbExports.FinishSpanRequest.SpanStatus();
|
|
4473
|
-
spanStatus.setCode(status.success ? parallax_gateway_pbExports.FinishSpanRequest.SpanStatus.StatusCode.STATUS_CODE_OK : parallax_gateway_pbExports.FinishSpanRequest.SpanStatus.StatusCode.STATUS_CODE_ERROR);
|
|
4474
|
-
if (status.errorMessage) {
|
|
4475
|
-
spanStatus.setMessage(status.errorMessage);
|
|
4476
|
-
}
|
|
4477
|
-
request.setStatus(spanStatus);
|
|
4478
|
-
}
|
|
4479
|
-
return request;
|
|
2180
|
+
addAttribute(key, value) {
|
|
2181
|
+
this.attributes[key] = String(value);
|
|
2182
|
+
return this;
|
|
4480
2183
|
}
|
|
4481
2184
|
/**
|
|
4482
|
-
*
|
|
4483
|
-
* @param
|
|
2185
|
+
* Add multiple attributes to the trace
|
|
2186
|
+
* @param attributes Object containing key-value pairs
|
|
2187
|
+
* @returns This trace builder for chaining
|
|
4484
2188
|
*/
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
}
|
|
4489
|
-
catch (_error) {
|
|
4490
|
-
debugIssue("finishSpan", new Error('Error finishing span'));
|
|
4491
|
-
throw _error;
|
|
2189
|
+
addAttributes(attributes) {
|
|
2190
|
+
for (const [key, value] of Object.entries(attributes)) {
|
|
2191
|
+
this.attributes[key] = String(value);
|
|
4492
2192
|
}
|
|
2193
|
+
return this;
|
|
4493
2194
|
}
|
|
4494
2195
|
/**
|
|
4495
|
-
*
|
|
4496
|
-
* @param
|
|
4497
|
-
* @returns
|
|
2196
|
+
* Add a tag to the trace
|
|
2197
|
+
* @param tag Tag to add
|
|
2198
|
+
* @returns This trace builder for chaining
|
|
4498
2199
|
*/
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
|
|
4502
|
-
request.setSpanId(spanId);
|
|
4503
|
-
request.setEventName(eventName);
|
|
4504
|
-
const eventAttrs = request.getAttributesMap();
|
|
4505
|
-
if (attr) {
|
|
4506
|
-
Object.entries(attr).forEach(([key, value]) => {
|
|
4507
|
-
eventAttrs.set(key, typeof value === 'object' ? JSON.stringify(value) : String(value));
|
|
4508
|
-
});
|
|
4509
|
-
}
|
|
4510
|
-
eventAttrs.set('timestamp', new Date().toISOString());
|
|
4511
|
-
return request;
|
|
2200
|
+
addTag(tag) {
|
|
2201
|
+
this.tags.push(tag);
|
|
2202
|
+
return this;
|
|
4512
2203
|
}
|
|
4513
2204
|
/**
|
|
4514
|
-
* Add
|
|
4515
|
-
* @param
|
|
2205
|
+
* Add multiple tags to the trace
|
|
2206
|
+
* @param tags Array of tags to add
|
|
2207
|
+
* @returns This trace builder for chaining
|
|
4516
2208
|
*/
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
}
|
|
4521
|
-
catch (_error) {
|
|
4522
|
-
debugIssue("addSpanEvent", new Error('Error adding span event'));
|
|
4523
|
-
throw _error;
|
|
4524
|
-
}
|
|
2209
|
+
addTags(tags) {
|
|
2210
|
+
this.tags.push(...tags);
|
|
2211
|
+
return this;
|
|
4525
2212
|
}
|
|
4526
2213
|
/**
|
|
4527
|
-
*
|
|
4528
|
-
* @param
|
|
4529
|
-
* @
|
|
2214
|
+
* Add an event to the trace
|
|
2215
|
+
* @param eventName Name of the event
|
|
2216
|
+
* @param details Optional details (can be a JSON string or object that will be stringified)
|
|
2217
|
+
* @param timestamp Optional timestamp (defaults to current time)
|
|
2218
|
+
* @returns This trace builder for chaining
|
|
4530
2219
|
*/
|
|
4531
|
-
|
|
4532
|
-
const
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4537
|
-
|
|
4538
|
-
|
|
4539
|
-
|
|
4540
|
-
|
|
4541
|
-
}
|
|
4542
|
-
return request;
|
|
2220
|
+
addEvent(eventName, details, timestamp) {
|
|
2221
|
+
const detailsString = typeof details === 'object' && details !== null
|
|
2222
|
+
? JSON.stringify(details)
|
|
2223
|
+
: details;
|
|
2224
|
+
this.events.push({
|
|
2225
|
+
eventName,
|
|
2226
|
+
details: detailsString,
|
|
2227
|
+
timestamp: timestamp || new Date(),
|
|
2228
|
+
});
|
|
2229
|
+
return this;
|
|
4543
2230
|
}
|
|
4544
2231
|
/**
|
|
4545
|
-
*
|
|
4546
|
-
* @param
|
|
2232
|
+
* Set or update the transaction hash hint
|
|
2233
|
+
* @param txHash Transaction hash
|
|
2234
|
+
* @param chainId Chain ID (e.g., "ethereum", "polygon")
|
|
2235
|
+
* @param details Optional details about the transaction
|
|
2236
|
+
* @param timestamp Optional timestamp (defaults to current time)
|
|
2237
|
+
* @returns This trace builder for chaining
|
|
4547
2238
|
*/
|
|
4548
|
-
|
|
4549
|
-
|
|
4550
|
-
|
|
4551
|
-
|
|
4552
|
-
|
|
4553
|
-
|
|
4554
|
-
|
|
4555
|
-
|
|
2239
|
+
setTxHash(txHash, chainId, details, timestamp) {
|
|
2240
|
+
this.txHashHint = {
|
|
2241
|
+
txHash,
|
|
2242
|
+
chainId,
|
|
2243
|
+
details,
|
|
2244
|
+
timestamp: timestamp || new Date(),
|
|
2245
|
+
};
|
|
2246
|
+
return this;
|
|
4556
2247
|
}
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
|
|
2248
|
+
async submit(txHash, chainId, details) {
|
|
2249
|
+
// If txHash and chainId are provided in submit(), they override any previously set txHashHint
|
|
2250
|
+
const finalTxHashHint = txHash && chainId ? {
|
|
2251
|
+
txHash,
|
|
2252
|
+
chainId,
|
|
2253
|
+
details,
|
|
2254
|
+
timestamp: new Date(),
|
|
2255
|
+
} : this.txHashHint;
|
|
2256
|
+
// Build the CreateTraceRequest
|
|
2257
|
+
const request = new parallax_gateway_pbExports.CreateTraceRequest();
|
|
2258
|
+
request.setName(this.name);
|
|
2259
|
+
request.setTagsList(this.tags);
|
|
2260
|
+
// Add attributes
|
|
2261
|
+
const attrsMap = request.getAttributesMap();
|
|
2262
|
+
for (const [key, value] of Object.entries(this.attributes)) {
|
|
2263
|
+
attrsMap.set(key, value);
|
|
4571
2264
|
}
|
|
4572
|
-
|
|
4573
|
-
|
|
4574
|
-
|
|
4575
|
-
|
|
4576
|
-
|
|
4577
|
-
|
|
4578
|
-
async addSpanHint(params) {
|
|
4579
|
-
try {
|
|
4580
|
-
return await this.client.addSpanHint(params, null);
|
|
2265
|
+
// Add client metadata if requested
|
|
2266
|
+
if (this.includeClientMeta) {
|
|
2267
|
+
const clientMetadata = await this.client.getClientMetadata();
|
|
2268
|
+
for (const [key, value] of Object.entries(clientMetadata)) {
|
|
2269
|
+
attrsMap.set(`client.${key}`, value);
|
|
2270
|
+
}
|
|
4581
2271
|
}
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
|
|
2272
|
+
// Add events
|
|
2273
|
+
const eventsList = [];
|
|
2274
|
+
for (const event of this.events) {
|
|
2275
|
+
const eventMsg = new parallax_gateway_pbExports.CreateTraceRequest.Event();
|
|
2276
|
+
eventMsg.setEventName(event.eventName);
|
|
2277
|
+
if (event.details) {
|
|
2278
|
+
eventMsg.setDetails(event.details);
|
|
2279
|
+
}
|
|
2280
|
+
const timestamp = new timestamp_pbExports.Timestamp();
|
|
2281
|
+
timestamp.fromDate(event.timestamp);
|
|
2282
|
+
eventMsg.setTimestamp(timestamp);
|
|
2283
|
+
eventsList.push(eventMsg);
|
|
2284
|
+
}
|
|
2285
|
+
request.setEventsList(eventsList);
|
|
2286
|
+
// Add transaction hash hint if present
|
|
2287
|
+
if (finalTxHashHint) {
|
|
2288
|
+
const txHint = new parallax_gateway_pbExports.CreateTraceRequest.TxHashHint();
|
|
2289
|
+
txHint.setTxHash(finalTxHashHint.txHash);
|
|
2290
|
+
txHint.setChainId(finalTxHashHint.chainId);
|
|
2291
|
+
if (finalTxHashHint.details) {
|
|
2292
|
+
txHint.setDetails(finalTxHashHint.details);
|
|
2293
|
+
}
|
|
2294
|
+
const timestamp = new timestamp_pbExports.Timestamp();
|
|
2295
|
+
timestamp.fromDate(finalTxHashHint.timestamp);
|
|
2296
|
+
txHint.setTimestamp(timestamp);
|
|
2297
|
+
request.setTxHashHint(txHint);
|
|
4585
2298
|
}
|
|
2299
|
+
return this.client.createTrace(request);
|
|
4586
2300
|
}
|
|
4587
2301
|
}
|
|
4588
2302
|
|
|
@@ -4693,20 +2407,251 @@
|
|
|
4693
2407
|
}
|
|
4694
2408
|
}
|
|
4695
2409
|
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
|
|
2410
|
+
/**
|
|
2411
|
+
* Parallax Service - Transaction Tracing for Web Applications
|
|
2412
|
+
* Creates individual traces for each transaction and tracks them through their lifecycle
|
|
2413
|
+
*
|
|
2414
|
+
* This service provides a simplified interface for tracking transactions with automatic
|
|
2415
|
+
* client metadata collection and lifecycle management.
|
|
2416
|
+
*/
|
|
2417
|
+
class ParallaxService {
|
|
2418
|
+
constructor() {
|
|
2419
|
+
Object.defineProperty(this, "client", {
|
|
2420
|
+
enumerable: true,
|
|
2421
|
+
configurable: true,
|
|
2422
|
+
writable: true,
|
|
2423
|
+
value: null
|
|
2424
|
+
});
|
|
2425
|
+
Object.defineProperty(this, "activeTransactions", {
|
|
2426
|
+
enumerable: true,
|
|
2427
|
+
configurable: true,
|
|
2428
|
+
writable: true,
|
|
2429
|
+
value: new Map()
|
|
2430
|
+
});
|
|
2431
|
+
// Client will be initialized lazily
|
|
2432
|
+
}
|
|
2433
|
+
/**
|
|
2434
|
+
* Initialize the Parallax client (lazy initialization)
|
|
2435
|
+
* @param apiKey - Optional API key for authentication
|
|
2436
|
+
* @param gatewayUrl - Optional custom gateway URL
|
|
2437
|
+
*/
|
|
2438
|
+
_ensureClient(apiKey, gatewayUrl) {
|
|
2439
|
+
if (this.client)
|
|
2440
|
+
return;
|
|
2441
|
+
// Determine gateway URL based on environment if not provided
|
|
2442
|
+
let url = gatewayUrl;
|
|
2443
|
+
if (!url && typeof window !== 'undefined') {
|
|
2444
|
+
const isDevelopment = window.location.hostname === 'localhost' ||
|
|
2445
|
+
window.location.hostname === '127.0.0.1';
|
|
2446
|
+
url = isDevelopment
|
|
2447
|
+
? `${window.location.protocol}//${window.location.host}/parallax-gateway`
|
|
2448
|
+
: 'https://gateway-parallax-dev.mirador.org';
|
|
2449
|
+
}
|
|
2450
|
+
this.client = new ParallaxClient(apiKey || '', url);
|
|
2451
|
+
console.log('[ParallaxService] Client initialized with URL:', url);
|
|
2452
|
+
}
|
|
2453
|
+
/**
|
|
2454
|
+
* Start a new transaction trace
|
|
2455
|
+
* Called when user initiates a transaction
|
|
2456
|
+
*
|
|
2457
|
+
* Uses the builder pattern to create a trace with events
|
|
2458
|
+
*
|
|
2459
|
+
* @param txData - Transaction data
|
|
2460
|
+
* @param name - Name for the trace (e.g., 'SendingTrace', 'SwappingTrace')
|
|
2461
|
+
* @param options - Optional configuration (apiKey, gatewayUrl, includeClientMeta)
|
|
2462
|
+
* @returns Promise with traceId, rootSpanId, and txId
|
|
2463
|
+
*/
|
|
2464
|
+
async startTransactionTrace(txData, name = 'WalletTransaction', options) {
|
|
2465
|
+
this._ensureClient(options?.apiKey, options?.gatewayUrl);
|
|
2466
|
+
if (!this.client) {
|
|
2467
|
+
throw new Error('Failed to initialize Parallax client');
|
|
2468
|
+
}
|
|
2469
|
+
try {
|
|
2470
|
+
const txId = `tx_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`;
|
|
2471
|
+
const timestamp = new Date();
|
|
2472
|
+
// Build the trace using the builder pattern
|
|
2473
|
+
const builder = this.client
|
|
2474
|
+
.trace(name, options?.includeClientMeta ?? true)
|
|
2475
|
+
.addAttribute('transactionId', txId)
|
|
2476
|
+
.addAttribute('walletAddress', txData.walletAddress || txData.from)
|
|
2477
|
+
.addAttribute('network', txData.network || 'Unknown')
|
|
2478
|
+
.addAttribute('transactionStart', timestamp.toISOString())
|
|
2479
|
+
.addAttribute('from', txData.from)
|
|
2480
|
+
.addAttribute('to', txData.to)
|
|
2481
|
+
.addAttribute('value', txData.value)
|
|
2482
|
+
.addTags(['transaction', 'wallet', txData.network || 'unknown'])
|
|
2483
|
+
.addEvent('transaction_initiated', {
|
|
2484
|
+
from: txData.from,
|
|
2485
|
+
to: txData.to,
|
|
2486
|
+
value: txData.value,
|
|
2487
|
+
timestamp: timestamp.toISOString(),
|
|
2488
|
+
});
|
|
2489
|
+
// Add any additional transaction data as attributes
|
|
2490
|
+
if (txData.additionalData) {
|
|
2491
|
+
Object.entries(txData.additionalData).forEach(([key, value]) => {
|
|
2492
|
+
builder.addAttribute(key, typeof value === 'object' ? JSON.stringify(value) : String(value));
|
|
2493
|
+
});
|
|
2494
|
+
}
|
|
2495
|
+
// Submit the trace
|
|
2496
|
+
const traceResponse = await builder.submit();
|
|
2497
|
+
const traceId = traceResponse.getTraceId();
|
|
2498
|
+
// Store transaction info
|
|
2499
|
+
this.activeTransactions.set(txId, {
|
|
2500
|
+
traceId,
|
|
2501
|
+
timestamp: timestamp.toISOString(),
|
|
2502
|
+
txHash: null,
|
|
2503
|
+
from: txData.from,
|
|
2504
|
+
to: txData.to,
|
|
2505
|
+
network: txData.network,
|
|
2506
|
+
});
|
|
2507
|
+
console.log('[ParallaxService] Transaction trace started:', {
|
|
2508
|
+
txId,
|
|
2509
|
+
traceId,
|
|
2510
|
+
from: txData.from,
|
|
2511
|
+
to: txData.to,
|
|
2512
|
+
});
|
|
2513
|
+
return { traceId, rootSpanId: traceId, txId };
|
|
2514
|
+
}
|
|
2515
|
+
catch (error) {
|
|
2516
|
+
console.error('[ParallaxService] Failed to start transaction trace:', error);
|
|
2517
|
+
throw error;
|
|
2518
|
+
}
|
|
2519
|
+
}
|
|
2520
|
+
/**
|
|
2521
|
+
* Associate a transaction hash with an existing trace
|
|
2522
|
+
* Called when the transaction hash is available after signing/sending
|
|
2523
|
+
*
|
|
2524
|
+
* NOTE: This method is deprecated as the new API does not support adding hints to existing traces.
|
|
2525
|
+
* Transaction hashes should be provided at trace creation time via the builder's submit(txHash, chainId) method.
|
|
2526
|
+
*
|
|
2527
|
+
* @param txId - Transaction identifier returned from startTransactionTrace
|
|
2528
|
+
* @param txHash - Blockchain transaction hash
|
|
2529
|
+
* @param chainId - Chain ID
|
|
2530
|
+
* @deprecated Use submit(txHash, chainId) when creating the trace instead
|
|
2531
|
+
*/
|
|
2532
|
+
async associateTransactionHash(txId, txHash, chainId) {
|
|
2533
|
+
const txInfo = this.activeTransactions.get(txId);
|
|
2534
|
+
if (!txInfo) {
|
|
2535
|
+
console.warn(`[ParallaxService] Transaction ${txId} not found in active transactions`);
|
|
2536
|
+
return;
|
|
2537
|
+
}
|
|
2538
|
+
// Update stored tx info
|
|
2539
|
+
txInfo.txHash = txHash;
|
|
2540
|
+
this.activeTransactions.set(txId, txInfo);
|
|
2541
|
+
console.warn('[ParallaxService] associateTransactionHash is deprecated. The new API does not support adding transaction hashes after trace creation. Please provide the txHash when creating the trace using submit(txHash, chainId).');
|
|
2542
|
+
console.log('[ParallaxService] Transaction hash updated in local cache:', {
|
|
2543
|
+
txId,
|
|
2544
|
+
txHash,
|
|
2545
|
+
traceId: txInfo.traceId,
|
|
2546
|
+
});
|
|
2547
|
+
}
|
|
2548
|
+
/**
|
|
2549
|
+
* Add an event to a transaction trace
|
|
2550
|
+
*
|
|
2551
|
+
* NOTE: This method is deprecated as the new API does not support adding events to existing traces.
|
|
2552
|
+
* Events should be added to the trace builder before calling submit().
|
|
2553
|
+
*
|
|
2554
|
+
* @param txId - Transaction identifier
|
|
2555
|
+
* @param eventName - Event name
|
|
2556
|
+
* @param attributes - Event attributes
|
|
2557
|
+
* @deprecated Use the trace builder's addEvent() method before calling submit() instead
|
|
2558
|
+
*/
|
|
2559
|
+
async addTransactionEvent(txId, eventName, attributes = {}) {
|
|
2560
|
+
const txInfo = this.activeTransactions.get(txId);
|
|
2561
|
+
if (!txInfo) {
|
|
2562
|
+
console.warn(`[ParallaxService] Transaction ${txId} not found. Cannot add event '${eventName}'`);
|
|
2563
|
+
return;
|
|
2564
|
+
}
|
|
2565
|
+
console.warn('[ParallaxService] addTransactionEvent is deprecated. The new API does not support adding events after trace creation. Events should be added using the builder pattern before calling submit().');
|
|
2566
|
+
}
|
|
2567
|
+
/**
|
|
2568
|
+
* Add an error to a transaction trace
|
|
2569
|
+
*
|
|
2570
|
+
* NOTE: This method is deprecated as the new API does not support adding errors to existing traces.
|
|
2571
|
+
* Errors should be added as events to the trace builder before calling submit().
|
|
2572
|
+
*
|
|
2573
|
+
* @param txId - Transaction identifier
|
|
2574
|
+
* @param error - Error object or message
|
|
2575
|
+
* @param errorType - Type/category of error (e.g., 'TransactionError', 'NetworkError', 'UserRejection')
|
|
2576
|
+
* @deprecated Use the trace builder's addEvent() method to add error events before calling submit() instead
|
|
2577
|
+
*/
|
|
2578
|
+
async addTransactionError(txId, error, errorType = 'TransactionError') {
|
|
2579
|
+
const txInfo = this.activeTransactions.get(txId);
|
|
2580
|
+
if (!txInfo) {
|
|
2581
|
+
console.warn(`[ParallaxService] Transaction ${txId} not found. Cannot add error.`);
|
|
2582
|
+
return;
|
|
2583
|
+
}
|
|
2584
|
+
console.warn('[ParallaxService] addTransactionError is deprecated. The new API does not support adding errors after trace creation. Add error events using the builder pattern before calling submit().');
|
|
2585
|
+
}
|
|
2586
|
+
/**
|
|
2587
|
+
* Finish a transaction trace
|
|
2588
|
+
*
|
|
2589
|
+
* NOTE: This method is deprecated as the new API does not support span lifecycle management.
|
|
2590
|
+
* Traces are completed when submit() is called on the builder.
|
|
2591
|
+
*
|
|
2592
|
+
* @param txId - Transaction identifier
|
|
2593
|
+
* @param options - Finish options (success, error message)
|
|
2594
|
+
* @deprecated Traces are automatically completed when submit() is called
|
|
2595
|
+
*/
|
|
2596
|
+
async finishTransactionTrace(txId, options = { success: true }) {
|
|
2597
|
+
const txInfo = this.activeTransactions.get(txId);
|
|
2598
|
+
if (!txInfo) {
|
|
2599
|
+
console.warn(`[ParallaxService] Transaction ${txId} not found. Cannot finish.`);
|
|
2600
|
+
return;
|
|
2601
|
+
}
|
|
2602
|
+
console.warn('[ParallaxService] finishTransactionTrace is deprecated. The new API does not support span lifecycle. Traces are completed when submit() is called.');
|
|
2603
|
+
console.log('[ParallaxService] Transaction trace marked as finished (local only):', {
|
|
2604
|
+
txId,
|
|
2605
|
+
traceId: txInfo.traceId,
|
|
2606
|
+
success: options.success,
|
|
2607
|
+
txHash: txInfo.txHash,
|
|
2608
|
+
});
|
|
2609
|
+
// Remove from active transactions
|
|
2610
|
+
this.activeTransactions.delete(txId);
|
|
2611
|
+
}
|
|
2612
|
+
/**
|
|
2613
|
+
* Get info about an active transaction
|
|
2614
|
+
*
|
|
2615
|
+
* @param txId - Transaction identifier
|
|
2616
|
+
* @returns Transaction info or null if not found
|
|
2617
|
+
*/
|
|
2618
|
+
getTransactionInfo(txId) {
|
|
2619
|
+
return this.activeTransactions.get(txId) || null;
|
|
2620
|
+
}
|
|
2621
|
+
/**
|
|
2622
|
+
* Get all active transactions
|
|
2623
|
+
*
|
|
2624
|
+
* @returns Array of active transaction info
|
|
2625
|
+
*/
|
|
2626
|
+
getAllActiveTransactions() {
|
|
2627
|
+
return Array.from(this.activeTransactions.entries()).map(([txId, info]) => ({
|
|
2628
|
+
txId,
|
|
2629
|
+
...info,
|
|
2630
|
+
}));
|
|
2631
|
+
}
|
|
2632
|
+
/**
|
|
2633
|
+
* Get the ParallaxClient instance for advanced usage
|
|
2634
|
+
* @param apiKey - Optional API key
|
|
2635
|
+
* @param gatewayUrl - Optional gateway URL
|
|
2636
|
+
*/
|
|
2637
|
+
getClient(apiKey, gatewayUrl) {
|
|
2638
|
+
this._ensureClient(apiKey, gatewayUrl);
|
|
2639
|
+
if (!this.client) {
|
|
2640
|
+
throw new Error('Failed to initialize Parallax client');
|
|
2641
|
+
}
|
|
2642
|
+
return this.client;
|
|
2643
|
+
}
|
|
2644
|
+
}
|
|
2645
|
+
// Export singleton instance
|
|
2646
|
+
const parallaxService = new ParallaxService();
|
|
2647
|
+
|
|
4702
2648
|
exports.CreateTraceRequest = parallax_gateway_pbExports.CreateTraceRequest;
|
|
4703
2649
|
exports.CreateTraceResponse = parallax_gateway_pbExports.CreateTraceResponse;
|
|
4704
|
-
exports.FinishSpanRequest = parallax_gateway_pbExports.FinishSpanRequest;
|
|
4705
|
-
exports.FinishSpanResponse = parallax_gateway_pbExports.FinishSpanResponse;
|
|
4706
2650
|
exports.GrpcWebRpc = GrpcWebRpc;
|
|
4707
2651
|
exports.ParallaxClient = ParallaxClient;
|
|
4708
|
-
exports.
|
|
4709
|
-
exports.
|
|
2652
|
+
exports.ParallaxService = ParallaxService;
|
|
2653
|
+
exports.ParallaxTrace = ParallaxTrace;
|
|
2654
|
+
exports.parallaxService = parallaxService;
|
|
4710
2655
|
|
|
4711
2656
|
}));
|
|
4712
2657
|
//# sourceMappingURL=index.umd.js.map
|