@fraym/proto 0.9.1 → 0.9.2
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.
|
@@ -58,9 +58,11 @@ export interface LockingResponse_InitAck {
|
|
|
58
58
|
error: string;
|
|
59
59
|
}
|
|
60
60
|
export interface LockingResponse_LockGlobalAck {
|
|
61
|
+
lockId: string;
|
|
61
62
|
error: string;
|
|
62
63
|
}
|
|
63
64
|
export interface LockingResponse_LockLocalAck {
|
|
65
|
+
lockId: string;
|
|
64
66
|
error: string;
|
|
65
67
|
}
|
|
66
68
|
export declare const LockingRequest: {
|
|
@@ -718,12 +718,15 @@ exports.LockingResponse_InitAck = {
|
|
|
718
718
|
},
|
|
719
719
|
};
|
|
720
720
|
function createBaseLockingResponse_LockGlobalAck() {
|
|
721
|
-
return { error: "" };
|
|
721
|
+
return { lockId: "", error: "" };
|
|
722
722
|
}
|
|
723
723
|
exports.LockingResponse_LockGlobalAck = {
|
|
724
724
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
725
|
+
if (message.lockId !== "") {
|
|
726
|
+
writer.uint32(10).string(message.lockId);
|
|
727
|
+
}
|
|
725
728
|
if (message.error !== "") {
|
|
726
|
-
writer.uint32(
|
|
729
|
+
writer.uint32(18).string(message.error);
|
|
727
730
|
}
|
|
728
731
|
return writer;
|
|
729
732
|
},
|
|
@@ -738,6 +741,12 @@ exports.LockingResponse_LockGlobalAck = {
|
|
|
738
741
|
if (tag !== 10) {
|
|
739
742
|
break;
|
|
740
743
|
}
|
|
744
|
+
message.lockId = reader.string();
|
|
745
|
+
continue;
|
|
746
|
+
case 2:
|
|
747
|
+
if (tag !== 18) {
|
|
748
|
+
break;
|
|
749
|
+
}
|
|
741
750
|
message.error = reader.string();
|
|
742
751
|
continue;
|
|
743
752
|
}
|
|
@@ -749,10 +758,16 @@ exports.LockingResponse_LockGlobalAck = {
|
|
|
749
758
|
return message;
|
|
750
759
|
},
|
|
751
760
|
fromJSON(object) {
|
|
752
|
-
return {
|
|
761
|
+
return {
|
|
762
|
+
lockId: isSet(object.lockId) ? globalThis.String(object.lockId) : "",
|
|
763
|
+
error: isSet(object.error) ? globalThis.String(object.error) : "",
|
|
764
|
+
};
|
|
753
765
|
},
|
|
754
766
|
toJSON(message) {
|
|
755
767
|
const obj = {};
|
|
768
|
+
if (message.lockId !== "") {
|
|
769
|
+
obj.lockId = message.lockId;
|
|
770
|
+
}
|
|
756
771
|
if (message.error !== "") {
|
|
757
772
|
obj.error = message.error;
|
|
758
773
|
}
|
|
@@ -762,19 +777,23 @@ exports.LockingResponse_LockGlobalAck = {
|
|
|
762
777
|
return exports.LockingResponse_LockGlobalAck.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
763
778
|
},
|
|
764
779
|
fromPartial(object) {
|
|
765
|
-
var _a;
|
|
780
|
+
var _a, _b;
|
|
766
781
|
const message = createBaseLockingResponse_LockGlobalAck();
|
|
767
|
-
message.
|
|
782
|
+
message.lockId = (_a = object.lockId) !== null && _a !== void 0 ? _a : "";
|
|
783
|
+
message.error = (_b = object.error) !== null && _b !== void 0 ? _b : "";
|
|
768
784
|
return message;
|
|
769
785
|
},
|
|
770
786
|
};
|
|
771
787
|
function createBaseLockingResponse_LockLocalAck() {
|
|
772
|
-
return { error: "" };
|
|
788
|
+
return { lockId: "", error: "" };
|
|
773
789
|
}
|
|
774
790
|
exports.LockingResponse_LockLocalAck = {
|
|
775
791
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
792
|
+
if (message.lockId !== "") {
|
|
793
|
+
writer.uint32(10).string(message.lockId);
|
|
794
|
+
}
|
|
776
795
|
if (message.error !== "") {
|
|
777
|
-
writer.uint32(
|
|
796
|
+
writer.uint32(18).string(message.error);
|
|
778
797
|
}
|
|
779
798
|
return writer;
|
|
780
799
|
},
|
|
@@ -789,6 +808,12 @@ exports.LockingResponse_LockLocalAck = {
|
|
|
789
808
|
if (tag !== 10) {
|
|
790
809
|
break;
|
|
791
810
|
}
|
|
811
|
+
message.lockId = reader.string();
|
|
812
|
+
continue;
|
|
813
|
+
case 2:
|
|
814
|
+
if (tag !== 18) {
|
|
815
|
+
break;
|
|
816
|
+
}
|
|
792
817
|
message.error = reader.string();
|
|
793
818
|
continue;
|
|
794
819
|
}
|
|
@@ -800,10 +825,16 @@ exports.LockingResponse_LockLocalAck = {
|
|
|
800
825
|
return message;
|
|
801
826
|
},
|
|
802
827
|
fromJSON(object) {
|
|
803
|
-
return {
|
|
828
|
+
return {
|
|
829
|
+
lockId: isSet(object.lockId) ? globalThis.String(object.lockId) : "",
|
|
830
|
+
error: isSet(object.error) ? globalThis.String(object.error) : "",
|
|
831
|
+
};
|
|
804
832
|
},
|
|
805
833
|
toJSON(message) {
|
|
806
834
|
const obj = {};
|
|
835
|
+
if (message.lockId !== "") {
|
|
836
|
+
obj.lockId = message.lockId;
|
|
837
|
+
}
|
|
807
838
|
if (message.error !== "") {
|
|
808
839
|
obj.error = message.error;
|
|
809
840
|
}
|
|
@@ -813,9 +844,10 @@ exports.LockingResponse_LockLocalAck = {
|
|
|
813
844
|
return exports.LockingResponse_LockLocalAck.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
814
845
|
},
|
|
815
846
|
fromPartial(object) {
|
|
816
|
-
var _a;
|
|
847
|
+
var _a, _b;
|
|
817
848
|
const message = createBaseLockingResponse_LockLocalAck();
|
|
818
|
-
message.
|
|
849
|
+
message.lockId = (_a = object.lockId) !== null && _a !== void 0 ? _a : "";
|
|
850
|
+
message.error = (_b = object.error) !== null && _b !== void 0 ? _b : "";
|
|
819
851
|
return message;
|
|
820
852
|
},
|
|
821
853
|
};
|