@lazycatcloud/sdk 0.1.272 → 0.1.274
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/dist/common/apk_shell.d.ts +1 -1
- package/dist/common/apk_shell.d.ts.map +1 -1
- package/dist/common/apk_shell.js +40 -37
- package/dist/common/apk_shell.js.map +1 -1
- package/dist/common/box.d.ts +1 -1
- package/dist/common/box.d.ts.map +1 -1
- package/dist/common/box.js +109 -72
- package/dist/common/box.js.map +1 -1
- package/dist/common/browseronly.d.ts +1 -1
- package/dist/common/browseronly.d.ts.map +1 -1
- package/dist/common/browseronly.js +55 -51
- package/dist/common/browseronly.js.map +1 -1
- package/dist/common/end_device.d.ts +1 -1
- package/dist/common/end_device.d.ts.map +1 -1
- package/dist/common/end_device.js +73 -65
- package/dist/common/end_device.js.map +1 -1
- package/dist/common/file_handler.d.ts +1 -1
- package/dist/common/file_handler.d.ts.map +1 -1
- package/dist/common/file_handler.js +139 -101
- package/dist/common/file_handler.js.map +1 -1
- package/dist/common/filetrans.d.ts +1 -1
- package/dist/common/filetrans.d.ts.map +1 -1
- package/dist/common/filetrans.js +293 -207
- package/dist/common/filetrans.js.map +1 -1
- package/dist/common/gateway.d.ts +1 -1
- package/dist/common/gateway.d.ts.map +1 -1
- package/dist/common/gateway.js +70 -46
- package/dist/common/gateway.js.map +1 -1
- package/dist/common/media_meta.d.ts +1 -1
- package/dist/common/media_meta.d.ts.map +1 -1
- package/dist/common/media_meta.js +49 -51
- package/dist/common/media_meta.js.map +1 -1
- package/dist/common/message.d.ts +1 -1
- package/dist/common/message.d.ts.map +1 -1
- package/dist/common/message.js +102 -80
- package/dist/common/message.js.map +1 -1
- package/dist/common/peripheral_device.d.ts +1 -1
- package/dist/common/peripheral_device.d.ts.map +1 -1
- package/dist/common/peripheral_device.js +87 -76
- package/dist/common/peripheral_device.js.map +1 -1
- package/dist/common/security_context.d.ts +1 -1
- package/dist/common/security_context.d.ts.map +1 -1
- package/dist/common/security_context.js +54 -46
- package/dist/common/security_context.js.map +1 -1
- package/dist/common/users.d.ts +2 -1
- package/dist/common/users.d.ts.map +1 -1
- package/dist/common/users.js +105 -77
- package/dist/common/users.js.map +1 -1
- package/dist/dlna/dlna.d.ts +1 -1
- package/dist/dlna/dlna.d.ts.map +1 -1
- package/dist/dlna/dlna.js +105 -81
- package/dist/dlna/dlna.js.map +1 -1
- package/dist/extentions/safe_app.d.ts +0 -1
- package/dist/extentions/safe_app.d.ts.map +1 -1
- package/dist/extentions/safe_app.js +0 -4
- package/dist/extentions/safe_app.js.map +1 -1
- package/dist/google/protobuf/descriptor.d.ts.map +1 -1
- package/dist/google/protobuf/descriptor.js +563 -463
- package/dist/google/protobuf/descriptor.js.map +1 -1
- package/dist/google/protobuf/empty.js +1 -1
- package/dist/google/protobuf/empty.js.map +1 -1
- package/dist/google/protobuf/timestamp.d.ts.map +1 -1
- package/dist/google/protobuf/timestamp.js +10 -6
- package/dist/google/protobuf/timestamp.js.map +1 -1
- package/dist/localdevice/client.d.ts +1 -1
- package/dist/localdevice/client.d.ts.map +1 -1
- package/dist/localdevice/client.js +14 -16
- package/dist/localdevice/client.js.map +1 -1
- package/dist/localdevice/clipboard.d.ts +1 -1
- package/dist/localdevice/clipboard.d.ts.map +1 -1
- package/dist/localdevice/clipboard.js +44 -50
- package/dist/localdevice/clipboard.js.map +1 -1
- package/dist/localdevice/config.d.ts +1 -1
- package/dist/localdevice/config.d.ts.map +1 -1
- package/dist/localdevice/config.js +49 -35
- package/dist/localdevice/config.js.map +1 -1
- package/dist/localdevice/device.d.ts +1 -1
- package/dist/localdevice/device.d.ts.map +1 -1
- package/dist/localdevice/device.js +22 -20
- package/dist/localdevice/device.js.map +1 -1
- package/dist/localdevice/dialog.d.ts +1 -1
- package/dist/localdevice/dialog.d.ts.map +1 -1
- package/dist/localdevice/dialog.js +68 -50
- package/dist/localdevice/dialog.js.map +1 -1
- package/dist/localdevice/local-launch.d.ts +1 -1
- package/dist/localdevice/local-launch.d.ts.map +1 -1
- package/dist/localdevice/local-launch.js +78 -56
- package/dist/localdevice/local-launch.js.map +1 -1
- package/dist/localdevice/network.d.ts +1 -1
- package/dist/localdevice/network.d.ts.map +1 -1
- package/dist/localdevice/network.js +14 -16
- package/dist/localdevice/network.js.map +1 -1
- package/dist/localdevice/permission.d.ts +1 -1
- package/dist/localdevice/permission.d.ts.map +1 -1
- package/dist/localdevice/permission.js +64 -52
- package/dist/localdevice/permission.js.map +1 -1
- package/dist/localdevice/photo.d.ts +1 -1
- package/dist/localdevice/photo.d.ts.map +1 -1
- package/dist/localdevice/photo.js +273 -198
- package/dist/localdevice/photo.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/sys/OS_snapshot.d.ts +1 -1
- package/dist/sys/OS_snapshot.d.ts.map +1 -1
- package/dist/sys/OS_snapshot.js +139 -97
- package/dist/sys/OS_snapshot.js.map +1 -1
- package/dist/sys/OS_upgrader.d.ts +1 -1
- package/dist/sys/OS_upgrader.d.ts.map +1 -1
- package/dist/sys/OS_upgrader.js +49 -39
- package/dist/sys/OS_upgrader.js.map +1 -1
- package/dist/sys/btled.d.ts +1 -1
- package/dist/sys/btled.d.ts.map +1 -1
- package/dist/sys/btled.js +45 -46
- package/dist/sys/btled.js.map +1 -1
- package/dist/sys/btrfs.d.ts +1 -1
- package/dist/sys/btrfs.d.ts.map +1 -1
- package/dist/sys/btrfs.js +58 -44
- package/dist/sys/btrfs.js.map +1 -1
- package/dist/sys/devopt.d.ts +1 -1
- package/dist/sys/devopt.d.ts.map +1 -1
- package/dist/sys/devopt.js +40 -30
- package/dist/sys/devopt.js.map +1 -1
- package/dist/sys/dirmon.d.ts +1 -1
- package/dist/sys/dirmon.d.ts.map +1 -1
- package/dist/sys/dirmon.js +28 -32
- package/dist/sys/dirmon.js.map +1 -1
- package/dist/sys/event.d.ts +1 -1
- package/dist/sys/event.d.ts.map +1 -1
- package/dist/sys/event.js +53 -49
- package/dist/sys/event.js.map +1 -1
- package/dist/sys/hc-core/hc-core.d.ts +1 -1
- package/dist/sys/hc-core/hc-core.d.ts.map +1 -1
- package/dist/sys/hc-core/hc-core.js +121 -92
- package/dist/sys/hc-core/hc-core.js.map +1 -1
- package/dist/sys/ingress.d.ts +1 -1
- package/dist/sys/ingress.d.ts.map +1 -1
- package/dist/sys/ingress.js +32 -30
- package/dist/sys/ingress.js.map +1 -1
- package/dist/sys/installer.d.ts +1 -1
- package/dist/sys/installer.d.ts.map +1 -1
- package/dist/sys/installer.js +71 -64
- package/dist/sys/installer.js.map +1 -1
- package/dist/sys/network_manager.d.ts +53 -1
- package/dist/sys/network_manager.d.ts.map +1 -1
- package/dist/sys/network_manager.js +232 -67
- package/dist/sys/network_manager.js.map +1 -1
- package/dist/sys/package_manager.d.ts +1 -1
- package/dist/sys/package_manager.d.ts.map +1 -1
- package/dist/sys/package_manager.js +244 -159
- package/dist/sys/package_manager.js.map +1 -1
- package/dist/sys/portal-server/portal-server.d.ts +1 -1
- package/dist/sys/portal-server/portal-server.d.ts.map +1 -1
- package/dist/sys/portal-server/portal-server.js +262 -175
- package/dist/sys/portal-server/portal-server.js.map +1 -1
- package/dist/sys/snapd.d.ts +1 -1
- package/dist/sys/snapd.d.ts.map +1 -1
- package/dist/sys/snapd.js +71 -55
- package/dist/sys/snapd.js.map +1 -1
- package/dist/sys/version.d.ts +1 -1
- package/dist/sys/version.d.ts.map +1 -1
- package/dist/sys/version.js +10 -14
- package/dist/sys/version.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/lanforward/lanforward.d.ts +0 -99
- package/dist/lanforward/lanforward.d.ts.map +0 -1
- package/dist/lanforward/lanforward.js +0 -254
- package/dist/lanforward/lanforward.js.map +0 -1
- package/dist/ssdp/ssdp.d.ts +0 -113
- package/dist/ssdp/ssdp.d.ts.map +0 -1
- package/dist/ssdp/ssdp.js +0 -292
- package/dist/ssdp/ssdp.js.map +0 -1
- package/dist/sys/OS_daemon.d.ts +0 -111
- package/dist/sys/OS_daemon.d.ts.map +0 -1
- package/dist/sys/OS_daemon.js +0 -281
- package/dist/sys/OS_daemon.js.map +0 -1
- package/dist/sys/box-status.d.ts +0 -572
- package/dist/sys/box-status.d.ts.map +0 -1
- package/dist/sys/box-status.js +0 -911
- package/dist/sys/box-status.js.map +0 -1
|
@@ -608,13 +608,13 @@ exports.FileDescriptorSet = {
|
|
|
608
608
|
const tag = reader.uint32();
|
|
609
609
|
switch (tag >>> 3) {
|
|
610
610
|
case 1:
|
|
611
|
-
if (tag
|
|
611
|
+
if (tag !== 10) {
|
|
612
612
|
break;
|
|
613
613
|
}
|
|
614
614
|
message.file.push(exports.FileDescriptorProto.decode(reader, reader.uint32()));
|
|
615
615
|
continue;
|
|
616
616
|
}
|
|
617
|
-
if ((tag & 7)
|
|
617
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
618
618
|
break;
|
|
619
619
|
}
|
|
620
620
|
reader.skipType(tag & 7);
|
|
@@ -625,12 +625,10 @@ exports.FileDescriptorSet = {
|
|
|
625
625
|
return { file: Array.isArray(object === null || object === void 0 ? void 0 : object.file) ? object.file.map((e) => exports.FileDescriptorProto.fromJSON(e)) : [] };
|
|
626
626
|
},
|
|
627
627
|
toJSON(message) {
|
|
628
|
+
var _a;
|
|
628
629
|
const obj = {};
|
|
629
|
-
if (message.file) {
|
|
630
|
-
obj.file = message.file.map((e) =>
|
|
631
|
-
}
|
|
632
|
-
else {
|
|
633
|
-
obj.file = [];
|
|
630
|
+
if ((_a = message.file) === null || _a === void 0 ? void 0 : _a.length) {
|
|
631
|
+
obj.file = message.file.map((e) => exports.FileDescriptorProto.toJSON(e));
|
|
634
632
|
}
|
|
635
633
|
return obj;
|
|
636
634
|
},
|
|
@@ -716,29 +714,29 @@ exports.FileDescriptorProto = {
|
|
|
716
714
|
const tag = reader.uint32();
|
|
717
715
|
switch (tag >>> 3) {
|
|
718
716
|
case 1:
|
|
719
|
-
if (tag
|
|
717
|
+
if (tag !== 10) {
|
|
720
718
|
break;
|
|
721
719
|
}
|
|
722
720
|
message.name = reader.string();
|
|
723
721
|
continue;
|
|
724
722
|
case 2:
|
|
725
|
-
if (tag
|
|
723
|
+
if (tag !== 18) {
|
|
726
724
|
break;
|
|
727
725
|
}
|
|
728
726
|
message.package = reader.string();
|
|
729
727
|
continue;
|
|
730
728
|
case 3:
|
|
731
|
-
if (tag
|
|
729
|
+
if (tag !== 26) {
|
|
732
730
|
break;
|
|
733
731
|
}
|
|
734
732
|
message.dependency.push(reader.string());
|
|
735
733
|
continue;
|
|
736
734
|
case 10:
|
|
737
|
-
if (tag
|
|
735
|
+
if (tag === 80) {
|
|
738
736
|
message.publicDependency.push(reader.int32());
|
|
739
737
|
continue;
|
|
740
738
|
}
|
|
741
|
-
if (tag
|
|
739
|
+
if (tag === 82) {
|
|
742
740
|
const end2 = reader.uint32() + reader.pos;
|
|
743
741
|
while (reader.pos < end2) {
|
|
744
742
|
message.publicDependency.push(reader.int32());
|
|
@@ -747,11 +745,11 @@ exports.FileDescriptorProto = {
|
|
|
747
745
|
}
|
|
748
746
|
break;
|
|
749
747
|
case 11:
|
|
750
|
-
if (tag
|
|
748
|
+
if (tag === 88) {
|
|
751
749
|
message.weakDependency.push(reader.int32());
|
|
752
750
|
continue;
|
|
753
751
|
}
|
|
754
|
-
if (tag
|
|
752
|
+
if (tag === 90) {
|
|
755
753
|
const end2 = reader.uint32() + reader.pos;
|
|
756
754
|
while (reader.pos < end2) {
|
|
757
755
|
message.weakDependency.push(reader.int32());
|
|
@@ -760,55 +758,55 @@ exports.FileDescriptorProto = {
|
|
|
760
758
|
}
|
|
761
759
|
break;
|
|
762
760
|
case 4:
|
|
763
|
-
if (tag
|
|
761
|
+
if (tag !== 34) {
|
|
764
762
|
break;
|
|
765
763
|
}
|
|
766
764
|
message.messageType.push(exports.DescriptorProto.decode(reader, reader.uint32()));
|
|
767
765
|
continue;
|
|
768
766
|
case 5:
|
|
769
|
-
if (tag
|
|
767
|
+
if (tag !== 42) {
|
|
770
768
|
break;
|
|
771
769
|
}
|
|
772
770
|
message.enumType.push(exports.EnumDescriptorProto.decode(reader, reader.uint32()));
|
|
773
771
|
continue;
|
|
774
772
|
case 6:
|
|
775
|
-
if (tag
|
|
773
|
+
if (tag !== 50) {
|
|
776
774
|
break;
|
|
777
775
|
}
|
|
778
776
|
message.service.push(exports.ServiceDescriptorProto.decode(reader, reader.uint32()));
|
|
779
777
|
continue;
|
|
780
778
|
case 7:
|
|
781
|
-
if (tag
|
|
779
|
+
if (tag !== 58) {
|
|
782
780
|
break;
|
|
783
781
|
}
|
|
784
782
|
message.extension.push(exports.FieldDescriptorProto.decode(reader, reader.uint32()));
|
|
785
783
|
continue;
|
|
786
784
|
case 8:
|
|
787
|
-
if (tag
|
|
785
|
+
if (tag !== 66) {
|
|
788
786
|
break;
|
|
789
787
|
}
|
|
790
788
|
message.options = exports.FileOptions.decode(reader, reader.uint32());
|
|
791
789
|
continue;
|
|
792
790
|
case 9:
|
|
793
|
-
if (tag
|
|
791
|
+
if (tag !== 74) {
|
|
794
792
|
break;
|
|
795
793
|
}
|
|
796
794
|
message.sourceCodeInfo = exports.SourceCodeInfo.decode(reader, reader.uint32());
|
|
797
795
|
continue;
|
|
798
796
|
case 12:
|
|
799
|
-
if (tag
|
|
797
|
+
if (tag !== 98) {
|
|
800
798
|
break;
|
|
801
799
|
}
|
|
802
800
|
message.syntax = reader.string();
|
|
803
801
|
continue;
|
|
804
802
|
case 13:
|
|
805
|
-
if (tag
|
|
803
|
+
if (tag !== 106) {
|
|
806
804
|
break;
|
|
807
805
|
}
|
|
808
806
|
message.edition = reader.string();
|
|
809
807
|
continue;
|
|
810
808
|
}
|
|
811
|
-
if ((tag & 7)
|
|
809
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
812
810
|
break;
|
|
813
811
|
}
|
|
814
812
|
reader.skipType(tag & 7);
|
|
@@ -839,56 +837,47 @@ exports.FileDescriptorProto = {
|
|
|
839
837
|
};
|
|
840
838
|
},
|
|
841
839
|
toJSON(message) {
|
|
840
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
842
841
|
const obj = {};
|
|
843
|
-
message.name !==
|
|
844
|
-
|
|
845
|
-
if (message.dependency) {
|
|
846
|
-
obj.dependency = message.dependency.map((e) => e);
|
|
842
|
+
if (message.name !== "") {
|
|
843
|
+
obj.name = message.name;
|
|
847
844
|
}
|
|
848
|
-
|
|
849
|
-
obj.
|
|
845
|
+
if (message.package !== "") {
|
|
846
|
+
obj.package = message.package;
|
|
850
847
|
}
|
|
851
|
-
if (message.
|
|
852
|
-
obj.
|
|
848
|
+
if ((_a = message.dependency) === null || _a === void 0 ? void 0 : _a.length) {
|
|
849
|
+
obj.dependency = message.dependency;
|
|
853
850
|
}
|
|
854
|
-
|
|
855
|
-
obj.publicDependency =
|
|
851
|
+
if ((_b = message.publicDependency) === null || _b === void 0 ? void 0 : _b.length) {
|
|
852
|
+
obj.publicDependency = message.publicDependency.map((e) => Math.round(e));
|
|
856
853
|
}
|
|
857
|
-
if (message.weakDependency) {
|
|
854
|
+
if ((_c = message.weakDependency) === null || _c === void 0 ? void 0 : _c.length) {
|
|
858
855
|
obj.weakDependency = message.weakDependency.map((e) => Math.round(e));
|
|
859
856
|
}
|
|
860
|
-
|
|
861
|
-
obj.
|
|
857
|
+
if ((_d = message.messageType) === null || _d === void 0 ? void 0 : _d.length) {
|
|
858
|
+
obj.messageType = message.messageType.map((e) => exports.DescriptorProto.toJSON(e));
|
|
862
859
|
}
|
|
863
|
-
if (message.
|
|
864
|
-
obj.
|
|
860
|
+
if ((_e = message.enumType) === null || _e === void 0 ? void 0 : _e.length) {
|
|
861
|
+
obj.enumType = message.enumType.map((e) => exports.EnumDescriptorProto.toJSON(e));
|
|
865
862
|
}
|
|
866
|
-
|
|
867
|
-
obj.
|
|
863
|
+
if ((_f = message.service) === null || _f === void 0 ? void 0 : _f.length) {
|
|
864
|
+
obj.service = message.service.map((e) => exports.ServiceDescriptorProto.toJSON(e));
|
|
868
865
|
}
|
|
869
|
-
if (message.
|
|
870
|
-
obj.
|
|
866
|
+
if ((_g = message.extension) === null || _g === void 0 ? void 0 : _g.length) {
|
|
867
|
+
obj.extension = message.extension.map((e) => exports.FieldDescriptorProto.toJSON(e));
|
|
871
868
|
}
|
|
872
|
-
|
|
873
|
-
obj.
|
|
874
|
-
}
|
|
875
|
-
if (message.service) {
|
|
876
|
-
obj.service = message.service.map((e) => e ? exports.ServiceDescriptorProto.toJSON(e) : undefined);
|
|
869
|
+
if (message.options !== undefined) {
|
|
870
|
+
obj.options = exports.FileOptions.toJSON(message.options);
|
|
877
871
|
}
|
|
878
|
-
|
|
879
|
-
obj.
|
|
872
|
+
if (message.sourceCodeInfo !== undefined) {
|
|
873
|
+
obj.sourceCodeInfo = exports.SourceCodeInfo.toJSON(message.sourceCodeInfo);
|
|
880
874
|
}
|
|
881
|
-
if (message.
|
|
882
|
-
obj.
|
|
875
|
+
if (message.syntax !== "") {
|
|
876
|
+
obj.syntax = message.syntax;
|
|
883
877
|
}
|
|
884
|
-
|
|
885
|
-
obj.
|
|
878
|
+
if (message.edition !== "") {
|
|
879
|
+
obj.edition = message.edition;
|
|
886
880
|
}
|
|
887
|
-
message.options !== undefined && (obj.options = message.options ? exports.FileOptions.toJSON(message.options) : undefined);
|
|
888
|
-
message.sourceCodeInfo !== undefined &&
|
|
889
|
-
(obj.sourceCodeInfo = message.sourceCodeInfo ? exports.SourceCodeInfo.toJSON(message.sourceCodeInfo) : undefined);
|
|
890
|
-
message.syntax !== undefined && (obj.syntax = message.syntax);
|
|
891
|
-
message.edition !== undefined && (obj.edition = message.edition);
|
|
892
881
|
return obj;
|
|
893
882
|
},
|
|
894
883
|
create(base) {
|
|
@@ -973,67 +962,67 @@ exports.DescriptorProto = {
|
|
|
973
962
|
const tag = reader.uint32();
|
|
974
963
|
switch (tag >>> 3) {
|
|
975
964
|
case 1:
|
|
976
|
-
if (tag
|
|
965
|
+
if (tag !== 10) {
|
|
977
966
|
break;
|
|
978
967
|
}
|
|
979
968
|
message.name = reader.string();
|
|
980
969
|
continue;
|
|
981
970
|
case 2:
|
|
982
|
-
if (tag
|
|
971
|
+
if (tag !== 18) {
|
|
983
972
|
break;
|
|
984
973
|
}
|
|
985
974
|
message.field.push(exports.FieldDescriptorProto.decode(reader, reader.uint32()));
|
|
986
975
|
continue;
|
|
987
976
|
case 6:
|
|
988
|
-
if (tag
|
|
977
|
+
if (tag !== 50) {
|
|
989
978
|
break;
|
|
990
979
|
}
|
|
991
980
|
message.extension.push(exports.FieldDescriptorProto.decode(reader, reader.uint32()));
|
|
992
981
|
continue;
|
|
993
982
|
case 3:
|
|
994
|
-
if (tag
|
|
983
|
+
if (tag !== 26) {
|
|
995
984
|
break;
|
|
996
985
|
}
|
|
997
986
|
message.nestedType.push(exports.DescriptorProto.decode(reader, reader.uint32()));
|
|
998
987
|
continue;
|
|
999
988
|
case 4:
|
|
1000
|
-
if (tag
|
|
989
|
+
if (tag !== 34) {
|
|
1001
990
|
break;
|
|
1002
991
|
}
|
|
1003
992
|
message.enumType.push(exports.EnumDescriptorProto.decode(reader, reader.uint32()));
|
|
1004
993
|
continue;
|
|
1005
994
|
case 5:
|
|
1006
|
-
if (tag
|
|
995
|
+
if (tag !== 42) {
|
|
1007
996
|
break;
|
|
1008
997
|
}
|
|
1009
998
|
message.extensionRange.push(exports.DescriptorProto_ExtensionRange.decode(reader, reader.uint32()));
|
|
1010
999
|
continue;
|
|
1011
1000
|
case 8:
|
|
1012
|
-
if (tag
|
|
1001
|
+
if (tag !== 66) {
|
|
1013
1002
|
break;
|
|
1014
1003
|
}
|
|
1015
1004
|
message.oneofDecl.push(exports.OneofDescriptorProto.decode(reader, reader.uint32()));
|
|
1016
1005
|
continue;
|
|
1017
1006
|
case 7:
|
|
1018
|
-
if (tag
|
|
1007
|
+
if (tag !== 58) {
|
|
1019
1008
|
break;
|
|
1020
1009
|
}
|
|
1021
1010
|
message.options = exports.MessageOptions.decode(reader, reader.uint32());
|
|
1022
1011
|
continue;
|
|
1023
1012
|
case 9:
|
|
1024
|
-
if (tag
|
|
1013
|
+
if (tag !== 74) {
|
|
1025
1014
|
break;
|
|
1026
1015
|
}
|
|
1027
1016
|
message.reservedRange.push(exports.DescriptorProto_ReservedRange.decode(reader, reader.uint32()));
|
|
1028
1017
|
continue;
|
|
1029
1018
|
case 10:
|
|
1030
|
-
if (tag
|
|
1019
|
+
if (tag !== 82) {
|
|
1031
1020
|
break;
|
|
1032
1021
|
}
|
|
1033
1022
|
message.reservedName.push(reader.string());
|
|
1034
1023
|
continue;
|
|
1035
1024
|
}
|
|
1036
|
-
if ((tag & 7)
|
|
1025
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1037
1026
|
break;
|
|
1038
1027
|
}
|
|
1039
1028
|
reader.skipType(tag & 7);
|
|
@@ -1065,57 +1054,37 @@ exports.DescriptorProto = {
|
|
|
1065
1054
|
};
|
|
1066
1055
|
},
|
|
1067
1056
|
toJSON(message) {
|
|
1057
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1068
1058
|
const obj = {};
|
|
1069
|
-
message.name !==
|
|
1070
|
-
|
|
1071
|
-
obj.field = message.field.map((e) => e ? exports.FieldDescriptorProto.toJSON(e) : undefined);
|
|
1072
|
-
}
|
|
1073
|
-
else {
|
|
1074
|
-
obj.field = [];
|
|
1075
|
-
}
|
|
1076
|
-
if (message.extension) {
|
|
1077
|
-
obj.extension = message.extension.map((e) => e ? exports.FieldDescriptorProto.toJSON(e) : undefined);
|
|
1078
|
-
}
|
|
1079
|
-
else {
|
|
1080
|
-
obj.extension = [];
|
|
1081
|
-
}
|
|
1082
|
-
if (message.nestedType) {
|
|
1083
|
-
obj.nestedType = message.nestedType.map((e) => e ? exports.DescriptorProto.toJSON(e) : undefined);
|
|
1084
|
-
}
|
|
1085
|
-
else {
|
|
1086
|
-
obj.nestedType = [];
|
|
1087
|
-
}
|
|
1088
|
-
if (message.enumType) {
|
|
1089
|
-
obj.enumType = message.enumType.map((e) => e ? exports.EnumDescriptorProto.toJSON(e) : undefined);
|
|
1059
|
+
if (message.name !== "") {
|
|
1060
|
+
obj.name = message.name;
|
|
1090
1061
|
}
|
|
1091
|
-
|
|
1092
|
-
obj.
|
|
1062
|
+
if ((_a = message.field) === null || _a === void 0 ? void 0 : _a.length) {
|
|
1063
|
+
obj.field = message.field.map((e) => exports.FieldDescriptorProto.toJSON(e));
|
|
1093
1064
|
}
|
|
1094
|
-
if (message.
|
|
1095
|
-
obj.
|
|
1065
|
+
if ((_b = message.extension) === null || _b === void 0 ? void 0 : _b.length) {
|
|
1066
|
+
obj.extension = message.extension.map((e) => exports.FieldDescriptorProto.toJSON(e));
|
|
1096
1067
|
}
|
|
1097
|
-
|
|
1098
|
-
obj.
|
|
1068
|
+
if ((_c = message.nestedType) === null || _c === void 0 ? void 0 : _c.length) {
|
|
1069
|
+
obj.nestedType = message.nestedType.map((e) => exports.DescriptorProto.toJSON(e));
|
|
1099
1070
|
}
|
|
1100
|
-
if (message.
|
|
1101
|
-
obj.
|
|
1071
|
+
if ((_d = message.enumType) === null || _d === void 0 ? void 0 : _d.length) {
|
|
1072
|
+
obj.enumType = message.enumType.map((e) => exports.EnumDescriptorProto.toJSON(e));
|
|
1102
1073
|
}
|
|
1103
|
-
|
|
1104
|
-
obj.
|
|
1074
|
+
if ((_e = message.extensionRange) === null || _e === void 0 ? void 0 : _e.length) {
|
|
1075
|
+
obj.extensionRange = message.extensionRange.map((e) => exports.DescriptorProto_ExtensionRange.toJSON(e));
|
|
1105
1076
|
}
|
|
1106
|
-
message.
|
|
1107
|
-
|
|
1108
|
-
if (message.reservedRange) {
|
|
1109
|
-
obj.reservedRange = message.reservedRange.map((e) => e ? exports.DescriptorProto_ReservedRange.toJSON(e) : undefined);
|
|
1077
|
+
if ((_f = message.oneofDecl) === null || _f === void 0 ? void 0 : _f.length) {
|
|
1078
|
+
obj.oneofDecl = message.oneofDecl.map((e) => exports.OneofDescriptorProto.toJSON(e));
|
|
1110
1079
|
}
|
|
1111
|
-
|
|
1112
|
-
obj.
|
|
1080
|
+
if (message.options !== undefined) {
|
|
1081
|
+
obj.options = exports.MessageOptions.toJSON(message.options);
|
|
1113
1082
|
}
|
|
1114
|
-
if (message.
|
|
1115
|
-
obj.
|
|
1083
|
+
if ((_g = message.reservedRange) === null || _g === void 0 ? void 0 : _g.length) {
|
|
1084
|
+
obj.reservedRange = message.reservedRange.map((e) => exports.DescriptorProto_ReservedRange.toJSON(e));
|
|
1116
1085
|
}
|
|
1117
|
-
|
|
1118
|
-
obj.reservedName =
|
|
1086
|
+
if ((_h = message.reservedName) === null || _h === void 0 ? void 0 : _h.length) {
|
|
1087
|
+
obj.reservedName = message.reservedName;
|
|
1119
1088
|
}
|
|
1120
1089
|
return obj;
|
|
1121
1090
|
},
|
|
@@ -1164,25 +1133,25 @@ exports.DescriptorProto_ExtensionRange = {
|
|
|
1164
1133
|
const tag = reader.uint32();
|
|
1165
1134
|
switch (tag >>> 3) {
|
|
1166
1135
|
case 1:
|
|
1167
|
-
if (tag
|
|
1136
|
+
if (tag !== 8) {
|
|
1168
1137
|
break;
|
|
1169
1138
|
}
|
|
1170
1139
|
message.start = reader.int32();
|
|
1171
1140
|
continue;
|
|
1172
1141
|
case 2:
|
|
1173
|
-
if (tag
|
|
1142
|
+
if (tag !== 16) {
|
|
1174
1143
|
break;
|
|
1175
1144
|
}
|
|
1176
1145
|
message.end = reader.int32();
|
|
1177
1146
|
continue;
|
|
1178
1147
|
case 3:
|
|
1179
|
-
if (tag
|
|
1148
|
+
if (tag !== 26) {
|
|
1180
1149
|
break;
|
|
1181
1150
|
}
|
|
1182
1151
|
message.options = exports.ExtensionRangeOptions.decode(reader, reader.uint32());
|
|
1183
1152
|
continue;
|
|
1184
1153
|
}
|
|
1185
|
-
if ((tag & 7)
|
|
1154
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1186
1155
|
break;
|
|
1187
1156
|
}
|
|
1188
1157
|
reader.skipType(tag & 7);
|
|
@@ -1198,10 +1167,15 @@ exports.DescriptorProto_ExtensionRange = {
|
|
|
1198
1167
|
},
|
|
1199
1168
|
toJSON(message) {
|
|
1200
1169
|
const obj = {};
|
|
1201
|
-
message.start !==
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1170
|
+
if (message.start !== 0) {
|
|
1171
|
+
obj.start = Math.round(message.start);
|
|
1172
|
+
}
|
|
1173
|
+
if (message.end !== 0) {
|
|
1174
|
+
obj.end = Math.round(message.end);
|
|
1175
|
+
}
|
|
1176
|
+
if (message.options !== undefined) {
|
|
1177
|
+
obj.options = exports.ExtensionRangeOptions.toJSON(message.options);
|
|
1178
|
+
}
|
|
1205
1179
|
return obj;
|
|
1206
1180
|
},
|
|
1207
1181
|
create(base) {
|
|
@@ -1239,19 +1213,19 @@ exports.DescriptorProto_ReservedRange = {
|
|
|
1239
1213
|
const tag = reader.uint32();
|
|
1240
1214
|
switch (tag >>> 3) {
|
|
1241
1215
|
case 1:
|
|
1242
|
-
if (tag
|
|
1216
|
+
if (tag !== 8) {
|
|
1243
1217
|
break;
|
|
1244
1218
|
}
|
|
1245
1219
|
message.start = reader.int32();
|
|
1246
1220
|
continue;
|
|
1247
1221
|
case 2:
|
|
1248
|
-
if (tag
|
|
1222
|
+
if (tag !== 16) {
|
|
1249
1223
|
break;
|
|
1250
1224
|
}
|
|
1251
1225
|
message.end = reader.int32();
|
|
1252
1226
|
continue;
|
|
1253
1227
|
}
|
|
1254
|
-
if ((tag & 7)
|
|
1228
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1255
1229
|
break;
|
|
1256
1230
|
}
|
|
1257
1231
|
reader.skipType(tag & 7);
|
|
@@ -1263,8 +1237,12 @@ exports.DescriptorProto_ReservedRange = {
|
|
|
1263
1237
|
},
|
|
1264
1238
|
toJSON(message) {
|
|
1265
1239
|
const obj = {};
|
|
1266
|
-
message.start !==
|
|
1267
|
-
|
|
1240
|
+
if (message.start !== 0) {
|
|
1241
|
+
obj.start = Math.round(message.start);
|
|
1242
|
+
}
|
|
1243
|
+
if (message.end !== 0) {
|
|
1244
|
+
obj.end = Math.round(message.end);
|
|
1245
|
+
}
|
|
1268
1246
|
return obj;
|
|
1269
1247
|
},
|
|
1270
1248
|
create(base) {
|
|
@@ -1302,25 +1280,25 @@ exports.ExtensionRangeOptions = {
|
|
|
1302
1280
|
const tag = reader.uint32();
|
|
1303
1281
|
switch (tag >>> 3) {
|
|
1304
1282
|
case 999:
|
|
1305
|
-
if (tag
|
|
1283
|
+
if (tag !== 7994) {
|
|
1306
1284
|
break;
|
|
1307
1285
|
}
|
|
1308
1286
|
message.uninterpretedOption.push(exports.UninterpretedOption.decode(reader, reader.uint32()));
|
|
1309
1287
|
continue;
|
|
1310
1288
|
case 2:
|
|
1311
|
-
if (tag
|
|
1289
|
+
if (tag !== 18) {
|
|
1312
1290
|
break;
|
|
1313
1291
|
}
|
|
1314
1292
|
message.declaration.push(exports.ExtensionRangeOptions_Declaration.decode(reader, reader.uint32()));
|
|
1315
1293
|
continue;
|
|
1316
1294
|
case 3:
|
|
1317
|
-
if (tag
|
|
1295
|
+
if (tag !== 24) {
|
|
1318
1296
|
break;
|
|
1319
1297
|
}
|
|
1320
1298
|
message.verification = reader.int32();
|
|
1321
1299
|
continue;
|
|
1322
1300
|
}
|
|
1323
|
-
if ((tag & 7)
|
|
1301
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1324
1302
|
break;
|
|
1325
1303
|
}
|
|
1326
1304
|
reader.skipType(tag & 7);
|
|
@@ -1341,21 +1319,17 @@ exports.ExtensionRangeOptions = {
|
|
|
1341
1319
|
};
|
|
1342
1320
|
},
|
|
1343
1321
|
toJSON(message) {
|
|
1322
|
+
var _a, _b;
|
|
1344
1323
|
const obj = {};
|
|
1345
|
-
if (message.uninterpretedOption) {
|
|
1346
|
-
obj.uninterpretedOption = message.uninterpretedOption.map((e) =>
|
|
1347
|
-
}
|
|
1348
|
-
else {
|
|
1349
|
-
obj.uninterpretedOption = [];
|
|
1324
|
+
if ((_a = message.uninterpretedOption) === null || _a === void 0 ? void 0 : _a.length) {
|
|
1325
|
+
obj.uninterpretedOption = message.uninterpretedOption.map((e) => exports.UninterpretedOption.toJSON(e));
|
|
1350
1326
|
}
|
|
1351
|
-
if (message.declaration) {
|
|
1352
|
-
obj.declaration = message.declaration.map((e) =>
|
|
1327
|
+
if ((_b = message.declaration) === null || _b === void 0 ? void 0 : _b.length) {
|
|
1328
|
+
obj.declaration = message.declaration.map((e) => exports.ExtensionRangeOptions_Declaration.toJSON(e));
|
|
1353
1329
|
}
|
|
1354
|
-
|
|
1355
|
-
obj.
|
|
1330
|
+
if (message.verification !== 0) {
|
|
1331
|
+
obj.verification = extensionRangeOptions_VerificationStateToJSON(message.verification);
|
|
1356
1332
|
}
|
|
1357
|
-
message.verification !== undefined &&
|
|
1358
|
-
(obj.verification = extensionRangeOptions_VerificationStateToJSON(message.verification));
|
|
1359
1333
|
return obj;
|
|
1360
1334
|
},
|
|
1361
1335
|
create(base) {
|
|
@@ -1403,43 +1377,43 @@ exports.ExtensionRangeOptions_Declaration = {
|
|
|
1403
1377
|
const tag = reader.uint32();
|
|
1404
1378
|
switch (tag >>> 3) {
|
|
1405
1379
|
case 1:
|
|
1406
|
-
if (tag
|
|
1380
|
+
if (tag !== 8) {
|
|
1407
1381
|
break;
|
|
1408
1382
|
}
|
|
1409
1383
|
message.number = reader.int32();
|
|
1410
1384
|
continue;
|
|
1411
1385
|
case 2:
|
|
1412
|
-
if (tag
|
|
1386
|
+
if (tag !== 18) {
|
|
1413
1387
|
break;
|
|
1414
1388
|
}
|
|
1415
1389
|
message.fullName = reader.string();
|
|
1416
1390
|
continue;
|
|
1417
1391
|
case 3:
|
|
1418
|
-
if (tag
|
|
1392
|
+
if (tag !== 26) {
|
|
1419
1393
|
break;
|
|
1420
1394
|
}
|
|
1421
1395
|
message.type = reader.string();
|
|
1422
1396
|
continue;
|
|
1423
1397
|
case 4:
|
|
1424
|
-
if (tag
|
|
1398
|
+
if (tag !== 32) {
|
|
1425
1399
|
break;
|
|
1426
1400
|
}
|
|
1427
1401
|
message.isRepeated = reader.bool();
|
|
1428
1402
|
continue;
|
|
1429
1403
|
case 5:
|
|
1430
|
-
if (tag
|
|
1404
|
+
if (tag !== 40) {
|
|
1431
1405
|
break;
|
|
1432
1406
|
}
|
|
1433
1407
|
message.reserved = reader.bool();
|
|
1434
1408
|
continue;
|
|
1435
1409
|
case 6:
|
|
1436
|
-
if (tag
|
|
1410
|
+
if (tag !== 48) {
|
|
1437
1411
|
break;
|
|
1438
1412
|
}
|
|
1439
1413
|
message.repeated = reader.bool();
|
|
1440
1414
|
continue;
|
|
1441
1415
|
}
|
|
1442
|
-
if ((tag & 7)
|
|
1416
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1443
1417
|
break;
|
|
1444
1418
|
}
|
|
1445
1419
|
reader.skipType(tag & 7);
|
|
@@ -1458,12 +1432,24 @@ exports.ExtensionRangeOptions_Declaration = {
|
|
|
1458
1432
|
},
|
|
1459
1433
|
toJSON(message) {
|
|
1460
1434
|
const obj = {};
|
|
1461
|
-
message.number !==
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
message.
|
|
1465
|
-
|
|
1466
|
-
|
|
1435
|
+
if (message.number !== 0) {
|
|
1436
|
+
obj.number = Math.round(message.number);
|
|
1437
|
+
}
|
|
1438
|
+
if (message.fullName !== "") {
|
|
1439
|
+
obj.fullName = message.fullName;
|
|
1440
|
+
}
|
|
1441
|
+
if (message.type !== "") {
|
|
1442
|
+
obj.type = message.type;
|
|
1443
|
+
}
|
|
1444
|
+
if (message.isRepeated === true) {
|
|
1445
|
+
obj.isRepeated = message.isRepeated;
|
|
1446
|
+
}
|
|
1447
|
+
if (message.reserved === true) {
|
|
1448
|
+
obj.reserved = message.reserved;
|
|
1449
|
+
}
|
|
1450
|
+
if (message.repeated === true) {
|
|
1451
|
+
obj.repeated = message.repeated;
|
|
1452
|
+
}
|
|
1467
1453
|
return obj;
|
|
1468
1454
|
},
|
|
1469
1455
|
create(base) {
|
|
@@ -1541,73 +1527,73 @@ exports.FieldDescriptorProto = {
|
|
|
1541
1527
|
const tag = reader.uint32();
|
|
1542
1528
|
switch (tag >>> 3) {
|
|
1543
1529
|
case 1:
|
|
1544
|
-
if (tag
|
|
1530
|
+
if (tag !== 10) {
|
|
1545
1531
|
break;
|
|
1546
1532
|
}
|
|
1547
1533
|
message.name = reader.string();
|
|
1548
1534
|
continue;
|
|
1549
1535
|
case 3:
|
|
1550
|
-
if (tag
|
|
1536
|
+
if (tag !== 24) {
|
|
1551
1537
|
break;
|
|
1552
1538
|
}
|
|
1553
1539
|
message.number = reader.int32();
|
|
1554
1540
|
continue;
|
|
1555
1541
|
case 4:
|
|
1556
|
-
if (tag
|
|
1542
|
+
if (tag !== 32) {
|
|
1557
1543
|
break;
|
|
1558
1544
|
}
|
|
1559
1545
|
message.label = reader.int32();
|
|
1560
1546
|
continue;
|
|
1561
1547
|
case 5:
|
|
1562
|
-
if (tag
|
|
1548
|
+
if (tag !== 40) {
|
|
1563
1549
|
break;
|
|
1564
1550
|
}
|
|
1565
1551
|
message.type = reader.int32();
|
|
1566
1552
|
continue;
|
|
1567
1553
|
case 6:
|
|
1568
|
-
if (tag
|
|
1554
|
+
if (tag !== 50) {
|
|
1569
1555
|
break;
|
|
1570
1556
|
}
|
|
1571
1557
|
message.typeName = reader.string();
|
|
1572
1558
|
continue;
|
|
1573
1559
|
case 2:
|
|
1574
|
-
if (tag
|
|
1560
|
+
if (tag !== 18) {
|
|
1575
1561
|
break;
|
|
1576
1562
|
}
|
|
1577
1563
|
message.extendee = reader.string();
|
|
1578
1564
|
continue;
|
|
1579
1565
|
case 7:
|
|
1580
|
-
if (tag
|
|
1566
|
+
if (tag !== 58) {
|
|
1581
1567
|
break;
|
|
1582
1568
|
}
|
|
1583
1569
|
message.defaultValue = reader.string();
|
|
1584
1570
|
continue;
|
|
1585
1571
|
case 9:
|
|
1586
|
-
if (tag
|
|
1572
|
+
if (tag !== 72) {
|
|
1587
1573
|
break;
|
|
1588
1574
|
}
|
|
1589
1575
|
message.oneofIndex = reader.int32();
|
|
1590
1576
|
continue;
|
|
1591
1577
|
case 10:
|
|
1592
|
-
if (tag
|
|
1578
|
+
if (tag !== 82) {
|
|
1593
1579
|
break;
|
|
1594
1580
|
}
|
|
1595
1581
|
message.jsonName = reader.string();
|
|
1596
1582
|
continue;
|
|
1597
1583
|
case 8:
|
|
1598
|
-
if (tag
|
|
1584
|
+
if (tag !== 66) {
|
|
1599
1585
|
break;
|
|
1600
1586
|
}
|
|
1601
1587
|
message.options = exports.FieldOptions.decode(reader, reader.uint32());
|
|
1602
1588
|
continue;
|
|
1603
1589
|
case 17:
|
|
1604
|
-
if (tag
|
|
1590
|
+
if (tag !== 136) {
|
|
1605
1591
|
break;
|
|
1606
1592
|
}
|
|
1607
1593
|
message.proto3Optional = reader.bool();
|
|
1608
1594
|
continue;
|
|
1609
1595
|
}
|
|
1610
|
-
if ((tag & 7)
|
|
1596
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1611
1597
|
break;
|
|
1612
1598
|
}
|
|
1613
1599
|
reader.skipType(tag & 7);
|
|
@@ -1631,17 +1617,39 @@ exports.FieldDescriptorProto = {
|
|
|
1631
1617
|
},
|
|
1632
1618
|
toJSON(message) {
|
|
1633
1619
|
const obj = {};
|
|
1634
|
-
message.name !==
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
message.
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
message.
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1620
|
+
if (message.name !== "") {
|
|
1621
|
+
obj.name = message.name;
|
|
1622
|
+
}
|
|
1623
|
+
if (message.number !== 0) {
|
|
1624
|
+
obj.number = Math.round(message.number);
|
|
1625
|
+
}
|
|
1626
|
+
if (message.label !== 1) {
|
|
1627
|
+
obj.label = fieldDescriptorProto_LabelToJSON(message.label);
|
|
1628
|
+
}
|
|
1629
|
+
if (message.type !== 1) {
|
|
1630
|
+
obj.type = fieldDescriptorProto_TypeToJSON(message.type);
|
|
1631
|
+
}
|
|
1632
|
+
if (message.typeName !== "") {
|
|
1633
|
+
obj.typeName = message.typeName;
|
|
1634
|
+
}
|
|
1635
|
+
if (message.extendee !== "") {
|
|
1636
|
+
obj.extendee = message.extendee;
|
|
1637
|
+
}
|
|
1638
|
+
if (message.defaultValue !== "") {
|
|
1639
|
+
obj.defaultValue = message.defaultValue;
|
|
1640
|
+
}
|
|
1641
|
+
if (message.oneofIndex !== 0) {
|
|
1642
|
+
obj.oneofIndex = Math.round(message.oneofIndex);
|
|
1643
|
+
}
|
|
1644
|
+
if (message.jsonName !== "") {
|
|
1645
|
+
obj.jsonName = message.jsonName;
|
|
1646
|
+
}
|
|
1647
|
+
if (message.options !== undefined) {
|
|
1648
|
+
obj.options = exports.FieldOptions.toJSON(message.options);
|
|
1649
|
+
}
|
|
1650
|
+
if (message.proto3Optional === true) {
|
|
1651
|
+
obj.proto3Optional = message.proto3Optional;
|
|
1652
|
+
}
|
|
1645
1653
|
return obj;
|
|
1646
1654
|
},
|
|
1647
1655
|
create(base) {
|
|
@@ -1687,19 +1695,19 @@ exports.OneofDescriptorProto = {
|
|
|
1687
1695
|
const tag = reader.uint32();
|
|
1688
1696
|
switch (tag >>> 3) {
|
|
1689
1697
|
case 1:
|
|
1690
|
-
if (tag
|
|
1698
|
+
if (tag !== 10) {
|
|
1691
1699
|
break;
|
|
1692
1700
|
}
|
|
1693
1701
|
message.name = reader.string();
|
|
1694
1702
|
continue;
|
|
1695
1703
|
case 2:
|
|
1696
|
-
if (tag
|
|
1704
|
+
if (tag !== 18) {
|
|
1697
1705
|
break;
|
|
1698
1706
|
}
|
|
1699
1707
|
message.options = exports.OneofOptions.decode(reader, reader.uint32());
|
|
1700
1708
|
continue;
|
|
1701
1709
|
}
|
|
1702
|
-
if ((tag & 7)
|
|
1710
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1703
1711
|
break;
|
|
1704
1712
|
}
|
|
1705
1713
|
reader.skipType(tag & 7);
|
|
@@ -1714,8 +1722,12 @@ exports.OneofDescriptorProto = {
|
|
|
1714
1722
|
},
|
|
1715
1723
|
toJSON(message) {
|
|
1716
1724
|
const obj = {};
|
|
1717
|
-
message.name !==
|
|
1718
|
-
|
|
1725
|
+
if (message.name !== "") {
|
|
1726
|
+
obj.name = message.name;
|
|
1727
|
+
}
|
|
1728
|
+
if (message.options !== undefined) {
|
|
1729
|
+
obj.options = exports.OneofOptions.toJSON(message.options);
|
|
1730
|
+
}
|
|
1719
1731
|
return obj;
|
|
1720
1732
|
},
|
|
1721
1733
|
create(base) {
|
|
@@ -1761,37 +1773,37 @@ exports.EnumDescriptorProto = {
|
|
|
1761
1773
|
const tag = reader.uint32();
|
|
1762
1774
|
switch (tag >>> 3) {
|
|
1763
1775
|
case 1:
|
|
1764
|
-
if (tag
|
|
1776
|
+
if (tag !== 10) {
|
|
1765
1777
|
break;
|
|
1766
1778
|
}
|
|
1767
1779
|
message.name = reader.string();
|
|
1768
1780
|
continue;
|
|
1769
1781
|
case 2:
|
|
1770
|
-
if (tag
|
|
1782
|
+
if (tag !== 18) {
|
|
1771
1783
|
break;
|
|
1772
1784
|
}
|
|
1773
1785
|
message.value.push(exports.EnumValueDescriptorProto.decode(reader, reader.uint32()));
|
|
1774
1786
|
continue;
|
|
1775
1787
|
case 3:
|
|
1776
|
-
if (tag
|
|
1788
|
+
if (tag !== 26) {
|
|
1777
1789
|
break;
|
|
1778
1790
|
}
|
|
1779
1791
|
message.options = exports.EnumOptions.decode(reader, reader.uint32());
|
|
1780
1792
|
continue;
|
|
1781
1793
|
case 4:
|
|
1782
|
-
if (tag
|
|
1794
|
+
if (tag !== 34) {
|
|
1783
1795
|
break;
|
|
1784
1796
|
}
|
|
1785
1797
|
message.reservedRange.push(exports.EnumDescriptorProto_EnumReservedRange.decode(reader, reader.uint32()));
|
|
1786
1798
|
continue;
|
|
1787
1799
|
case 5:
|
|
1788
|
-
if (tag
|
|
1800
|
+
if (tag !== 42) {
|
|
1789
1801
|
break;
|
|
1790
1802
|
}
|
|
1791
1803
|
message.reservedName.push(reader.string());
|
|
1792
1804
|
continue;
|
|
1793
1805
|
}
|
|
1794
|
-
if ((tag & 7)
|
|
1806
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1795
1807
|
break;
|
|
1796
1808
|
}
|
|
1797
1809
|
reader.skipType(tag & 7);
|
|
@@ -1810,26 +1822,22 @@ exports.EnumDescriptorProto = {
|
|
|
1810
1822
|
};
|
|
1811
1823
|
},
|
|
1812
1824
|
toJSON(message) {
|
|
1825
|
+
var _a, _b, _c;
|
|
1813
1826
|
const obj = {};
|
|
1814
|
-
message.name !==
|
|
1815
|
-
|
|
1816
|
-
obj.value = message.value.map((e) => e ? exports.EnumValueDescriptorProto.toJSON(e) : undefined);
|
|
1817
|
-
}
|
|
1818
|
-
else {
|
|
1819
|
-
obj.value = [];
|
|
1827
|
+
if (message.name !== "") {
|
|
1828
|
+
obj.name = message.name;
|
|
1820
1829
|
}
|
|
1821
|
-
message.
|
|
1822
|
-
|
|
1823
|
-
obj.reservedRange = message.reservedRange.map((e) => e ? exports.EnumDescriptorProto_EnumReservedRange.toJSON(e) : undefined);
|
|
1830
|
+
if ((_a = message.value) === null || _a === void 0 ? void 0 : _a.length) {
|
|
1831
|
+
obj.value = message.value.map((e) => exports.EnumValueDescriptorProto.toJSON(e));
|
|
1824
1832
|
}
|
|
1825
|
-
|
|
1826
|
-
obj.
|
|
1833
|
+
if (message.options !== undefined) {
|
|
1834
|
+
obj.options = exports.EnumOptions.toJSON(message.options);
|
|
1827
1835
|
}
|
|
1828
|
-
if (message.
|
|
1829
|
-
obj.
|
|
1836
|
+
if ((_b = message.reservedRange) === null || _b === void 0 ? void 0 : _b.length) {
|
|
1837
|
+
obj.reservedRange = message.reservedRange.map((e) => exports.EnumDescriptorProto_EnumReservedRange.toJSON(e));
|
|
1830
1838
|
}
|
|
1831
|
-
|
|
1832
|
-
obj.reservedName =
|
|
1839
|
+
if ((_c = message.reservedName) === null || _c === void 0 ? void 0 : _c.length) {
|
|
1840
|
+
obj.reservedName = message.reservedName;
|
|
1833
1841
|
}
|
|
1834
1842
|
return obj;
|
|
1835
1843
|
},
|
|
@@ -1871,19 +1879,19 @@ exports.EnumDescriptorProto_EnumReservedRange = {
|
|
|
1871
1879
|
const tag = reader.uint32();
|
|
1872
1880
|
switch (tag >>> 3) {
|
|
1873
1881
|
case 1:
|
|
1874
|
-
if (tag
|
|
1882
|
+
if (tag !== 8) {
|
|
1875
1883
|
break;
|
|
1876
1884
|
}
|
|
1877
1885
|
message.start = reader.int32();
|
|
1878
1886
|
continue;
|
|
1879
1887
|
case 2:
|
|
1880
|
-
if (tag
|
|
1888
|
+
if (tag !== 16) {
|
|
1881
1889
|
break;
|
|
1882
1890
|
}
|
|
1883
1891
|
message.end = reader.int32();
|
|
1884
1892
|
continue;
|
|
1885
1893
|
}
|
|
1886
|
-
if ((tag & 7)
|
|
1894
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1887
1895
|
break;
|
|
1888
1896
|
}
|
|
1889
1897
|
reader.skipType(tag & 7);
|
|
@@ -1895,8 +1903,12 @@ exports.EnumDescriptorProto_EnumReservedRange = {
|
|
|
1895
1903
|
},
|
|
1896
1904
|
toJSON(message) {
|
|
1897
1905
|
const obj = {};
|
|
1898
|
-
message.start !==
|
|
1899
|
-
|
|
1906
|
+
if (message.start !== 0) {
|
|
1907
|
+
obj.start = Math.round(message.start);
|
|
1908
|
+
}
|
|
1909
|
+
if (message.end !== 0) {
|
|
1910
|
+
obj.end = Math.round(message.end);
|
|
1911
|
+
}
|
|
1900
1912
|
return obj;
|
|
1901
1913
|
},
|
|
1902
1914
|
create(base) {
|
|
@@ -1934,25 +1946,25 @@ exports.EnumValueDescriptorProto = {
|
|
|
1934
1946
|
const tag = reader.uint32();
|
|
1935
1947
|
switch (tag >>> 3) {
|
|
1936
1948
|
case 1:
|
|
1937
|
-
if (tag
|
|
1949
|
+
if (tag !== 10) {
|
|
1938
1950
|
break;
|
|
1939
1951
|
}
|
|
1940
1952
|
message.name = reader.string();
|
|
1941
1953
|
continue;
|
|
1942
1954
|
case 2:
|
|
1943
|
-
if (tag
|
|
1955
|
+
if (tag !== 16) {
|
|
1944
1956
|
break;
|
|
1945
1957
|
}
|
|
1946
1958
|
message.number = reader.int32();
|
|
1947
1959
|
continue;
|
|
1948
1960
|
case 3:
|
|
1949
|
-
if (tag
|
|
1961
|
+
if (tag !== 26) {
|
|
1950
1962
|
break;
|
|
1951
1963
|
}
|
|
1952
1964
|
message.options = exports.EnumValueOptions.decode(reader, reader.uint32());
|
|
1953
1965
|
continue;
|
|
1954
1966
|
}
|
|
1955
|
-
if ((tag & 7)
|
|
1967
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1956
1968
|
break;
|
|
1957
1969
|
}
|
|
1958
1970
|
reader.skipType(tag & 7);
|
|
@@ -1968,10 +1980,15 @@ exports.EnumValueDescriptorProto = {
|
|
|
1968
1980
|
},
|
|
1969
1981
|
toJSON(message) {
|
|
1970
1982
|
const obj = {};
|
|
1971
|
-
message.name !==
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1983
|
+
if (message.name !== "") {
|
|
1984
|
+
obj.name = message.name;
|
|
1985
|
+
}
|
|
1986
|
+
if (message.number !== 0) {
|
|
1987
|
+
obj.number = Math.round(message.number);
|
|
1988
|
+
}
|
|
1989
|
+
if (message.options !== undefined) {
|
|
1990
|
+
obj.options = exports.EnumValueOptions.toJSON(message.options);
|
|
1991
|
+
}
|
|
1975
1992
|
return obj;
|
|
1976
1993
|
},
|
|
1977
1994
|
create(base) {
|
|
@@ -2012,25 +2029,25 @@ exports.ServiceDescriptorProto = {
|
|
|
2012
2029
|
const tag = reader.uint32();
|
|
2013
2030
|
switch (tag >>> 3) {
|
|
2014
2031
|
case 1:
|
|
2015
|
-
if (tag
|
|
2032
|
+
if (tag !== 10) {
|
|
2016
2033
|
break;
|
|
2017
2034
|
}
|
|
2018
2035
|
message.name = reader.string();
|
|
2019
2036
|
continue;
|
|
2020
2037
|
case 2:
|
|
2021
|
-
if (tag
|
|
2038
|
+
if (tag !== 18) {
|
|
2022
2039
|
break;
|
|
2023
2040
|
}
|
|
2024
2041
|
message.method.push(exports.MethodDescriptorProto.decode(reader, reader.uint32()));
|
|
2025
2042
|
continue;
|
|
2026
2043
|
case 3:
|
|
2027
|
-
if (tag
|
|
2044
|
+
if (tag !== 26) {
|
|
2028
2045
|
break;
|
|
2029
2046
|
}
|
|
2030
2047
|
message.options = exports.ServiceOptions.decode(reader, reader.uint32());
|
|
2031
2048
|
continue;
|
|
2032
2049
|
}
|
|
2033
|
-
if ((tag & 7)
|
|
2050
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2034
2051
|
break;
|
|
2035
2052
|
}
|
|
2036
2053
|
reader.skipType(tag & 7);
|
|
@@ -2045,16 +2062,17 @@ exports.ServiceDescriptorProto = {
|
|
|
2045
2062
|
};
|
|
2046
2063
|
},
|
|
2047
2064
|
toJSON(message) {
|
|
2065
|
+
var _a;
|
|
2048
2066
|
const obj = {};
|
|
2049
|
-
message.name !==
|
|
2050
|
-
|
|
2051
|
-
obj.method = message.method.map((e) => e ? exports.MethodDescriptorProto.toJSON(e) : undefined);
|
|
2067
|
+
if (message.name !== "") {
|
|
2068
|
+
obj.name = message.name;
|
|
2052
2069
|
}
|
|
2053
|
-
|
|
2054
|
-
obj.method =
|
|
2070
|
+
if ((_a = message.method) === null || _a === void 0 ? void 0 : _a.length) {
|
|
2071
|
+
obj.method = message.method.map((e) => exports.MethodDescriptorProto.toJSON(e));
|
|
2072
|
+
}
|
|
2073
|
+
if (message.options !== undefined) {
|
|
2074
|
+
obj.options = exports.ServiceOptions.toJSON(message.options);
|
|
2055
2075
|
}
|
|
2056
|
-
message.options !== undefined &&
|
|
2057
|
-
(obj.options = message.options ? exports.ServiceOptions.toJSON(message.options) : undefined);
|
|
2058
2076
|
return obj;
|
|
2059
2077
|
},
|
|
2060
2078
|
create(base) {
|
|
@@ -2111,43 +2129,43 @@ exports.MethodDescriptorProto = {
|
|
|
2111
2129
|
const tag = reader.uint32();
|
|
2112
2130
|
switch (tag >>> 3) {
|
|
2113
2131
|
case 1:
|
|
2114
|
-
if (tag
|
|
2132
|
+
if (tag !== 10) {
|
|
2115
2133
|
break;
|
|
2116
2134
|
}
|
|
2117
2135
|
message.name = reader.string();
|
|
2118
2136
|
continue;
|
|
2119
2137
|
case 2:
|
|
2120
|
-
if (tag
|
|
2138
|
+
if (tag !== 18) {
|
|
2121
2139
|
break;
|
|
2122
2140
|
}
|
|
2123
2141
|
message.inputType = reader.string();
|
|
2124
2142
|
continue;
|
|
2125
2143
|
case 3:
|
|
2126
|
-
if (tag
|
|
2144
|
+
if (tag !== 26) {
|
|
2127
2145
|
break;
|
|
2128
2146
|
}
|
|
2129
2147
|
message.outputType = reader.string();
|
|
2130
2148
|
continue;
|
|
2131
2149
|
case 4:
|
|
2132
|
-
if (tag
|
|
2150
|
+
if (tag !== 34) {
|
|
2133
2151
|
break;
|
|
2134
2152
|
}
|
|
2135
2153
|
message.options = exports.MethodOptions.decode(reader, reader.uint32());
|
|
2136
2154
|
continue;
|
|
2137
2155
|
case 5:
|
|
2138
|
-
if (tag
|
|
2156
|
+
if (tag !== 40) {
|
|
2139
2157
|
break;
|
|
2140
2158
|
}
|
|
2141
2159
|
message.clientStreaming = reader.bool();
|
|
2142
2160
|
continue;
|
|
2143
2161
|
case 6:
|
|
2144
|
-
if (tag
|
|
2162
|
+
if (tag !== 48) {
|
|
2145
2163
|
break;
|
|
2146
2164
|
}
|
|
2147
2165
|
message.serverStreaming = reader.bool();
|
|
2148
2166
|
continue;
|
|
2149
2167
|
}
|
|
2150
|
-
if ((tag & 7)
|
|
2168
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2151
2169
|
break;
|
|
2152
2170
|
}
|
|
2153
2171
|
reader.skipType(tag & 7);
|
|
@@ -2166,13 +2184,24 @@ exports.MethodDescriptorProto = {
|
|
|
2166
2184
|
},
|
|
2167
2185
|
toJSON(message) {
|
|
2168
2186
|
const obj = {};
|
|
2169
|
-
message.name !==
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
message.
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
message.
|
|
2187
|
+
if (message.name !== "") {
|
|
2188
|
+
obj.name = message.name;
|
|
2189
|
+
}
|
|
2190
|
+
if (message.inputType !== "") {
|
|
2191
|
+
obj.inputType = message.inputType;
|
|
2192
|
+
}
|
|
2193
|
+
if (message.outputType !== "") {
|
|
2194
|
+
obj.outputType = message.outputType;
|
|
2195
|
+
}
|
|
2196
|
+
if (message.options !== undefined) {
|
|
2197
|
+
obj.options = exports.MethodOptions.toJSON(message.options);
|
|
2198
|
+
}
|
|
2199
|
+
if (message.clientStreaming === true) {
|
|
2200
|
+
obj.clientStreaming = message.clientStreaming;
|
|
2201
|
+
}
|
|
2202
|
+
if (message.serverStreaming === true) {
|
|
2203
|
+
obj.serverStreaming = message.serverStreaming;
|
|
2204
|
+
}
|
|
2176
2205
|
return obj;
|
|
2177
2206
|
},
|
|
2178
2207
|
create(base) {
|
|
@@ -2292,133 +2321,133 @@ exports.FileOptions = {
|
|
|
2292
2321
|
const tag = reader.uint32();
|
|
2293
2322
|
switch (tag >>> 3) {
|
|
2294
2323
|
case 1:
|
|
2295
|
-
if (tag
|
|
2324
|
+
if (tag !== 10) {
|
|
2296
2325
|
break;
|
|
2297
2326
|
}
|
|
2298
2327
|
message.javaPackage = reader.string();
|
|
2299
2328
|
continue;
|
|
2300
2329
|
case 8:
|
|
2301
|
-
if (tag
|
|
2330
|
+
if (tag !== 66) {
|
|
2302
2331
|
break;
|
|
2303
2332
|
}
|
|
2304
2333
|
message.javaOuterClassname = reader.string();
|
|
2305
2334
|
continue;
|
|
2306
2335
|
case 10:
|
|
2307
|
-
if (tag
|
|
2336
|
+
if (tag !== 80) {
|
|
2308
2337
|
break;
|
|
2309
2338
|
}
|
|
2310
2339
|
message.javaMultipleFiles = reader.bool();
|
|
2311
2340
|
continue;
|
|
2312
2341
|
case 20:
|
|
2313
|
-
if (tag
|
|
2342
|
+
if (tag !== 160) {
|
|
2314
2343
|
break;
|
|
2315
2344
|
}
|
|
2316
2345
|
message.javaGenerateEqualsAndHash = reader.bool();
|
|
2317
2346
|
continue;
|
|
2318
2347
|
case 27:
|
|
2319
|
-
if (tag
|
|
2348
|
+
if (tag !== 216) {
|
|
2320
2349
|
break;
|
|
2321
2350
|
}
|
|
2322
2351
|
message.javaStringCheckUtf8 = reader.bool();
|
|
2323
2352
|
continue;
|
|
2324
2353
|
case 9:
|
|
2325
|
-
if (tag
|
|
2354
|
+
if (tag !== 72) {
|
|
2326
2355
|
break;
|
|
2327
2356
|
}
|
|
2328
2357
|
message.optimizeFor = reader.int32();
|
|
2329
2358
|
continue;
|
|
2330
2359
|
case 11:
|
|
2331
|
-
if (tag
|
|
2360
|
+
if (tag !== 90) {
|
|
2332
2361
|
break;
|
|
2333
2362
|
}
|
|
2334
2363
|
message.goPackage = reader.string();
|
|
2335
2364
|
continue;
|
|
2336
2365
|
case 16:
|
|
2337
|
-
if (tag
|
|
2366
|
+
if (tag !== 128) {
|
|
2338
2367
|
break;
|
|
2339
2368
|
}
|
|
2340
2369
|
message.ccGenericServices = reader.bool();
|
|
2341
2370
|
continue;
|
|
2342
2371
|
case 17:
|
|
2343
|
-
if (tag
|
|
2372
|
+
if (tag !== 136) {
|
|
2344
2373
|
break;
|
|
2345
2374
|
}
|
|
2346
2375
|
message.javaGenericServices = reader.bool();
|
|
2347
2376
|
continue;
|
|
2348
2377
|
case 18:
|
|
2349
|
-
if (tag
|
|
2378
|
+
if (tag !== 144) {
|
|
2350
2379
|
break;
|
|
2351
2380
|
}
|
|
2352
2381
|
message.pyGenericServices = reader.bool();
|
|
2353
2382
|
continue;
|
|
2354
2383
|
case 42:
|
|
2355
|
-
if (tag
|
|
2384
|
+
if (tag !== 336) {
|
|
2356
2385
|
break;
|
|
2357
2386
|
}
|
|
2358
2387
|
message.phpGenericServices = reader.bool();
|
|
2359
2388
|
continue;
|
|
2360
2389
|
case 23:
|
|
2361
|
-
if (tag
|
|
2390
|
+
if (tag !== 184) {
|
|
2362
2391
|
break;
|
|
2363
2392
|
}
|
|
2364
2393
|
message.deprecated = reader.bool();
|
|
2365
2394
|
continue;
|
|
2366
2395
|
case 31:
|
|
2367
|
-
if (tag
|
|
2396
|
+
if (tag !== 248) {
|
|
2368
2397
|
break;
|
|
2369
2398
|
}
|
|
2370
2399
|
message.ccEnableArenas = reader.bool();
|
|
2371
2400
|
continue;
|
|
2372
2401
|
case 36:
|
|
2373
|
-
if (tag
|
|
2402
|
+
if (tag !== 290) {
|
|
2374
2403
|
break;
|
|
2375
2404
|
}
|
|
2376
2405
|
message.objcClassPrefix = reader.string();
|
|
2377
2406
|
continue;
|
|
2378
2407
|
case 37:
|
|
2379
|
-
if (tag
|
|
2408
|
+
if (tag !== 298) {
|
|
2380
2409
|
break;
|
|
2381
2410
|
}
|
|
2382
2411
|
message.csharpNamespace = reader.string();
|
|
2383
2412
|
continue;
|
|
2384
2413
|
case 39:
|
|
2385
|
-
if (tag
|
|
2414
|
+
if (tag !== 314) {
|
|
2386
2415
|
break;
|
|
2387
2416
|
}
|
|
2388
2417
|
message.swiftPrefix = reader.string();
|
|
2389
2418
|
continue;
|
|
2390
2419
|
case 40:
|
|
2391
|
-
if (tag
|
|
2420
|
+
if (tag !== 322) {
|
|
2392
2421
|
break;
|
|
2393
2422
|
}
|
|
2394
2423
|
message.phpClassPrefix = reader.string();
|
|
2395
2424
|
continue;
|
|
2396
2425
|
case 41:
|
|
2397
|
-
if (tag
|
|
2426
|
+
if (tag !== 330) {
|
|
2398
2427
|
break;
|
|
2399
2428
|
}
|
|
2400
2429
|
message.phpNamespace = reader.string();
|
|
2401
2430
|
continue;
|
|
2402
2431
|
case 44:
|
|
2403
|
-
if (tag
|
|
2432
|
+
if (tag !== 354) {
|
|
2404
2433
|
break;
|
|
2405
2434
|
}
|
|
2406
2435
|
message.phpMetadataNamespace = reader.string();
|
|
2407
2436
|
continue;
|
|
2408
2437
|
case 45:
|
|
2409
|
-
if (tag
|
|
2438
|
+
if (tag !== 362) {
|
|
2410
2439
|
break;
|
|
2411
2440
|
}
|
|
2412
2441
|
message.rubyPackage = reader.string();
|
|
2413
2442
|
continue;
|
|
2414
2443
|
case 999:
|
|
2415
|
-
if (tag
|
|
2444
|
+
if (tag !== 7994) {
|
|
2416
2445
|
break;
|
|
2417
2446
|
}
|
|
2418
2447
|
message.uninterpretedOption.push(exports.UninterpretedOption.decode(reader, reader.uint32()));
|
|
2419
2448
|
continue;
|
|
2420
2449
|
}
|
|
2421
|
-
if ((tag & 7)
|
|
2450
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2422
2451
|
break;
|
|
2423
2452
|
}
|
|
2424
2453
|
reader.skipType(tag & 7);
|
|
@@ -2455,33 +2484,70 @@ exports.FileOptions = {
|
|
|
2455
2484
|
};
|
|
2456
2485
|
},
|
|
2457
2486
|
toJSON(message) {
|
|
2487
|
+
var _a;
|
|
2458
2488
|
const obj = {};
|
|
2459
|
-
message.javaPackage !==
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
message.
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
message.
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
message.
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
if (message.
|
|
2481
|
-
obj.
|
|
2482
|
-
}
|
|
2483
|
-
|
|
2484
|
-
obj.
|
|
2489
|
+
if (message.javaPackage !== "") {
|
|
2490
|
+
obj.javaPackage = message.javaPackage;
|
|
2491
|
+
}
|
|
2492
|
+
if (message.javaOuterClassname !== "") {
|
|
2493
|
+
obj.javaOuterClassname = message.javaOuterClassname;
|
|
2494
|
+
}
|
|
2495
|
+
if (message.javaMultipleFiles === true) {
|
|
2496
|
+
obj.javaMultipleFiles = message.javaMultipleFiles;
|
|
2497
|
+
}
|
|
2498
|
+
if (message.javaGenerateEqualsAndHash === true) {
|
|
2499
|
+
obj.javaGenerateEqualsAndHash = message.javaGenerateEqualsAndHash;
|
|
2500
|
+
}
|
|
2501
|
+
if (message.javaStringCheckUtf8 === true) {
|
|
2502
|
+
obj.javaStringCheckUtf8 = message.javaStringCheckUtf8;
|
|
2503
|
+
}
|
|
2504
|
+
if (message.optimizeFor !== 1) {
|
|
2505
|
+
obj.optimizeFor = fileOptions_OptimizeModeToJSON(message.optimizeFor);
|
|
2506
|
+
}
|
|
2507
|
+
if (message.goPackage !== "") {
|
|
2508
|
+
obj.goPackage = message.goPackage;
|
|
2509
|
+
}
|
|
2510
|
+
if (message.ccGenericServices === true) {
|
|
2511
|
+
obj.ccGenericServices = message.ccGenericServices;
|
|
2512
|
+
}
|
|
2513
|
+
if (message.javaGenericServices === true) {
|
|
2514
|
+
obj.javaGenericServices = message.javaGenericServices;
|
|
2515
|
+
}
|
|
2516
|
+
if (message.pyGenericServices === true) {
|
|
2517
|
+
obj.pyGenericServices = message.pyGenericServices;
|
|
2518
|
+
}
|
|
2519
|
+
if (message.phpGenericServices === true) {
|
|
2520
|
+
obj.phpGenericServices = message.phpGenericServices;
|
|
2521
|
+
}
|
|
2522
|
+
if (message.deprecated === true) {
|
|
2523
|
+
obj.deprecated = message.deprecated;
|
|
2524
|
+
}
|
|
2525
|
+
if (message.ccEnableArenas === true) {
|
|
2526
|
+
obj.ccEnableArenas = message.ccEnableArenas;
|
|
2527
|
+
}
|
|
2528
|
+
if (message.objcClassPrefix !== "") {
|
|
2529
|
+
obj.objcClassPrefix = message.objcClassPrefix;
|
|
2530
|
+
}
|
|
2531
|
+
if (message.csharpNamespace !== "") {
|
|
2532
|
+
obj.csharpNamespace = message.csharpNamespace;
|
|
2533
|
+
}
|
|
2534
|
+
if (message.swiftPrefix !== "") {
|
|
2535
|
+
obj.swiftPrefix = message.swiftPrefix;
|
|
2536
|
+
}
|
|
2537
|
+
if (message.phpClassPrefix !== "") {
|
|
2538
|
+
obj.phpClassPrefix = message.phpClassPrefix;
|
|
2539
|
+
}
|
|
2540
|
+
if (message.phpNamespace !== "") {
|
|
2541
|
+
obj.phpNamespace = message.phpNamespace;
|
|
2542
|
+
}
|
|
2543
|
+
if (message.phpMetadataNamespace !== "") {
|
|
2544
|
+
obj.phpMetadataNamespace = message.phpMetadataNamespace;
|
|
2545
|
+
}
|
|
2546
|
+
if (message.rubyPackage !== "") {
|
|
2547
|
+
obj.rubyPackage = message.rubyPackage;
|
|
2548
|
+
}
|
|
2549
|
+
if ((_a = message.uninterpretedOption) === null || _a === void 0 ? void 0 : _a.length) {
|
|
2550
|
+
obj.uninterpretedOption = message.uninterpretedOption.map((e) => exports.UninterpretedOption.toJSON(e));
|
|
2485
2551
|
}
|
|
2486
2552
|
return obj;
|
|
2487
2553
|
},
|
|
@@ -2555,43 +2621,43 @@ exports.MessageOptions = {
|
|
|
2555
2621
|
const tag = reader.uint32();
|
|
2556
2622
|
switch (tag >>> 3) {
|
|
2557
2623
|
case 1:
|
|
2558
|
-
if (tag
|
|
2624
|
+
if (tag !== 8) {
|
|
2559
2625
|
break;
|
|
2560
2626
|
}
|
|
2561
2627
|
message.messageSetWireFormat = reader.bool();
|
|
2562
2628
|
continue;
|
|
2563
2629
|
case 2:
|
|
2564
|
-
if (tag
|
|
2630
|
+
if (tag !== 16) {
|
|
2565
2631
|
break;
|
|
2566
2632
|
}
|
|
2567
2633
|
message.noStandardDescriptorAccessor = reader.bool();
|
|
2568
2634
|
continue;
|
|
2569
2635
|
case 3:
|
|
2570
|
-
if (tag
|
|
2636
|
+
if (tag !== 24) {
|
|
2571
2637
|
break;
|
|
2572
2638
|
}
|
|
2573
2639
|
message.deprecated = reader.bool();
|
|
2574
2640
|
continue;
|
|
2575
2641
|
case 7:
|
|
2576
|
-
if (tag
|
|
2642
|
+
if (tag !== 56) {
|
|
2577
2643
|
break;
|
|
2578
2644
|
}
|
|
2579
2645
|
message.mapEntry = reader.bool();
|
|
2580
2646
|
continue;
|
|
2581
2647
|
case 11:
|
|
2582
|
-
if (tag
|
|
2648
|
+
if (tag !== 88) {
|
|
2583
2649
|
break;
|
|
2584
2650
|
}
|
|
2585
2651
|
message.deprecatedLegacyJsonFieldConflicts = reader.bool();
|
|
2586
2652
|
continue;
|
|
2587
2653
|
case 999:
|
|
2588
|
-
if (tag
|
|
2654
|
+
if (tag !== 7994) {
|
|
2589
2655
|
break;
|
|
2590
2656
|
}
|
|
2591
2657
|
message.uninterpretedOption.push(exports.UninterpretedOption.decode(reader, reader.uint32()));
|
|
2592
2658
|
continue;
|
|
2593
2659
|
}
|
|
2594
|
-
if ((tag & 7)
|
|
2660
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2595
2661
|
break;
|
|
2596
2662
|
}
|
|
2597
2663
|
reader.skipType(tag & 7);
|
|
@@ -2615,19 +2681,25 @@ exports.MessageOptions = {
|
|
|
2615
2681
|
};
|
|
2616
2682
|
},
|
|
2617
2683
|
toJSON(message) {
|
|
2684
|
+
var _a;
|
|
2618
2685
|
const obj = {};
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2686
|
+
if (message.messageSetWireFormat === true) {
|
|
2687
|
+
obj.messageSetWireFormat = message.messageSetWireFormat;
|
|
2688
|
+
}
|
|
2689
|
+
if (message.noStandardDescriptorAccessor === true) {
|
|
2690
|
+
obj.noStandardDescriptorAccessor = message.noStandardDescriptorAccessor;
|
|
2691
|
+
}
|
|
2692
|
+
if (message.deprecated === true) {
|
|
2693
|
+
obj.deprecated = message.deprecated;
|
|
2694
|
+
}
|
|
2695
|
+
if (message.mapEntry === true) {
|
|
2696
|
+
obj.mapEntry = message.mapEntry;
|
|
2697
|
+
}
|
|
2698
|
+
if (message.deprecatedLegacyJsonFieldConflicts === true) {
|
|
2699
|
+
obj.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts;
|
|
2700
|
+
}
|
|
2701
|
+
if ((_a = message.uninterpretedOption) === null || _a === void 0 ? void 0 : _a.length) {
|
|
2702
|
+
obj.uninterpretedOption = message.uninterpretedOption.map((e) => exports.UninterpretedOption.toJSON(e));
|
|
2631
2703
|
}
|
|
2632
2704
|
return obj;
|
|
2633
2705
|
},
|
|
@@ -2712,71 +2784,71 @@ exports.FieldOptions = {
|
|
|
2712
2784
|
const tag = reader.uint32();
|
|
2713
2785
|
switch (tag >>> 3) {
|
|
2714
2786
|
case 1:
|
|
2715
|
-
if (tag
|
|
2787
|
+
if (tag !== 8) {
|
|
2716
2788
|
break;
|
|
2717
2789
|
}
|
|
2718
2790
|
message.ctype = reader.int32();
|
|
2719
2791
|
continue;
|
|
2720
2792
|
case 2:
|
|
2721
|
-
if (tag
|
|
2793
|
+
if (tag !== 16) {
|
|
2722
2794
|
break;
|
|
2723
2795
|
}
|
|
2724
2796
|
message.packed = reader.bool();
|
|
2725
2797
|
continue;
|
|
2726
2798
|
case 6:
|
|
2727
|
-
if (tag
|
|
2799
|
+
if (tag !== 48) {
|
|
2728
2800
|
break;
|
|
2729
2801
|
}
|
|
2730
2802
|
message.jstype = reader.int32();
|
|
2731
2803
|
continue;
|
|
2732
2804
|
case 5:
|
|
2733
|
-
if (tag
|
|
2805
|
+
if (tag !== 40) {
|
|
2734
2806
|
break;
|
|
2735
2807
|
}
|
|
2736
2808
|
message.lazy = reader.bool();
|
|
2737
2809
|
continue;
|
|
2738
2810
|
case 15:
|
|
2739
|
-
if (tag
|
|
2811
|
+
if (tag !== 120) {
|
|
2740
2812
|
break;
|
|
2741
2813
|
}
|
|
2742
2814
|
message.unverifiedLazy = reader.bool();
|
|
2743
2815
|
continue;
|
|
2744
2816
|
case 3:
|
|
2745
|
-
if (tag
|
|
2817
|
+
if (tag !== 24) {
|
|
2746
2818
|
break;
|
|
2747
2819
|
}
|
|
2748
2820
|
message.deprecated = reader.bool();
|
|
2749
2821
|
continue;
|
|
2750
2822
|
case 10:
|
|
2751
|
-
if (tag
|
|
2823
|
+
if (tag !== 80) {
|
|
2752
2824
|
break;
|
|
2753
2825
|
}
|
|
2754
2826
|
message.weak = reader.bool();
|
|
2755
2827
|
continue;
|
|
2756
2828
|
case 16:
|
|
2757
|
-
if (tag
|
|
2829
|
+
if (tag !== 128) {
|
|
2758
2830
|
break;
|
|
2759
2831
|
}
|
|
2760
2832
|
message.debugRedact = reader.bool();
|
|
2761
2833
|
continue;
|
|
2762
2834
|
case 17:
|
|
2763
|
-
if (tag
|
|
2835
|
+
if (tag !== 136) {
|
|
2764
2836
|
break;
|
|
2765
2837
|
}
|
|
2766
2838
|
message.retention = reader.int32();
|
|
2767
2839
|
continue;
|
|
2768
2840
|
case 18:
|
|
2769
|
-
if (tag
|
|
2841
|
+
if (tag !== 144) {
|
|
2770
2842
|
break;
|
|
2771
2843
|
}
|
|
2772
2844
|
message.target = reader.int32();
|
|
2773
2845
|
continue;
|
|
2774
2846
|
case 19:
|
|
2775
|
-
if (tag
|
|
2847
|
+
if (tag === 152) {
|
|
2776
2848
|
message.targets.push(reader.int32());
|
|
2777
2849
|
continue;
|
|
2778
2850
|
}
|
|
2779
|
-
if (tag
|
|
2851
|
+
if (tag === 154) {
|
|
2780
2852
|
const end2 = reader.uint32() + reader.pos;
|
|
2781
2853
|
while (reader.pos < end2) {
|
|
2782
2854
|
message.targets.push(reader.int32());
|
|
@@ -2785,13 +2857,13 @@ exports.FieldOptions = {
|
|
|
2785
2857
|
}
|
|
2786
2858
|
break;
|
|
2787
2859
|
case 999:
|
|
2788
|
-
if (tag
|
|
2860
|
+
if (tag !== 7994) {
|
|
2789
2861
|
break;
|
|
2790
2862
|
}
|
|
2791
2863
|
message.uninterpretedOption.push(exports.UninterpretedOption.decode(reader, reader.uint32()));
|
|
2792
2864
|
continue;
|
|
2793
2865
|
}
|
|
2794
|
-
if ((tag & 7)
|
|
2866
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2795
2867
|
break;
|
|
2796
2868
|
}
|
|
2797
2869
|
reader.skipType(tag & 7);
|
|
@@ -2819,28 +2891,43 @@ exports.FieldOptions = {
|
|
|
2819
2891
|
};
|
|
2820
2892
|
},
|
|
2821
2893
|
toJSON(message) {
|
|
2894
|
+
var _a, _b;
|
|
2822
2895
|
const obj = {};
|
|
2823
|
-
message.ctype !==
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
message.
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2896
|
+
if (message.ctype !== 0) {
|
|
2897
|
+
obj.ctype = fieldOptions_CTypeToJSON(message.ctype);
|
|
2898
|
+
}
|
|
2899
|
+
if (message.packed === true) {
|
|
2900
|
+
obj.packed = message.packed;
|
|
2901
|
+
}
|
|
2902
|
+
if (message.jstype !== 0) {
|
|
2903
|
+
obj.jstype = fieldOptions_JSTypeToJSON(message.jstype);
|
|
2904
|
+
}
|
|
2905
|
+
if (message.lazy === true) {
|
|
2906
|
+
obj.lazy = message.lazy;
|
|
2907
|
+
}
|
|
2908
|
+
if (message.unverifiedLazy === true) {
|
|
2909
|
+
obj.unverifiedLazy = message.unverifiedLazy;
|
|
2910
|
+
}
|
|
2911
|
+
if (message.deprecated === true) {
|
|
2912
|
+
obj.deprecated = message.deprecated;
|
|
2913
|
+
}
|
|
2914
|
+
if (message.weak === true) {
|
|
2915
|
+
obj.weak = message.weak;
|
|
2835
2916
|
}
|
|
2836
|
-
|
|
2837
|
-
obj.
|
|
2917
|
+
if (message.debugRedact === true) {
|
|
2918
|
+
obj.debugRedact = message.debugRedact;
|
|
2838
2919
|
}
|
|
2839
|
-
if (message.
|
|
2840
|
-
obj.
|
|
2920
|
+
if (message.retention !== 0) {
|
|
2921
|
+
obj.retention = fieldOptions_OptionRetentionToJSON(message.retention);
|
|
2841
2922
|
}
|
|
2842
|
-
|
|
2843
|
-
obj.
|
|
2923
|
+
if (message.target !== 0) {
|
|
2924
|
+
obj.target = fieldOptions_OptionTargetTypeToJSON(message.target);
|
|
2925
|
+
}
|
|
2926
|
+
if ((_a = message.targets) === null || _a === void 0 ? void 0 : _a.length) {
|
|
2927
|
+
obj.targets = message.targets.map((e) => fieldOptions_OptionTargetTypeToJSON(e));
|
|
2928
|
+
}
|
|
2929
|
+
if ((_b = message.uninterpretedOption) === null || _b === void 0 ? void 0 : _b.length) {
|
|
2930
|
+
obj.uninterpretedOption = message.uninterpretedOption.map((e) => exports.UninterpretedOption.toJSON(e));
|
|
2844
2931
|
}
|
|
2845
2932
|
return obj;
|
|
2846
2933
|
},
|
|
@@ -2883,13 +2970,13 @@ exports.OneofOptions = {
|
|
|
2883
2970
|
const tag = reader.uint32();
|
|
2884
2971
|
switch (tag >>> 3) {
|
|
2885
2972
|
case 999:
|
|
2886
|
-
if (tag
|
|
2973
|
+
if (tag !== 7994) {
|
|
2887
2974
|
break;
|
|
2888
2975
|
}
|
|
2889
2976
|
message.uninterpretedOption.push(exports.UninterpretedOption.decode(reader, reader.uint32()));
|
|
2890
2977
|
continue;
|
|
2891
2978
|
}
|
|
2892
|
-
if ((tag & 7)
|
|
2979
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2893
2980
|
break;
|
|
2894
2981
|
}
|
|
2895
2982
|
reader.skipType(tag & 7);
|
|
@@ -2904,12 +2991,10 @@ exports.OneofOptions = {
|
|
|
2904
2991
|
};
|
|
2905
2992
|
},
|
|
2906
2993
|
toJSON(message) {
|
|
2994
|
+
var _a;
|
|
2907
2995
|
const obj = {};
|
|
2908
|
-
if (message.uninterpretedOption) {
|
|
2909
|
-
obj.uninterpretedOption = message.uninterpretedOption.map((e) =>
|
|
2910
|
-
}
|
|
2911
|
-
else {
|
|
2912
|
-
obj.uninterpretedOption = [];
|
|
2996
|
+
if ((_a = message.uninterpretedOption) === null || _a === void 0 ? void 0 : _a.length) {
|
|
2997
|
+
obj.uninterpretedOption = message.uninterpretedOption.map((e) => exports.UninterpretedOption.toJSON(e));
|
|
2913
2998
|
}
|
|
2914
2999
|
return obj;
|
|
2915
3000
|
},
|
|
@@ -2950,31 +3035,31 @@ exports.EnumOptions = {
|
|
|
2950
3035
|
const tag = reader.uint32();
|
|
2951
3036
|
switch (tag >>> 3) {
|
|
2952
3037
|
case 2:
|
|
2953
|
-
if (tag
|
|
3038
|
+
if (tag !== 16) {
|
|
2954
3039
|
break;
|
|
2955
3040
|
}
|
|
2956
3041
|
message.allowAlias = reader.bool();
|
|
2957
3042
|
continue;
|
|
2958
3043
|
case 3:
|
|
2959
|
-
if (tag
|
|
3044
|
+
if (tag !== 24) {
|
|
2960
3045
|
break;
|
|
2961
3046
|
}
|
|
2962
3047
|
message.deprecated = reader.bool();
|
|
2963
3048
|
continue;
|
|
2964
3049
|
case 6:
|
|
2965
|
-
if (tag
|
|
3050
|
+
if (tag !== 48) {
|
|
2966
3051
|
break;
|
|
2967
3052
|
}
|
|
2968
3053
|
message.deprecatedLegacyJsonFieldConflicts = reader.bool();
|
|
2969
3054
|
continue;
|
|
2970
3055
|
case 999:
|
|
2971
|
-
if (tag
|
|
3056
|
+
if (tag !== 7994) {
|
|
2972
3057
|
break;
|
|
2973
3058
|
}
|
|
2974
3059
|
message.uninterpretedOption.push(exports.UninterpretedOption.decode(reader, reader.uint32()));
|
|
2975
3060
|
continue;
|
|
2976
3061
|
}
|
|
2977
|
-
if ((tag & 7)
|
|
3062
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2978
3063
|
break;
|
|
2979
3064
|
}
|
|
2980
3065
|
reader.skipType(tag & 7);
|
|
@@ -2994,16 +3079,19 @@ exports.EnumOptions = {
|
|
|
2994
3079
|
};
|
|
2995
3080
|
},
|
|
2996
3081
|
toJSON(message) {
|
|
3082
|
+
var _a;
|
|
2997
3083
|
const obj = {};
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3084
|
+
if (message.allowAlias === true) {
|
|
3085
|
+
obj.allowAlias = message.allowAlias;
|
|
3086
|
+
}
|
|
3087
|
+
if (message.deprecated === true) {
|
|
3088
|
+
obj.deprecated = message.deprecated;
|
|
3089
|
+
}
|
|
3090
|
+
if (message.deprecatedLegacyJsonFieldConflicts === true) {
|
|
3091
|
+
obj.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts;
|
|
3004
3092
|
}
|
|
3005
|
-
|
|
3006
|
-
obj.uninterpretedOption =
|
|
3093
|
+
if ((_a = message.uninterpretedOption) === null || _a === void 0 ? void 0 : _a.length) {
|
|
3094
|
+
obj.uninterpretedOption = message.uninterpretedOption.map((e) => exports.UninterpretedOption.toJSON(e));
|
|
3007
3095
|
}
|
|
3008
3096
|
return obj;
|
|
3009
3097
|
},
|
|
@@ -3041,19 +3129,19 @@ exports.EnumValueOptions = {
|
|
|
3041
3129
|
const tag = reader.uint32();
|
|
3042
3130
|
switch (tag >>> 3) {
|
|
3043
3131
|
case 1:
|
|
3044
|
-
if (tag
|
|
3132
|
+
if (tag !== 8) {
|
|
3045
3133
|
break;
|
|
3046
3134
|
}
|
|
3047
3135
|
message.deprecated = reader.bool();
|
|
3048
3136
|
continue;
|
|
3049
3137
|
case 999:
|
|
3050
|
-
if (tag
|
|
3138
|
+
if (tag !== 7994) {
|
|
3051
3139
|
break;
|
|
3052
3140
|
}
|
|
3053
3141
|
message.uninterpretedOption.push(exports.UninterpretedOption.decode(reader, reader.uint32()));
|
|
3054
3142
|
continue;
|
|
3055
3143
|
}
|
|
3056
|
-
if ((tag & 7)
|
|
3144
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3057
3145
|
break;
|
|
3058
3146
|
}
|
|
3059
3147
|
reader.skipType(tag & 7);
|
|
@@ -3069,13 +3157,13 @@ exports.EnumValueOptions = {
|
|
|
3069
3157
|
};
|
|
3070
3158
|
},
|
|
3071
3159
|
toJSON(message) {
|
|
3160
|
+
var _a;
|
|
3072
3161
|
const obj = {};
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? exports.UninterpretedOption.toJSON(e) : undefined);
|
|
3162
|
+
if (message.deprecated === true) {
|
|
3163
|
+
obj.deprecated = message.deprecated;
|
|
3076
3164
|
}
|
|
3077
|
-
|
|
3078
|
-
obj.uninterpretedOption =
|
|
3165
|
+
if ((_a = message.uninterpretedOption) === null || _a === void 0 ? void 0 : _a.length) {
|
|
3166
|
+
obj.uninterpretedOption = message.uninterpretedOption.map((e) => exports.UninterpretedOption.toJSON(e));
|
|
3079
3167
|
}
|
|
3080
3168
|
return obj;
|
|
3081
3169
|
},
|
|
@@ -3111,19 +3199,19 @@ exports.ServiceOptions = {
|
|
|
3111
3199
|
const tag = reader.uint32();
|
|
3112
3200
|
switch (tag >>> 3) {
|
|
3113
3201
|
case 33:
|
|
3114
|
-
if (tag
|
|
3202
|
+
if (tag !== 264) {
|
|
3115
3203
|
break;
|
|
3116
3204
|
}
|
|
3117
3205
|
message.deprecated = reader.bool();
|
|
3118
3206
|
continue;
|
|
3119
3207
|
case 999:
|
|
3120
|
-
if (tag
|
|
3208
|
+
if (tag !== 7994) {
|
|
3121
3209
|
break;
|
|
3122
3210
|
}
|
|
3123
3211
|
message.uninterpretedOption.push(exports.UninterpretedOption.decode(reader, reader.uint32()));
|
|
3124
3212
|
continue;
|
|
3125
3213
|
}
|
|
3126
|
-
if ((tag & 7)
|
|
3214
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3127
3215
|
break;
|
|
3128
3216
|
}
|
|
3129
3217
|
reader.skipType(tag & 7);
|
|
@@ -3139,13 +3227,13 @@ exports.ServiceOptions = {
|
|
|
3139
3227
|
};
|
|
3140
3228
|
},
|
|
3141
3229
|
toJSON(message) {
|
|
3230
|
+
var _a;
|
|
3142
3231
|
const obj = {};
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? exports.UninterpretedOption.toJSON(e) : undefined);
|
|
3232
|
+
if (message.deprecated === true) {
|
|
3233
|
+
obj.deprecated = message.deprecated;
|
|
3146
3234
|
}
|
|
3147
|
-
|
|
3148
|
-
obj.uninterpretedOption =
|
|
3235
|
+
if ((_a = message.uninterpretedOption) === null || _a === void 0 ? void 0 : _a.length) {
|
|
3236
|
+
obj.uninterpretedOption = message.uninterpretedOption.map((e) => exports.UninterpretedOption.toJSON(e));
|
|
3149
3237
|
}
|
|
3150
3238
|
return obj;
|
|
3151
3239
|
},
|
|
@@ -3184,25 +3272,25 @@ exports.MethodOptions = {
|
|
|
3184
3272
|
const tag = reader.uint32();
|
|
3185
3273
|
switch (tag >>> 3) {
|
|
3186
3274
|
case 33:
|
|
3187
|
-
if (tag
|
|
3275
|
+
if (tag !== 264) {
|
|
3188
3276
|
break;
|
|
3189
3277
|
}
|
|
3190
3278
|
message.deprecated = reader.bool();
|
|
3191
3279
|
continue;
|
|
3192
3280
|
case 34:
|
|
3193
|
-
if (tag
|
|
3281
|
+
if (tag !== 272) {
|
|
3194
3282
|
break;
|
|
3195
3283
|
}
|
|
3196
3284
|
message.idempotencyLevel = reader.int32();
|
|
3197
3285
|
continue;
|
|
3198
3286
|
case 999:
|
|
3199
|
-
if (tag
|
|
3287
|
+
if (tag !== 7994) {
|
|
3200
3288
|
break;
|
|
3201
3289
|
}
|
|
3202
3290
|
message.uninterpretedOption.push(exports.UninterpretedOption.decode(reader, reader.uint32()));
|
|
3203
3291
|
continue;
|
|
3204
3292
|
}
|
|
3205
|
-
if ((tag & 7)
|
|
3293
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3206
3294
|
break;
|
|
3207
3295
|
}
|
|
3208
3296
|
reader.skipType(tag & 7);
|
|
@@ -3221,15 +3309,16 @@ exports.MethodOptions = {
|
|
|
3221
3309
|
};
|
|
3222
3310
|
},
|
|
3223
3311
|
toJSON(message) {
|
|
3312
|
+
var _a;
|
|
3224
3313
|
const obj = {};
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
if (message.
|
|
3229
|
-
obj.
|
|
3314
|
+
if (message.deprecated === true) {
|
|
3315
|
+
obj.deprecated = message.deprecated;
|
|
3316
|
+
}
|
|
3317
|
+
if (message.idempotencyLevel !== 0) {
|
|
3318
|
+
obj.idempotencyLevel = methodOptions_IdempotencyLevelToJSON(message.idempotencyLevel);
|
|
3230
3319
|
}
|
|
3231
|
-
|
|
3232
|
-
obj.uninterpretedOption =
|
|
3320
|
+
if ((_a = message.uninterpretedOption) === null || _a === void 0 ? void 0 : _a.length) {
|
|
3321
|
+
obj.uninterpretedOption = message.uninterpretedOption.map((e) => exports.UninterpretedOption.toJSON(e));
|
|
3233
3322
|
}
|
|
3234
3323
|
return obj;
|
|
3235
3324
|
},
|
|
@@ -3252,7 +3341,7 @@ function createBaseUninterpretedOption() {
|
|
|
3252
3341
|
positiveIntValue: 0,
|
|
3253
3342
|
negativeIntValue: 0,
|
|
3254
3343
|
doubleValue: 0,
|
|
3255
|
-
stringValue: new Uint8Array(),
|
|
3344
|
+
stringValue: new Uint8Array(0),
|
|
3256
3345
|
aggregateValue: "",
|
|
3257
3346
|
};
|
|
3258
3347
|
}
|
|
@@ -3289,49 +3378,49 @@ exports.UninterpretedOption = {
|
|
|
3289
3378
|
const tag = reader.uint32();
|
|
3290
3379
|
switch (tag >>> 3) {
|
|
3291
3380
|
case 2:
|
|
3292
|
-
if (tag
|
|
3381
|
+
if (tag !== 18) {
|
|
3293
3382
|
break;
|
|
3294
3383
|
}
|
|
3295
3384
|
message.name.push(exports.UninterpretedOption_NamePart.decode(reader, reader.uint32()));
|
|
3296
3385
|
continue;
|
|
3297
3386
|
case 3:
|
|
3298
|
-
if (tag
|
|
3387
|
+
if (tag !== 26) {
|
|
3299
3388
|
break;
|
|
3300
3389
|
}
|
|
3301
3390
|
message.identifierValue = reader.string();
|
|
3302
3391
|
continue;
|
|
3303
3392
|
case 4:
|
|
3304
|
-
if (tag
|
|
3393
|
+
if (tag !== 32) {
|
|
3305
3394
|
break;
|
|
3306
3395
|
}
|
|
3307
3396
|
message.positiveIntValue = longToNumber(reader.uint64());
|
|
3308
3397
|
continue;
|
|
3309
3398
|
case 5:
|
|
3310
|
-
if (tag
|
|
3399
|
+
if (tag !== 40) {
|
|
3311
3400
|
break;
|
|
3312
3401
|
}
|
|
3313
3402
|
message.negativeIntValue = longToNumber(reader.int64());
|
|
3314
3403
|
continue;
|
|
3315
3404
|
case 6:
|
|
3316
|
-
if (tag
|
|
3405
|
+
if (tag !== 49) {
|
|
3317
3406
|
break;
|
|
3318
3407
|
}
|
|
3319
3408
|
message.doubleValue = reader.double();
|
|
3320
3409
|
continue;
|
|
3321
3410
|
case 7:
|
|
3322
|
-
if (tag
|
|
3411
|
+
if (tag !== 58) {
|
|
3323
3412
|
break;
|
|
3324
3413
|
}
|
|
3325
3414
|
message.stringValue = reader.bytes();
|
|
3326
3415
|
continue;
|
|
3327
3416
|
case 8:
|
|
3328
|
-
if (tag
|
|
3417
|
+
if (tag !== 66) {
|
|
3329
3418
|
break;
|
|
3330
3419
|
}
|
|
3331
3420
|
message.aggregateValue = reader.string();
|
|
3332
3421
|
continue;
|
|
3333
3422
|
}
|
|
3334
|
-
if ((tag & 7)
|
|
3423
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3335
3424
|
break;
|
|
3336
3425
|
}
|
|
3337
3426
|
reader.skipType(tag & 7);
|
|
@@ -3345,25 +3434,34 @@ exports.UninterpretedOption = {
|
|
|
3345
3434
|
positiveIntValue: isSet(object.positiveIntValue) ? Number(object.positiveIntValue) : 0,
|
|
3346
3435
|
negativeIntValue: isSet(object.negativeIntValue) ? Number(object.negativeIntValue) : 0,
|
|
3347
3436
|
doubleValue: isSet(object.doubleValue) ? Number(object.doubleValue) : 0,
|
|
3348
|
-
stringValue: isSet(object.stringValue) ? bytesFromBase64(object.stringValue) : new Uint8Array(),
|
|
3437
|
+
stringValue: isSet(object.stringValue) ? bytesFromBase64(object.stringValue) : new Uint8Array(0),
|
|
3349
3438
|
aggregateValue: isSet(object.aggregateValue) ? String(object.aggregateValue) : "",
|
|
3350
3439
|
};
|
|
3351
3440
|
},
|
|
3352
3441
|
toJSON(message) {
|
|
3442
|
+
var _a;
|
|
3353
3443
|
const obj = {};
|
|
3354
|
-
if (message.name) {
|
|
3355
|
-
obj.name = message.name.map((e) =>
|
|
3356
|
-
}
|
|
3357
|
-
|
|
3358
|
-
obj.
|
|
3359
|
-
}
|
|
3360
|
-
message.
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
message.
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
message.
|
|
3444
|
+
if ((_a = message.name) === null || _a === void 0 ? void 0 : _a.length) {
|
|
3445
|
+
obj.name = message.name.map((e) => exports.UninterpretedOption_NamePart.toJSON(e));
|
|
3446
|
+
}
|
|
3447
|
+
if (message.identifierValue !== "") {
|
|
3448
|
+
obj.identifierValue = message.identifierValue;
|
|
3449
|
+
}
|
|
3450
|
+
if (message.positiveIntValue !== 0) {
|
|
3451
|
+
obj.positiveIntValue = Math.round(message.positiveIntValue);
|
|
3452
|
+
}
|
|
3453
|
+
if (message.negativeIntValue !== 0) {
|
|
3454
|
+
obj.negativeIntValue = Math.round(message.negativeIntValue);
|
|
3455
|
+
}
|
|
3456
|
+
if (message.doubleValue !== 0) {
|
|
3457
|
+
obj.doubleValue = message.doubleValue;
|
|
3458
|
+
}
|
|
3459
|
+
if (message.stringValue.length !== 0) {
|
|
3460
|
+
obj.stringValue = base64FromBytes(message.stringValue);
|
|
3461
|
+
}
|
|
3462
|
+
if (message.aggregateValue !== "") {
|
|
3463
|
+
obj.aggregateValue = message.aggregateValue;
|
|
3464
|
+
}
|
|
3367
3465
|
return obj;
|
|
3368
3466
|
},
|
|
3369
3467
|
create(base) {
|
|
@@ -3377,7 +3475,7 @@ exports.UninterpretedOption = {
|
|
|
3377
3475
|
message.positiveIntValue = (_c = object.positiveIntValue) !== null && _c !== void 0 ? _c : 0;
|
|
3378
3476
|
message.negativeIntValue = (_d = object.negativeIntValue) !== null && _d !== void 0 ? _d : 0;
|
|
3379
3477
|
message.doubleValue = (_e = object.doubleValue) !== null && _e !== void 0 ? _e : 0;
|
|
3380
|
-
message.stringValue = (_f = object.stringValue) !== null && _f !== void 0 ? _f : new Uint8Array();
|
|
3478
|
+
message.stringValue = (_f = object.stringValue) !== null && _f !== void 0 ? _f : new Uint8Array(0);
|
|
3381
3479
|
message.aggregateValue = (_g = object.aggregateValue) !== null && _g !== void 0 ? _g : "";
|
|
3382
3480
|
return message;
|
|
3383
3481
|
},
|
|
@@ -3403,19 +3501,19 @@ exports.UninterpretedOption_NamePart = {
|
|
|
3403
3501
|
const tag = reader.uint32();
|
|
3404
3502
|
switch (tag >>> 3) {
|
|
3405
3503
|
case 1:
|
|
3406
|
-
if (tag
|
|
3504
|
+
if (tag !== 10) {
|
|
3407
3505
|
break;
|
|
3408
3506
|
}
|
|
3409
3507
|
message.namePart = reader.string();
|
|
3410
3508
|
continue;
|
|
3411
3509
|
case 2:
|
|
3412
|
-
if (tag
|
|
3510
|
+
if (tag !== 16) {
|
|
3413
3511
|
break;
|
|
3414
3512
|
}
|
|
3415
3513
|
message.isExtension = reader.bool();
|
|
3416
3514
|
continue;
|
|
3417
3515
|
}
|
|
3418
|
-
if ((tag & 7)
|
|
3516
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3419
3517
|
break;
|
|
3420
3518
|
}
|
|
3421
3519
|
reader.skipType(tag & 7);
|
|
@@ -3430,8 +3528,12 @@ exports.UninterpretedOption_NamePart = {
|
|
|
3430
3528
|
},
|
|
3431
3529
|
toJSON(message) {
|
|
3432
3530
|
const obj = {};
|
|
3433
|
-
message.namePart !==
|
|
3434
|
-
|
|
3531
|
+
if (message.namePart !== "") {
|
|
3532
|
+
obj.namePart = message.namePart;
|
|
3533
|
+
}
|
|
3534
|
+
if (message.isExtension === true) {
|
|
3535
|
+
obj.isExtension = message.isExtension;
|
|
3536
|
+
}
|
|
3435
3537
|
return obj;
|
|
3436
3538
|
},
|
|
3437
3539
|
create(base) {
|
|
@@ -3463,13 +3565,13 @@ exports.SourceCodeInfo = {
|
|
|
3463
3565
|
const tag = reader.uint32();
|
|
3464
3566
|
switch (tag >>> 3) {
|
|
3465
3567
|
case 1:
|
|
3466
|
-
if (tag
|
|
3568
|
+
if (tag !== 10) {
|
|
3467
3569
|
break;
|
|
3468
3570
|
}
|
|
3469
3571
|
message.location.push(exports.SourceCodeInfo_Location.decode(reader, reader.uint32()));
|
|
3470
3572
|
continue;
|
|
3471
3573
|
}
|
|
3472
|
-
if ((tag & 7)
|
|
3574
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3473
3575
|
break;
|
|
3474
3576
|
}
|
|
3475
3577
|
reader.skipType(tag & 7);
|
|
@@ -3484,12 +3586,10 @@ exports.SourceCodeInfo = {
|
|
|
3484
3586
|
};
|
|
3485
3587
|
},
|
|
3486
3588
|
toJSON(message) {
|
|
3589
|
+
var _a;
|
|
3487
3590
|
const obj = {};
|
|
3488
|
-
if (message.location) {
|
|
3489
|
-
obj.location = message.location.map((e) =>
|
|
3490
|
-
}
|
|
3491
|
-
else {
|
|
3492
|
-
obj.location = [];
|
|
3591
|
+
if ((_a = message.location) === null || _a === void 0 ? void 0 : _a.length) {
|
|
3592
|
+
obj.location = message.location.map((e) => exports.SourceCodeInfo_Location.toJSON(e));
|
|
3493
3593
|
}
|
|
3494
3594
|
return obj;
|
|
3495
3595
|
},
|
|
@@ -3537,11 +3637,11 @@ exports.SourceCodeInfo_Location = {
|
|
|
3537
3637
|
const tag = reader.uint32();
|
|
3538
3638
|
switch (tag >>> 3) {
|
|
3539
3639
|
case 1:
|
|
3540
|
-
if (tag
|
|
3640
|
+
if (tag === 8) {
|
|
3541
3641
|
message.path.push(reader.int32());
|
|
3542
3642
|
continue;
|
|
3543
3643
|
}
|
|
3544
|
-
if (tag
|
|
3644
|
+
if (tag === 10) {
|
|
3545
3645
|
const end2 = reader.uint32() + reader.pos;
|
|
3546
3646
|
while (reader.pos < end2) {
|
|
3547
3647
|
message.path.push(reader.int32());
|
|
@@ -3550,11 +3650,11 @@ exports.SourceCodeInfo_Location = {
|
|
|
3550
3650
|
}
|
|
3551
3651
|
break;
|
|
3552
3652
|
case 2:
|
|
3553
|
-
if (tag
|
|
3653
|
+
if (tag === 16) {
|
|
3554
3654
|
message.span.push(reader.int32());
|
|
3555
3655
|
continue;
|
|
3556
3656
|
}
|
|
3557
|
-
if (tag
|
|
3657
|
+
if (tag === 18) {
|
|
3558
3658
|
const end2 = reader.uint32() + reader.pos;
|
|
3559
3659
|
while (reader.pos < end2) {
|
|
3560
3660
|
message.span.push(reader.int32());
|
|
@@ -3563,25 +3663,25 @@ exports.SourceCodeInfo_Location = {
|
|
|
3563
3663
|
}
|
|
3564
3664
|
break;
|
|
3565
3665
|
case 3:
|
|
3566
|
-
if (tag
|
|
3666
|
+
if (tag !== 26) {
|
|
3567
3667
|
break;
|
|
3568
3668
|
}
|
|
3569
3669
|
message.leadingComments = reader.string();
|
|
3570
3670
|
continue;
|
|
3571
3671
|
case 4:
|
|
3572
|
-
if (tag
|
|
3672
|
+
if (tag !== 34) {
|
|
3573
3673
|
break;
|
|
3574
3674
|
}
|
|
3575
3675
|
message.trailingComments = reader.string();
|
|
3576
3676
|
continue;
|
|
3577
3677
|
case 6:
|
|
3578
|
-
if (tag
|
|
3678
|
+
if (tag !== 50) {
|
|
3579
3679
|
break;
|
|
3580
3680
|
}
|
|
3581
3681
|
message.leadingDetachedComments.push(reader.string());
|
|
3582
3682
|
continue;
|
|
3583
3683
|
}
|
|
3584
|
-
if ((tag & 7)
|
|
3684
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3585
3685
|
break;
|
|
3586
3686
|
}
|
|
3587
3687
|
reader.skipType(tag & 7);
|
|
@@ -3600,26 +3700,22 @@ exports.SourceCodeInfo_Location = {
|
|
|
3600
3700
|
};
|
|
3601
3701
|
},
|
|
3602
3702
|
toJSON(message) {
|
|
3703
|
+
var _a, _b, _c;
|
|
3603
3704
|
const obj = {};
|
|
3604
|
-
if (message.path) {
|
|
3705
|
+
if ((_a = message.path) === null || _a === void 0 ? void 0 : _a.length) {
|
|
3605
3706
|
obj.path = message.path.map((e) => Math.round(e));
|
|
3606
3707
|
}
|
|
3607
|
-
|
|
3608
|
-
obj.path = [];
|
|
3609
|
-
}
|
|
3610
|
-
if (message.span) {
|
|
3708
|
+
if ((_b = message.span) === null || _b === void 0 ? void 0 : _b.length) {
|
|
3611
3709
|
obj.span = message.span.map((e) => Math.round(e));
|
|
3612
3710
|
}
|
|
3613
|
-
|
|
3614
|
-
obj.
|
|
3711
|
+
if (message.leadingComments !== "") {
|
|
3712
|
+
obj.leadingComments = message.leadingComments;
|
|
3615
3713
|
}
|
|
3616
|
-
message.
|
|
3617
|
-
|
|
3618
|
-
if (message.leadingDetachedComments) {
|
|
3619
|
-
obj.leadingDetachedComments = message.leadingDetachedComments.map((e) => e);
|
|
3714
|
+
if (message.trailingComments !== "") {
|
|
3715
|
+
obj.trailingComments = message.trailingComments;
|
|
3620
3716
|
}
|
|
3621
|
-
|
|
3622
|
-
obj.leadingDetachedComments =
|
|
3717
|
+
if ((_c = message.leadingDetachedComments) === null || _c === void 0 ? void 0 : _c.length) {
|
|
3718
|
+
obj.leadingDetachedComments = message.leadingDetachedComments;
|
|
3623
3719
|
}
|
|
3624
3720
|
return obj;
|
|
3625
3721
|
},
|
|
@@ -3655,13 +3751,13 @@ exports.GeneratedCodeInfo = {
|
|
|
3655
3751
|
const tag = reader.uint32();
|
|
3656
3752
|
switch (tag >>> 3) {
|
|
3657
3753
|
case 1:
|
|
3658
|
-
if (tag
|
|
3754
|
+
if (tag !== 10) {
|
|
3659
3755
|
break;
|
|
3660
3756
|
}
|
|
3661
3757
|
message.annotation.push(exports.GeneratedCodeInfo_Annotation.decode(reader, reader.uint32()));
|
|
3662
3758
|
continue;
|
|
3663
3759
|
}
|
|
3664
|
-
if ((tag & 7)
|
|
3760
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3665
3761
|
break;
|
|
3666
3762
|
}
|
|
3667
3763
|
reader.skipType(tag & 7);
|
|
@@ -3676,12 +3772,10 @@ exports.GeneratedCodeInfo = {
|
|
|
3676
3772
|
};
|
|
3677
3773
|
},
|
|
3678
3774
|
toJSON(message) {
|
|
3775
|
+
var _a;
|
|
3679
3776
|
const obj = {};
|
|
3680
|
-
if (message.annotation) {
|
|
3681
|
-
obj.annotation = message.annotation.map((e) =>
|
|
3682
|
-
}
|
|
3683
|
-
else {
|
|
3684
|
-
obj.annotation = [];
|
|
3777
|
+
if ((_a = message.annotation) === null || _a === void 0 ? void 0 : _a.length) {
|
|
3778
|
+
obj.annotation = message.annotation.map((e) => exports.GeneratedCodeInfo_Annotation.toJSON(e));
|
|
3685
3779
|
}
|
|
3686
3780
|
return obj;
|
|
3687
3781
|
},
|
|
@@ -3727,11 +3821,11 @@ exports.GeneratedCodeInfo_Annotation = {
|
|
|
3727
3821
|
const tag = reader.uint32();
|
|
3728
3822
|
switch (tag >>> 3) {
|
|
3729
3823
|
case 1:
|
|
3730
|
-
if (tag
|
|
3824
|
+
if (tag === 8) {
|
|
3731
3825
|
message.path.push(reader.int32());
|
|
3732
3826
|
continue;
|
|
3733
3827
|
}
|
|
3734
|
-
if (tag
|
|
3828
|
+
if (tag === 10) {
|
|
3735
3829
|
const end2 = reader.uint32() + reader.pos;
|
|
3736
3830
|
while (reader.pos < end2) {
|
|
3737
3831
|
message.path.push(reader.int32());
|
|
@@ -3740,31 +3834,31 @@ exports.GeneratedCodeInfo_Annotation = {
|
|
|
3740
3834
|
}
|
|
3741
3835
|
break;
|
|
3742
3836
|
case 2:
|
|
3743
|
-
if (tag
|
|
3837
|
+
if (tag !== 18) {
|
|
3744
3838
|
break;
|
|
3745
3839
|
}
|
|
3746
3840
|
message.sourceFile = reader.string();
|
|
3747
3841
|
continue;
|
|
3748
3842
|
case 3:
|
|
3749
|
-
if (tag
|
|
3843
|
+
if (tag !== 24) {
|
|
3750
3844
|
break;
|
|
3751
3845
|
}
|
|
3752
3846
|
message.begin = reader.int32();
|
|
3753
3847
|
continue;
|
|
3754
3848
|
case 4:
|
|
3755
|
-
if (tag
|
|
3849
|
+
if (tag !== 32) {
|
|
3756
3850
|
break;
|
|
3757
3851
|
}
|
|
3758
3852
|
message.end = reader.int32();
|
|
3759
3853
|
continue;
|
|
3760
3854
|
case 5:
|
|
3761
|
-
if (tag
|
|
3855
|
+
if (tag !== 40) {
|
|
3762
3856
|
break;
|
|
3763
3857
|
}
|
|
3764
3858
|
message.semantic = reader.int32();
|
|
3765
3859
|
continue;
|
|
3766
3860
|
}
|
|
3767
|
-
if ((tag & 7)
|
|
3861
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3768
3862
|
break;
|
|
3769
3863
|
}
|
|
3770
3864
|
reader.skipType(tag & 7);
|
|
@@ -3781,17 +3875,23 @@ exports.GeneratedCodeInfo_Annotation = {
|
|
|
3781
3875
|
};
|
|
3782
3876
|
},
|
|
3783
3877
|
toJSON(message) {
|
|
3878
|
+
var _a;
|
|
3784
3879
|
const obj = {};
|
|
3785
|
-
if (message.path) {
|
|
3880
|
+
if ((_a = message.path) === null || _a === void 0 ? void 0 : _a.length) {
|
|
3786
3881
|
obj.path = message.path.map((e) => Math.round(e));
|
|
3787
3882
|
}
|
|
3788
|
-
|
|
3789
|
-
obj.
|
|
3883
|
+
if (message.sourceFile !== "") {
|
|
3884
|
+
obj.sourceFile = message.sourceFile;
|
|
3885
|
+
}
|
|
3886
|
+
if (message.begin !== 0) {
|
|
3887
|
+
obj.begin = Math.round(message.begin);
|
|
3888
|
+
}
|
|
3889
|
+
if (message.end !== 0) {
|
|
3890
|
+
obj.end = Math.round(message.end);
|
|
3891
|
+
}
|
|
3892
|
+
if (message.semantic !== 0) {
|
|
3893
|
+
obj.semantic = generatedCodeInfo_Annotation_SemanticToJSON(message.semantic);
|
|
3790
3894
|
}
|
|
3791
|
-
message.sourceFile !== undefined && (obj.sourceFile = message.sourceFile);
|
|
3792
|
-
message.begin !== undefined && (obj.begin = Math.round(message.begin));
|
|
3793
|
-
message.end !== undefined && (obj.end = Math.round(message.end));
|
|
3794
|
-
message.semantic !== undefined && (obj.semantic = generatedCodeInfo_Annotation_SemanticToJSON(message.semantic));
|
|
3795
3895
|
return obj;
|
|
3796
3896
|
},
|
|
3797
3897
|
create(base) {
|
|
@@ -3808,7 +3908,7 @@ exports.GeneratedCodeInfo_Annotation = {
|
|
|
3808
3908
|
return message;
|
|
3809
3909
|
},
|
|
3810
3910
|
};
|
|
3811
|
-
|
|
3911
|
+
const tsProtoGlobalThis = (() => {
|
|
3812
3912
|
if (typeof globalThis !== "undefined") {
|
|
3813
3913
|
return globalThis;
|
|
3814
3914
|
}
|