@viamrobotics/sdk 0.7.0-rc.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/data-client.d.ts +23 -5
- package/dist/gen/app/data/v1/data_pb.d.ts +92 -0
- package/dist/gen/app/data/v1/data_pb_service.d.ts +38 -0
- package/dist/gen/app/mltraining/v1/ml_training_pb.d.ts +12 -0
- package/dist/main.es.js +1184 -864
- package/dist/main.umd.js +5 -5
- package/dist/robot/client.d.ts +3 -0
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -20555,29 +20555,29 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20555
20555
|
case 0:
|
|
20556
20556
|
return D = "", z = function() {
|
|
20557
20557
|
return s.__awaiter(L, void 0, void 0, function() {
|
|
20558
|
-
var I, U, k, S, M,
|
|
20558
|
+
var I, U, k, S, M, B, E, F, P, O;
|
|
20559
20559
|
return s.__generator(this, function(C) {
|
|
20560
20560
|
switch (C.label) {
|
|
20561
20561
|
case 0:
|
|
20562
|
-
return D != "" ? [3, 5] : (I = "", T.accessToken && T.accessToken !== "" ? [3, 2] : ((
|
|
20562
|
+
return D != "" ? [3, 5] : (I = "", T.accessToken && T.accessToken !== "" ? [3, 2] : ((E = new r.AuthenticateRequest()).setEntity(T.authEntity ? T.authEntity : R.replace(/^(.*:\/\/)/, "")), (S = new r.Credentials()).setType((P = T.credentials) === null || P === void 0 ? void 0 : P.type), S.setPayload((O = T.credentials) === null || O === void 0 ? void 0 : O.payload), E.setCredentials(S), B = new Promise(function(A, W) {
|
|
20563
20563
|
U = A, k = W;
|
|
20564
|
-
}), l.grpc.invoke(u.AuthService.Authenticate, { request:
|
|
20564
|
+
}), l.grpc.invoke(u.AuthService.Authenticate, { request: E, host: T.externalAuthAddress ? T.externalAuthAddress : R, transport: w, onMessage: function(A) {
|
|
20565
20565
|
I = A.getAccessToken();
|
|
20566
20566
|
}, onEnd: function(A, W, _) {
|
|
20567
20567
|
A == l.grpc.Code.OK ? U(F) : k(W);
|
|
20568
|
-
} }), [4,
|
|
20568
|
+
} }), [4, B]));
|
|
20569
20569
|
case 1:
|
|
20570
20570
|
return C.sent(), [3, 3];
|
|
20571
20571
|
case 2:
|
|
20572
20572
|
I = T.accessToken, C.label = 3;
|
|
20573
20573
|
case 3:
|
|
20574
|
-
return D = I, T.externalAuthAddress && T.externalAuthToEntity ? ((M = new l.grpc.Metadata()).set("authorization", "Bearer ".concat(D)),
|
|
20574
|
+
return D = I, T.externalAuthAddress && T.externalAuthToEntity ? ((M = new l.grpc.Metadata()).set("authorization", "Bearer ".concat(D)), B = new Promise(function(A, W) {
|
|
20575
20575
|
U = A, k = W;
|
|
20576
|
-
}), I = "", (
|
|
20576
|
+
}), I = "", (E = new r.AuthenticateToRequest()).setEntity(T.externalAuthToEntity), l.grpc.invoke(u.ExternalAuthService.AuthenticateTo, { request: E, host: T.externalAuthAddress, transport: w, metadata: M, onMessage: function(A) {
|
|
20577
20577
|
I = A.getAccessToken();
|
|
20578
20578
|
}, onEnd: function(A, W, _) {
|
|
20579
20579
|
A == l.grpc.Code.OK ? U(M) : k(W);
|
|
20580
|
-
} }), [4,
|
|
20580
|
+
} }), [4, B]) : [3, 5];
|
|
20581
20581
|
case 4:
|
|
20582
20582
|
C.sent(), D = I, C.label = 5;
|
|
20583
20583
|
case 5:
|
|
@@ -20622,9 +20622,9 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20622
20622
|
return z = U.sent(), I = new Promise(function(k, S) {
|
|
20623
20623
|
j = k, L = S;
|
|
20624
20624
|
}), l.grpc.unary(d.SignalingService.OptionalWebRTCConfig, { request: new c.OptionalWebRTCConfigRequest(), metadata: { "rpc-host": w }, host: R, transport: z, onEnd: function(k) {
|
|
20625
|
-
var S = k.status, M = k.statusMessage,
|
|
20626
|
-
if (S === l.grpc.Code.OK &&
|
|
20627
|
-
if (!(x =
|
|
20625
|
+
var S = k.status, M = k.statusMessage, B = k.message;
|
|
20626
|
+
if (S === l.grpc.Code.OK && B) {
|
|
20627
|
+
if (!(x = B.getConfig()))
|
|
20628
20628
|
return void j(new c.WebRTCConfig());
|
|
20629
20629
|
j(x);
|
|
20630
20630
|
} else
|
|
@@ -20666,7 +20666,7 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20666
20666
|
e.dialWebRTC = function(R, w, T) {
|
|
20667
20667
|
var D, z, j, L, x, I, U, k;
|
|
20668
20668
|
return s.__awaiter(this, void 0, void 0, function() {
|
|
20669
|
-
var S, M,
|
|
20669
|
+
var S, M, B, E, F, P, O, C, A, W, _, G, H, Y, oe, le, re, ge, ae, ie, pe, ne, ce, se, de, ve, ue, me = this;
|
|
20670
20670
|
return s.__generator(this, function(J) {
|
|
20671
20671
|
switch (J.label) {
|
|
20672
20672
|
case 0:
|
|
@@ -20674,9 +20674,9 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20674
20674
|
case 1:
|
|
20675
20675
|
return S = J.sent(), M = S.toObject().additionalIceServersList.map(function(q) {
|
|
20676
20676
|
return { urls: q.urlsList, credential: q.credential, username: q.username };
|
|
20677
|
-
}), T || (T = {}), T.webrtcOptions ? (
|
|
20677
|
+
}), T || (T = {}), T.webrtcOptions ? (B = T.webrtcOptions).rtcConfig ? B.rtcConfig.iceServers = s.__spreadArray(s.__spreadArray([], B.rtcConfig.iceServers || [], !0), M, !0) : B.rtcConfig = { iceServers: M } : B = { disableTrickleICE: S.getDisableTrickle(), rtcConfig: { iceServers: M } }, [4, (0, m.newPeerConnectionForClient)(B !== void 0 && B.disableTrickleICE, B?.rtcConfig, B?.additionalSdpFields)];
|
|
20678
20678
|
case 2:
|
|
20679
|
-
|
|
20679
|
+
E = J.sent(), F = E.pc, P = E.dc, O = !1, J.label = 3;
|
|
20680
20680
|
case 3:
|
|
20681
20681
|
return J.trys.push([3, , 10, 11]), C = T, T && (C = s.__assign({}, T), T.accessToken || (C.authEntity = (D = T?.webrtcOptions) === null || D === void 0 ? void 0 : D.signalingAuthEntity, C.authEntity || (C.externalAuthAddress ? C.authEntity = (z = T.externalAuthAddress) === null || z === void 0 ? void 0 : z.replace(/^(.*:\/\/)/, "") : C.authEntity = R.replace(/^(.*:\/\/)/, "")), C.credentials = (j = T?.webrtcOptions) === null || j === void 0 ? void 0 : j.signalingCredentials, C.accessToken = (L = T?.webrtcOptions) === null || L === void 0 ? void 0 : L.signalingAccessToken), C.externalAuthAddress = (x = T?.webrtcOptions) === null || x === void 0 ? void 0 : x.signalingExternalAuthAddress, C.externalAuthToEntity = (I = T?.webrtcOptions) === null || I === void 0 ? void 0 : I.signalingExternalAuthToEntity), [4, v(R, C)];
|
|
20682
20682
|
case 4:
|
|
@@ -20702,7 +20702,7 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20702
20702
|
}
|
|
20703
20703
|
}, le = new Promise(function(q) {
|
|
20704
20704
|
oe = q;
|
|
20705
|
-
}), re = !1,
|
|
20705
|
+
}), re = !1, B?.disableTrickleICE ? [3, 7] : [4, F.createOffer()];
|
|
20706
20706
|
case 5:
|
|
20707
20707
|
return ge = J.sent(), ae = !1, F.onicecandidate = function(q) {
|
|
20708
20708
|
return s.__awaiter(me, void 0, void 0, function() {
|
|
@@ -20732,7 +20732,7 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20732
20732
|
case 0:
|
|
20733
20733
|
return (N = q).hasInit() ? ie ? (H("got init stage more than once"), [2]) : ($ = N.getInit(), ie = !0, _ = N.getUuid(), K = new RTCSessionDescription(JSON.parse(atob($.getSdp()))), [4, F.setRemoteDescription(K)]) : [3, 2];
|
|
20734
20734
|
case 1:
|
|
20735
|
-
return ee.sent(), oe(!0),
|
|
20735
|
+
return ee.sent(), oe(!0), B?.disableTrickleICE ? (re = !0, Y(), [2]) : [3, 8];
|
|
20736
20736
|
case 2:
|
|
20737
20737
|
if (!N.hasUpdate())
|
|
20738
20738
|
return [3, 7];
|
|
@@ -20761,7 +20761,7 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20761
20761
|
pe = q, ne = N;
|
|
20762
20762
|
}), W.onEnd(function(q, N, $) {
|
|
20763
20763
|
q !== l.grpc.Code.OK ? N !== "Response closed without headers" ? (console.error(N), ne(N)) : ne(new p.ConnectionClosedError("failed to dial")) : pe();
|
|
20764
|
-
}), W.start({ "rpc-host": w }), se = new c.CallRequest(), de = (0, m.addSdpFields)(F.localDescription, (U = T.webrtcOptions) === null || U === void 0 ? void 0 : U.additionalSdpFields), ve = btoa(JSON.stringify(de)), se.setSdp(ve),
|
|
20764
|
+
}), W.start({ "rpc-host": w }), se = new c.CallRequest(), de = (0, m.addSdpFields)(F.localDescription, (U = T.webrtcOptions) === null || U === void 0 ? void 0 : U.additionalSdpFields), ve = btoa(JSON.stringify(de)), se.setSdp(ve), B && B.disableTrickleICE && se.setDisableTrickle(B.disableTrickleICE), W.send(se), (ue = new g.ClientChannel(F, P)).ready.then(function() {
|
|
20765
20765
|
return pe();
|
|
20766
20766
|
}).catch(function(q) {
|
|
20767
20767
|
return ne(q);
|
|
@@ -20882,85 +20882,85 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20882
20882
|
}, 655: (i, e, n) => {
|
|
20883
20883
|
n.r(e), n.d(e, { __assign: () => g, __asyncDelegator: () => T, __asyncGenerator: () => w, __asyncValues: () => D, __await: () => R, __awaiter: () => u, __classPrivateFieldGet: () => I, __classPrivateFieldIn: () => k, __classPrivateFieldSet: () => U, __createBinding: () => d, __decorate: () => t, __exportStar: () => m, __extends: () => l, __generator: () => c, __importDefault: () => x, __importStar: () => L, __makeTemplateObject: () => z, __metadata: () => r, __param: () => o, __read: () => f, __rest: () => p, __spread: () => y, __spreadArray: () => h, __spreadArrays: () => b, __values: () => v });
|
|
20884
20884
|
var s = function(S, M) {
|
|
20885
|
-
return s = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
20886
|
-
|
|
20887
|
-
} || function(
|
|
20888
|
-
for (var F in
|
|
20889
|
-
Object.prototype.hasOwnProperty.call(
|
|
20885
|
+
return s = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(B, E) {
|
|
20886
|
+
B.__proto__ = E;
|
|
20887
|
+
} || function(B, E) {
|
|
20888
|
+
for (var F in E)
|
|
20889
|
+
Object.prototype.hasOwnProperty.call(E, F) && (B[F] = E[F]);
|
|
20890
20890
|
}, s(S, M);
|
|
20891
20891
|
};
|
|
20892
20892
|
function l(S, M) {
|
|
20893
20893
|
if (typeof M != "function" && M !== null)
|
|
20894
20894
|
throw new TypeError("Class extends value " + String(M) + " is not a constructor or null");
|
|
20895
|
-
function
|
|
20895
|
+
function B() {
|
|
20896
20896
|
this.constructor = S;
|
|
20897
20897
|
}
|
|
20898
|
-
s(S, M), S.prototype = M === null ? Object.create(M) : (
|
|
20898
|
+
s(S, M), S.prototype = M === null ? Object.create(M) : (B.prototype = M.prototype, new B());
|
|
20899
20899
|
}
|
|
20900
20900
|
var g = function() {
|
|
20901
20901
|
return g = Object.assign || function(S) {
|
|
20902
|
-
for (var M,
|
|
20903
|
-
for (var F in M = arguments[
|
|
20902
|
+
for (var M, B = 1, E = arguments.length; B < E; B++)
|
|
20903
|
+
for (var F in M = arguments[B])
|
|
20904
20904
|
Object.prototype.hasOwnProperty.call(M, F) && (S[F] = M[F]);
|
|
20905
20905
|
return S;
|
|
20906
20906
|
}, g.apply(this, arguments);
|
|
20907
20907
|
};
|
|
20908
20908
|
function p(S, M) {
|
|
20909
|
-
var
|
|
20910
|
-
for (var
|
|
20911
|
-
Object.prototype.hasOwnProperty.call(S,
|
|
20909
|
+
var B = {};
|
|
20910
|
+
for (var E in S)
|
|
20911
|
+
Object.prototype.hasOwnProperty.call(S, E) && M.indexOf(E) < 0 && (B[E] = S[E]);
|
|
20912
20912
|
if (S != null && typeof Object.getOwnPropertySymbols == "function") {
|
|
20913
20913
|
var F = 0;
|
|
20914
|
-
for (
|
|
20915
|
-
M.indexOf(
|
|
20914
|
+
for (E = Object.getOwnPropertySymbols(S); F < E.length; F++)
|
|
20915
|
+
M.indexOf(E[F]) < 0 && Object.prototype.propertyIsEnumerable.call(S, E[F]) && (B[E[F]] = S[E[F]]);
|
|
20916
20916
|
}
|
|
20917
|
-
return
|
|
20917
|
+
return B;
|
|
20918
20918
|
}
|
|
20919
|
-
function t(S, M,
|
|
20920
|
-
var F, P = arguments.length, O = P < 3 ? M :
|
|
20919
|
+
function t(S, M, B, E) {
|
|
20920
|
+
var F, P = arguments.length, O = P < 3 ? M : E === null ? E = Object.getOwnPropertyDescriptor(M, B) : E;
|
|
20921
20921
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
20922
|
-
O = Reflect.decorate(S, M,
|
|
20922
|
+
O = Reflect.decorate(S, M, B, E);
|
|
20923
20923
|
else
|
|
20924
20924
|
for (var C = S.length - 1; C >= 0; C--)
|
|
20925
|
-
(F = S[C]) && (O = (P < 3 ? F(O) : P > 3 ? F(M,
|
|
20926
|
-
return P > 3 && O && Object.defineProperty(M,
|
|
20925
|
+
(F = S[C]) && (O = (P < 3 ? F(O) : P > 3 ? F(M, B, O) : F(M, B)) || O);
|
|
20926
|
+
return P > 3 && O && Object.defineProperty(M, B, O), O;
|
|
20927
20927
|
}
|
|
20928
20928
|
function o(S, M) {
|
|
20929
|
-
return function(
|
|
20930
|
-
M(
|
|
20929
|
+
return function(B, E) {
|
|
20930
|
+
M(B, E, S);
|
|
20931
20931
|
};
|
|
20932
20932
|
}
|
|
20933
20933
|
function r(S, M) {
|
|
20934
20934
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
20935
20935
|
return Reflect.metadata(S, M);
|
|
20936
20936
|
}
|
|
20937
|
-
function u(S, M,
|
|
20938
|
-
return new (
|
|
20937
|
+
function u(S, M, B, E) {
|
|
20938
|
+
return new (B || (B = Promise))(function(F, P) {
|
|
20939
20939
|
function O(W) {
|
|
20940
20940
|
try {
|
|
20941
|
-
A(
|
|
20941
|
+
A(E.next(W));
|
|
20942
20942
|
} catch (_) {
|
|
20943
20943
|
P(_);
|
|
20944
20944
|
}
|
|
20945
20945
|
}
|
|
20946
20946
|
function C(W) {
|
|
20947
20947
|
try {
|
|
20948
|
-
A(
|
|
20948
|
+
A(E.throw(W));
|
|
20949
20949
|
} catch (_) {
|
|
20950
20950
|
P(_);
|
|
20951
20951
|
}
|
|
20952
20952
|
}
|
|
20953
20953
|
function A(W) {
|
|
20954
20954
|
var _;
|
|
20955
|
-
W.done ? F(W.value) : (_ = W.value, _ instanceof
|
|
20955
|
+
W.done ? F(W.value) : (_ = W.value, _ instanceof B ? _ : new B(function(G) {
|
|
20956
20956
|
G(_);
|
|
20957
20957
|
})).then(O, C);
|
|
20958
20958
|
}
|
|
20959
|
-
A((
|
|
20959
|
+
A((E = E.apply(S, M || [])).next());
|
|
20960
20960
|
});
|
|
20961
20961
|
}
|
|
20962
20962
|
function c(S, M) {
|
|
20963
|
-
var
|
|
20963
|
+
var B, E, F, P, O = { label: 0, sent: function() {
|
|
20964
20964
|
if (1 & F[0])
|
|
20965
20965
|
throw F[1];
|
|
20966
20966
|
return F[1];
|
|
@@ -20971,13 +20971,13 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20971
20971
|
function C(A) {
|
|
20972
20972
|
return function(W) {
|
|
20973
20973
|
return function(_) {
|
|
20974
|
-
if (
|
|
20974
|
+
if (B)
|
|
20975
20975
|
throw new TypeError("Generator is already executing.");
|
|
20976
20976
|
for (; P && (P = 0, _[0] && (O = 0)), O; )
|
|
20977
20977
|
try {
|
|
20978
|
-
if (
|
|
20978
|
+
if (B = 1, E && (F = 2 & _[0] ? E.return : _[0] ? E.throw || ((F = E.return) && F.call(E), 0) : E.next) && !(F = F.call(E, _[1])).done)
|
|
20979
20979
|
return F;
|
|
20980
|
-
switch (
|
|
20980
|
+
switch (E = 0, F && (_ = [2 & _[0], F.value]), _[0]) {
|
|
20981
20981
|
case 0:
|
|
20982
20982
|
case 1:
|
|
20983
20983
|
F = _;
|
|
@@ -20985,7 +20985,7 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20985
20985
|
case 4:
|
|
20986
20986
|
return O.label++, { value: _[1], done: !1 };
|
|
20987
20987
|
case 5:
|
|
20988
|
-
O.label++,
|
|
20988
|
+
O.label++, E = _[1], _ = [0];
|
|
20989
20989
|
continue;
|
|
20990
20990
|
case 7:
|
|
20991
20991
|
_ = O.ops.pop(), O.trys.pop();
|
|
@@ -21012,9 +21012,9 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
21012
21012
|
}
|
|
21013
21013
|
_ = M.call(S, O);
|
|
21014
21014
|
} catch (G) {
|
|
21015
|
-
_ = [6, G],
|
|
21015
|
+
_ = [6, G], E = 0;
|
|
21016
21016
|
} finally {
|
|
21017
|
-
|
|
21017
|
+
B = F = 0;
|
|
21018
21018
|
}
|
|
21019
21019
|
if (5 & _[0])
|
|
21020
21020
|
throw _[1];
|
|
@@ -21023,42 +21023,42 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
21023
21023
|
};
|
|
21024
21024
|
}
|
|
21025
21025
|
}
|
|
21026
|
-
var d = Object.create ? function(S, M,
|
|
21027
|
-
|
|
21028
|
-
var F = Object.getOwnPropertyDescriptor(M,
|
|
21026
|
+
var d = Object.create ? function(S, M, B, E) {
|
|
21027
|
+
E === void 0 && (E = B);
|
|
21028
|
+
var F = Object.getOwnPropertyDescriptor(M, B);
|
|
21029
21029
|
F && !("get" in F ? !M.__esModule : F.writable || F.configurable) || (F = { enumerable: !0, get: function() {
|
|
21030
|
-
return M[
|
|
21031
|
-
} }), Object.defineProperty(S,
|
|
21032
|
-
} : function(S, M,
|
|
21033
|
-
|
|
21030
|
+
return M[B];
|
|
21031
|
+
} }), Object.defineProperty(S, E, F);
|
|
21032
|
+
} : function(S, M, B, E) {
|
|
21033
|
+
E === void 0 && (E = B), S[E] = M[B];
|
|
21034
21034
|
};
|
|
21035
21035
|
function m(S, M) {
|
|
21036
|
-
for (var
|
|
21037
|
-
|
|
21036
|
+
for (var B in S)
|
|
21037
|
+
B === "default" || Object.prototype.hasOwnProperty.call(M, B) || d(M, S, B);
|
|
21038
21038
|
}
|
|
21039
21039
|
function v(S) {
|
|
21040
|
-
var M = typeof Symbol == "function" && Symbol.iterator,
|
|
21041
|
-
if (
|
|
21042
|
-
return
|
|
21040
|
+
var M = typeof Symbol == "function" && Symbol.iterator, B = M && S[M], E = 0;
|
|
21041
|
+
if (B)
|
|
21042
|
+
return B.call(S);
|
|
21043
21043
|
if (S && typeof S.length == "number")
|
|
21044
21044
|
return { next: function() {
|
|
21045
|
-
return S &&
|
|
21045
|
+
return S && E >= S.length && (S = void 0), { value: S && S[E++], done: !S };
|
|
21046
21046
|
} };
|
|
21047
21047
|
throw new TypeError(M ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
21048
21048
|
}
|
|
21049
21049
|
function f(S, M) {
|
|
21050
|
-
var
|
|
21051
|
-
if (!
|
|
21050
|
+
var B = typeof Symbol == "function" && S[Symbol.iterator];
|
|
21051
|
+
if (!B)
|
|
21052
21052
|
return S;
|
|
21053
|
-
var
|
|
21053
|
+
var E, F, P = B.call(S), O = [];
|
|
21054
21054
|
try {
|
|
21055
|
-
for (; (M === void 0 || M-- > 0) && !(
|
|
21056
|
-
O.push(
|
|
21055
|
+
for (; (M === void 0 || M-- > 0) && !(E = P.next()).done; )
|
|
21056
|
+
O.push(E.value);
|
|
21057
21057
|
} catch (C) {
|
|
21058
21058
|
F = { error: C };
|
|
21059
21059
|
} finally {
|
|
21060
21060
|
try {
|
|
21061
|
-
|
|
21061
|
+
E && !E.done && (B = P.return) && B.call(P);
|
|
21062
21062
|
} finally {
|
|
21063
21063
|
if (F)
|
|
21064
21064
|
throw F.error;
|
|
@@ -21072,32 +21072,32 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
21072
21072
|
return S;
|
|
21073
21073
|
}
|
|
21074
21074
|
function b() {
|
|
21075
|
-
for (var S = 0, M = 0,
|
|
21075
|
+
for (var S = 0, M = 0, B = arguments.length; M < B; M++)
|
|
21076
21076
|
S += arguments[M].length;
|
|
21077
|
-
var
|
|
21078
|
-
for (M = 0; M <
|
|
21077
|
+
var E = Array(S), F = 0;
|
|
21078
|
+
for (M = 0; M < B; M++)
|
|
21079
21079
|
for (var P = arguments[M], O = 0, C = P.length; O < C; O++, F++)
|
|
21080
|
-
|
|
21081
|
-
return
|
|
21080
|
+
E[F] = P[O];
|
|
21081
|
+
return E;
|
|
21082
21082
|
}
|
|
21083
|
-
function h(S, M,
|
|
21084
|
-
if (
|
|
21085
|
-
for (var
|
|
21086
|
-
!
|
|
21087
|
-
return S.concat(
|
|
21083
|
+
function h(S, M, B) {
|
|
21084
|
+
if (B || arguments.length === 2)
|
|
21085
|
+
for (var E, F = 0, P = M.length; F < P; F++)
|
|
21086
|
+
!E && F in M || (E || (E = Array.prototype.slice.call(M, 0, F)), E[F] = M[F]);
|
|
21087
|
+
return S.concat(E || Array.prototype.slice.call(M));
|
|
21088
21088
|
}
|
|
21089
21089
|
function R(S) {
|
|
21090
21090
|
return this instanceof R ? (this.v = S, this) : new R(S);
|
|
21091
21091
|
}
|
|
21092
|
-
function w(S, M,
|
|
21092
|
+
function w(S, M, B) {
|
|
21093
21093
|
if (!Symbol.asyncIterator)
|
|
21094
21094
|
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
21095
|
-
var
|
|
21096
|
-
return
|
|
21095
|
+
var E, F = B.apply(S, M || []), P = [];
|
|
21096
|
+
return E = {}, O("next"), O("throw"), O("return"), E[Symbol.asyncIterator] = function() {
|
|
21097
21097
|
return this;
|
|
21098
|
-
},
|
|
21098
|
+
}, E;
|
|
21099
21099
|
function O(G) {
|
|
21100
|
-
F[G] && (
|
|
21100
|
+
F[G] && (E[G] = function(H) {
|
|
21101
21101
|
return new Promise(function(Y, oe) {
|
|
21102
21102
|
P.push([G, H, Y, oe]) > 1 || C(G, H);
|
|
21103
21103
|
});
|
|
@@ -21122,26 +21122,26 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
21122
21122
|
}
|
|
21123
21123
|
}
|
|
21124
21124
|
function T(S) {
|
|
21125
|
-
var M,
|
|
21126
|
-
return M = {},
|
|
21125
|
+
var M, B;
|
|
21126
|
+
return M = {}, E("next"), E("throw", function(F) {
|
|
21127
21127
|
throw F;
|
|
21128
|
-
}),
|
|
21128
|
+
}), E("return"), M[Symbol.iterator] = function() {
|
|
21129
21129
|
return this;
|
|
21130
21130
|
}, M;
|
|
21131
|
-
function
|
|
21131
|
+
function E(F, P) {
|
|
21132
21132
|
M[F] = S[F] ? function(O) {
|
|
21133
|
-
return (
|
|
21133
|
+
return (B = !B) ? { value: R(S[F](O)), done: F === "return" } : P ? P(O) : O;
|
|
21134
21134
|
} : P;
|
|
21135
21135
|
}
|
|
21136
21136
|
}
|
|
21137
21137
|
function D(S) {
|
|
21138
21138
|
if (!Symbol.asyncIterator)
|
|
21139
21139
|
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
21140
|
-
var M,
|
|
21141
|
-
return
|
|
21140
|
+
var M, B = S[Symbol.asyncIterator];
|
|
21141
|
+
return B ? B.call(S) : (S = v(S), M = {}, E("next"), E("throw"), E("return"), M[Symbol.asyncIterator] = function() {
|
|
21142
21142
|
return this;
|
|
21143
21143
|
}, M);
|
|
21144
|
-
function
|
|
21144
|
+
function E(F) {
|
|
21145
21145
|
M[F] = S[F] && function(P) {
|
|
21146
21146
|
return new Promise(function(O, C) {
|
|
21147
21147
|
(function(A, W, _, G) {
|
|
@@ -21166,28 +21166,28 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
21166
21166
|
return S;
|
|
21167
21167
|
var M = {};
|
|
21168
21168
|
if (S != null)
|
|
21169
|
-
for (var
|
|
21170
|
-
|
|
21169
|
+
for (var B in S)
|
|
21170
|
+
B !== "default" && Object.prototype.hasOwnProperty.call(S, B) && d(M, S, B);
|
|
21171
21171
|
return j(M, S), M;
|
|
21172
21172
|
}
|
|
21173
21173
|
function x(S) {
|
|
21174
21174
|
return S && S.__esModule ? S : { default: S };
|
|
21175
21175
|
}
|
|
21176
|
-
function I(S, M,
|
|
21177
|
-
if (
|
|
21176
|
+
function I(S, M, B, E) {
|
|
21177
|
+
if (B === "a" && !E)
|
|
21178
21178
|
throw new TypeError("Private accessor was defined without a getter");
|
|
21179
|
-
if (typeof M == "function" ? S !== M || !
|
|
21179
|
+
if (typeof M == "function" ? S !== M || !E : !M.has(S))
|
|
21180
21180
|
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
21181
|
-
return
|
|
21181
|
+
return B === "m" ? E : B === "a" ? E.call(S) : E ? E.value : M.get(S);
|
|
21182
21182
|
}
|
|
21183
|
-
function U(S, M,
|
|
21184
|
-
if (
|
|
21183
|
+
function U(S, M, B, E, F) {
|
|
21184
|
+
if (E === "m")
|
|
21185
21185
|
throw new TypeError("Private method is not writable");
|
|
21186
|
-
if (
|
|
21186
|
+
if (E === "a" && !F)
|
|
21187
21187
|
throw new TypeError("Private accessor was defined without a setter");
|
|
21188
21188
|
if (typeof M == "function" ? S !== M || !F : !M.has(S))
|
|
21189
21189
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
21190
|
-
return
|
|
21190
|
+
return E === "a" ? F.call(S, B) : F ? F.value = B : M.set(S, B), B;
|
|
21191
21191
|
}
|
|
21192
21192
|
function k(S, M) {
|
|
21193
21193
|
if (M === null || typeof M != "object" && typeof M != "function")
|
|
@@ -38078,86 +38078,626 @@ NavigationServiceClient.prototype.doCommand = function i(e, n, s) {
|
|
|
38078
38078
|
}
|
|
38079
38079
|
};
|
|
38080
38080
|
};
|
|
38081
|
-
var NavigationServiceClient_1 = NavigationServiceClient,
|
|
38081
|
+
var NavigationServiceClient_1 = NavigationServiceClient, powersensor_pb = {};
|
|
38082
|
+
(function(i) {
|
|
38083
|
+
var e = googleProtobuf, n = e, s = typeof globalThis < "u" && globalThis || typeof window < "u" && window || typeof s < "u" && s || typeof self < "u" && self || function() {
|
|
38084
|
+
return this;
|
|
38085
|
+
}.call(null) || Function("return this")(), l = common_pb;
|
|
38086
|
+
n.object.extend(proto, l);
|
|
38087
|
+
var g = annotations_pb$1;
|
|
38088
|
+
n.object.extend(proto, g);
|
|
38089
|
+
var p = struct_pb;
|
|
38090
|
+
n.object.extend(proto, p), n.exportSymbol("proto.viam.component.powersensor.v1.GetCurrentRequest", null, s), n.exportSymbol("proto.viam.component.powersensor.v1.GetCurrentResponse", null, s), n.exportSymbol("proto.viam.component.powersensor.v1.GetPowerRequest", null, s), n.exportSymbol("proto.viam.component.powersensor.v1.GetPowerResponse", null, s), n.exportSymbol("proto.viam.component.powersensor.v1.GetVoltageRequest", null, s), n.exportSymbol("proto.viam.component.powersensor.v1.GetVoltageResponse", null, s), proto.viam.component.powersensor.v1.GetVoltageRequest = function(t) {
|
|
38091
|
+
e.Message.initialize(this, t, 0, -1, null, null);
|
|
38092
|
+
}, n.inherits(proto.viam.component.powersensor.v1.GetVoltageRequest, e.Message), n.DEBUG && !COMPILED && (proto.viam.component.powersensor.v1.GetVoltageRequest.displayName = "proto.viam.component.powersensor.v1.GetVoltageRequest"), proto.viam.component.powersensor.v1.GetVoltageResponse = function(t) {
|
|
38093
|
+
e.Message.initialize(this, t, 0, -1, null, null);
|
|
38094
|
+
}, n.inherits(proto.viam.component.powersensor.v1.GetVoltageResponse, e.Message), n.DEBUG && !COMPILED && (proto.viam.component.powersensor.v1.GetVoltageResponse.displayName = "proto.viam.component.powersensor.v1.GetVoltageResponse"), proto.viam.component.powersensor.v1.GetCurrentRequest = function(t) {
|
|
38095
|
+
e.Message.initialize(this, t, 0, -1, null, null);
|
|
38096
|
+
}, n.inherits(proto.viam.component.powersensor.v1.GetCurrentRequest, e.Message), n.DEBUG && !COMPILED && (proto.viam.component.powersensor.v1.GetCurrentRequest.displayName = "proto.viam.component.powersensor.v1.GetCurrentRequest"), proto.viam.component.powersensor.v1.GetCurrentResponse = function(t) {
|
|
38097
|
+
e.Message.initialize(this, t, 0, -1, null, null);
|
|
38098
|
+
}, n.inherits(proto.viam.component.powersensor.v1.GetCurrentResponse, e.Message), n.DEBUG && !COMPILED && (proto.viam.component.powersensor.v1.GetCurrentResponse.displayName = "proto.viam.component.powersensor.v1.GetCurrentResponse"), proto.viam.component.powersensor.v1.GetPowerRequest = function(t) {
|
|
38099
|
+
e.Message.initialize(this, t, 0, -1, null, null);
|
|
38100
|
+
}, n.inherits(proto.viam.component.powersensor.v1.GetPowerRequest, e.Message), n.DEBUG && !COMPILED && (proto.viam.component.powersensor.v1.GetPowerRequest.displayName = "proto.viam.component.powersensor.v1.GetPowerRequest"), proto.viam.component.powersensor.v1.GetPowerResponse = function(t) {
|
|
38101
|
+
e.Message.initialize(this, t, 0, -1, null, null);
|
|
38102
|
+
}, n.inherits(proto.viam.component.powersensor.v1.GetPowerResponse, e.Message), n.DEBUG && !COMPILED && (proto.viam.component.powersensor.v1.GetPowerResponse.displayName = "proto.viam.component.powersensor.v1.GetPowerResponse"), e.Message.GENERATE_TO_OBJECT && (proto.viam.component.powersensor.v1.GetVoltageRequest.prototype.toObject = function(t) {
|
|
38103
|
+
return proto.viam.component.powersensor.v1.GetVoltageRequest.toObject(t, this);
|
|
38104
|
+
}, proto.viam.component.powersensor.v1.GetVoltageRequest.toObject = function(t, o) {
|
|
38105
|
+
var r, u = {
|
|
38106
|
+
name: e.Message.getFieldWithDefault(o, 1, ""),
|
|
38107
|
+
extra: (r = o.getExtra()) && p.Struct.toObject(t, r)
|
|
38108
|
+
};
|
|
38109
|
+
return t && (u.$jspbMessageInstance = o), u;
|
|
38110
|
+
}), proto.viam.component.powersensor.v1.GetVoltageRequest.deserializeBinary = function(t) {
|
|
38111
|
+
var o = new e.BinaryReader(t), r = new proto.viam.component.powersensor.v1.GetVoltageRequest();
|
|
38112
|
+
return proto.viam.component.powersensor.v1.GetVoltageRequest.deserializeBinaryFromReader(r, o);
|
|
38113
|
+
}, proto.viam.component.powersensor.v1.GetVoltageRequest.deserializeBinaryFromReader = function(t, o) {
|
|
38114
|
+
for (; o.nextField() && !o.isEndGroup(); ) {
|
|
38115
|
+
var r = o.getFieldNumber();
|
|
38116
|
+
switch (r) {
|
|
38117
|
+
case 1:
|
|
38118
|
+
var u = (
|
|
38119
|
+
/** @type {string} */
|
|
38120
|
+
o.readString()
|
|
38121
|
+
);
|
|
38122
|
+
t.setName(u);
|
|
38123
|
+
break;
|
|
38124
|
+
case 99:
|
|
38125
|
+
var u = new p.Struct();
|
|
38126
|
+
o.readMessage(u, p.Struct.deserializeBinaryFromReader), t.setExtra(u);
|
|
38127
|
+
break;
|
|
38128
|
+
default:
|
|
38129
|
+
o.skipField();
|
|
38130
|
+
break;
|
|
38131
|
+
}
|
|
38132
|
+
}
|
|
38133
|
+
return t;
|
|
38134
|
+
}, proto.viam.component.powersensor.v1.GetVoltageRequest.prototype.serializeBinary = function() {
|
|
38135
|
+
var t = new e.BinaryWriter();
|
|
38136
|
+
return proto.viam.component.powersensor.v1.GetVoltageRequest.serializeBinaryToWriter(this, t), t.getResultBuffer();
|
|
38137
|
+
}, proto.viam.component.powersensor.v1.GetVoltageRequest.serializeBinaryToWriter = function(t, o) {
|
|
38138
|
+
var r = void 0;
|
|
38139
|
+
r = t.getName(), r.length > 0 && o.writeString(
|
|
38140
|
+
1,
|
|
38141
|
+
r
|
|
38142
|
+
), r = t.getExtra(), r != null && o.writeMessage(
|
|
38143
|
+
99,
|
|
38144
|
+
r,
|
|
38145
|
+
p.Struct.serializeBinaryToWriter
|
|
38146
|
+
);
|
|
38147
|
+
}, proto.viam.component.powersensor.v1.GetVoltageRequest.prototype.getName = function() {
|
|
38148
|
+
return (
|
|
38149
|
+
/** @type {string} */
|
|
38150
|
+
e.Message.getFieldWithDefault(this, 1, "")
|
|
38151
|
+
);
|
|
38152
|
+
}, proto.viam.component.powersensor.v1.GetVoltageRequest.prototype.setName = function(t) {
|
|
38153
|
+
return e.Message.setProto3StringField(this, 1, t);
|
|
38154
|
+
}, proto.viam.component.powersensor.v1.GetVoltageRequest.prototype.getExtra = function() {
|
|
38155
|
+
return (
|
|
38156
|
+
/** @type{?proto.google.protobuf.Struct} */
|
|
38157
|
+
e.Message.getWrapperField(this, p.Struct, 99)
|
|
38158
|
+
);
|
|
38159
|
+
}, proto.viam.component.powersensor.v1.GetVoltageRequest.prototype.setExtra = function(t) {
|
|
38160
|
+
return e.Message.setWrapperField(this, 99, t);
|
|
38161
|
+
}, proto.viam.component.powersensor.v1.GetVoltageRequest.prototype.clearExtra = function() {
|
|
38162
|
+
return this.setExtra(void 0);
|
|
38163
|
+
}, proto.viam.component.powersensor.v1.GetVoltageRequest.prototype.hasExtra = function() {
|
|
38164
|
+
return e.Message.getField(this, 99) != null;
|
|
38165
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.component.powersensor.v1.GetVoltageResponse.prototype.toObject = function(t) {
|
|
38166
|
+
return proto.viam.component.powersensor.v1.GetVoltageResponse.toObject(t, this);
|
|
38167
|
+
}, proto.viam.component.powersensor.v1.GetVoltageResponse.toObject = function(t, o) {
|
|
38168
|
+
var r = {
|
|
38169
|
+
volts: e.Message.getFloatingPointFieldWithDefault(o, 1, 0),
|
|
38170
|
+
isAc: e.Message.getBooleanFieldWithDefault(o, 2, !1)
|
|
38171
|
+
};
|
|
38172
|
+
return t && (r.$jspbMessageInstance = o), r;
|
|
38173
|
+
}), proto.viam.component.powersensor.v1.GetVoltageResponse.deserializeBinary = function(t) {
|
|
38174
|
+
var o = new e.BinaryReader(t), r = new proto.viam.component.powersensor.v1.GetVoltageResponse();
|
|
38175
|
+
return proto.viam.component.powersensor.v1.GetVoltageResponse.deserializeBinaryFromReader(r, o);
|
|
38176
|
+
}, proto.viam.component.powersensor.v1.GetVoltageResponse.deserializeBinaryFromReader = function(t, o) {
|
|
38177
|
+
for (; o.nextField() && !o.isEndGroup(); ) {
|
|
38178
|
+
var r = o.getFieldNumber();
|
|
38179
|
+
switch (r) {
|
|
38180
|
+
case 1:
|
|
38181
|
+
var u = (
|
|
38182
|
+
/** @type {number} */
|
|
38183
|
+
o.readDouble()
|
|
38184
|
+
);
|
|
38185
|
+
t.setVolts(u);
|
|
38186
|
+
break;
|
|
38187
|
+
case 2:
|
|
38188
|
+
var u = (
|
|
38189
|
+
/** @type {boolean} */
|
|
38190
|
+
o.readBool()
|
|
38191
|
+
);
|
|
38192
|
+
t.setIsAc(u);
|
|
38193
|
+
break;
|
|
38194
|
+
default:
|
|
38195
|
+
o.skipField();
|
|
38196
|
+
break;
|
|
38197
|
+
}
|
|
38198
|
+
}
|
|
38199
|
+
return t;
|
|
38200
|
+
}, proto.viam.component.powersensor.v1.GetVoltageResponse.prototype.serializeBinary = function() {
|
|
38201
|
+
var t = new e.BinaryWriter();
|
|
38202
|
+
return proto.viam.component.powersensor.v1.GetVoltageResponse.serializeBinaryToWriter(this, t), t.getResultBuffer();
|
|
38203
|
+
}, proto.viam.component.powersensor.v1.GetVoltageResponse.serializeBinaryToWriter = function(t, o) {
|
|
38204
|
+
var r = void 0;
|
|
38205
|
+
r = t.getVolts(), r !== 0 && o.writeDouble(
|
|
38206
|
+
1,
|
|
38207
|
+
r
|
|
38208
|
+
), r = t.getIsAc(), r && o.writeBool(
|
|
38209
|
+
2,
|
|
38210
|
+
r
|
|
38211
|
+
);
|
|
38212
|
+
}, proto.viam.component.powersensor.v1.GetVoltageResponse.prototype.getVolts = function() {
|
|
38213
|
+
return (
|
|
38214
|
+
/** @type {number} */
|
|
38215
|
+
e.Message.getFloatingPointFieldWithDefault(this, 1, 0)
|
|
38216
|
+
);
|
|
38217
|
+
}, proto.viam.component.powersensor.v1.GetVoltageResponse.prototype.setVolts = function(t) {
|
|
38218
|
+
return e.Message.setProto3FloatField(this, 1, t);
|
|
38219
|
+
}, proto.viam.component.powersensor.v1.GetVoltageResponse.prototype.getIsAc = function() {
|
|
38220
|
+
return (
|
|
38221
|
+
/** @type {boolean} */
|
|
38222
|
+
e.Message.getBooleanFieldWithDefault(this, 2, !1)
|
|
38223
|
+
);
|
|
38224
|
+
}, proto.viam.component.powersensor.v1.GetVoltageResponse.prototype.setIsAc = function(t) {
|
|
38225
|
+
return e.Message.setProto3BooleanField(this, 2, t);
|
|
38226
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.component.powersensor.v1.GetCurrentRequest.prototype.toObject = function(t) {
|
|
38227
|
+
return proto.viam.component.powersensor.v1.GetCurrentRequest.toObject(t, this);
|
|
38228
|
+
}, proto.viam.component.powersensor.v1.GetCurrentRequest.toObject = function(t, o) {
|
|
38229
|
+
var r, u = {
|
|
38230
|
+
name: e.Message.getFieldWithDefault(o, 1, ""),
|
|
38231
|
+
extra: (r = o.getExtra()) && p.Struct.toObject(t, r)
|
|
38232
|
+
};
|
|
38233
|
+
return t && (u.$jspbMessageInstance = o), u;
|
|
38234
|
+
}), proto.viam.component.powersensor.v1.GetCurrentRequest.deserializeBinary = function(t) {
|
|
38235
|
+
var o = new e.BinaryReader(t), r = new proto.viam.component.powersensor.v1.GetCurrentRequest();
|
|
38236
|
+
return proto.viam.component.powersensor.v1.GetCurrentRequest.deserializeBinaryFromReader(r, o);
|
|
38237
|
+
}, proto.viam.component.powersensor.v1.GetCurrentRequest.deserializeBinaryFromReader = function(t, o) {
|
|
38238
|
+
for (; o.nextField() && !o.isEndGroup(); ) {
|
|
38239
|
+
var r = o.getFieldNumber();
|
|
38240
|
+
switch (r) {
|
|
38241
|
+
case 1:
|
|
38242
|
+
var u = (
|
|
38243
|
+
/** @type {string} */
|
|
38244
|
+
o.readString()
|
|
38245
|
+
);
|
|
38246
|
+
t.setName(u);
|
|
38247
|
+
break;
|
|
38248
|
+
case 99:
|
|
38249
|
+
var u = new p.Struct();
|
|
38250
|
+
o.readMessage(u, p.Struct.deserializeBinaryFromReader), t.setExtra(u);
|
|
38251
|
+
break;
|
|
38252
|
+
default:
|
|
38253
|
+
o.skipField();
|
|
38254
|
+
break;
|
|
38255
|
+
}
|
|
38256
|
+
}
|
|
38257
|
+
return t;
|
|
38258
|
+
}, proto.viam.component.powersensor.v1.GetCurrentRequest.prototype.serializeBinary = function() {
|
|
38259
|
+
var t = new e.BinaryWriter();
|
|
38260
|
+
return proto.viam.component.powersensor.v1.GetCurrentRequest.serializeBinaryToWriter(this, t), t.getResultBuffer();
|
|
38261
|
+
}, proto.viam.component.powersensor.v1.GetCurrentRequest.serializeBinaryToWriter = function(t, o) {
|
|
38262
|
+
var r = void 0;
|
|
38263
|
+
r = t.getName(), r.length > 0 && o.writeString(
|
|
38264
|
+
1,
|
|
38265
|
+
r
|
|
38266
|
+
), r = t.getExtra(), r != null && o.writeMessage(
|
|
38267
|
+
99,
|
|
38268
|
+
r,
|
|
38269
|
+
p.Struct.serializeBinaryToWriter
|
|
38270
|
+
);
|
|
38271
|
+
}, proto.viam.component.powersensor.v1.GetCurrentRequest.prototype.getName = function() {
|
|
38272
|
+
return (
|
|
38273
|
+
/** @type {string} */
|
|
38274
|
+
e.Message.getFieldWithDefault(this, 1, "")
|
|
38275
|
+
);
|
|
38276
|
+
}, proto.viam.component.powersensor.v1.GetCurrentRequest.prototype.setName = function(t) {
|
|
38277
|
+
return e.Message.setProto3StringField(this, 1, t);
|
|
38278
|
+
}, proto.viam.component.powersensor.v1.GetCurrentRequest.prototype.getExtra = function() {
|
|
38279
|
+
return (
|
|
38280
|
+
/** @type{?proto.google.protobuf.Struct} */
|
|
38281
|
+
e.Message.getWrapperField(this, p.Struct, 99)
|
|
38282
|
+
);
|
|
38283
|
+
}, proto.viam.component.powersensor.v1.GetCurrentRequest.prototype.setExtra = function(t) {
|
|
38284
|
+
return e.Message.setWrapperField(this, 99, t);
|
|
38285
|
+
}, proto.viam.component.powersensor.v1.GetCurrentRequest.prototype.clearExtra = function() {
|
|
38286
|
+
return this.setExtra(void 0);
|
|
38287
|
+
}, proto.viam.component.powersensor.v1.GetCurrentRequest.prototype.hasExtra = function() {
|
|
38288
|
+
return e.Message.getField(this, 99) != null;
|
|
38289
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.component.powersensor.v1.GetCurrentResponse.prototype.toObject = function(t) {
|
|
38290
|
+
return proto.viam.component.powersensor.v1.GetCurrentResponse.toObject(t, this);
|
|
38291
|
+
}, proto.viam.component.powersensor.v1.GetCurrentResponse.toObject = function(t, o) {
|
|
38292
|
+
var r = {
|
|
38293
|
+
amperes: e.Message.getFloatingPointFieldWithDefault(o, 1, 0),
|
|
38294
|
+
isAc: e.Message.getBooleanFieldWithDefault(o, 2, !1)
|
|
38295
|
+
};
|
|
38296
|
+
return t && (r.$jspbMessageInstance = o), r;
|
|
38297
|
+
}), proto.viam.component.powersensor.v1.GetCurrentResponse.deserializeBinary = function(t) {
|
|
38298
|
+
var o = new e.BinaryReader(t), r = new proto.viam.component.powersensor.v1.GetCurrentResponse();
|
|
38299
|
+
return proto.viam.component.powersensor.v1.GetCurrentResponse.deserializeBinaryFromReader(r, o);
|
|
38300
|
+
}, proto.viam.component.powersensor.v1.GetCurrentResponse.deserializeBinaryFromReader = function(t, o) {
|
|
38301
|
+
for (; o.nextField() && !o.isEndGroup(); ) {
|
|
38302
|
+
var r = o.getFieldNumber();
|
|
38303
|
+
switch (r) {
|
|
38304
|
+
case 1:
|
|
38305
|
+
var u = (
|
|
38306
|
+
/** @type {number} */
|
|
38307
|
+
o.readDouble()
|
|
38308
|
+
);
|
|
38309
|
+
t.setAmperes(u);
|
|
38310
|
+
break;
|
|
38311
|
+
case 2:
|
|
38312
|
+
var u = (
|
|
38313
|
+
/** @type {boolean} */
|
|
38314
|
+
o.readBool()
|
|
38315
|
+
);
|
|
38316
|
+
t.setIsAc(u);
|
|
38317
|
+
break;
|
|
38318
|
+
default:
|
|
38319
|
+
o.skipField();
|
|
38320
|
+
break;
|
|
38321
|
+
}
|
|
38322
|
+
}
|
|
38323
|
+
return t;
|
|
38324
|
+
}, proto.viam.component.powersensor.v1.GetCurrentResponse.prototype.serializeBinary = function() {
|
|
38325
|
+
var t = new e.BinaryWriter();
|
|
38326
|
+
return proto.viam.component.powersensor.v1.GetCurrentResponse.serializeBinaryToWriter(this, t), t.getResultBuffer();
|
|
38327
|
+
}, proto.viam.component.powersensor.v1.GetCurrentResponse.serializeBinaryToWriter = function(t, o) {
|
|
38328
|
+
var r = void 0;
|
|
38329
|
+
r = t.getAmperes(), r !== 0 && o.writeDouble(
|
|
38330
|
+
1,
|
|
38331
|
+
r
|
|
38332
|
+
), r = t.getIsAc(), r && o.writeBool(
|
|
38333
|
+
2,
|
|
38334
|
+
r
|
|
38335
|
+
);
|
|
38336
|
+
}, proto.viam.component.powersensor.v1.GetCurrentResponse.prototype.getAmperes = function() {
|
|
38337
|
+
return (
|
|
38338
|
+
/** @type {number} */
|
|
38339
|
+
e.Message.getFloatingPointFieldWithDefault(this, 1, 0)
|
|
38340
|
+
);
|
|
38341
|
+
}, proto.viam.component.powersensor.v1.GetCurrentResponse.prototype.setAmperes = function(t) {
|
|
38342
|
+
return e.Message.setProto3FloatField(this, 1, t);
|
|
38343
|
+
}, proto.viam.component.powersensor.v1.GetCurrentResponse.prototype.getIsAc = function() {
|
|
38344
|
+
return (
|
|
38345
|
+
/** @type {boolean} */
|
|
38346
|
+
e.Message.getBooleanFieldWithDefault(this, 2, !1)
|
|
38347
|
+
);
|
|
38348
|
+
}, proto.viam.component.powersensor.v1.GetCurrentResponse.prototype.setIsAc = function(t) {
|
|
38349
|
+
return e.Message.setProto3BooleanField(this, 2, t);
|
|
38350
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.component.powersensor.v1.GetPowerRequest.prototype.toObject = function(t) {
|
|
38351
|
+
return proto.viam.component.powersensor.v1.GetPowerRequest.toObject(t, this);
|
|
38352
|
+
}, proto.viam.component.powersensor.v1.GetPowerRequest.toObject = function(t, o) {
|
|
38353
|
+
var r, u = {
|
|
38354
|
+
name: e.Message.getFieldWithDefault(o, 1, ""),
|
|
38355
|
+
extra: (r = o.getExtra()) && p.Struct.toObject(t, r)
|
|
38356
|
+
};
|
|
38357
|
+
return t && (u.$jspbMessageInstance = o), u;
|
|
38358
|
+
}), proto.viam.component.powersensor.v1.GetPowerRequest.deserializeBinary = function(t) {
|
|
38359
|
+
var o = new e.BinaryReader(t), r = new proto.viam.component.powersensor.v1.GetPowerRequest();
|
|
38360
|
+
return proto.viam.component.powersensor.v1.GetPowerRequest.deserializeBinaryFromReader(r, o);
|
|
38361
|
+
}, proto.viam.component.powersensor.v1.GetPowerRequest.deserializeBinaryFromReader = function(t, o) {
|
|
38362
|
+
for (; o.nextField() && !o.isEndGroup(); ) {
|
|
38363
|
+
var r = o.getFieldNumber();
|
|
38364
|
+
switch (r) {
|
|
38365
|
+
case 1:
|
|
38366
|
+
var u = (
|
|
38367
|
+
/** @type {string} */
|
|
38368
|
+
o.readString()
|
|
38369
|
+
);
|
|
38370
|
+
t.setName(u);
|
|
38371
|
+
break;
|
|
38372
|
+
case 99:
|
|
38373
|
+
var u = new p.Struct();
|
|
38374
|
+
o.readMessage(u, p.Struct.deserializeBinaryFromReader), t.setExtra(u);
|
|
38375
|
+
break;
|
|
38376
|
+
default:
|
|
38377
|
+
o.skipField();
|
|
38378
|
+
break;
|
|
38379
|
+
}
|
|
38380
|
+
}
|
|
38381
|
+
return t;
|
|
38382
|
+
}, proto.viam.component.powersensor.v1.GetPowerRequest.prototype.serializeBinary = function() {
|
|
38383
|
+
var t = new e.BinaryWriter();
|
|
38384
|
+
return proto.viam.component.powersensor.v1.GetPowerRequest.serializeBinaryToWriter(this, t), t.getResultBuffer();
|
|
38385
|
+
}, proto.viam.component.powersensor.v1.GetPowerRequest.serializeBinaryToWriter = function(t, o) {
|
|
38386
|
+
var r = void 0;
|
|
38387
|
+
r = t.getName(), r.length > 0 && o.writeString(
|
|
38388
|
+
1,
|
|
38389
|
+
r
|
|
38390
|
+
), r = t.getExtra(), r != null && o.writeMessage(
|
|
38391
|
+
99,
|
|
38392
|
+
r,
|
|
38393
|
+
p.Struct.serializeBinaryToWriter
|
|
38394
|
+
);
|
|
38395
|
+
}, proto.viam.component.powersensor.v1.GetPowerRequest.prototype.getName = function() {
|
|
38396
|
+
return (
|
|
38397
|
+
/** @type {string} */
|
|
38398
|
+
e.Message.getFieldWithDefault(this, 1, "")
|
|
38399
|
+
);
|
|
38400
|
+
}, proto.viam.component.powersensor.v1.GetPowerRequest.prototype.setName = function(t) {
|
|
38401
|
+
return e.Message.setProto3StringField(this, 1, t);
|
|
38402
|
+
}, proto.viam.component.powersensor.v1.GetPowerRequest.prototype.getExtra = function() {
|
|
38403
|
+
return (
|
|
38404
|
+
/** @type{?proto.google.protobuf.Struct} */
|
|
38405
|
+
e.Message.getWrapperField(this, p.Struct, 99)
|
|
38406
|
+
);
|
|
38407
|
+
}, proto.viam.component.powersensor.v1.GetPowerRequest.prototype.setExtra = function(t) {
|
|
38408
|
+
return e.Message.setWrapperField(this, 99, t);
|
|
38409
|
+
}, proto.viam.component.powersensor.v1.GetPowerRequest.prototype.clearExtra = function() {
|
|
38410
|
+
return this.setExtra(void 0);
|
|
38411
|
+
}, proto.viam.component.powersensor.v1.GetPowerRequest.prototype.hasExtra = function() {
|
|
38412
|
+
return e.Message.getField(this, 99) != null;
|
|
38413
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.component.powersensor.v1.GetPowerResponse.prototype.toObject = function(t) {
|
|
38414
|
+
return proto.viam.component.powersensor.v1.GetPowerResponse.toObject(t, this);
|
|
38415
|
+
}, proto.viam.component.powersensor.v1.GetPowerResponse.toObject = function(t, o) {
|
|
38416
|
+
var r = {
|
|
38417
|
+
watts: e.Message.getFloatingPointFieldWithDefault(o, 1, 0)
|
|
38418
|
+
};
|
|
38419
|
+
return t && (r.$jspbMessageInstance = o), r;
|
|
38420
|
+
}), proto.viam.component.powersensor.v1.GetPowerResponse.deserializeBinary = function(t) {
|
|
38421
|
+
var o = new e.BinaryReader(t), r = new proto.viam.component.powersensor.v1.GetPowerResponse();
|
|
38422
|
+
return proto.viam.component.powersensor.v1.GetPowerResponse.deserializeBinaryFromReader(r, o);
|
|
38423
|
+
}, proto.viam.component.powersensor.v1.GetPowerResponse.deserializeBinaryFromReader = function(t, o) {
|
|
38424
|
+
for (; o.nextField() && !o.isEndGroup(); ) {
|
|
38425
|
+
var r = o.getFieldNumber();
|
|
38426
|
+
switch (r) {
|
|
38427
|
+
case 1:
|
|
38428
|
+
var u = (
|
|
38429
|
+
/** @type {number} */
|
|
38430
|
+
o.readDouble()
|
|
38431
|
+
);
|
|
38432
|
+
t.setWatts(u);
|
|
38433
|
+
break;
|
|
38434
|
+
default:
|
|
38435
|
+
o.skipField();
|
|
38436
|
+
break;
|
|
38437
|
+
}
|
|
38438
|
+
}
|
|
38439
|
+
return t;
|
|
38440
|
+
}, proto.viam.component.powersensor.v1.GetPowerResponse.prototype.serializeBinary = function() {
|
|
38441
|
+
var t = new e.BinaryWriter();
|
|
38442
|
+
return proto.viam.component.powersensor.v1.GetPowerResponse.serializeBinaryToWriter(this, t), t.getResultBuffer();
|
|
38443
|
+
}, proto.viam.component.powersensor.v1.GetPowerResponse.serializeBinaryToWriter = function(t, o) {
|
|
38444
|
+
var r = void 0;
|
|
38445
|
+
r = t.getWatts(), r !== 0 && o.writeDouble(
|
|
38446
|
+
1,
|
|
38447
|
+
r
|
|
38448
|
+
);
|
|
38449
|
+
}, proto.viam.component.powersensor.v1.GetPowerResponse.prototype.getWatts = function() {
|
|
38450
|
+
return (
|
|
38451
|
+
/** @type {number} */
|
|
38452
|
+
e.Message.getFloatingPointFieldWithDefault(this, 1, 0)
|
|
38453
|
+
);
|
|
38454
|
+
}, proto.viam.component.powersensor.v1.GetPowerResponse.prototype.setWatts = function(t) {
|
|
38455
|
+
return e.Message.setProto3FloatField(this, 1, t);
|
|
38456
|
+
}, n.object.extend(i, proto.viam.component.powersensor.v1);
|
|
38457
|
+
})(powersensor_pb);
|
|
38458
|
+
var component_powersensor_v1_powersensor_pb = powersensor_pb, common_v1_common_pb$8 = common_pb, grpc$d = grpcWebClient_umdExports$1.grpc, PowerSensorService = function() {
|
|
38082
38459
|
function i() {
|
|
38083
38460
|
}
|
|
38084
|
-
return i.serviceName = "viam.
|
|
38461
|
+
return i.serviceName = "viam.component.powersensor.v1.PowerSensorService", i;
|
|
38085
38462
|
}();
|
|
38086
|
-
|
|
38087
|
-
methodName: "
|
|
38088
|
-
service:
|
|
38089
|
-
requestStream: !1,
|
|
38090
|
-
responseStream: !1,
|
|
38091
|
-
requestType: robot_v1_robot_pb.GetOperationsRequest,
|
|
38092
|
-
responseType: robot_v1_robot_pb.GetOperationsResponse
|
|
38093
|
-
};
|
|
38094
|
-
RobotService.GetSessions = {
|
|
38095
|
-
methodName: "GetSessions",
|
|
38096
|
-
service: RobotService,
|
|
38097
|
-
requestStream: !1,
|
|
38098
|
-
responseStream: !1,
|
|
38099
|
-
requestType: robot_v1_robot_pb.GetSessionsRequest,
|
|
38100
|
-
responseType: robot_v1_robot_pb.GetSessionsResponse
|
|
38101
|
-
};
|
|
38102
|
-
RobotService.ResourceNames = {
|
|
38103
|
-
methodName: "ResourceNames",
|
|
38104
|
-
service: RobotService,
|
|
38463
|
+
PowerSensorService.GetVoltage = {
|
|
38464
|
+
methodName: "GetVoltage",
|
|
38465
|
+
service: PowerSensorService,
|
|
38105
38466
|
requestStream: !1,
|
|
38106
38467
|
responseStream: !1,
|
|
38107
|
-
requestType:
|
|
38108
|
-
responseType:
|
|
38468
|
+
requestType: component_powersensor_v1_powersensor_pb.GetVoltageRequest,
|
|
38469
|
+
responseType: component_powersensor_v1_powersensor_pb.GetVoltageResponse
|
|
38109
38470
|
};
|
|
38110
|
-
|
|
38111
|
-
methodName: "
|
|
38112
|
-
service:
|
|
38471
|
+
PowerSensorService.GetCurrent = {
|
|
38472
|
+
methodName: "GetCurrent",
|
|
38473
|
+
service: PowerSensorService,
|
|
38113
38474
|
requestStream: !1,
|
|
38114
38475
|
responseStream: !1,
|
|
38115
|
-
requestType:
|
|
38116
|
-
responseType:
|
|
38476
|
+
requestType: component_powersensor_v1_powersensor_pb.GetCurrentRequest,
|
|
38477
|
+
responseType: component_powersensor_v1_powersensor_pb.GetCurrentResponse
|
|
38117
38478
|
};
|
|
38118
|
-
|
|
38119
|
-
methodName: "
|
|
38120
|
-
service:
|
|
38479
|
+
PowerSensorService.GetPower = {
|
|
38480
|
+
methodName: "GetPower",
|
|
38481
|
+
service: PowerSensorService,
|
|
38121
38482
|
requestStream: !1,
|
|
38122
38483
|
responseStream: !1,
|
|
38123
|
-
requestType:
|
|
38124
|
-
responseType:
|
|
38484
|
+
requestType: component_powersensor_v1_powersensor_pb.GetPowerRequest,
|
|
38485
|
+
responseType: component_powersensor_v1_powersensor_pb.GetPowerResponse
|
|
38125
38486
|
};
|
|
38126
|
-
|
|
38127
|
-
methodName: "
|
|
38128
|
-
service:
|
|
38487
|
+
PowerSensorService.GetReadings = {
|
|
38488
|
+
methodName: "GetReadings",
|
|
38489
|
+
service: PowerSensorService,
|
|
38129
38490
|
requestStream: !1,
|
|
38130
38491
|
responseStream: !1,
|
|
38131
|
-
requestType:
|
|
38132
|
-
responseType:
|
|
38492
|
+
requestType: common_v1_common_pb$8.GetReadingsRequest,
|
|
38493
|
+
responseType: common_v1_common_pb$8.GetReadingsResponse
|
|
38133
38494
|
};
|
|
38134
|
-
|
|
38135
|
-
methodName: "
|
|
38136
|
-
service:
|
|
38495
|
+
PowerSensorService.DoCommand = {
|
|
38496
|
+
methodName: "DoCommand",
|
|
38497
|
+
service: PowerSensorService,
|
|
38137
38498
|
requestStream: !1,
|
|
38138
38499
|
responseStream: !1,
|
|
38139
|
-
requestType:
|
|
38140
|
-
responseType:
|
|
38500
|
+
requestType: common_v1_common_pb$8.DoCommandRequest,
|
|
38501
|
+
responseType: common_v1_common_pb$8.DoCommandResponse
|
|
38141
38502
|
};
|
|
38142
|
-
|
|
38143
|
-
|
|
38144
|
-
|
|
38145
|
-
|
|
38146
|
-
|
|
38147
|
-
|
|
38148
|
-
|
|
38503
|
+
function PowerSensorServiceClient(i, e) {
|
|
38504
|
+
this.serviceHost = i, this.options = e || {};
|
|
38505
|
+
}
|
|
38506
|
+
PowerSensorServiceClient.prototype.getVoltage = function i(e, n, s) {
|
|
38507
|
+
arguments.length === 2 && (s = arguments[1]);
|
|
38508
|
+
var l = grpc$d.unary(PowerSensorService.GetVoltage, {
|
|
38509
|
+
request: e,
|
|
38510
|
+
host: this.serviceHost,
|
|
38511
|
+
metadata: n,
|
|
38512
|
+
transport: this.options.transport,
|
|
38513
|
+
debug: this.options.debug,
|
|
38514
|
+
onEnd: function(g) {
|
|
38515
|
+
if (s)
|
|
38516
|
+
if (g.status !== grpc$d.Code.OK) {
|
|
38517
|
+
var p = new Error(g.statusMessage);
|
|
38518
|
+
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
38519
|
+
} else
|
|
38520
|
+
s(null, g.message);
|
|
38521
|
+
}
|
|
38522
|
+
});
|
|
38523
|
+
return {
|
|
38524
|
+
cancel: function() {
|
|
38525
|
+
s = null, l.close();
|
|
38526
|
+
}
|
|
38527
|
+
};
|
|
38149
38528
|
};
|
|
38150
|
-
|
|
38151
|
-
|
|
38152
|
-
|
|
38153
|
-
|
|
38154
|
-
|
|
38155
|
-
|
|
38156
|
-
|
|
38529
|
+
PowerSensorServiceClient.prototype.getCurrent = function i(e, n, s) {
|
|
38530
|
+
arguments.length === 2 && (s = arguments[1]);
|
|
38531
|
+
var l = grpc$d.unary(PowerSensorService.GetCurrent, {
|
|
38532
|
+
request: e,
|
|
38533
|
+
host: this.serviceHost,
|
|
38534
|
+
metadata: n,
|
|
38535
|
+
transport: this.options.transport,
|
|
38536
|
+
debug: this.options.debug,
|
|
38537
|
+
onEnd: function(g) {
|
|
38538
|
+
if (s)
|
|
38539
|
+
if (g.status !== grpc$d.Code.OK) {
|
|
38540
|
+
var p = new Error(g.statusMessage);
|
|
38541
|
+
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
38542
|
+
} else
|
|
38543
|
+
s(null, g.message);
|
|
38544
|
+
}
|
|
38545
|
+
});
|
|
38546
|
+
return {
|
|
38547
|
+
cancel: function() {
|
|
38548
|
+
s = null, l.close();
|
|
38549
|
+
}
|
|
38550
|
+
};
|
|
38157
38551
|
};
|
|
38158
|
-
|
|
38159
|
-
|
|
38160
|
-
|
|
38552
|
+
PowerSensorServiceClient.prototype.getPower = function i(e, n, s) {
|
|
38553
|
+
arguments.length === 2 && (s = arguments[1]);
|
|
38554
|
+
var l = grpc$d.unary(PowerSensorService.GetPower, {
|
|
38555
|
+
request: e,
|
|
38556
|
+
host: this.serviceHost,
|
|
38557
|
+
metadata: n,
|
|
38558
|
+
transport: this.options.transport,
|
|
38559
|
+
debug: this.options.debug,
|
|
38560
|
+
onEnd: function(g) {
|
|
38561
|
+
if (s)
|
|
38562
|
+
if (g.status !== grpc$d.Code.OK) {
|
|
38563
|
+
var p = new Error(g.statusMessage);
|
|
38564
|
+
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
38565
|
+
} else
|
|
38566
|
+
s(null, g.message);
|
|
38567
|
+
}
|
|
38568
|
+
});
|
|
38569
|
+
return {
|
|
38570
|
+
cancel: function() {
|
|
38571
|
+
s = null, l.close();
|
|
38572
|
+
}
|
|
38573
|
+
};
|
|
38574
|
+
};
|
|
38575
|
+
PowerSensorServiceClient.prototype.getReadings = function i(e, n, s) {
|
|
38576
|
+
arguments.length === 2 && (s = arguments[1]);
|
|
38577
|
+
var l = grpc$d.unary(PowerSensorService.GetReadings, {
|
|
38578
|
+
request: e,
|
|
38579
|
+
host: this.serviceHost,
|
|
38580
|
+
metadata: n,
|
|
38581
|
+
transport: this.options.transport,
|
|
38582
|
+
debug: this.options.debug,
|
|
38583
|
+
onEnd: function(g) {
|
|
38584
|
+
if (s)
|
|
38585
|
+
if (g.status !== grpc$d.Code.OK) {
|
|
38586
|
+
var p = new Error(g.statusMessage);
|
|
38587
|
+
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
38588
|
+
} else
|
|
38589
|
+
s(null, g.message);
|
|
38590
|
+
}
|
|
38591
|
+
});
|
|
38592
|
+
return {
|
|
38593
|
+
cancel: function() {
|
|
38594
|
+
s = null, l.close();
|
|
38595
|
+
}
|
|
38596
|
+
};
|
|
38597
|
+
};
|
|
38598
|
+
PowerSensorServiceClient.prototype.doCommand = function i(e, n, s) {
|
|
38599
|
+
arguments.length === 2 && (s = arguments[1]);
|
|
38600
|
+
var l = grpc$d.unary(PowerSensorService.DoCommand, {
|
|
38601
|
+
request: e,
|
|
38602
|
+
host: this.serviceHost,
|
|
38603
|
+
metadata: n,
|
|
38604
|
+
transport: this.options.transport,
|
|
38605
|
+
debug: this.options.debug,
|
|
38606
|
+
onEnd: function(g) {
|
|
38607
|
+
if (s)
|
|
38608
|
+
if (g.status !== grpc$d.Code.OK) {
|
|
38609
|
+
var p = new Error(g.statusMessage);
|
|
38610
|
+
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
38611
|
+
} else
|
|
38612
|
+
s(null, g.message);
|
|
38613
|
+
}
|
|
38614
|
+
});
|
|
38615
|
+
return {
|
|
38616
|
+
cancel: function() {
|
|
38617
|
+
s = null, l.close();
|
|
38618
|
+
}
|
|
38619
|
+
};
|
|
38620
|
+
};
|
|
38621
|
+
var PowerSensorServiceClient_1 = PowerSensorServiceClient, robot_v1_robot_pb = robot_pb, grpc$c = grpcWebClient_umdExports$1.grpc, RobotService = function() {
|
|
38622
|
+
function i() {
|
|
38623
|
+
}
|
|
38624
|
+
return i.serviceName = "viam.robot.v1.RobotService", i;
|
|
38625
|
+
}();
|
|
38626
|
+
RobotService.GetOperations = {
|
|
38627
|
+
methodName: "GetOperations",
|
|
38628
|
+
service: RobotService,
|
|
38629
|
+
requestStream: !1,
|
|
38630
|
+
responseStream: !1,
|
|
38631
|
+
requestType: robot_v1_robot_pb.GetOperationsRequest,
|
|
38632
|
+
responseType: robot_v1_robot_pb.GetOperationsResponse
|
|
38633
|
+
};
|
|
38634
|
+
RobotService.GetSessions = {
|
|
38635
|
+
methodName: "GetSessions",
|
|
38636
|
+
service: RobotService,
|
|
38637
|
+
requestStream: !1,
|
|
38638
|
+
responseStream: !1,
|
|
38639
|
+
requestType: robot_v1_robot_pb.GetSessionsRequest,
|
|
38640
|
+
responseType: robot_v1_robot_pb.GetSessionsResponse
|
|
38641
|
+
};
|
|
38642
|
+
RobotService.ResourceNames = {
|
|
38643
|
+
methodName: "ResourceNames",
|
|
38644
|
+
service: RobotService,
|
|
38645
|
+
requestStream: !1,
|
|
38646
|
+
responseStream: !1,
|
|
38647
|
+
requestType: robot_v1_robot_pb.ResourceNamesRequest,
|
|
38648
|
+
responseType: robot_v1_robot_pb.ResourceNamesResponse
|
|
38649
|
+
};
|
|
38650
|
+
RobotService.ResourceRPCSubtypes = {
|
|
38651
|
+
methodName: "ResourceRPCSubtypes",
|
|
38652
|
+
service: RobotService,
|
|
38653
|
+
requestStream: !1,
|
|
38654
|
+
responseStream: !1,
|
|
38655
|
+
requestType: robot_v1_robot_pb.ResourceRPCSubtypesRequest,
|
|
38656
|
+
responseType: robot_v1_robot_pb.ResourceRPCSubtypesResponse
|
|
38657
|
+
};
|
|
38658
|
+
RobotService.CancelOperation = {
|
|
38659
|
+
methodName: "CancelOperation",
|
|
38660
|
+
service: RobotService,
|
|
38661
|
+
requestStream: !1,
|
|
38662
|
+
responseStream: !1,
|
|
38663
|
+
requestType: robot_v1_robot_pb.CancelOperationRequest,
|
|
38664
|
+
responseType: robot_v1_robot_pb.CancelOperationResponse
|
|
38665
|
+
};
|
|
38666
|
+
RobotService.BlockForOperation = {
|
|
38667
|
+
methodName: "BlockForOperation",
|
|
38668
|
+
service: RobotService,
|
|
38669
|
+
requestStream: !1,
|
|
38670
|
+
responseStream: !1,
|
|
38671
|
+
requestType: robot_v1_robot_pb.BlockForOperationRequest,
|
|
38672
|
+
responseType: robot_v1_robot_pb.BlockForOperationResponse
|
|
38673
|
+
};
|
|
38674
|
+
RobotService.DiscoverComponents = {
|
|
38675
|
+
methodName: "DiscoverComponents",
|
|
38676
|
+
service: RobotService,
|
|
38677
|
+
requestStream: !1,
|
|
38678
|
+
responseStream: !1,
|
|
38679
|
+
requestType: robot_v1_robot_pb.DiscoverComponentsRequest,
|
|
38680
|
+
responseType: robot_v1_robot_pb.DiscoverComponentsResponse
|
|
38681
|
+
};
|
|
38682
|
+
RobotService.FrameSystemConfig = {
|
|
38683
|
+
methodName: "FrameSystemConfig",
|
|
38684
|
+
service: RobotService,
|
|
38685
|
+
requestStream: !1,
|
|
38686
|
+
responseStream: !1,
|
|
38687
|
+
requestType: robot_v1_robot_pb.FrameSystemConfigRequest,
|
|
38688
|
+
responseType: robot_v1_robot_pb.FrameSystemConfigResponse
|
|
38689
|
+
};
|
|
38690
|
+
RobotService.TransformPose = {
|
|
38691
|
+
methodName: "TransformPose",
|
|
38692
|
+
service: RobotService,
|
|
38693
|
+
requestStream: !1,
|
|
38694
|
+
responseStream: !1,
|
|
38695
|
+
requestType: robot_v1_robot_pb.TransformPoseRequest,
|
|
38696
|
+
responseType: robot_v1_robot_pb.TransformPoseResponse
|
|
38697
|
+
};
|
|
38698
|
+
RobotService.TransformPCD = {
|
|
38699
|
+
methodName: "TransformPCD",
|
|
38700
|
+
service: RobotService,
|
|
38161
38701
|
requestStream: !1,
|
|
38162
38702
|
responseStream: !1,
|
|
38163
38703
|
requestType: robot_v1_robot_pb.TransformPCDRequest,
|
|
@@ -38208,7 +38748,7 @@ function RobotServiceClient(i, e) {
|
|
|
38208
38748
|
}
|
|
38209
38749
|
RobotServiceClient.prototype.getOperations = function i(e, n, s) {
|
|
38210
38750
|
arguments.length === 2 && (s = arguments[1]);
|
|
38211
|
-
var l = grpc$
|
|
38751
|
+
var l = grpc$c.unary(RobotService.GetOperations, {
|
|
38212
38752
|
request: e,
|
|
38213
38753
|
host: this.serviceHost,
|
|
38214
38754
|
metadata: n,
|
|
@@ -38216,7 +38756,7 @@ RobotServiceClient.prototype.getOperations = function i(e, n, s) {
|
|
|
38216
38756
|
debug: this.options.debug,
|
|
38217
38757
|
onEnd: function(g) {
|
|
38218
38758
|
if (s)
|
|
38219
|
-
if (g.status !== grpc$
|
|
38759
|
+
if (g.status !== grpc$c.Code.OK) {
|
|
38220
38760
|
var p = new Error(g.statusMessage);
|
|
38221
38761
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
38222
38762
|
} else
|
|
@@ -38231,7 +38771,7 @@ RobotServiceClient.prototype.getOperations = function i(e, n, s) {
|
|
|
38231
38771
|
};
|
|
38232
38772
|
RobotServiceClient.prototype.getSessions = function i(e, n, s) {
|
|
38233
38773
|
arguments.length === 2 && (s = arguments[1]);
|
|
38234
|
-
var l = grpc$
|
|
38774
|
+
var l = grpc$c.unary(RobotService.GetSessions, {
|
|
38235
38775
|
request: e,
|
|
38236
38776
|
host: this.serviceHost,
|
|
38237
38777
|
metadata: n,
|
|
@@ -38239,7 +38779,7 @@ RobotServiceClient.prototype.getSessions = function i(e, n, s) {
|
|
|
38239
38779
|
debug: this.options.debug,
|
|
38240
38780
|
onEnd: function(g) {
|
|
38241
38781
|
if (s)
|
|
38242
|
-
if (g.status !== grpc$
|
|
38782
|
+
if (g.status !== grpc$c.Code.OK) {
|
|
38243
38783
|
var p = new Error(g.statusMessage);
|
|
38244
38784
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
38245
38785
|
} else
|
|
@@ -38254,7 +38794,7 @@ RobotServiceClient.prototype.getSessions = function i(e, n, s) {
|
|
|
38254
38794
|
};
|
|
38255
38795
|
RobotServiceClient.prototype.resourceNames = function i(e, n, s) {
|
|
38256
38796
|
arguments.length === 2 && (s = arguments[1]);
|
|
38257
|
-
var l = grpc$
|
|
38797
|
+
var l = grpc$c.unary(RobotService.ResourceNames, {
|
|
38258
38798
|
request: e,
|
|
38259
38799
|
host: this.serviceHost,
|
|
38260
38800
|
metadata: n,
|
|
@@ -38262,7 +38802,7 @@ RobotServiceClient.prototype.resourceNames = function i(e, n, s) {
|
|
|
38262
38802
|
debug: this.options.debug,
|
|
38263
38803
|
onEnd: function(g) {
|
|
38264
38804
|
if (s)
|
|
38265
|
-
if (g.status !== grpc$
|
|
38805
|
+
if (g.status !== grpc$c.Code.OK) {
|
|
38266
38806
|
var p = new Error(g.statusMessage);
|
|
38267
38807
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
38268
38808
|
} else
|
|
@@ -38277,7 +38817,7 @@ RobotServiceClient.prototype.resourceNames = function i(e, n, s) {
|
|
|
38277
38817
|
};
|
|
38278
38818
|
RobotServiceClient.prototype.resourceRPCSubtypes = function i(e, n, s) {
|
|
38279
38819
|
arguments.length === 2 && (s = arguments[1]);
|
|
38280
|
-
var l = grpc$
|
|
38820
|
+
var l = grpc$c.unary(RobotService.ResourceRPCSubtypes, {
|
|
38281
38821
|
request: e,
|
|
38282
38822
|
host: this.serviceHost,
|
|
38283
38823
|
metadata: n,
|
|
@@ -38285,7 +38825,7 @@ RobotServiceClient.prototype.resourceRPCSubtypes = function i(e, n, s) {
|
|
|
38285
38825
|
debug: this.options.debug,
|
|
38286
38826
|
onEnd: function(g) {
|
|
38287
38827
|
if (s)
|
|
38288
|
-
if (g.status !== grpc$
|
|
38828
|
+
if (g.status !== grpc$c.Code.OK) {
|
|
38289
38829
|
var p = new Error(g.statusMessage);
|
|
38290
38830
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
38291
38831
|
} else
|
|
@@ -38300,7 +38840,7 @@ RobotServiceClient.prototype.resourceRPCSubtypes = function i(e, n, s) {
|
|
|
38300
38840
|
};
|
|
38301
38841
|
RobotServiceClient.prototype.cancelOperation = function i(e, n, s) {
|
|
38302
38842
|
arguments.length === 2 && (s = arguments[1]);
|
|
38303
|
-
var l = grpc$
|
|
38843
|
+
var l = grpc$c.unary(RobotService.CancelOperation, {
|
|
38304
38844
|
request: e,
|
|
38305
38845
|
host: this.serviceHost,
|
|
38306
38846
|
metadata: n,
|
|
@@ -38308,7 +38848,7 @@ RobotServiceClient.prototype.cancelOperation = function i(e, n, s) {
|
|
|
38308
38848
|
debug: this.options.debug,
|
|
38309
38849
|
onEnd: function(g) {
|
|
38310
38850
|
if (s)
|
|
38311
|
-
if (g.status !== grpc$
|
|
38851
|
+
if (g.status !== grpc$c.Code.OK) {
|
|
38312
38852
|
var p = new Error(g.statusMessage);
|
|
38313
38853
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
38314
38854
|
} else
|
|
@@ -38323,7 +38863,7 @@ RobotServiceClient.prototype.cancelOperation = function i(e, n, s) {
|
|
|
38323
38863
|
};
|
|
38324
38864
|
RobotServiceClient.prototype.blockForOperation = function i(e, n, s) {
|
|
38325
38865
|
arguments.length === 2 && (s = arguments[1]);
|
|
38326
|
-
var l = grpc$
|
|
38866
|
+
var l = grpc$c.unary(RobotService.BlockForOperation, {
|
|
38327
38867
|
request: e,
|
|
38328
38868
|
host: this.serviceHost,
|
|
38329
38869
|
metadata: n,
|
|
@@ -38331,7 +38871,7 @@ RobotServiceClient.prototype.blockForOperation = function i(e, n, s) {
|
|
|
38331
38871
|
debug: this.options.debug,
|
|
38332
38872
|
onEnd: function(g) {
|
|
38333
38873
|
if (s)
|
|
38334
|
-
if (g.status !== grpc$
|
|
38874
|
+
if (g.status !== grpc$c.Code.OK) {
|
|
38335
38875
|
var p = new Error(g.statusMessage);
|
|
38336
38876
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
38337
38877
|
} else
|
|
@@ -38346,7 +38886,7 @@ RobotServiceClient.prototype.blockForOperation = function i(e, n, s) {
|
|
|
38346
38886
|
};
|
|
38347
38887
|
RobotServiceClient.prototype.discoverComponents = function i(e, n, s) {
|
|
38348
38888
|
arguments.length === 2 && (s = arguments[1]);
|
|
38349
|
-
var l = grpc$
|
|
38889
|
+
var l = grpc$c.unary(RobotService.DiscoverComponents, {
|
|
38350
38890
|
request: e,
|
|
38351
38891
|
host: this.serviceHost,
|
|
38352
38892
|
metadata: n,
|
|
@@ -38354,7 +38894,7 @@ RobotServiceClient.prototype.discoverComponents = function i(e, n, s) {
|
|
|
38354
38894
|
debug: this.options.debug,
|
|
38355
38895
|
onEnd: function(g) {
|
|
38356
38896
|
if (s)
|
|
38357
|
-
if (g.status !== grpc$
|
|
38897
|
+
if (g.status !== grpc$c.Code.OK) {
|
|
38358
38898
|
var p = new Error(g.statusMessage);
|
|
38359
38899
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
38360
38900
|
} else
|
|
@@ -38369,7 +38909,7 @@ RobotServiceClient.prototype.discoverComponents = function i(e, n, s) {
|
|
|
38369
38909
|
};
|
|
38370
38910
|
RobotServiceClient.prototype.frameSystemConfig = function i(e, n, s) {
|
|
38371
38911
|
arguments.length === 2 && (s = arguments[1]);
|
|
38372
|
-
var l = grpc$
|
|
38912
|
+
var l = grpc$c.unary(RobotService.FrameSystemConfig, {
|
|
38373
38913
|
request: e,
|
|
38374
38914
|
host: this.serviceHost,
|
|
38375
38915
|
metadata: n,
|
|
@@ -38377,7 +38917,7 @@ RobotServiceClient.prototype.frameSystemConfig = function i(e, n, s) {
|
|
|
38377
38917
|
debug: this.options.debug,
|
|
38378
38918
|
onEnd: function(g) {
|
|
38379
38919
|
if (s)
|
|
38380
|
-
if (g.status !== grpc$
|
|
38920
|
+
if (g.status !== grpc$c.Code.OK) {
|
|
38381
38921
|
var p = new Error(g.statusMessage);
|
|
38382
38922
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
38383
38923
|
} else
|
|
@@ -38392,7 +38932,7 @@ RobotServiceClient.prototype.frameSystemConfig = function i(e, n, s) {
|
|
|
38392
38932
|
};
|
|
38393
38933
|
RobotServiceClient.prototype.transformPose = function i(e, n, s) {
|
|
38394
38934
|
arguments.length === 2 && (s = arguments[1]);
|
|
38395
|
-
var l = grpc$
|
|
38935
|
+
var l = grpc$c.unary(RobotService.TransformPose, {
|
|
38396
38936
|
request: e,
|
|
38397
38937
|
host: this.serviceHost,
|
|
38398
38938
|
metadata: n,
|
|
@@ -38400,7 +38940,7 @@ RobotServiceClient.prototype.transformPose = function i(e, n, s) {
|
|
|
38400
38940
|
debug: this.options.debug,
|
|
38401
38941
|
onEnd: function(g) {
|
|
38402
38942
|
if (s)
|
|
38403
|
-
if (g.status !== grpc$
|
|
38943
|
+
if (g.status !== grpc$c.Code.OK) {
|
|
38404
38944
|
var p = new Error(g.statusMessage);
|
|
38405
38945
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
38406
38946
|
} else
|
|
@@ -38415,7 +38955,7 @@ RobotServiceClient.prototype.transformPose = function i(e, n, s) {
|
|
|
38415
38955
|
};
|
|
38416
38956
|
RobotServiceClient.prototype.transformPCD = function i(e, n, s) {
|
|
38417
38957
|
arguments.length === 2 && (s = arguments[1]);
|
|
38418
|
-
var l = grpc$
|
|
38958
|
+
var l = grpc$c.unary(RobotService.TransformPCD, {
|
|
38419
38959
|
request: e,
|
|
38420
38960
|
host: this.serviceHost,
|
|
38421
38961
|
metadata: n,
|
|
@@ -38423,7 +38963,7 @@ RobotServiceClient.prototype.transformPCD = function i(e, n, s) {
|
|
|
38423
38963
|
debug: this.options.debug,
|
|
38424
38964
|
onEnd: function(g) {
|
|
38425
38965
|
if (s)
|
|
38426
|
-
if (g.status !== grpc$
|
|
38966
|
+
if (g.status !== grpc$c.Code.OK) {
|
|
38427
38967
|
var p = new Error(g.statusMessage);
|
|
38428
38968
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
38429
38969
|
} else
|
|
@@ -38438,7 +38978,7 @@ RobotServiceClient.prototype.transformPCD = function i(e, n, s) {
|
|
|
38438
38978
|
};
|
|
38439
38979
|
RobotServiceClient.prototype.getStatus = function i(e, n, s) {
|
|
38440
38980
|
arguments.length === 2 && (s = arguments[1]);
|
|
38441
|
-
var l = grpc$
|
|
38981
|
+
var l = grpc$c.unary(RobotService.GetStatus, {
|
|
38442
38982
|
request: e,
|
|
38443
38983
|
host: this.serviceHost,
|
|
38444
38984
|
metadata: n,
|
|
@@ -38446,7 +38986,7 @@ RobotServiceClient.prototype.getStatus = function i(e, n, s) {
|
|
|
38446
38986
|
debug: this.options.debug,
|
|
38447
38987
|
onEnd: function(g) {
|
|
38448
38988
|
if (s)
|
|
38449
|
-
if (g.status !== grpc$
|
|
38989
|
+
if (g.status !== grpc$c.Code.OK) {
|
|
38450
38990
|
var p = new Error(g.statusMessage);
|
|
38451
38991
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
38452
38992
|
} else
|
|
@@ -38464,7 +39004,7 @@ RobotServiceClient.prototype.streamStatus = function i(e, n) {
|
|
|
38464
39004
|
data: [],
|
|
38465
39005
|
end: [],
|
|
38466
39006
|
status: []
|
|
38467
|
-
}, l = grpc$
|
|
39007
|
+
}, l = grpc$c.invoke(RobotService.StreamStatus, {
|
|
38468
39008
|
request: e,
|
|
38469
39009
|
host: this.serviceHost,
|
|
38470
39010
|
metadata: n,
|
|
@@ -38494,7 +39034,7 @@ RobotServiceClient.prototype.streamStatus = function i(e, n) {
|
|
|
38494
39034
|
};
|
|
38495
39035
|
RobotServiceClient.prototype.stopAll = function i(e, n, s) {
|
|
38496
39036
|
arguments.length === 2 && (s = arguments[1]);
|
|
38497
|
-
var l = grpc$
|
|
39037
|
+
var l = grpc$c.unary(RobotService.StopAll, {
|
|
38498
39038
|
request: e,
|
|
38499
39039
|
host: this.serviceHost,
|
|
38500
39040
|
metadata: n,
|
|
@@ -38502,7 +39042,7 @@ RobotServiceClient.prototype.stopAll = function i(e, n, s) {
|
|
|
38502
39042
|
debug: this.options.debug,
|
|
38503
39043
|
onEnd: function(g) {
|
|
38504
39044
|
if (s)
|
|
38505
|
-
if (g.status !== grpc$
|
|
39045
|
+
if (g.status !== grpc$c.Code.OK) {
|
|
38506
39046
|
var p = new Error(g.statusMessage);
|
|
38507
39047
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
38508
39048
|
} else
|
|
@@ -38517,7 +39057,7 @@ RobotServiceClient.prototype.stopAll = function i(e, n, s) {
|
|
|
38517
39057
|
};
|
|
38518
39058
|
RobotServiceClient.prototype.startSession = function i(e, n, s) {
|
|
38519
39059
|
arguments.length === 2 && (s = arguments[1]);
|
|
38520
|
-
var l = grpc$
|
|
39060
|
+
var l = grpc$c.unary(RobotService.StartSession, {
|
|
38521
39061
|
request: e,
|
|
38522
39062
|
host: this.serviceHost,
|
|
38523
39063
|
metadata: n,
|
|
@@ -38525,7 +39065,7 @@ RobotServiceClient.prototype.startSession = function i(e, n, s) {
|
|
|
38525
39065
|
debug: this.options.debug,
|
|
38526
39066
|
onEnd: function(g) {
|
|
38527
39067
|
if (s)
|
|
38528
|
-
if (g.status !== grpc$
|
|
39068
|
+
if (g.status !== grpc$c.Code.OK) {
|
|
38529
39069
|
var p = new Error(g.statusMessage);
|
|
38530
39070
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
38531
39071
|
} else
|
|
@@ -38540,7 +39080,7 @@ RobotServiceClient.prototype.startSession = function i(e, n, s) {
|
|
|
38540
39080
|
};
|
|
38541
39081
|
RobotServiceClient.prototype.sendSessionHeartbeat = function i(e, n, s) {
|
|
38542
39082
|
arguments.length === 2 && (s = arguments[1]);
|
|
38543
|
-
var l = grpc$
|
|
39083
|
+
var l = grpc$c.unary(RobotService.SendSessionHeartbeat, {
|
|
38544
39084
|
request: e,
|
|
38545
39085
|
host: this.serviceHost,
|
|
38546
39086
|
metadata: n,
|
|
@@ -38548,7 +39088,7 @@ RobotServiceClient.prototype.sendSessionHeartbeat = function i(e, n, s) {
|
|
|
38548
39088
|
debug: this.options.debug,
|
|
38549
39089
|
onEnd: function(g) {
|
|
38550
39090
|
if (s)
|
|
38551
|
-
if (g.status !== grpc$
|
|
39091
|
+
if (g.status !== grpc$c.Code.OK) {
|
|
38552
39092
|
var p = new Error(g.statusMessage);
|
|
38553
39093
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
38554
39094
|
} else
|
|
@@ -39004,7 +39544,7 @@ var RobotServiceClient_1 = RobotServiceClient, slam_pb = {};
|
|
|
39004
39544
|
return e.Message.getField(this, 1) != null;
|
|
39005
39545
|
}, n.object.extend(i, proto.viam.service.slam.v1);
|
|
39006
39546
|
})(slam_pb);
|
|
39007
|
-
var service_slam_v1_slam_pb = slam_pb, common_v1_common_pb$
|
|
39547
|
+
var service_slam_v1_slam_pb = slam_pb, common_v1_common_pb$7 = common_pb, grpc$b = grpcWebClient_umdExports$1.grpc, SLAMService = function() {
|
|
39008
39548
|
function i() {
|
|
39009
39549
|
}
|
|
39010
39550
|
return i.serviceName = "viam.service.slam.v1.SLAMService", i;
|
|
@@ -39046,15 +39586,15 @@ SLAMService.DoCommand = {
|
|
|
39046
39586
|
service: SLAMService,
|
|
39047
39587
|
requestStream: !1,
|
|
39048
39588
|
responseStream: !1,
|
|
39049
|
-
requestType: common_v1_common_pb$
|
|
39050
|
-
responseType: common_v1_common_pb$
|
|
39589
|
+
requestType: common_v1_common_pb$7.DoCommandRequest,
|
|
39590
|
+
responseType: common_v1_common_pb$7.DoCommandResponse
|
|
39051
39591
|
};
|
|
39052
39592
|
function SLAMServiceClient(i, e) {
|
|
39053
39593
|
this.serviceHost = i, this.options = e || {};
|
|
39054
39594
|
}
|
|
39055
39595
|
SLAMServiceClient.prototype.getPosition = function i(e, n, s) {
|
|
39056
39596
|
arguments.length === 2 && (s = arguments[1]);
|
|
39057
|
-
var l = grpc$
|
|
39597
|
+
var l = grpc$b.unary(SLAMService.GetPosition, {
|
|
39058
39598
|
request: e,
|
|
39059
39599
|
host: this.serviceHost,
|
|
39060
39600
|
metadata: n,
|
|
@@ -39062,7 +39602,7 @@ SLAMServiceClient.prototype.getPosition = function i(e, n, s) {
|
|
|
39062
39602
|
debug: this.options.debug,
|
|
39063
39603
|
onEnd: function(g) {
|
|
39064
39604
|
if (s)
|
|
39065
|
-
if (g.status !== grpc$
|
|
39605
|
+
if (g.status !== grpc$b.Code.OK) {
|
|
39066
39606
|
var p = new Error(g.statusMessage);
|
|
39067
39607
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
39068
39608
|
} else
|
|
@@ -39080,7 +39620,7 @@ SLAMServiceClient.prototype.getPointCloudMap = function i(e, n) {
|
|
|
39080
39620
|
data: [],
|
|
39081
39621
|
end: [],
|
|
39082
39622
|
status: []
|
|
39083
|
-
}, l = grpc$
|
|
39623
|
+
}, l = grpc$b.invoke(SLAMService.GetPointCloudMap, {
|
|
39084
39624
|
request: e,
|
|
39085
39625
|
host: this.serviceHost,
|
|
39086
39626
|
metadata: n,
|
|
@@ -39113,7 +39653,7 @@ SLAMServiceClient.prototype.getInternalState = function i(e, n) {
|
|
|
39113
39653
|
data: [],
|
|
39114
39654
|
end: [],
|
|
39115
39655
|
status: []
|
|
39116
|
-
}, l = grpc$
|
|
39656
|
+
}, l = grpc$b.invoke(SLAMService.GetInternalState, {
|
|
39117
39657
|
request: e,
|
|
39118
39658
|
host: this.serviceHost,
|
|
39119
39659
|
metadata: n,
|
|
@@ -39143,7 +39683,7 @@ SLAMServiceClient.prototype.getInternalState = function i(e, n) {
|
|
|
39143
39683
|
};
|
|
39144
39684
|
SLAMServiceClient.prototype.getLatestMapInfo = function i(e, n, s) {
|
|
39145
39685
|
arguments.length === 2 && (s = arguments[1]);
|
|
39146
|
-
var l = grpc$
|
|
39686
|
+
var l = grpc$b.unary(SLAMService.GetLatestMapInfo, {
|
|
39147
39687
|
request: e,
|
|
39148
39688
|
host: this.serviceHost,
|
|
39149
39689
|
metadata: n,
|
|
@@ -39151,7 +39691,7 @@ SLAMServiceClient.prototype.getLatestMapInfo = function i(e, n, s) {
|
|
|
39151
39691
|
debug: this.options.debug,
|
|
39152
39692
|
onEnd: function(g) {
|
|
39153
39693
|
if (s)
|
|
39154
|
-
if (g.status !== grpc$
|
|
39694
|
+
if (g.status !== grpc$b.Code.OK) {
|
|
39155
39695
|
var p = new Error(g.statusMessage);
|
|
39156
39696
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
39157
39697
|
} else
|
|
@@ -39166,7 +39706,7 @@ SLAMServiceClient.prototype.getLatestMapInfo = function i(e, n, s) {
|
|
|
39166
39706
|
};
|
|
39167
39707
|
SLAMServiceClient.prototype.doCommand = function i(e, n, s) {
|
|
39168
39708
|
arguments.length === 2 && (s = arguments[1]);
|
|
39169
|
-
var l = grpc$
|
|
39709
|
+
var l = grpc$b.unary(SLAMService.DoCommand, {
|
|
39170
39710
|
request: e,
|
|
39171
39711
|
host: this.serviceHost,
|
|
39172
39712
|
metadata: n,
|
|
@@ -39174,7 +39714,7 @@ SLAMServiceClient.prototype.doCommand = function i(e, n, s) {
|
|
|
39174
39714
|
debug: this.options.debug,
|
|
39175
39715
|
onEnd: function(g) {
|
|
39176
39716
|
if (s)
|
|
39177
|
-
if (g.status !== grpc$
|
|
39717
|
+
if (g.status !== grpc$b.Code.OK) {
|
|
39178
39718
|
var p = new Error(g.statusMessage);
|
|
39179
39719
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
39180
39720
|
} else
|
|
@@ -39520,7 +40060,7 @@ var SLAMServiceClient_1 = SLAMServiceClient, sensors_pb = {};
|
|
|
39520
40060
|
return this.setReadingsList([]);
|
|
39521
40061
|
}, n.object.extend(i, proto.viam.service.sensors.v1);
|
|
39522
40062
|
})(sensors_pb);
|
|
39523
|
-
var service_sensors_v1_sensors_pb = sensors_pb, common_v1_common_pb$
|
|
40063
|
+
var service_sensors_v1_sensors_pb = sensors_pb, common_v1_common_pb$6 = common_pb, grpc$a = grpcWebClient_umdExports$1.grpc, SensorsService = function() {
|
|
39524
40064
|
function i() {
|
|
39525
40065
|
}
|
|
39526
40066
|
return i.serviceName = "viam.service.sensors.v1.SensorsService", i;
|
|
@@ -39546,15 +40086,15 @@ SensorsService.DoCommand = {
|
|
|
39546
40086
|
service: SensorsService,
|
|
39547
40087
|
requestStream: !1,
|
|
39548
40088
|
responseStream: !1,
|
|
39549
|
-
requestType: common_v1_common_pb$
|
|
39550
|
-
responseType: common_v1_common_pb$
|
|
40089
|
+
requestType: common_v1_common_pb$6.DoCommandRequest,
|
|
40090
|
+
responseType: common_v1_common_pb$6.DoCommandResponse
|
|
39551
40091
|
};
|
|
39552
40092
|
function SensorsServiceClient(i, e) {
|
|
39553
40093
|
this.serviceHost = i, this.options = e || {};
|
|
39554
40094
|
}
|
|
39555
40095
|
SensorsServiceClient.prototype.getSensors = function i(e, n, s) {
|
|
39556
40096
|
arguments.length === 2 && (s = arguments[1]);
|
|
39557
|
-
var l = grpc$
|
|
40097
|
+
var l = grpc$a.unary(SensorsService.GetSensors, {
|
|
39558
40098
|
request: e,
|
|
39559
40099
|
host: this.serviceHost,
|
|
39560
40100
|
metadata: n,
|
|
@@ -39562,7 +40102,7 @@ SensorsServiceClient.prototype.getSensors = function i(e, n, s) {
|
|
|
39562
40102
|
debug: this.options.debug,
|
|
39563
40103
|
onEnd: function(g) {
|
|
39564
40104
|
if (s)
|
|
39565
|
-
if (g.status !== grpc$
|
|
40105
|
+
if (g.status !== grpc$a.Code.OK) {
|
|
39566
40106
|
var p = new Error(g.statusMessage);
|
|
39567
40107
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
39568
40108
|
} else
|
|
@@ -39577,7 +40117,7 @@ SensorsServiceClient.prototype.getSensors = function i(e, n, s) {
|
|
|
39577
40117
|
};
|
|
39578
40118
|
SensorsServiceClient.prototype.getReadings = function i(e, n, s) {
|
|
39579
40119
|
arguments.length === 2 && (s = arguments[1]);
|
|
39580
|
-
var l = grpc$
|
|
40120
|
+
var l = grpc$a.unary(SensorsService.GetReadings, {
|
|
39581
40121
|
request: e,
|
|
39582
40122
|
host: this.serviceHost,
|
|
39583
40123
|
metadata: n,
|
|
@@ -39585,7 +40125,7 @@ SensorsServiceClient.prototype.getReadings = function i(e, n, s) {
|
|
|
39585
40125
|
debug: this.options.debug,
|
|
39586
40126
|
onEnd: function(g) {
|
|
39587
40127
|
if (s)
|
|
39588
|
-
if (g.status !== grpc$
|
|
40128
|
+
if (g.status !== grpc$a.Code.OK) {
|
|
39589
40129
|
var p = new Error(g.statusMessage);
|
|
39590
40130
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
39591
40131
|
} else
|
|
@@ -39600,7 +40140,7 @@ SensorsServiceClient.prototype.getReadings = function i(e, n, s) {
|
|
|
39600
40140
|
};
|
|
39601
40141
|
SensorsServiceClient.prototype.doCommand = function i(e, n, s) {
|
|
39602
40142
|
arguments.length === 2 && (s = arguments[1]);
|
|
39603
|
-
var l = grpc$
|
|
40143
|
+
var l = grpc$a.unary(SensorsService.DoCommand, {
|
|
39604
40144
|
request: e,
|
|
39605
40145
|
host: this.serviceHost,
|
|
39606
40146
|
metadata: n,
|
|
@@ -39608,7 +40148,7 @@ SensorsServiceClient.prototype.doCommand = function i(e, n, s) {
|
|
|
39608
40148
|
debug: this.options.debug,
|
|
39609
40149
|
onEnd: function(g) {
|
|
39610
40150
|
if (s)
|
|
39611
|
-
if (g.status !== grpc$
|
|
40151
|
+
if (g.status !== grpc$a.Code.OK) {
|
|
39612
40152
|
var p = new Error(g.statusMessage);
|
|
39613
40153
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
39614
40154
|
} else
|
|
@@ -40091,7 +40631,7 @@ var SensorsServiceClient_1 = SensorsServiceClient, servo_pb = {};
|
|
|
40091
40631
|
return e.Message.setProto3BooleanField(this, 1, t);
|
|
40092
40632
|
}, n.object.extend(i, proto.viam.component.servo.v1);
|
|
40093
40633
|
})(servo_pb);
|
|
40094
|
-
var component_servo_v1_servo_pb = servo_pb, common_v1_common_pb$
|
|
40634
|
+
var component_servo_v1_servo_pb = servo_pb, common_v1_common_pb$5 = common_pb, grpc$9 = grpcWebClient_umdExports$1.grpc, ServoService = function() {
|
|
40095
40635
|
function i() {
|
|
40096
40636
|
}
|
|
40097
40637
|
return i.serviceName = "viam.component.servo.v1.ServoService", i;
|
|
@@ -40133,23 +40673,23 @@ ServoService.DoCommand = {
|
|
|
40133
40673
|
service: ServoService,
|
|
40134
40674
|
requestStream: !1,
|
|
40135
40675
|
responseStream: !1,
|
|
40136
|
-
requestType: common_v1_common_pb$
|
|
40137
|
-
responseType: common_v1_common_pb$
|
|
40676
|
+
requestType: common_v1_common_pb$5.DoCommandRequest,
|
|
40677
|
+
responseType: common_v1_common_pb$5.DoCommandResponse
|
|
40138
40678
|
};
|
|
40139
40679
|
ServoService.GetGeometries = {
|
|
40140
40680
|
methodName: "GetGeometries",
|
|
40141
40681
|
service: ServoService,
|
|
40142
40682
|
requestStream: !1,
|
|
40143
40683
|
responseStream: !1,
|
|
40144
|
-
requestType: common_v1_common_pb$
|
|
40145
|
-
responseType: common_v1_common_pb$
|
|
40684
|
+
requestType: common_v1_common_pb$5.GetGeometriesRequest,
|
|
40685
|
+
responseType: common_v1_common_pb$5.GetGeometriesResponse
|
|
40146
40686
|
};
|
|
40147
40687
|
function ServoServiceClient(i, e) {
|
|
40148
40688
|
this.serviceHost = i, this.options = e || {};
|
|
40149
40689
|
}
|
|
40150
40690
|
ServoServiceClient.prototype.move = function i(e, n, s) {
|
|
40151
40691
|
arguments.length === 2 && (s = arguments[1]);
|
|
40152
|
-
var l = grpc$
|
|
40692
|
+
var l = grpc$9.unary(ServoService.Move, {
|
|
40153
40693
|
request: e,
|
|
40154
40694
|
host: this.serviceHost,
|
|
40155
40695
|
metadata: n,
|
|
@@ -40157,7 +40697,7 @@ ServoServiceClient.prototype.move = function i(e, n, s) {
|
|
|
40157
40697
|
debug: this.options.debug,
|
|
40158
40698
|
onEnd: function(g) {
|
|
40159
40699
|
if (s)
|
|
40160
|
-
if (g.status !== grpc$
|
|
40700
|
+
if (g.status !== grpc$9.Code.OK) {
|
|
40161
40701
|
var p = new Error(g.statusMessage);
|
|
40162
40702
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
40163
40703
|
} else
|
|
@@ -40172,7 +40712,7 @@ ServoServiceClient.prototype.move = function i(e, n, s) {
|
|
|
40172
40712
|
};
|
|
40173
40713
|
ServoServiceClient.prototype.getPosition = function i(e, n, s) {
|
|
40174
40714
|
arguments.length === 2 && (s = arguments[1]);
|
|
40175
|
-
var l = grpc$
|
|
40715
|
+
var l = grpc$9.unary(ServoService.GetPosition, {
|
|
40176
40716
|
request: e,
|
|
40177
40717
|
host: this.serviceHost,
|
|
40178
40718
|
metadata: n,
|
|
@@ -40180,7 +40720,7 @@ ServoServiceClient.prototype.getPosition = function i(e, n, s) {
|
|
|
40180
40720
|
debug: this.options.debug,
|
|
40181
40721
|
onEnd: function(g) {
|
|
40182
40722
|
if (s)
|
|
40183
|
-
if (g.status !== grpc$
|
|
40723
|
+
if (g.status !== grpc$9.Code.OK) {
|
|
40184
40724
|
var p = new Error(g.statusMessage);
|
|
40185
40725
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
40186
40726
|
} else
|
|
@@ -40195,7 +40735,7 @@ ServoServiceClient.prototype.getPosition = function i(e, n, s) {
|
|
|
40195
40735
|
};
|
|
40196
40736
|
ServoServiceClient.prototype.stop = function i(e, n, s) {
|
|
40197
40737
|
arguments.length === 2 && (s = arguments[1]);
|
|
40198
|
-
var l = grpc$
|
|
40738
|
+
var l = grpc$9.unary(ServoService.Stop, {
|
|
40199
40739
|
request: e,
|
|
40200
40740
|
host: this.serviceHost,
|
|
40201
40741
|
metadata: n,
|
|
@@ -40203,7 +40743,7 @@ ServoServiceClient.prototype.stop = function i(e, n, s) {
|
|
|
40203
40743
|
debug: this.options.debug,
|
|
40204
40744
|
onEnd: function(g) {
|
|
40205
40745
|
if (s)
|
|
40206
|
-
if (g.status !== grpc$
|
|
40746
|
+
if (g.status !== grpc$9.Code.OK) {
|
|
40207
40747
|
var p = new Error(g.statusMessage);
|
|
40208
40748
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
40209
40749
|
} else
|
|
@@ -40218,7 +40758,7 @@ ServoServiceClient.prototype.stop = function i(e, n, s) {
|
|
|
40218
40758
|
};
|
|
40219
40759
|
ServoServiceClient.prototype.isMoving = function i(e, n, s) {
|
|
40220
40760
|
arguments.length === 2 && (s = arguments[1]);
|
|
40221
|
-
var l = grpc$
|
|
40761
|
+
var l = grpc$9.unary(ServoService.IsMoving, {
|
|
40222
40762
|
request: e,
|
|
40223
40763
|
host: this.serviceHost,
|
|
40224
40764
|
metadata: n,
|
|
@@ -40226,7 +40766,7 @@ ServoServiceClient.prototype.isMoving = function i(e, n, s) {
|
|
|
40226
40766
|
debug: this.options.debug,
|
|
40227
40767
|
onEnd: function(g) {
|
|
40228
40768
|
if (s)
|
|
40229
|
-
if (g.status !== grpc$
|
|
40769
|
+
if (g.status !== grpc$9.Code.OK) {
|
|
40230
40770
|
var p = new Error(g.statusMessage);
|
|
40231
40771
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
40232
40772
|
} else
|
|
@@ -40241,7 +40781,7 @@ ServoServiceClient.prototype.isMoving = function i(e, n, s) {
|
|
|
40241
40781
|
};
|
|
40242
40782
|
ServoServiceClient.prototype.doCommand = function i(e, n, s) {
|
|
40243
40783
|
arguments.length === 2 && (s = arguments[1]);
|
|
40244
|
-
var l = grpc$
|
|
40784
|
+
var l = grpc$9.unary(ServoService.DoCommand, {
|
|
40245
40785
|
request: e,
|
|
40246
40786
|
host: this.serviceHost,
|
|
40247
40787
|
metadata: n,
|
|
@@ -40249,7 +40789,7 @@ ServoServiceClient.prototype.doCommand = function i(e, n, s) {
|
|
|
40249
40789
|
debug: this.options.debug,
|
|
40250
40790
|
onEnd: function(g) {
|
|
40251
40791
|
if (s)
|
|
40252
|
-
if (g.status !== grpc$
|
|
40792
|
+
if (g.status !== grpc$9.Code.OK) {
|
|
40253
40793
|
var p = new Error(g.statusMessage);
|
|
40254
40794
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
40255
40795
|
} else
|
|
@@ -40264,7 +40804,7 @@ ServoServiceClient.prototype.doCommand = function i(e, n, s) {
|
|
|
40264
40804
|
};
|
|
40265
40805
|
ServoServiceClient.prototype.getGeometries = function i(e, n, s) {
|
|
40266
40806
|
arguments.length === 2 && (s = arguments[1]);
|
|
40267
|
-
var l = grpc$
|
|
40807
|
+
var l = grpc$9.unary(ServoService.GetGeometries, {
|
|
40268
40808
|
request: e,
|
|
40269
40809
|
host: this.serviceHost,
|
|
40270
40810
|
metadata: n,
|
|
@@ -40272,7 +40812,7 @@ ServoServiceClient.prototype.getGeometries = function i(e, n, s) {
|
|
|
40272
40812
|
debug: this.options.debug,
|
|
40273
40813
|
onEnd: function(g) {
|
|
40274
40814
|
if (s)
|
|
40275
|
-
if (g.status !== grpc$
|
|
40815
|
+
if (g.status !== grpc$9.Code.OK) {
|
|
40276
40816
|
var p = new Error(g.statusMessage);
|
|
40277
40817
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
40278
40818
|
} else
|
|
@@ -41392,7 +41932,7 @@ var ServoServiceClient_1 = ServoServiceClient, vision_pb = {};
|
|
|
41392
41932
|
return this.setObjectsList([]);
|
|
41393
41933
|
}, n.object.extend(i, proto.viam.service.vision.v1);
|
|
41394
41934
|
})(vision_pb);
|
|
41395
|
-
var service_vision_v1_vision_pb = vision_pb, common_v1_common_pb$
|
|
41935
|
+
var service_vision_v1_vision_pb = vision_pb, common_v1_common_pb$4 = common_pb, grpc$8 = grpcWebClient_umdExports$1.grpc, VisionService = function() {
|
|
41396
41936
|
function i() {
|
|
41397
41937
|
}
|
|
41398
41938
|
return i.serviceName = "viam.service.vision.v1.VisionService", i;
|
|
@@ -41442,15 +41982,15 @@ VisionService.DoCommand = {
|
|
|
41442
41982
|
service: VisionService,
|
|
41443
41983
|
requestStream: !1,
|
|
41444
41984
|
responseStream: !1,
|
|
41445
|
-
requestType: common_v1_common_pb$
|
|
41446
|
-
responseType: common_v1_common_pb$
|
|
41985
|
+
requestType: common_v1_common_pb$4.DoCommandRequest,
|
|
41986
|
+
responseType: common_v1_common_pb$4.DoCommandResponse
|
|
41447
41987
|
};
|
|
41448
41988
|
function VisionServiceClient(i, e) {
|
|
41449
41989
|
this.serviceHost = i, this.options = e || {};
|
|
41450
41990
|
}
|
|
41451
41991
|
VisionServiceClient.prototype.getDetectionsFromCamera = function i(e, n, s) {
|
|
41452
41992
|
arguments.length === 2 && (s = arguments[1]);
|
|
41453
|
-
var l = grpc$
|
|
41993
|
+
var l = grpc$8.unary(VisionService.GetDetectionsFromCamera, {
|
|
41454
41994
|
request: e,
|
|
41455
41995
|
host: this.serviceHost,
|
|
41456
41996
|
metadata: n,
|
|
@@ -41458,7 +41998,7 @@ VisionServiceClient.prototype.getDetectionsFromCamera = function i(e, n, s) {
|
|
|
41458
41998
|
debug: this.options.debug,
|
|
41459
41999
|
onEnd: function(g) {
|
|
41460
42000
|
if (s)
|
|
41461
|
-
if (g.status !== grpc$
|
|
42001
|
+
if (g.status !== grpc$8.Code.OK) {
|
|
41462
42002
|
var p = new Error(g.statusMessage);
|
|
41463
42003
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
41464
42004
|
} else
|
|
@@ -41473,7 +42013,7 @@ VisionServiceClient.prototype.getDetectionsFromCamera = function i(e, n, s) {
|
|
|
41473
42013
|
};
|
|
41474
42014
|
VisionServiceClient.prototype.getDetections = function i(e, n, s) {
|
|
41475
42015
|
arguments.length === 2 && (s = arguments[1]);
|
|
41476
|
-
var l = grpc$
|
|
42016
|
+
var l = grpc$8.unary(VisionService.GetDetections, {
|
|
41477
42017
|
request: e,
|
|
41478
42018
|
host: this.serviceHost,
|
|
41479
42019
|
metadata: n,
|
|
@@ -41481,7 +42021,7 @@ VisionServiceClient.prototype.getDetections = function i(e, n, s) {
|
|
|
41481
42021
|
debug: this.options.debug,
|
|
41482
42022
|
onEnd: function(g) {
|
|
41483
42023
|
if (s)
|
|
41484
|
-
if (g.status !== grpc$
|
|
42024
|
+
if (g.status !== grpc$8.Code.OK) {
|
|
41485
42025
|
var p = new Error(g.statusMessage);
|
|
41486
42026
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
41487
42027
|
} else
|
|
@@ -41496,7 +42036,7 @@ VisionServiceClient.prototype.getDetections = function i(e, n, s) {
|
|
|
41496
42036
|
};
|
|
41497
42037
|
VisionServiceClient.prototype.getClassificationsFromCamera = function i(e, n, s) {
|
|
41498
42038
|
arguments.length === 2 && (s = arguments[1]);
|
|
41499
|
-
var l = grpc$
|
|
42039
|
+
var l = grpc$8.unary(VisionService.GetClassificationsFromCamera, {
|
|
41500
42040
|
request: e,
|
|
41501
42041
|
host: this.serviceHost,
|
|
41502
42042
|
metadata: n,
|
|
@@ -41504,7 +42044,7 @@ VisionServiceClient.prototype.getClassificationsFromCamera = function i(e, n, s)
|
|
|
41504
42044
|
debug: this.options.debug,
|
|
41505
42045
|
onEnd: function(g) {
|
|
41506
42046
|
if (s)
|
|
41507
|
-
if (g.status !== grpc$
|
|
42047
|
+
if (g.status !== grpc$8.Code.OK) {
|
|
41508
42048
|
var p = new Error(g.statusMessage);
|
|
41509
42049
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
41510
42050
|
} else
|
|
@@ -41519,7 +42059,7 @@ VisionServiceClient.prototype.getClassificationsFromCamera = function i(e, n, s)
|
|
|
41519
42059
|
};
|
|
41520
42060
|
VisionServiceClient.prototype.getClassifications = function i(e, n, s) {
|
|
41521
42061
|
arguments.length === 2 && (s = arguments[1]);
|
|
41522
|
-
var l = grpc$
|
|
42062
|
+
var l = grpc$8.unary(VisionService.GetClassifications, {
|
|
41523
42063
|
request: e,
|
|
41524
42064
|
host: this.serviceHost,
|
|
41525
42065
|
metadata: n,
|
|
@@ -41527,7 +42067,7 @@ VisionServiceClient.prototype.getClassifications = function i(e, n, s) {
|
|
|
41527
42067
|
debug: this.options.debug,
|
|
41528
42068
|
onEnd: function(g) {
|
|
41529
42069
|
if (s)
|
|
41530
|
-
if (g.status !== grpc$
|
|
42070
|
+
if (g.status !== grpc$8.Code.OK) {
|
|
41531
42071
|
var p = new Error(g.statusMessage);
|
|
41532
42072
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
41533
42073
|
} else
|
|
@@ -41542,7 +42082,7 @@ VisionServiceClient.prototype.getClassifications = function i(e, n, s) {
|
|
|
41542
42082
|
};
|
|
41543
42083
|
VisionServiceClient.prototype.getObjectPointClouds = function i(e, n, s) {
|
|
41544
42084
|
arguments.length === 2 && (s = arguments[1]);
|
|
41545
|
-
var l = grpc$
|
|
42085
|
+
var l = grpc$8.unary(VisionService.GetObjectPointClouds, {
|
|
41546
42086
|
request: e,
|
|
41547
42087
|
host: this.serviceHost,
|
|
41548
42088
|
metadata: n,
|
|
@@ -41550,7 +42090,7 @@ VisionServiceClient.prototype.getObjectPointClouds = function i(e, n, s) {
|
|
|
41550
42090
|
debug: this.options.debug,
|
|
41551
42091
|
onEnd: function(g) {
|
|
41552
42092
|
if (s)
|
|
41553
|
-
if (g.status !== grpc$
|
|
42093
|
+
if (g.status !== grpc$8.Code.OK) {
|
|
41554
42094
|
var p = new Error(g.statusMessage);
|
|
41555
42095
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
41556
42096
|
} else
|
|
@@ -41565,7 +42105,7 @@ VisionServiceClient.prototype.getObjectPointClouds = function i(e, n, s) {
|
|
|
41565
42105
|
};
|
|
41566
42106
|
VisionServiceClient.prototype.doCommand = function i(e, n, s) {
|
|
41567
42107
|
arguments.length === 2 && (s = arguments[1]);
|
|
41568
|
-
var l = grpc$
|
|
42108
|
+
var l = grpc$8.unary(VisionService.DoCommand, {
|
|
41569
42109
|
request: e,
|
|
41570
42110
|
host: this.serviceHost,
|
|
41571
42111
|
metadata: n,
|
|
@@ -41573,7 +42113,7 @@ VisionServiceClient.prototype.doCommand = function i(e, n, s) {
|
|
|
41573
42113
|
debug: this.options.debug,
|
|
41574
42114
|
onEnd: function(g) {
|
|
41575
42115
|
if (s)
|
|
41576
|
-
if (g.status !== grpc$
|
|
42116
|
+
if (g.status !== grpc$8.Code.OK) {
|
|
41577
42117
|
var p = new Error(g.statusMessage);
|
|
41578
42118
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
41579
42119
|
} else
|
|
@@ -41843,6 +42383,7 @@ class RobotClient extends EventDispatcher {
|
|
|
41843
42383
|
genericServiceClient;
|
|
41844
42384
|
gripperServiceClient;
|
|
41845
42385
|
movementSensorServiceClient;
|
|
42386
|
+
powerSensorServiceClient;
|
|
41846
42387
|
inputControllerServiceClient;
|
|
41847
42388
|
motorServiceClient;
|
|
41848
42389
|
navigationServiceClient;
|
|
@@ -41949,6 +42490,11 @@ class RobotClient extends EventDispatcher {
|
|
|
41949
42490
|
throw new Error(RobotClient.notConnectedYetStr);
|
|
41950
42491
|
return this.movementSensorServiceClient;
|
|
41951
42492
|
}
|
|
42493
|
+
get powerSensorService() {
|
|
42494
|
+
if (!this.powerSensorServiceClient)
|
|
42495
|
+
throw new Error(RobotClient.notConnectedYetStr);
|
|
42496
|
+
return this.powerSensorServiceClient;
|
|
42497
|
+
}
|
|
41952
42498
|
get inputControllerService() {
|
|
41953
42499
|
if (!this.inputControllerServiceClient)
|
|
41954
42500
|
throw new Error(RobotClient.notConnectedYetStr);
|
|
@@ -42077,6 +42623,9 @@ class RobotClient extends EventDispatcher {
|
|
|
42077
42623
|
), this.movementSensorServiceClient = new MovementSensorServiceClient_1(
|
|
42078
42624
|
this.serviceHost,
|
|
42079
42625
|
p
|
|
42626
|
+
), this.powerSensorServiceClient = new PowerSensorServiceClient_1(
|
|
42627
|
+
this.serviceHost,
|
|
42628
|
+
p
|
|
42080
42629
|
), this.inputControllerServiceClient = new InputControllerServiceClient_1(
|
|
42081
42630
|
this.serviceHost,
|
|
42082
42631
|
p
|
|
@@ -44648,7 +45197,7 @@ var auth_pb$1 = {}, annotations_pb = {}, http_pb = {};
|
|
|
44648
45197
|
return e.Message.setProto3StringField(this, 1, g);
|
|
44649
45198
|
}, n.object.extend(i, proto.proto.rpc.v1);
|
|
44650
45199
|
})(auth_pb$1);
|
|
44651
|
-
var proto_rpc_v1_auth_pb$1 = auth_pb$1, grpc$
|
|
45200
|
+
var proto_rpc_v1_auth_pb$1 = auth_pb$1, grpc$7 = grpcWebClient_umdExports.grpc, AuthService$1 = function() {
|
|
44652
45201
|
function i() {
|
|
44653
45202
|
}
|
|
44654
45203
|
return i.serviceName = "proto.rpc.v1.AuthService", i;
|
|
@@ -44667,7 +45216,7 @@ function AuthServiceClient$1(i, e) {
|
|
|
44667
45216
|
}
|
|
44668
45217
|
AuthServiceClient$1.prototype.authenticate = function i(e, n, s) {
|
|
44669
45218
|
arguments.length === 2 && (s = arguments[1]);
|
|
44670
|
-
var l = grpc$
|
|
45219
|
+
var l = grpc$7.unary(AuthService$1.Authenticate, {
|
|
44671
45220
|
request: e,
|
|
44672
45221
|
host: this.serviceHost,
|
|
44673
45222
|
metadata: n,
|
|
@@ -44675,7 +45224,7 @@ AuthServiceClient$1.prototype.authenticate = function i(e, n, s) {
|
|
|
44675
45224
|
debug: this.options.debug,
|
|
44676
45225
|
onEnd: function(g) {
|
|
44677
45226
|
if (s)
|
|
44678
|
-
if (g.status !== grpc$
|
|
45227
|
+
if (g.status !== grpc$7.Code.OK) {
|
|
44679
45228
|
var p = new Error(g.statusMessage);
|
|
44680
45229
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
44681
45230
|
} else
|
|
@@ -44707,7 +45256,7 @@ function ExternalAuthServiceClient$1(i, e) {
|
|
|
44707
45256
|
}
|
|
44708
45257
|
ExternalAuthServiceClient$1.prototype.authenticateTo = function i(e, n, s) {
|
|
44709
45258
|
arguments.length === 2 && (s = arguments[1]);
|
|
44710
|
-
var l = grpc$
|
|
45259
|
+
var l = grpc$7.unary(ExternalAuthService$1.AuthenticateTo, {
|
|
44711
45260
|
request: e,
|
|
44712
45261
|
host: this.serviceHost,
|
|
44713
45262
|
metadata: n,
|
|
@@ -44715,7 +45264,7 @@ ExternalAuthServiceClient$1.prototype.authenticateTo = function i(e, n, s) {
|
|
|
44715
45264
|
debug: this.options.debug,
|
|
44716
45265
|
onEnd: function(g) {
|
|
44717
45266
|
if (s)
|
|
44718
|
-
if (g.status !== grpc$
|
|
45267
|
+
if (g.status !== grpc$7.Code.OK) {
|
|
44719
45268
|
var p = new Error(g.statusMessage);
|
|
44720
45269
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
44721
45270
|
} else
|
|
@@ -46107,7 +46656,7 @@ var signaling_pb = {};
|
|
|
46107
46656
|
return e.Message.getField(this, 1) != null;
|
|
46108
46657
|
}, n.object.extend(i, proto.proto.rpc.webrtc.v1);
|
|
46109
46658
|
})(signaling_pb);
|
|
46110
|
-
var proto_rpc_webrtc_v1_signaling_pb = signaling_pb, grpc$
|
|
46659
|
+
var proto_rpc_webrtc_v1_signaling_pb = signaling_pb, grpc$6 = grpcWebClient_umdExports.grpc, SignalingService = function() {
|
|
46111
46660
|
function i() {
|
|
46112
46661
|
}
|
|
46113
46662
|
return i.serviceName = "proto.rpc.webrtc.v1.SignalingService", i;
|
|
@@ -46152,7 +46701,7 @@ SignalingServiceClient.prototype.call = function i(e, n) {
|
|
|
46152
46701
|
data: [],
|
|
46153
46702
|
end: [],
|
|
46154
46703
|
status: []
|
|
46155
|
-
}, l = grpc$
|
|
46704
|
+
}, l = grpc$6.invoke(SignalingService.Call, {
|
|
46156
46705
|
request: e,
|
|
46157
46706
|
host: this.serviceHost,
|
|
46158
46707
|
metadata: n,
|
|
@@ -46182,7 +46731,7 @@ SignalingServiceClient.prototype.call = function i(e, n) {
|
|
|
46182
46731
|
};
|
|
46183
46732
|
SignalingServiceClient.prototype.callUpdate = function i(e, n, s) {
|
|
46184
46733
|
arguments.length === 2 && (s = arguments[1]);
|
|
46185
|
-
var l = grpc$
|
|
46734
|
+
var l = grpc$6.unary(SignalingService.CallUpdate, {
|
|
46186
46735
|
request: e,
|
|
46187
46736
|
host: this.serviceHost,
|
|
46188
46737
|
metadata: n,
|
|
@@ -46190,7 +46739,7 @@ SignalingServiceClient.prototype.callUpdate = function i(e, n, s) {
|
|
|
46190
46739
|
debug: this.options.debug,
|
|
46191
46740
|
onEnd: function(g) {
|
|
46192
46741
|
if (s)
|
|
46193
|
-
if (g.status !== grpc$
|
|
46742
|
+
if (g.status !== grpc$6.Code.OK) {
|
|
46194
46743
|
var p = new Error(g.statusMessage);
|
|
46195
46744
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
46196
46745
|
} else
|
|
@@ -46208,7 +46757,7 @@ SignalingServiceClient.prototype.answer = function i(e) {
|
|
|
46208
46757
|
data: [],
|
|
46209
46758
|
end: [],
|
|
46210
46759
|
status: []
|
|
46211
|
-
}, s = grpc$
|
|
46760
|
+
}, s = grpc$6.client(SignalingService.Answer, {
|
|
46212
46761
|
host: this.serviceHost,
|
|
46213
46762
|
metadata: e,
|
|
46214
46763
|
transport: this.options.transport
|
|
@@ -46240,7 +46789,7 @@ SignalingServiceClient.prototype.answer = function i(e) {
|
|
|
46240
46789
|
};
|
|
46241
46790
|
SignalingServiceClient.prototype.optionalWebRTCConfig = function i(e, n, s) {
|
|
46242
46791
|
arguments.length === 2 && (s = arguments[1]);
|
|
46243
|
-
var l = grpc$
|
|
46792
|
+
var l = grpc$6.unary(SignalingService.OptionalWebRTCConfig, {
|
|
46244
46793
|
request: e,
|
|
46245
46794
|
host: this.serviceHost,
|
|
46246
46795
|
metadata: n,
|
|
@@ -46248,7 +46797,7 @@ SignalingServiceClient.prototype.optionalWebRTCConfig = function i(e, n, s) {
|
|
|
46248
46797
|
debug: this.options.debug,
|
|
46249
46798
|
onEnd: function(g) {
|
|
46250
46799
|
if (s)
|
|
46251
|
-
if (g.status !== grpc$
|
|
46800
|
+
if (g.status !== grpc$6.Code.OK) {
|
|
46252
46801
|
var p = new Error(g.statusMessage);
|
|
46253
46802
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
46254
46803
|
} else
|
|
@@ -46670,7 +47219,7 @@ var auth_pb = {};
|
|
|
46670
47219
|
return e.Message.setProto3StringField(this, 1, g);
|
|
46671
47220
|
}, n.object.extend(i, proto.proto.rpc.v1);
|
|
46672
47221
|
})(auth_pb);
|
|
46673
|
-
var proto_rpc_v1_auth_pb = auth_pb, grpc$
|
|
47222
|
+
var proto_rpc_v1_auth_pb = auth_pb, grpc$5 = grpcWebClient_umdExports$1.grpc, AuthService = function() {
|
|
46674
47223
|
function i() {
|
|
46675
47224
|
}
|
|
46676
47225
|
return i.serviceName = "proto.rpc.v1.AuthService", i;
|
|
@@ -46688,7 +47237,7 @@ function AuthServiceClient(i, e) {
|
|
|
46688
47237
|
}
|
|
46689
47238
|
AuthServiceClient.prototype.authenticate = function i(e, n, s) {
|
|
46690
47239
|
arguments.length === 2 && (s = arguments[1]);
|
|
46691
|
-
var l = grpc$
|
|
47240
|
+
var l = grpc$5.unary(AuthService.Authenticate, {
|
|
46692
47241
|
request: e,
|
|
46693
47242
|
host: this.serviceHost,
|
|
46694
47243
|
metadata: n,
|
|
@@ -46696,7 +47245,7 @@ AuthServiceClient.prototype.authenticate = function i(e, n, s) {
|
|
|
46696
47245
|
debug: this.options.debug,
|
|
46697
47246
|
onEnd: function(g) {
|
|
46698
47247
|
if (s)
|
|
46699
|
-
if (g.status !== grpc$
|
|
47248
|
+
if (g.status !== grpc$5.Code.OK) {
|
|
46700
47249
|
var p = new Error(g.statusMessage);
|
|
46701
47250
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
46702
47251
|
} else
|
|
@@ -46727,7 +47276,7 @@ function ExternalAuthServiceClient(i, e) {
|
|
|
46727
47276
|
}
|
|
46728
47277
|
ExternalAuthServiceClient.prototype.authenticateTo = function i(e, n, s) {
|
|
46729
47278
|
arguments.length === 2 && (s = arguments[1]);
|
|
46730
|
-
var l = grpc$
|
|
47279
|
+
var l = grpc$5.unary(ExternalAuthService.AuthenticateTo, {
|
|
46731
47280
|
request: e,
|
|
46732
47281
|
host: this.serviceHost,
|
|
46733
47282
|
metadata: n,
|
|
@@ -46735,7 +47284,7 @@ ExternalAuthServiceClient.prototype.authenticateTo = function i(e, n, s) {
|
|
|
46735
47284
|
debug: this.options.debug,
|
|
46736
47285
|
onEnd: function(g) {
|
|
46737
47286
|
if (s)
|
|
46738
|
-
if (g.status !== grpc$
|
|
47287
|
+
if (g.status !== grpc$5.Code.OK) {
|
|
46739
47288
|
var p = new Error(g.statusMessage);
|
|
46740
47289
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
46741
47290
|
} else
|
|
@@ -46855,7 +47404,7 @@ var data_pb = {};
|
|
|
46855
47404
|
var g = struct_pb;
|
|
46856
47405
|
n.object.extend(proto, g);
|
|
46857
47406
|
var p = timestamp_pb;
|
|
46858
|
-
n.object.extend(proto, p), n.exportSymbol("proto.viam.app.data.v1.AddBinaryDataToDatasetByIDsRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.AddBinaryDataToDatasetByIDsResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.AddBoundingBoxToImageByIDRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.AddBoundingBoxToImageByIDResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.AddTagsToBinaryDataByFilterRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.AddTagsToBinaryDataByFilterResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.AddTagsToBinaryDataByIDsRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.AddTagsToBinaryDataByIDsResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.Annotations", null, s), n.exportSymbol("proto.viam.app.data.v1.BinaryData", null, s), n.exportSymbol("proto.viam.app.data.v1.BinaryDataByFilterRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.BinaryDataByFilterResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.BinaryDataByIDsRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.BinaryDataByIDsResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.BinaryID", null, s), n.exportSymbol("proto.viam.app.data.v1.BinaryMetadata", null, s), n.exportSymbol("proto.viam.app.data.v1.BoundingBox", null, s), n.exportSymbol("proto.viam.app.data.v1.BoundingBoxLabelsByFilterRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.BoundingBoxLabelsByFilterResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.CaptureInterval", null, s), n.exportSymbol("proto.viam.app.data.v1.CaptureMetadata", null, s), n.exportSymbol("proto.viam.app.data.v1.ConfigureDatabaseUserRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.ConfigureDatabaseUserResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.DataRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.DeleteBinaryDataByFilterRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.DeleteBinaryDataByFilterResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.DeleteBinaryDataByIDsRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.DeleteBinaryDataByIDsResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.DeleteTabularDataRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.DeleteTabularDataResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.Filter", null, s), n.exportSymbol("proto.viam.app.data.v1.GetDatabaseConnectionRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.GetDatabaseConnectionResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.Order", null, s), n.exportSymbol("proto.viam.app.data.v1.RemoveBinaryDataFromDatasetByIDsRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.RemoveBinaryDataFromDatasetByIDsResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.RemoveBoundingBoxFromImageByIDRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.RemoveBoundingBoxFromImageByIDResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.RemoveTagsFromBinaryDataByFilterRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.RemoveTagsFromBinaryDataByFilterResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.RemoveTagsFromBinaryDataByIDsRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.RemoveTagsFromBinaryDataByIDsResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.TabularData", null, s), n.exportSymbol("proto.viam.app.data.v1.TabularDataByFilterRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.TabularDataByFilterResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.TagsByFilterRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.TagsByFilterResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.TagsFilter", null, s), n.exportSymbol("proto.viam.app.data.v1.TagsFilterType", null, s), proto.viam.app.data.v1.DataRequest = function(t) {
|
|
47407
|
+
n.object.extend(proto, p), n.exportSymbol("proto.viam.app.data.v1.AddBinaryDataToDatasetByIDsRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.AddBinaryDataToDatasetByIDsResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.AddBoundingBoxToImageByIDRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.AddBoundingBoxToImageByIDResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.AddTagsToBinaryDataByFilterRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.AddTagsToBinaryDataByFilterResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.AddTagsToBinaryDataByIDsRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.AddTagsToBinaryDataByIDsResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.Annotations", null, s), n.exportSymbol("proto.viam.app.data.v1.BinaryData", null, s), n.exportSymbol("proto.viam.app.data.v1.BinaryDataByFilterRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.BinaryDataByFilterResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.BinaryDataByIDsRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.BinaryDataByIDsResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.BinaryID", null, s), n.exportSymbol("proto.viam.app.data.v1.BinaryMetadata", null, s), n.exportSymbol("proto.viam.app.data.v1.BoundingBox", null, s), n.exportSymbol("proto.viam.app.data.v1.BoundingBoxLabelsByFilterRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.BoundingBoxLabelsByFilterResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.CaptureInterval", null, s), n.exportSymbol("proto.viam.app.data.v1.CaptureMetadata", null, s), n.exportSymbol("proto.viam.app.data.v1.ConfigureDatabaseUserRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.ConfigureDatabaseUserResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.DataRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.DeleteBinaryDataByFilterRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.DeleteBinaryDataByFilterResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.DeleteBinaryDataByIDsRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.DeleteBinaryDataByIDsResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.DeleteTabularDataRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.DeleteTabularDataResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.Filter", null, s), n.exportSymbol("proto.viam.app.data.v1.GetDatabaseConnectionRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.GetDatabaseConnectionResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.Order", null, s), n.exportSymbol("proto.viam.app.data.v1.RemoveBinaryDataFromDatasetByIDsRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.RemoveBinaryDataFromDatasetByIDsResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.RemoveBoundingBoxFromImageByIDRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.RemoveBoundingBoxFromImageByIDResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.RemoveTagsFromBinaryDataByFilterRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.RemoveTagsFromBinaryDataByFilterResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.RemoveTagsFromBinaryDataByIDsRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.RemoveTagsFromBinaryDataByIDsResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.TabularData", null, s), n.exportSymbol("proto.viam.app.data.v1.TabularDataByFilterRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.TabularDataByFilterResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.TabularDataByMQLRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.TabularDataByMQLResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.TabularDataBySQLRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.TabularDataBySQLResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.TagsByFilterRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.TagsByFilterResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.TagsFilter", null, s), n.exportSymbol("proto.viam.app.data.v1.TagsFilterType", null, s), proto.viam.app.data.v1.DataRequest = function(t) {
|
|
46859
47408
|
e.Message.initialize(this, t, 0, -1, null, null);
|
|
46860
47409
|
}, n.inherits(proto.viam.app.data.v1.DataRequest, e.Message), n.DEBUG && !COMPILED && (proto.viam.app.data.v1.DataRequest.displayName = "proto.viam.app.data.v1.DataRequest"), proto.viam.app.data.v1.Filter = function(t) {
|
|
46861
47410
|
e.Message.initialize(this, t, 0, -1, proto.viam.app.data.v1.Filter.repeatedFields_, null);
|
|
@@ -46871,7 +47420,15 @@ var data_pb = {};
|
|
|
46871
47420
|
e.Message.initialize(this, t, 0, -1, proto.viam.app.data.v1.TabularDataByFilterResponse.repeatedFields_, null);
|
|
46872
47421
|
}, n.inherits(proto.viam.app.data.v1.TabularDataByFilterResponse, e.Message), n.DEBUG && !COMPILED && (proto.viam.app.data.v1.TabularDataByFilterResponse.displayName = "proto.viam.app.data.v1.TabularDataByFilterResponse"), proto.viam.app.data.v1.TabularData = function(t) {
|
|
46873
47422
|
e.Message.initialize(this, t, 0, -1, null, null);
|
|
46874
|
-
}, n.inherits(proto.viam.app.data.v1.TabularData, e.Message), n.DEBUG && !COMPILED && (proto.viam.app.data.v1.TabularData.displayName = "proto.viam.app.data.v1.TabularData"), proto.viam.app.data.v1.
|
|
47423
|
+
}, n.inherits(proto.viam.app.data.v1.TabularData, e.Message), n.DEBUG && !COMPILED && (proto.viam.app.data.v1.TabularData.displayName = "proto.viam.app.data.v1.TabularData"), proto.viam.app.data.v1.TabularDataBySQLRequest = function(t) {
|
|
47424
|
+
e.Message.initialize(this, t, 0, -1, null, null);
|
|
47425
|
+
}, n.inherits(proto.viam.app.data.v1.TabularDataBySQLRequest, e.Message), n.DEBUG && !COMPILED && (proto.viam.app.data.v1.TabularDataBySQLRequest.displayName = "proto.viam.app.data.v1.TabularDataBySQLRequest"), proto.viam.app.data.v1.TabularDataBySQLResponse = function(t) {
|
|
47426
|
+
e.Message.initialize(this, t, 0, -1, proto.viam.app.data.v1.TabularDataBySQLResponse.repeatedFields_, null);
|
|
47427
|
+
}, n.inherits(proto.viam.app.data.v1.TabularDataBySQLResponse, e.Message), n.DEBUG && !COMPILED && (proto.viam.app.data.v1.TabularDataBySQLResponse.displayName = "proto.viam.app.data.v1.TabularDataBySQLResponse"), proto.viam.app.data.v1.TabularDataByMQLRequest = function(t) {
|
|
47428
|
+
e.Message.initialize(this, t, 0, -1, null, null);
|
|
47429
|
+
}, n.inherits(proto.viam.app.data.v1.TabularDataByMQLRequest, e.Message), n.DEBUG && !COMPILED && (proto.viam.app.data.v1.TabularDataByMQLRequest.displayName = "proto.viam.app.data.v1.TabularDataByMQLRequest"), proto.viam.app.data.v1.TabularDataByMQLResponse = function(t) {
|
|
47430
|
+
e.Message.initialize(this, t, 0, -1, proto.viam.app.data.v1.TabularDataByMQLResponse.repeatedFields_, null);
|
|
47431
|
+
}, n.inherits(proto.viam.app.data.v1.TabularDataByMQLResponse, e.Message), n.DEBUG && !COMPILED && (proto.viam.app.data.v1.TabularDataByMQLResponse.displayName = "proto.viam.app.data.v1.TabularDataByMQLResponse"), proto.viam.app.data.v1.BinaryData = function(t) {
|
|
46875
47432
|
e.Message.initialize(this, t, 0, -1, null, null);
|
|
46876
47433
|
}, n.inherits(proto.viam.app.data.v1.BinaryData, e.Message), n.DEBUG && !COMPILED && (proto.viam.app.data.v1.BinaryData.displayName = "proto.viam.app.data.v1.BinaryData"), proto.viam.app.data.v1.BinaryDataByFilterRequest = function(t) {
|
|
46877
47434
|
e.Message.initialize(this, t, 0, -1, null, null);
|
|
@@ -48032,6 +48589,226 @@ var data_pb = {};
|
|
|
48032
48589
|
return this.setTimeReceived(void 0);
|
|
48033
48590
|
}, proto.viam.app.data.v1.TabularData.prototype.hasTimeReceived = function() {
|
|
48034
48591
|
return e.Message.getField(this, 4) != null;
|
|
48592
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.app.data.v1.TabularDataBySQLRequest.prototype.toObject = function(t) {
|
|
48593
|
+
return proto.viam.app.data.v1.TabularDataBySQLRequest.toObject(t, this);
|
|
48594
|
+
}, proto.viam.app.data.v1.TabularDataBySQLRequest.toObject = function(t, o) {
|
|
48595
|
+
var r = {
|
|
48596
|
+
organizationId: e.Message.getFieldWithDefault(o, 1, ""),
|
|
48597
|
+
sqlQuery: e.Message.getFieldWithDefault(o, 2, "")
|
|
48598
|
+
};
|
|
48599
|
+
return t && (r.$jspbMessageInstance = o), r;
|
|
48600
|
+
}), proto.viam.app.data.v1.TabularDataBySQLRequest.deserializeBinary = function(t) {
|
|
48601
|
+
var o = new e.BinaryReader(t), r = new proto.viam.app.data.v1.TabularDataBySQLRequest();
|
|
48602
|
+
return proto.viam.app.data.v1.TabularDataBySQLRequest.deserializeBinaryFromReader(r, o);
|
|
48603
|
+
}, proto.viam.app.data.v1.TabularDataBySQLRequest.deserializeBinaryFromReader = function(t, o) {
|
|
48604
|
+
for (; o.nextField() && !o.isEndGroup(); ) {
|
|
48605
|
+
var r = o.getFieldNumber();
|
|
48606
|
+
switch (r) {
|
|
48607
|
+
case 1:
|
|
48608
|
+
var u = (
|
|
48609
|
+
/** @type {string} */
|
|
48610
|
+
o.readString()
|
|
48611
|
+
);
|
|
48612
|
+
t.setOrganizationId(u);
|
|
48613
|
+
break;
|
|
48614
|
+
case 2:
|
|
48615
|
+
var u = (
|
|
48616
|
+
/** @type {string} */
|
|
48617
|
+
o.readString()
|
|
48618
|
+
);
|
|
48619
|
+
t.setSqlQuery(u);
|
|
48620
|
+
break;
|
|
48621
|
+
default:
|
|
48622
|
+
o.skipField();
|
|
48623
|
+
break;
|
|
48624
|
+
}
|
|
48625
|
+
}
|
|
48626
|
+
return t;
|
|
48627
|
+
}, proto.viam.app.data.v1.TabularDataBySQLRequest.prototype.serializeBinary = function() {
|
|
48628
|
+
var t = new e.BinaryWriter();
|
|
48629
|
+
return proto.viam.app.data.v1.TabularDataBySQLRequest.serializeBinaryToWriter(this, t), t.getResultBuffer();
|
|
48630
|
+
}, proto.viam.app.data.v1.TabularDataBySQLRequest.serializeBinaryToWriter = function(t, o) {
|
|
48631
|
+
var r = void 0;
|
|
48632
|
+
r = t.getOrganizationId(), r.length > 0 && o.writeString(
|
|
48633
|
+
1,
|
|
48634
|
+
r
|
|
48635
|
+
), r = t.getSqlQuery(), r.length > 0 && o.writeString(
|
|
48636
|
+
2,
|
|
48637
|
+
r
|
|
48638
|
+
);
|
|
48639
|
+
}, proto.viam.app.data.v1.TabularDataBySQLRequest.prototype.getOrganizationId = function() {
|
|
48640
|
+
return (
|
|
48641
|
+
/** @type {string} */
|
|
48642
|
+
e.Message.getFieldWithDefault(this, 1, "")
|
|
48643
|
+
);
|
|
48644
|
+
}, proto.viam.app.data.v1.TabularDataBySQLRequest.prototype.setOrganizationId = function(t) {
|
|
48645
|
+
return e.Message.setProto3StringField(this, 1, t);
|
|
48646
|
+
}, proto.viam.app.data.v1.TabularDataBySQLRequest.prototype.getSqlQuery = function() {
|
|
48647
|
+
return (
|
|
48648
|
+
/** @type {string} */
|
|
48649
|
+
e.Message.getFieldWithDefault(this, 2, "")
|
|
48650
|
+
);
|
|
48651
|
+
}, proto.viam.app.data.v1.TabularDataBySQLRequest.prototype.setSqlQuery = function(t) {
|
|
48652
|
+
return e.Message.setProto3StringField(this, 2, t);
|
|
48653
|
+
}, proto.viam.app.data.v1.TabularDataBySQLResponse.repeatedFields_ = [1], e.Message.GENERATE_TO_OBJECT && (proto.viam.app.data.v1.TabularDataBySQLResponse.prototype.toObject = function(t) {
|
|
48654
|
+
return proto.viam.app.data.v1.TabularDataBySQLResponse.toObject(t, this);
|
|
48655
|
+
}, proto.viam.app.data.v1.TabularDataBySQLResponse.toObject = function(t, o) {
|
|
48656
|
+
var r = {
|
|
48657
|
+
dataList: e.Message.toObjectList(
|
|
48658
|
+
o.getDataList(),
|
|
48659
|
+
g.Struct.toObject,
|
|
48660
|
+
t
|
|
48661
|
+
)
|
|
48662
|
+
};
|
|
48663
|
+
return t && (r.$jspbMessageInstance = o), r;
|
|
48664
|
+
}), proto.viam.app.data.v1.TabularDataBySQLResponse.deserializeBinary = function(t) {
|
|
48665
|
+
var o = new e.BinaryReader(t), r = new proto.viam.app.data.v1.TabularDataBySQLResponse();
|
|
48666
|
+
return proto.viam.app.data.v1.TabularDataBySQLResponse.deserializeBinaryFromReader(r, o);
|
|
48667
|
+
}, proto.viam.app.data.v1.TabularDataBySQLResponse.deserializeBinaryFromReader = function(t, o) {
|
|
48668
|
+
for (; o.nextField() && !o.isEndGroup(); ) {
|
|
48669
|
+
var r = o.getFieldNumber();
|
|
48670
|
+
switch (r) {
|
|
48671
|
+
case 1:
|
|
48672
|
+
var u = new g.Struct();
|
|
48673
|
+
o.readMessage(u, g.Struct.deserializeBinaryFromReader), t.addData(u);
|
|
48674
|
+
break;
|
|
48675
|
+
default:
|
|
48676
|
+
o.skipField();
|
|
48677
|
+
break;
|
|
48678
|
+
}
|
|
48679
|
+
}
|
|
48680
|
+
return t;
|
|
48681
|
+
}, proto.viam.app.data.v1.TabularDataBySQLResponse.prototype.serializeBinary = function() {
|
|
48682
|
+
var t = new e.BinaryWriter();
|
|
48683
|
+
return proto.viam.app.data.v1.TabularDataBySQLResponse.serializeBinaryToWriter(this, t), t.getResultBuffer();
|
|
48684
|
+
}, proto.viam.app.data.v1.TabularDataBySQLResponse.serializeBinaryToWriter = function(t, o) {
|
|
48685
|
+
var r = void 0;
|
|
48686
|
+
r = t.getDataList(), r.length > 0 && o.writeRepeatedMessage(
|
|
48687
|
+
1,
|
|
48688
|
+
r,
|
|
48689
|
+
g.Struct.serializeBinaryToWriter
|
|
48690
|
+
);
|
|
48691
|
+
}, proto.viam.app.data.v1.TabularDataBySQLResponse.prototype.getDataList = function() {
|
|
48692
|
+
return (
|
|
48693
|
+
/** @type{!Array<!proto.google.protobuf.Struct>} */
|
|
48694
|
+
e.Message.getRepeatedWrapperField(this, g.Struct, 1)
|
|
48695
|
+
);
|
|
48696
|
+
}, proto.viam.app.data.v1.TabularDataBySQLResponse.prototype.setDataList = function(t) {
|
|
48697
|
+
return e.Message.setRepeatedWrapperField(this, 1, t);
|
|
48698
|
+
}, proto.viam.app.data.v1.TabularDataBySQLResponse.prototype.addData = function(t, o) {
|
|
48699
|
+
return e.Message.addToRepeatedWrapperField(this, 1, t, proto.google.protobuf.Struct, o);
|
|
48700
|
+
}, proto.viam.app.data.v1.TabularDataBySQLResponse.prototype.clearDataList = function() {
|
|
48701
|
+
return this.setDataList([]);
|
|
48702
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.app.data.v1.TabularDataByMQLRequest.prototype.toObject = function(t) {
|
|
48703
|
+
return proto.viam.app.data.v1.TabularDataByMQLRequest.toObject(t, this);
|
|
48704
|
+
}, proto.viam.app.data.v1.TabularDataByMQLRequest.toObject = function(t, o) {
|
|
48705
|
+
var r = {
|
|
48706
|
+
organizationId: e.Message.getFieldWithDefault(o, 1, ""),
|
|
48707
|
+
mqlQuery: e.Message.getFieldWithDefault(o, 2, "")
|
|
48708
|
+
};
|
|
48709
|
+
return t && (r.$jspbMessageInstance = o), r;
|
|
48710
|
+
}), proto.viam.app.data.v1.TabularDataByMQLRequest.deserializeBinary = function(t) {
|
|
48711
|
+
var o = new e.BinaryReader(t), r = new proto.viam.app.data.v1.TabularDataByMQLRequest();
|
|
48712
|
+
return proto.viam.app.data.v1.TabularDataByMQLRequest.deserializeBinaryFromReader(r, o);
|
|
48713
|
+
}, proto.viam.app.data.v1.TabularDataByMQLRequest.deserializeBinaryFromReader = function(t, o) {
|
|
48714
|
+
for (; o.nextField() && !o.isEndGroup(); ) {
|
|
48715
|
+
var r = o.getFieldNumber();
|
|
48716
|
+
switch (r) {
|
|
48717
|
+
case 1:
|
|
48718
|
+
var u = (
|
|
48719
|
+
/** @type {string} */
|
|
48720
|
+
o.readString()
|
|
48721
|
+
);
|
|
48722
|
+
t.setOrganizationId(u);
|
|
48723
|
+
break;
|
|
48724
|
+
case 2:
|
|
48725
|
+
var u = (
|
|
48726
|
+
/** @type {string} */
|
|
48727
|
+
o.readString()
|
|
48728
|
+
);
|
|
48729
|
+
t.setMqlQuery(u);
|
|
48730
|
+
break;
|
|
48731
|
+
default:
|
|
48732
|
+
o.skipField();
|
|
48733
|
+
break;
|
|
48734
|
+
}
|
|
48735
|
+
}
|
|
48736
|
+
return t;
|
|
48737
|
+
}, proto.viam.app.data.v1.TabularDataByMQLRequest.prototype.serializeBinary = function() {
|
|
48738
|
+
var t = new e.BinaryWriter();
|
|
48739
|
+
return proto.viam.app.data.v1.TabularDataByMQLRequest.serializeBinaryToWriter(this, t), t.getResultBuffer();
|
|
48740
|
+
}, proto.viam.app.data.v1.TabularDataByMQLRequest.serializeBinaryToWriter = function(t, o) {
|
|
48741
|
+
var r = void 0;
|
|
48742
|
+
r = t.getOrganizationId(), r.length > 0 && o.writeString(
|
|
48743
|
+
1,
|
|
48744
|
+
r
|
|
48745
|
+
), r = t.getMqlQuery(), r.length > 0 && o.writeString(
|
|
48746
|
+
2,
|
|
48747
|
+
r
|
|
48748
|
+
);
|
|
48749
|
+
}, proto.viam.app.data.v1.TabularDataByMQLRequest.prototype.getOrganizationId = function() {
|
|
48750
|
+
return (
|
|
48751
|
+
/** @type {string} */
|
|
48752
|
+
e.Message.getFieldWithDefault(this, 1, "")
|
|
48753
|
+
);
|
|
48754
|
+
}, proto.viam.app.data.v1.TabularDataByMQLRequest.prototype.setOrganizationId = function(t) {
|
|
48755
|
+
return e.Message.setProto3StringField(this, 1, t);
|
|
48756
|
+
}, proto.viam.app.data.v1.TabularDataByMQLRequest.prototype.getMqlQuery = function() {
|
|
48757
|
+
return (
|
|
48758
|
+
/** @type {string} */
|
|
48759
|
+
e.Message.getFieldWithDefault(this, 2, "")
|
|
48760
|
+
);
|
|
48761
|
+
}, proto.viam.app.data.v1.TabularDataByMQLRequest.prototype.setMqlQuery = function(t) {
|
|
48762
|
+
return e.Message.setProto3StringField(this, 2, t);
|
|
48763
|
+
}, proto.viam.app.data.v1.TabularDataByMQLResponse.repeatedFields_ = [1], e.Message.GENERATE_TO_OBJECT && (proto.viam.app.data.v1.TabularDataByMQLResponse.prototype.toObject = function(t) {
|
|
48764
|
+
return proto.viam.app.data.v1.TabularDataByMQLResponse.toObject(t, this);
|
|
48765
|
+
}, proto.viam.app.data.v1.TabularDataByMQLResponse.toObject = function(t, o) {
|
|
48766
|
+
var r = {
|
|
48767
|
+
dataList: e.Message.toObjectList(
|
|
48768
|
+
o.getDataList(),
|
|
48769
|
+
g.Struct.toObject,
|
|
48770
|
+
t
|
|
48771
|
+
)
|
|
48772
|
+
};
|
|
48773
|
+
return t && (r.$jspbMessageInstance = o), r;
|
|
48774
|
+
}), proto.viam.app.data.v1.TabularDataByMQLResponse.deserializeBinary = function(t) {
|
|
48775
|
+
var o = new e.BinaryReader(t), r = new proto.viam.app.data.v1.TabularDataByMQLResponse();
|
|
48776
|
+
return proto.viam.app.data.v1.TabularDataByMQLResponse.deserializeBinaryFromReader(r, o);
|
|
48777
|
+
}, proto.viam.app.data.v1.TabularDataByMQLResponse.deserializeBinaryFromReader = function(t, o) {
|
|
48778
|
+
for (; o.nextField() && !o.isEndGroup(); ) {
|
|
48779
|
+
var r = o.getFieldNumber();
|
|
48780
|
+
switch (r) {
|
|
48781
|
+
case 1:
|
|
48782
|
+
var u = new g.Struct();
|
|
48783
|
+
o.readMessage(u, g.Struct.deserializeBinaryFromReader), t.addData(u);
|
|
48784
|
+
break;
|
|
48785
|
+
default:
|
|
48786
|
+
o.skipField();
|
|
48787
|
+
break;
|
|
48788
|
+
}
|
|
48789
|
+
}
|
|
48790
|
+
return t;
|
|
48791
|
+
}, proto.viam.app.data.v1.TabularDataByMQLResponse.prototype.serializeBinary = function() {
|
|
48792
|
+
var t = new e.BinaryWriter();
|
|
48793
|
+
return proto.viam.app.data.v1.TabularDataByMQLResponse.serializeBinaryToWriter(this, t), t.getResultBuffer();
|
|
48794
|
+
}, proto.viam.app.data.v1.TabularDataByMQLResponse.serializeBinaryToWriter = function(t, o) {
|
|
48795
|
+
var r = void 0;
|
|
48796
|
+
r = t.getDataList(), r.length > 0 && o.writeRepeatedMessage(
|
|
48797
|
+
1,
|
|
48798
|
+
r,
|
|
48799
|
+
g.Struct.serializeBinaryToWriter
|
|
48800
|
+
);
|
|
48801
|
+
}, proto.viam.app.data.v1.TabularDataByMQLResponse.prototype.getDataList = function() {
|
|
48802
|
+
return (
|
|
48803
|
+
/** @type{!Array<!proto.google.protobuf.Struct>} */
|
|
48804
|
+
e.Message.getRepeatedWrapperField(this, g.Struct, 1)
|
|
48805
|
+
);
|
|
48806
|
+
}, proto.viam.app.data.v1.TabularDataByMQLResponse.prototype.setDataList = function(t) {
|
|
48807
|
+
return e.Message.setRepeatedWrapperField(this, 1, t);
|
|
48808
|
+
}, proto.viam.app.data.v1.TabularDataByMQLResponse.prototype.addData = function(t, o) {
|
|
48809
|
+
return e.Message.addToRepeatedWrapperField(this, 1, t, proto.google.protobuf.Struct, o);
|
|
48810
|
+
}, proto.viam.app.data.v1.TabularDataByMQLResponse.prototype.clearDataList = function() {
|
|
48811
|
+
return this.setDataList([]);
|
|
48035
48812
|
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.app.data.v1.BinaryData.prototype.toObject = function(t) {
|
|
48036
48813
|
return proto.viam.app.data.v1.BinaryData.toObject(t, this);
|
|
48037
48814
|
}, proto.viam.app.data.v1.BinaryData.toObject = function(t, o) {
|
|
@@ -50418,7 +51195,7 @@ var data_pb = {};
|
|
|
50418
51195
|
TAGS_FILTER_TYPE_UNTAGGED: 3
|
|
50419
51196
|
}, n.object.extend(i, proto.viam.app.data.v1);
|
|
50420
51197
|
})(data_pb);
|
|
50421
|
-
var app_data_v1_data_pb = data_pb, grpc$
|
|
51198
|
+
var app_data_v1_data_pb = data_pb, grpc$4 = grpcWebClient_umdExports$1.grpc, DataService = function() {
|
|
50422
51199
|
function i() {
|
|
50423
51200
|
}
|
|
50424
51201
|
return i.serviceName = "viam.app.data.v1.DataService", i;
|
|
@@ -50431,6 +51208,22 @@ DataService.TabularDataByFilter = {
|
|
|
50431
51208
|
requestType: app_data_v1_data_pb.TabularDataByFilterRequest,
|
|
50432
51209
|
responseType: app_data_v1_data_pb.TabularDataByFilterResponse
|
|
50433
51210
|
};
|
|
51211
|
+
DataService.TabularDataBySQL = {
|
|
51212
|
+
methodName: "TabularDataBySQL",
|
|
51213
|
+
service: DataService,
|
|
51214
|
+
requestStream: !1,
|
|
51215
|
+
responseStream: !1,
|
|
51216
|
+
requestType: app_data_v1_data_pb.TabularDataBySQLRequest,
|
|
51217
|
+
responseType: app_data_v1_data_pb.TabularDataBySQLResponse
|
|
51218
|
+
};
|
|
51219
|
+
DataService.TabularDataByMQL = {
|
|
51220
|
+
methodName: "TabularDataByMQL",
|
|
51221
|
+
service: DataService,
|
|
51222
|
+
requestStream: !1,
|
|
51223
|
+
responseStream: !1,
|
|
51224
|
+
requestType: app_data_v1_data_pb.TabularDataByMQLRequest,
|
|
51225
|
+
responseType: app_data_v1_data_pb.TabularDataByMQLResponse
|
|
51226
|
+
};
|
|
50434
51227
|
DataService.BinaryDataByFilter = {
|
|
50435
51228
|
methodName: "BinaryDataByFilter",
|
|
50436
51229
|
service: DataService,
|
|
@@ -50572,7 +51365,7 @@ function DataServiceClient(i, e) {
|
|
|
50572
51365
|
}
|
|
50573
51366
|
DataServiceClient.prototype.tabularDataByFilter = function i(e, n, s) {
|
|
50574
51367
|
arguments.length === 2 && (s = arguments[1]);
|
|
50575
|
-
var l = grpc$
|
|
51368
|
+
var l = grpc$4.unary(DataService.TabularDataByFilter, {
|
|
50576
51369
|
request: e,
|
|
50577
51370
|
host: this.serviceHost,
|
|
50578
51371
|
metadata: n,
|
|
@@ -50580,7 +51373,53 @@ DataServiceClient.prototype.tabularDataByFilter = function i(e, n, s) {
|
|
|
50580
51373
|
debug: this.options.debug,
|
|
50581
51374
|
onEnd: function(g) {
|
|
50582
51375
|
if (s)
|
|
50583
|
-
if (g.status !== grpc$
|
|
51376
|
+
if (g.status !== grpc$4.Code.OK) {
|
|
51377
|
+
var p = new Error(g.statusMessage);
|
|
51378
|
+
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
51379
|
+
} else
|
|
51380
|
+
s(null, g.message);
|
|
51381
|
+
}
|
|
51382
|
+
});
|
|
51383
|
+
return {
|
|
51384
|
+
cancel: function() {
|
|
51385
|
+
s = null, l.close();
|
|
51386
|
+
}
|
|
51387
|
+
};
|
|
51388
|
+
};
|
|
51389
|
+
DataServiceClient.prototype.tabularDataBySQL = function i(e, n, s) {
|
|
51390
|
+
arguments.length === 2 && (s = arguments[1]);
|
|
51391
|
+
var l = grpc$4.unary(DataService.TabularDataBySQL, {
|
|
51392
|
+
request: e,
|
|
51393
|
+
host: this.serviceHost,
|
|
51394
|
+
metadata: n,
|
|
51395
|
+
transport: this.options.transport,
|
|
51396
|
+
debug: this.options.debug,
|
|
51397
|
+
onEnd: function(g) {
|
|
51398
|
+
if (s)
|
|
51399
|
+
if (g.status !== grpc$4.Code.OK) {
|
|
51400
|
+
var p = new Error(g.statusMessage);
|
|
51401
|
+
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
51402
|
+
} else
|
|
51403
|
+
s(null, g.message);
|
|
51404
|
+
}
|
|
51405
|
+
});
|
|
51406
|
+
return {
|
|
51407
|
+
cancel: function() {
|
|
51408
|
+
s = null, l.close();
|
|
51409
|
+
}
|
|
51410
|
+
};
|
|
51411
|
+
};
|
|
51412
|
+
DataServiceClient.prototype.tabularDataByMQL = function i(e, n, s) {
|
|
51413
|
+
arguments.length === 2 && (s = arguments[1]);
|
|
51414
|
+
var l = grpc$4.unary(DataService.TabularDataByMQL, {
|
|
51415
|
+
request: e,
|
|
51416
|
+
host: this.serviceHost,
|
|
51417
|
+
metadata: n,
|
|
51418
|
+
transport: this.options.transport,
|
|
51419
|
+
debug: this.options.debug,
|
|
51420
|
+
onEnd: function(g) {
|
|
51421
|
+
if (s)
|
|
51422
|
+
if (g.status !== grpc$4.Code.OK) {
|
|
50584
51423
|
var p = new Error(g.statusMessage);
|
|
50585
51424
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
50586
51425
|
} else
|
|
@@ -50595,7 +51434,7 @@ DataServiceClient.prototype.tabularDataByFilter = function i(e, n, s) {
|
|
|
50595
51434
|
};
|
|
50596
51435
|
DataServiceClient.prototype.binaryDataByFilter = function i(e, n, s) {
|
|
50597
51436
|
arguments.length === 2 && (s = arguments[1]);
|
|
50598
|
-
var l = grpc$
|
|
51437
|
+
var l = grpc$4.unary(DataService.BinaryDataByFilter, {
|
|
50599
51438
|
request: e,
|
|
50600
51439
|
host: this.serviceHost,
|
|
50601
51440
|
metadata: n,
|
|
@@ -50603,7 +51442,7 @@ DataServiceClient.prototype.binaryDataByFilter = function i(e, n, s) {
|
|
|
50603
51442
|
debug: this.options.debug,
|
|
50604
51443
|
onEnd: function(g) {
|
|
50605
51444
|
if (s)
|
|
50606
|
-
if (g.status !== grpc$
|
|
51445
|
+
if (g.status !== grpc$4.Code.OK) {
|
|
50607
51446
|
var p = new Error(g.statusMessage);
|
|
50608
51447
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
50609
51448
|
} else
|
|
@@ -50618,7 +51457,7 @@ DataServiceClient.prototype.binaryDataByFilter = function i(e, n, s) {
|
|
|
50618
51457
|
};
|
|
50619
51458
|
DataServiceClient.prototype.binaryDataByIDs = function i(e, n, s) {
|
|
50620
51459
|
arguments.length === 2 && (s = arguments[1]);
|
|
50621
|
-
var l = grpc$
|
|
51460
|
+
var l = grpc$4.unary(DataService.BinaryDataByIDs, {
|
|
50622
51461
|
request: e,
|
|
50623
51462
|
host: this.serviceHost,
|
|
50624
51463
|
metadata: n,
|
|
@@ -50626,7 +51465,7 @@ DataServiceClient.prototype.binaryDataByIDs = function i(e, n, s) {
|
|
|
50626
51465
|
debug: this.options.debug,
|
|
50627
51466
|
onEnd: function(g) {
|
|
50628
51467
|
if (s)
|
|
50629
|
-
if (g.status !== grpc$
|
|
51468
|
+
if (g.status !== grpc$4.Code.OK) {
|
|
50630
51469
|
var p = new Error(g.statusMessage);
|
|
50631
51470
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
50632
51471
|
} else
|
|
@@ -50641,7 +51480,7 @@ DataServiceClient.prototype.binaryDataByIDs = function i(e, n, s) {
|
|
|
50641
51480
|
};
|
|
50642
51481
|
DataServiceClient.prototype.deleteTabularData = function i(e, n, s) {
|
|
50643
51482
|
arguments.length === 2 && (s = arguments[1]);
|
|
50644
|
-
var l = grpc$
|
|
51483
|
+
var l = grpc$4.unary(DataService.DeleteTabularData, {
|
|
50645
51484
|
request: e,
|
|
50646
51485
|
host: this.serviceHost,
|
|
50647
51486
|
metadata: n,
|
|
@@ -50649,7 +51488,7 @@ DataServiceClient.prototype.deleteTabularData = function i(e, n, s) {
|
|
|
50649
51488
|
debug: this.options.debug,
|
|
50650
51489
|
onEnd: function(g) {
|
|
50651
51490
|
if (s)
|
|
50652
|
-
if (g.status !== grpc$
|
|
51491
|
+
if (g.status !== grpc$4.Code.OK) {
|
|
50653
51492
|
var p = new Error(g.statusMessage);
|
|
50654
51493
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
50655
51494
|
} else
|
|
@@ -50664,7 +51503,7 @@ DataServiceClient.prototype.deleteTabularData = function i(e, n, s) {
|
|
|
50664
51503
|
};
|
|
50665
51504
|
DataServiceClient.prototype.deleteBinaryDataByFilter = function i(e, n, s) {
|
|
50666
51505
|
arguments.length === 2 && (s = arguments[1]);
|
|
50667
|
-
var l = grpc$
|
|
51506
|
+
var l = grpc$4.unary(DataService.DeleteBinaryDataByFilter, {
|
|
50668
51507
|
request: e,
|
|
50669
51508
|
host: this.serviceHost,
|
|
50670
51509
|
metadata: n,
|
|
@@ -50672,7 +51511,7 @@ DataServiceClient.prototype.deleteBinaryDataByFilter = function i(e, n, s) {
|
|
|
50672
51511
|
debug: this.options.debug,
|
|
50673
51512
|
onEnd: function(g) {
|
|
50674
51513
|
if (s)
|
|
50675
|
-
if (g.status !== grpc$
|
|
51514
|
+
if (g.status !== grpc$4.Code.OK) {
|
|
50676
51515
|
var p = new Error(g.statusMessage);
|
|
50677
51516
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
50678
51517
|
} else
|
|
@@ -50687,7 +51526,7 @@ DataServiceClient.prototype.deleteBinaryDataByFilter = function i(e, n, s) {
|
|
|
50687
51526
|
};
|
|
50688
51527
|
DataServiceClient.prototype.deleteBinaryDataByIDs = function i(e, n, s) {
|
|
50689
51528
|
arguments.length === 2 && (s = arguments[1]);
|
|
50690
|
-
var l = grpc$
|
|
51529
|
+
var l = grpc$4.unary(DataService.DeleteBinaryDataByIDs, {
|
|
50691
51530
|
request: e,
|
|
50692
51531
|
host: this.serviceHost,
|
|
50693
51532
|
metadata: n,
|
|
@@ -50695,7 +51534,7 @@ DataServiceClient.prototype.deleteBinaryDataByIDs = function i(e, n, s) {
|
|
|
50695
51534
|
debug: this.options.debug,
|
|
50696
51535
|
onEnd: function(g) {
|
|
50697
51536
|
if (s)
|
|
50698
|
-
if (g.status !== grpc$
|
|
51537
|
+
if (g.status !== grpc$4.Code.OK) {
|
|
50699
51538
|
var p = new Error(g.statusMessage);
|
|
50700
51539
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
50701
51540
|
} else
|
|
@@ -50710,7 +51549,7 @@ DataServiceClient.prototype.deleteBinaryDataByIDs = function i(e, n, s) {
|
|
|
50710
51549
|
};
|
|
50711
51550
|
DataServiceClient.prototype.addTagsToBinaryDataByIDs = function i(e, n, s) {
|
|
50712
51551
|
arguments.length === 2 && (s = arguments[1]);
|
|
50713
|
-
var l = grpc$
|
|
51552
|
+
var l = grpc$4.unary(DataService.AddTagsToBinaryDataByIDs, {
|
|
50714
51553
|
request: e,
|
|
50715
51554
|
host: this.serviceHost,
|
|
50716
51555
|
metadata: n,
|
|
@@ -50718,7 +51557,7 @@ DataServiceClient.prototype.addTagsToBinaryDataByIDs = function i(e, n, s) {
|
|
|
50718
51557
|
debug: this.options.debug,
|
|
50719
51558
|
onEnd: function(g) {
|
|
50720
51559
|
if (s)
|
|
50721
|
-
if (g.status !== grpc$
|
|
51560
|
+
if (g.status !== grpc$4.Code.OK) {
|
|
50722
51561
|
var p = new Error(g.statusMessage);
|
|
50723
51562
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
50724
51563
|
} else
|
|
@@ -50733,7 +51572,7 @@ DataServiceClient.prototype.addTagsToBinaryDataByIDs = function i(e, n, s) {
|
|
|
50733
51572
|
};
|
|
50734
51573
|
DataServiceClient.prototype.addTagsToBinaryDataByFilter = function i(e, n, s) {
|
|
50735
51574
|
arguments.length === 2 && (s = arguments[1]);
|
|
50736
|
-
var l = grpc$
|
|
51575
|
+
var l = grpc$4.unary(DataService.AddTagsToBinaryDataByFilter, {
|
|
50737
51576
|
request: e,
|
|
50738
51577
|
host: this.serviceHost,
|
|
50739
51578
|
metadata: n,
|
|
@@ -50741,7 +51580,7 @@ DataServiceClient.prototype.addTagsToBinaryDataByFilter = function i(e, n, s) {
|
|
|
50741
51580
|
debug: this.options.debug,
|
|
50742
51581
|
onEnd: function(g) {
|
|
50743
51582
|
if (s)
|
|
50744
|
-
if (g.status !== grpc$
|
|
51583
|
+
if (g.status !== grpc$4.Code.OK) {
|
|
50745
51584
|
var p = new Error(g.statusMessage);
|
|
50746
51585
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
50747
51586
|
} else
|
|
@@ -50756,7 +51595,7 @@ DataServiceClient.prototype.addTagsToBinaryDataByFilter = function i(e, n, s) {
|
|
|
50756
51595
|
};
|
|
50757
51596
|
DataServiceClient.prototype.removeTagsFromBinaryDataByIDs = function i(e, n, s) {
|
|
50758
51597
|
arguments.length === 2 && (s = arguments[1]);
|
|
50759
|
-
var l = grpc$
|
|
51598
|
+
var l = grpc$4.unary(DataService.RemoveTagsFromBinaryDataByIDs, {
|
|
50760
51599
|
request: e,
|
|
50761
51600
|
host: this.serviceHost,
|
|
50762
51601
|
metadata: n,
|
|
@@ -50764,7 +51603,7 @@ DataServiceClient.prototype.removeTagsFromBinaryDataByIDs = function i(e, n, s)
|
|
|
50764
51603
|
debug: this.options.debug,
|
|
50765
51604
|
onEnd: function(g) {
|
|
50766
51605
|
if (s)
|
|
50767
|
-
if (g.status !== grpc$
|
|
51606
|
+
if (g.status !== grpc$4.Code.OK) {
|
|
50768
51607
|
var p = new Error(g.statusMessage);
|
|
50769
51608
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
50770
51609
|
} else
|
|
@@ -50779,7 +51618,7 @@ DataServiceClient.prototype.removeTagsFromBinaryDataByIDs = function i(e, n, s)
|
|
|
50779
51618
|
};
|
|
50780
51619
|
DataServiceClient.prototype.removeTagsFromBinaryDataByFilter = function i(e, n, s) {
|
|
50781
51620
|
arguments.length === 2 && (s = arguments[1]);
|
|
50782
|
-
var l = grpc$
|
|
51621
|
+
var l = grpc$4.unary(DataService.RemoveTagsFromBinaryDataByFilter, {
|
|
50783
51622
|
request: e,
|
|
50784
51623
|
host: this.serviceHost,
|
|
50785
51624
|
metadata: n,
|
|
@@ -50787,7 +51626,7 @@ DataServiceClient.prototype.removeTagsFromBinaryDataByFilter = function i(e, n,
|
|
|
50787
51626
|
debug: this.options.debug,
|
|
50788
51627
|
onEnd: function(g) {
|
|
50789
51628
|
if (s)
|
|
50790
|
-
if (g.status !== grpc$
|
|
51629
|
+
if (g.status !== grpc$4.Code.OK) {
|
|
50791
51630
|
var p = new Error(g.statusMessage);
|
|
50792
51631
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
50793
51632
|
} else
|
|
@@ -50802,7 +51641,7 @@ DataServiceClient.prototype.removeTagsFromBinaryDataByFilter = function i(e, n,
|
|
|
50802
51641
|
};
|
|
50803
51642
|
DataServiceClient.prototype.tagsByFilter = function i(e, n, s) {
|
|
50804
51643
|
arguments.length === 2 && (s = arguments[1]);
|
|
50805
|
-
var l = grpc$
|
|
51644
|
+
var l = grpc$4.unary(DataService.TagsByFilter, {
|
|
50806
51645
|
request: e,
|
|
50807
51646
|
host: this.serviceHost,
|
|
50808
51647
|
metadata: n,
|
|
@@ -50810,7 +51649,7 @@ DataServiceClient.prototype.tagsByFilter = function i(e, n, s) {
|
|
|
50810
51649
|
debug: this.options.debug,
|
|
50811
51650
|
onEnd: function(g) {
|
|
50812
51651
|
if (s)
|
|
50813
|
-
if (g.status !== grpc$
|
|
51652
|
+
if (g.status !== grpc$4.Code.OK) {
|
|
50814
51653
|
var p = new Error(g.statusMessage);
|
|
50815
51654
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
50816
51655
|
} else
|
|
@@ -50825,7 +51664,7 @@ DataServiceClient.prototype.tagsByFilter = function i(e, n, s) {
|
|
|
50825
51664
|
};
|
|
50826
51665
|
DataServiceClient.prototype.addBoundingBoxToImageByID = function i(e, n, s) {
|
|
50827
51666
|
arguments.length === 2 && (s = arguments[1]);
|
|
50828
|
-
var l = grpc$
|
|
51667
|
+
var l = grpc$4.unary(DataService.AddBoundingBoxToImageByID, {
|
|
50829
51668
|
request: e,
|
|
50830
51669
|
host: this.serviceHost,
|
|
50831
51670
|
metadata: n,
|
|
@@ -50833,7 +51672,7 @@ DataServiceClient.prototype.addBoundingBoxToImageByID = function i(e, n, s) {
|
|
|
50833
51672
|
debug: this.options.debug,
|
|
50834
51673
|
onEnd: function(g) {
|
|
50835
51674
|
if (s)
|
|
50836
|
-
if (g.status !== grpc$
|
|
51675
|
+
if (g.status !== grpc$4.Code.OK) {
|
|
50837
51676
|
var p = new Error(g.statusMessage);
|
|
50838
51677
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
50839
51678
|
} else
|
|
@@ -50848,7 +51687,7 @@ DataServiceClient.prototype.addBoundingBoxToImageByID = function i(e, n, s) {
|
|
|
50848
51687
|
};
|
|
50849
51688
|
DataServiceClient.prototype.removeBoundingBoxFromImageByID = function i(e, n, s) {
|
|
50850
51689
|
arguments.length === 2 && (s = arguments[1]);
|
|
50851
|
-
var l = grpc$
|
|
51690
|
+
var l = grpc$4.unary(DataService.RemoveBoundingBoxFromImageByID, {
|
|
50852
51691
|
request: e,
|
|
50853
51692
|
host: this.serviceHost,
|
|
50854
51693
|
metadata: n,
|
|
@@ -50856,7 +51695,7 @@ DataServiceClient.prototype.removeBoundingBoxFromImageByID = function i(e, n, s)
|
|
|
50856
51695
|
debug: this.options.debug,
|
|
50857
51696
|
onEnd: function(g) {
|
|
50858
51697
|
if (s)
|
|
50859
|
-
if (g.status !== grpc$
|
|
51698
|
+
if (g.status !== grpc$4.Code.OK) {
|
|
50860
51699
|
var p = new Error(g.statusMessage);
|
|
50861
51700
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
50862
51701
|
} else
|
|
@@ -50871,7 +51710,7 @@ DataServiceClient.prototype.removeBoundingBoxFromImageByID = function i(e, n, s)
|
|
|
50871
51710
|
};
|
|
50872
51711
|
DataServiceClient.prototype.boundingBoxLabelsByFilter = function i(e, n, s) {
|
|
50873
51712
|
arguments.length === 2 && (s = arguments[1]);
|
|
50874
|
-
var l = grpc$
|
|
51713
|
+
var l = grpc$4.unary(DataService.BoundingBoxLabelsByFilter, {
|
|
50875
51714
|
request: e,
|
|
50876
51715
|
host: this.serviceHost,
|
|
50877
51716
|
metadata: n,
|
|
@@ -50879,7 +51718,7 @@ DataServiceClient.prototype.boundingBoxLabelsByFilter = function i(e, n, s) {
|
|
|
50879
51718
|
debug: this.options.debug,
|
|
50880
51719
|
onEnd: function(g) {
|
|
50881
51720
|
if (s)
|
|
50882
|
-
if (g.status !== grpc$
|
|
51721
|
+
if (g.status !== grpc$4.Code.OK) {
|
|
50883
51722
|
var p = new Error(g.statusMessage);
|
|
50884
51723
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
50885
51724
|
} else
|
|
@@ -50894,7 +51733,7 @@ DataServiceClient.prototype.boundingBoxLabelsByFilter = function i(e, n, s) {
|
|
|
50894
51733
|
};
|
|
50895
51734
|
DataServiceClient.prototype.getDatabaseConnection = function i(e, n, s) {
|
|
50896
51735
|
arguments.length === 2 && (s = arguments[1]);
|
|
50897
|
-
var l = grpc$
|
|
51736
|
+
var l = grpc$4.unary(DataService.GetDatabaseConnection, {
|
|
50898
51737
|
request: e,
|
|
50899
51738
|
host: this.serviceHost,
|
|
50900
51739
|
metadata: n,
|
|
@@ -50902,7 +51741,7 @@ DataServiceClient.prototype.getDatabaseConnection = function i(e, n, s) {
|
|
|
50902
51741
|
debug: this.options.debug,
|
|
50903
51742
|
onEnd: function(g) {
|
|
50904
51743
|
if (s)
|
|
50905
|
-
if (g.status !== grpc$
|
|
51744
|
+
if (g.status !== grpc$4.Code.OK) {
|
|
50906
51745
|
var p = new Error(g.statusMessage);
|
|
50907
51746
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
50908
51747
|
} else
|
|
@@ -50917,7 +51756,7 @@ DataServiceClient.prototype.getDatabaseConnection = function i(e, n, s) {
|
|
|
50917
51756
|
};
|
|
50918
51757
|
DataServiceClient.prototype.configureDatabaseUser = function i(e, n, s) {
|
|
50919
51758
|
arguments.length === 2 && (s = arguments[1]);
|
|
50920
|
-
var l = grpc$
|
|
51759
|
+
var l = grpc$4.unary(DataService.ConfigureDatabaseUser, {
|
|
50921
51760
|
request: e,
|
|
50922
51761
|
host: this.serviceHost,
|
|
50923
51762
|
metadata: n,
|
|
@@ -50925,7 +51764,7 @@ DataServiceClient.prototype.configureDatabaseUser = function i(e, n, s) {
|
|
|
50925
51764
|
debug: this.options.debug,
|
|
50926
51765
|
onEnd: function(g) {
|
|
50927
51766
|
if (s)
|
|
50928
|
-
if (g.status !== grpc$
|
|
51767
|
+
if (g.status !== grpc$4.Code.OK) {
|
|
50929
51768
|
var p = new Error(g.statusMessage);
|
|
50930
51769
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
50931
51770
|
} else
|
|
@@ -50940,7 +51779,7 @@ DataServiceClient.prototype.configureDatabaseUser = function i(e, n, s) {
|
|
|
50940
51779
|
};
|
|
50941
51780
|
DataServiceClient.prototype.addBinaryDataToDatasetByIDs = function i(e, n, s) {
|
|
50942
51781
|
arguments.length === 2 && (s = arguments[1]);
|
|
50943
|
-
var l = grpc$
|
|
51782
|
+
var l = grpc$4.unary(DataService.AddBinaryDataToDatasetByIDs, {
|
|
50944
51783
|
request: e,
|
|
50945
51784
|
host: this.serviceHost,
|
|
50946
51785
|
metadata: n,
|
|
@@ -50948,7 +51787,7 @@ DataServiceClient.prototype.addBinaryDataToDatasetByIDs = function i(e, n, s) {
|
|
|
50948
51787
|
debug: this.options.debug,
|
|
50949
51788
|
onEnd: function(g) {
|
|
50950
51789
|
if (s)
|
|
50951
|
-
if (g.status !== grpc$
|
|
51790
|
+
if (g.status !== grpc$4.Code.OK) {
|
|
50952
51791
|
var p = new Error(g.statusMessage);
|
|
50953
51792
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
50954
51793
|
} else
|
|
@@ -50963,7 +51802,7 @@ DataServiceClient.prototype.addBinaryDataToDatasetByIDs = function i(e, n, s) {
|
|
|
50963
51802
|
};
|
|
50964
51803
|
DataServiceClient.prototype.removeBinaryDataFromDatasetByIDs = function i(e, n, s) {
|
|
50965
51804
|
arguments.length === 2 && (s = arguments[1]);
|
|
50966
|
-
var l = grpc$
|
|
51805
|
+
var l = grpc$4.unary(DataService.RemoveBinaryDataFromDatasetByIDs, {
|
|
50967
51806
|
request: e,
|
|
50968
51807
|
host: this.serviceHost,
|
|
50969
51808
|
metadata: n,
|
|
@@ -50971,7 +51810,7 @@ DataServiceClient.prototype.removeBinaryDataFromDatasetByIDs = function i(e, n,
|
|
|
50971
51810
|
debug: this.options.debug,
|
|
50972
51811
|
onEnd: function(g) {
|
|
50973
51812
|
if (s)
|
|
50974
|
-
if (g.status !== grpc$
|
|
51813
|
+
if (g.status !== grpc$4.Code.OK) {
|
|
50975
51814
|
var p = new Error(g.statusMessage);
|
|
50976
51815
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
50977
51816
|
} else
|
|
@@ -50990,6 +51829,28 @@ class DataClient {
|
|
|
50990
51829
|
constructor(e, n) {
|
|
50991
51830
|
this.service = new DataServiceClient_1(e, n);
|
|
50992
51831
|
}
|
|
51832
|
+
/**
|
|
51833
|
+
* Obtain unified tabular data and metadata, queried with SQL.
|
|
51834
|
+
*
|
|
51835
|
+
* @param organizationId The ID of the organization that owns the data
|
|
51836
|
+
* @param query The SQL query to run
|
|
51837
|
+
* @returns An array of data objects
|
|
51838
|
+
*/
|
|
51839
|
+
async tabularDataBySQL(e, n) {
|
|
51840
|
+
const { service: s } = this, l = new data_pb.TabularDataBySQLRequest();
|
|
51841
|
+
return l.setOrganizationId(e), l.setSqlQuery(n), (await promisify(s.tabularDataBySQL.bind(s), l)).getDataList().map((t) => t.toJavaScript());
|
|
51842
|
+
}
|
|
51843
|
+
/**
|
|
51844
|
+
* Obtain unified tabular data and metadata, queried with MQL.
|
|
51845
|
+
*
|
|
51846
|
+
* @param organizationId The ID of the organization that owns the data
|
|
51847
|
+
* @param query The MQL query to run
|
|
51848
|
+
* @returns An array of data objects
|
|
51849
|
+
*/
|
|
51850
|
+
async tabularDataByMQL(e, n) {
|
|
51851
|
+
const { service: s } = this, l = new data_pb.TabularDataByMQLRequest();
|
|
51852
|
+
return l.setOrganizationId(e), l.setMqlQuery(n), (await promisify(s.tabularDataByMQL.bind(s), l)).getDataList().map((t) => t.toJavaScript());
|
|
51853
|
+
}
|
|
50993
51854
|
/**
|
|
50994
51855
|
* Filter and download tabular data. The returned metadata might be empty if
|
|
50995
51856
|
* the metadata index of the data is out of the bounds of the returned
|
|
@@ -51007,7 +51868,7 @@ class DataClient {
|
|
|
51007
51868
|
const p = new data_pb.TabularDataByFilterRequest();
|
|
51008
51869
|
p.setDataRequest(g), p.setCountOnly(!1);
|
|
51009
51870
|
const t = await promisify(n.tabularDataByFilter.bind(n), p), o = t.getDataList();
|
|
51010
|
-
if (
|
|
51871
|
+
if (o.length === 0)
|
|
51011
51872
|
break;
|
|
51012
51873
|
const r = t.getMetadataList().length;
|
|
51013
51874
|
l.push(
|
|
@@ -51033,7 +51894,7 @@ class DataClient {
|
|
|
51033
51894
|
const p = new data_pb.BinaryDataByFilterRequest();
|
|
51034
51895
|
p.setDataRequest(g), p.setCountOnly(!1);
|
|
51035
51896
|
const t = await promisify(n.binaryDataByFilter.bind(n), p), o = t.getDataList();
|
|
51036
|
-
if (
|
|
51897
|
+
if (o.length === 0)
|
|
51037
51898
|
break;
|
|
51038
51899
|
l.push(...o.map((r) => r.toObject())), s = t.getLast();
|
|
51039
51900
|
}
|
|
@@ -51065,7 +51926,7 @@ class ViamClient {
|
|
|
51065
51926
|
transportFactory;
|
|
51066
51927
|
dataClient;
|
|
51067
51928
|
constructor(e, n) {
|
|
51068
|
-
this.serviceHost = n
|
|
51929
|
+
this.serviceHost = n ?? "https://app.viam.com:443", this.dialOpts = e;
|
|
51069
51930
|
}
|
|
51070
51931
|
getTransportFactory = async () => createViamTransportFactory(this.serviceHost, this.dialOpts);
|
|
51071
51932
|
async connect() {
|
|
@@ -52646,7 +53507,7 @@ var camera_pb = {}, httpbody_pb = {};
|
|
|
52646
53507
|
FORMAT_PNG: 4
|
|
52647
53508
|
}, n.object.extend(i, proto.viam.component.camera.v1);
|
|
52648
53509
|
})(camera_pb);
|
|
52649
|
-
var component_camera_v1_camera_pb = camera_pb, common_v1_common_pb$
|
|
53510
|
+
var component_camera_v1_camera_pb = camera_pb, common_v1_common_pb$3 = common_pb, google_api_httpbody_pb = httpbody_pb, grpc$3 = grpcWebClient_umdExports$1.grpc, CameraService = function() {
|
|
52650
53511
|
function i() {
|
|
52651
53512
|
}
|
|
52652
53513
|
return i.serviceName = "viam.component.camera.v1.CameraService", i;
|
|
@@ -52696,23 +53557,23 @@ CameraService.DoCommand = {
|
|
|
52696
53557
|
service: CameraService,
|
|
52697
53558
|
requestStream: !1,
|
|
52698
53559
|
responseStream: !1,
|
|
52699
|
-
requestType: common_v1_common_pb$
|
|
52700
|
-
responseType: common_v1_common_pb$
|
|
53560
|
+
requestType: common_v1_common_pb$3.DoCommandRequest,
|
|
53561
|
+
responseType: common_v1_common_pb$3.DoCommandResponse
|
|
52701
53562
|
};
|
|
52702
53563
|
CameraService.GetGeometries = {
|
|
52703
53564
|
methodName: "GetGeometries",
|
|
52704
53565
|
service: CameraService,
|
|
52705
53566
|
requestStream: !1,
|
|
52706
53567
|
responseStream: !1,
|
|
52707
|
-
requestType: common_v1_common_pb$
|
|
52708
|
-
responseType: common_v1_common_pb$
|
|
53568
|
+
requestType: common_v1_common_pb$3.GetGeometriesRequest,
|
|
53569
|
+
responseType: common_v1_common_pb$3.GetGeometriesResponse
|
|
52709
53570
|
};
|
|
52710
53571
|
function CameraServiceClient(i, e) {
|
|
52711
53572
|
this.serviceHost = i, this.options = e || {};
|
|
52712
53573
|
}
|
|
52713
53574
|
CameraServiceClient.prototype.getImage = function i(e, n, s) {
|
|
52714
53575
|
arguments.length === 2 && (s = arguments[1]);
|
|
52715
|
-
var l = grpc$
|
|
53576
|
+
var l = grpc$3.unary(CameraService.GetImage, {
|
|
52716
53577
|
request: e,
|
|
52717
53578
|
host: this.serviceHost,
|
|
52718
53579
|
metadata: n,
|
|
@@ -52720,7 +53581,7 @@ CameraServiceClient.prototype.getImage = function i(e, n, s) {
|
|
|
52720
53581
|
debug: this.options.debug,
|
|
52721
53582
|
onEnd: function(g) {
|
|
52722
53583
|
if (s)
|
|
52723
|
-
if (g.status !== grpc$
|
|
53584
|
+
if (g.status !== grpc$3.Code.OK) {
|
|
52724
53585
|
var p = new Error(g.statusMessage);
|
|
52725
53586
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
52726
53587
|
} else
|
|
@@ -52735,7 +53596,7 @@ CameraServiceClient.prototype.getImage = function i(e, n, s) {
|
|
|
52735
53596
|
};
|
|
52736
53597
|
CameraServiceClient.prototype.getImages = function i(e, n, s) {
|
|
52737
53598
|
arguments.length === 2 && (s = arguments[1]);
|
|
52738
|
-
var l = grpc$
|
|
53599
|
+
var l = grpc$3.unary(CameraService.GetImages, {
|
|
52739
53600
|
request: e,
|
|
52740
53601
|
host: this.serviceHost,
|
|
52741
53602
|
metadata: n,
|
|
@@ -52743,7 +53604,7 @@ CameraServiceClient.prototype.getImages = function i(e, n, s) {
|
|
|
52743
53604
|
debug: this.options.debug,
|
|
52744
53605
|
onEnd: function(g) {
|
|
52745
53606
|
if (s)
|
|
52746
|
-
if (g.status !== grpc$
|
|
53607
|
+
if (g.status !== grpc$3.Code.OK) {
|
|
52747
53608
|
var p = new Error(g.statusMessage);
|
|
52748
53609
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
52749
53610
|
} else
|
|
@@ -52758,7 +53619,7 @@ CameraServiceClient.prototype.getImages = function i(e, n, s) {
|
|
|
52758
53619
|
};
|
|
52759
53620
|
CameraServiceClient.prototype.renderFrame = function i(e, n, s) {
|
|
52760
53621
|
arguments.length === 2 && (s = arguments[1]);
|
|
52761
|
-
var l = grpc$
|
|
53622
|
+
var l = grpc$3.unary(CameraService.RenderFrame, {
|
|
52762
53623
|
request: e,
|
|
52763
53624
|
host: this.serviceHost,
|
|
52764
53625
|
metadata: n,
|
|
@@ -52766,7 +53627,7 @@ CameraServiceClient.prototype.renderFrame = function i(e, n, s) {
|
|
|
52766
53627
|
debug: this.options.debug,
|
|
52767
53628
|
onEnd: function(g) {
|
|
52768
53629
|
if (s)
|
|
52769
|
-
if (g.status !== grpc$
|
|
53630
|
+
if (g.status !== grpc$3.Code.OK) {
|
|
52770
53631
|
var p = new Error(g.statusMessage);
|
|
52771
53632
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
52772
53633
|
} else
|
|
@@ -52781,7 +53642,7 @@ CameraServiceClient.prototype.renderFrame = function i(e, n, s) {
|
|
|
52781
53642
|
};
|
|
52782
53643
|
CameraServiceClient.prototype.getPointCloud = function i(e, n, s) {
|
|
52783
53644
|
arguments.length === 2 && (s = arguments[1]);
|
|
52784
|
-
var l = grpc$
|
|
53645
|
+
var l = grpc$3.unary(CameraService.GetPointCloud, {
|
|
52785
53646
|
request: e,
|
|
52786
53647
|
host: this.serviceHost,
|
|
52787
53648
|
metadata: n,
|
|
@@ -52789,7 +53650,7 @@ CameraServiceClient.prototype.getPointCloud = function i(e, n, s) {
|
|
|
52789
53650
|
debug: this.options.debug,
|
|
52790
53651
|
onEnd: function(g) {
|
|
52791
53652
|
if (s)
|
|
52792
|
-
if (g.status !== grpc$
|
|
53653
|
+
if (g.status !== grpc$3.Code.OK) {
|
|
52793
53654
|
var p = new Error(g.statusMessage);
|
|
52794
53655
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
52795
53656
|
} else
|
|
@@ -52804,7 +53665,7 @@ CameraServiceClient.prototype.getPointCloud = function i(e, n, s) {
|
|
|
52804
53665
|
};
|
|
52805
53666
|
CameraServiceClient.prototype.getProperties = function i(e, n, s) {
|
|
52806
53667
|
arguments.length === 2 && (s = arguments[1]);
|
|
52807
|
-
var l = grpc$
|
|
53668
|
+
var l = grpc$3.unary(CameraService.GetProperties, {
|
|
52808
53669
|
request: e,
|
|
52809
53670
|
host: this.serviceHost,
|
|
52810
53671
|
metadata: n,
|
|
@@ -52812,7 +53673,7 @@ CameraServiceClient.prototype.getProperties = function i(e, n, s) {
|
|
|
52812
53673
|
debug: this.options.debug,
|
|
52813
53674
|
onEnd: function(g) {
|
|
52814
53675
|
if (s)
|
|
52815
|
-
if (g.status !== grpc$
|
|
53676
|
+
if (g.status !== grpc$3.Code.OK) {
|
|
52816
53677
|
var p = new Error(g.statusMessage);
|
|
52817
53678
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
52818
53679
|
} else
|
|
@@ -52827,7 +53688,7 @@ CameraServiceClient.prototype.getProperties = function i(e, n, s) {
|
|
|
52827
53688
|
};
|
|
52828
53689
|
CameraServiceClient.prototype.doCommand = function i(e, n, s) {
|
|
52829
53690
|
arguments.length === 2 && (s = arguments[1]);
|
|
52830
|
-
var l = grpc$
|
|
53691
|
+
var l = grpc$3.unary(CameraService.DoCommand, {
|
|
52831
53692
|
request: e,
|
|
52832
53693
|
host: this.serviceHost,
|
|
52833
53694
|
metadata: n,
|
|
@@ -52835,7 +53696,7 @@ CameraServiceClient.prototype.doCommand = function i(e, n, s) {
|
|
|
52835
53696
|
debug: this.options.debug,
|
|
52836
53697
|
onEnd: function(g) {
|
|
52837
53698
|
if (s)
|
|
52838
|
-
if (g.status !== grpc$
|
|
53699
|
+
if (g.status !== grpc$3.Code.OK) {
|
|
52839
53700
|
var p = new Error(g.statusMessage);
|
|
52840
53701
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
52841
53702
|
} else
|
|
@@ -52850,7 +53711,7 @@ CameraServiceClient.prototype.doCommand = function i(e, n, s) {
|
|
|
52850
53711
|
};
|
|
52851
53712
|
CameraServiceClient.prototype.getGeometries = function i(e, n, s) {
|
|
52852
53713
|
arguments.length === 2 && (s = arguments[1]);
|
|
52853
|
-
var l = grpc$
|
|
53714
|
+
var l = grpc$3.unary(CameraService.GetGeometries, {
|
|
52854
53715
|
request: e,
|
|
52855
53716
|
host: this.serviceHost,
|
|
52856
53717
|
metadata: n,
|
|
@@ -52858,7 +53719,7 @@ CameraServiceClient.prototype.getGeometries = function i(e, n, s) {
|
|
|
52858
53719
|
debug: this.options.debug,
|
|
52859
53720
|
onEnd: function(g) {
|
|
52860
53721
|
if (s)
|
|
52861
|
-
if (g.status !== grpc$
|
|
53722
|
+
if (g.status !== grpc$3.Code.OK) {
|
|
52862
53723
|
var p = new Error(g.statusMessage);
|
|
52863
53724
|
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
52864
53725
|
} else
|
|
@@ -53161,547 +54022,6 @@ class MovementSensorClient {
|
|
|
53161
54022
|
);
|
|
53162
54023
|
}
|
|
53163
54024
|
}
|
|
53164
|
-
var powersensor_pb = {};
|
|
53165
|
-
(function(i) {
|
|
53166
|
-
var e = googleProtobuf, n = e, s = typeof globalThis < "u" && globalThis || typeof window < "u" && window || typeof s < "u" && s || typeof self < "u" && self || function() {
|
|
53167
|
-
return this;
|
|
53168
|
-
}.call(null) || Function("return this")(), l = common_pb;
|
|
53169
|
-
n.object.extend(proto, l);
|
|
53170
|
-
var g = annotations_pb$1;
|
|
53171
|
-
n.object.extend(proto, g);
|
|
53172
|
-
var p = struct_pb;
|
|
53173
|
-
n.object.extend(proto, p), n.exportSymbol("proto.viam.component.powersensor.v1.GetCurrentRequest", null, s), n.exportSymbol("proto.viam.component.powersensor.v1.GetCurrentResponse", null, s), n.exportSymbol("proto.viam.component.powersensor.v1.GetPowerRequest", null, s), n.exportSymbol("proto.viam.component.powersensor.v1.GetPowerResponse", null, s), n.exportSymbol("proto.viam.component.powersensor.v1.GetVoltageRequest", null, s), n.exportSymbol("proto.viam.component.powersensor.v1.GetVoltageResponse", null, s), proto.viam.component.powersensor.v1.GetVoltageRequest = function(t) {
|
|
53174
|
-
e.Message.initialize(this, t, 0, -1, null, null);
|
|
53175
|
-
}, n.inherits(proto.viam.component.powersensor.v1.GetVoltageRequest, e.Message), n.DEBUG && !COMPILED && (proto.viam.component.powersensor.v1.GetVoltageRequest.displayName = "proto.viam.component.powersensor.v1.GetVoltageRequest"), proto.viam.component.powersensor.v1.GetVoltageResponse = function(t) {
|
|
53176
|
-
e.Message.initialize(this, t, 0, -1, null, null);
|
|
53177
|
-
}, n.inherits(proto.viam.component.powersensor.v1.GetVoltageResponse, e.Message), n.DEBUG && !COMPILED && (proto.viam.component.powersensor.v1.GetVoltageResponse.displayName = "proto.viam.component.powersensor.v1.GetVoltageResponse"), proto.viam.component.powersensor.v1.GetCurrentRequest = function(t) {
|
|
53178
|
-
e.Message.initialize(this, t, 0, -1, null, null);
|
|
53179
|
-
}, n.inherits(proto.viam.component.powersensor.v1.GetCurrentRequest, e.Message), n.DEBUG && !COMPILED && (proto.viam.component.powersensor.v1.GetCurrentRequest.displayName = "proto.viam.component.powersensor.v1.GetCurrentRequest"), proto.viam.component.powersensor.v1.GetCurrentResponse = function(t) {
|
|
53180
|
-
e.Message.initialize(this, t, 0, -1, null, null);
|
|
53181
|
-
}, n.inherits(proto.viam.component.powersensor.v1.GetCurrentResponse, e.Message), n.DEBUG && !COMPILED && (proto.viam.component.powersensor.v1.GetCurrentResponse.displayName = "proto.viam.component.powersensor.v1.GetCurrentResponse"), proto.viam.component.powersensor.v1.GetPowerRequest = function(t) {
|
|
53182
|
-
e.Message.initialize(this, t, 0, -1, null, null);
|
|
53183
|
-
}, n.inherits(proto.viam.component.powersensor.v1.GetPowerRequest, e.Message), n.DEBUG && !COMPILED && (proto.viam.component.powersensor.v1.GetPowerRequest.displayName = "proto.viam.component.powersensor.v1.GetPowerRequest"), proto.viam.component.powersensor.v1.GetPowerResponse = function(t) {
|
|
53184
|
-
e.Message.initialize(this, t, 0, -1, null, null);
|
|
53185
|
-
}, n.inherits(proto.viam.component.powersensor.v1.GetPowerResponse, e.Message), n.DEBUG && !COMPILED && (proto.viam.component.powersensor.v1.GetPowerResponse.displayName = "proto.viam.component.powersensor.v1.GetPowerResponse"), e.Message.GENERATE_TO_OBJECT && (proto.viam.component.powersensor.v1.GetVoltageRequest.prototype.toObject = function(t) {
|
|
53186
|
-
return proto.viam.component.powersensor.v1.GetVoltageRequest.toObject(t, this);
|
|
53187
|
-
}, proto.viam.component.powersensor.v1.GetVoltageRequest.toObject = function(t, o) {
|
|
53188
|
-
var r, u = {
|
|
53189
|
-
name: e.Message.getFieldWithDefault(o, 1, ""),
|
|
53190
|
-
extra: (r = o.getExtra()) && p.Struct.toObject(t, r)
|
|
53191
|
-
};
|
|
53192
|
-
return t && (u.$jspbMessageInstance = o), u;
|
|
53193
|
-
}), proto.viam.component.powersensor.v1.GetVoltageRequest.deserializeBinary = function(t) {
|
|
53194
|
-
var o = new e.BinaryReader(t), r = new proto.viam.component.powersensor.v1.GetVoltageRequest();
|
|
53195
|
-
return proto.viam.component.powersensor.v1.GetVoltageRequest.deserializeBinaryFromReader(r, o);
|
|
53196
|
-
}, proto.viam.component.powersensor.v1.GetVoltageRequest.deserializeBinaryFromReader = function(t, o) {
|
|
53197
|
-
for (; o.nextField() && !o.isEndGroup(); ) {
|
|
53198
|
-
var r = o.getFieldNumber();
|
|
53199
|
-
switch (r) {
|
|
53200
|
-
case 1:
|
|
53201
|
-
var u = (
|
|
53202
|
-
/** @type {string} */
|
|
53203
|
-
o.readString()
|
|
53204
|
-
);
|
|
53205
|
-
t.setName(u);
|
|
53206
|
-
break;
|
|
53207
|
-
case 99:
|
|
53208
|
-
var u = new p.Struct();
|
|
53209
|
-
o.readMessage(u, p.Struct.deserializeBinaryFromReader), t.setExtra(u);
|
|
53210
|
-
break;
|
|
53211
|
-
default:
|
|
53212
|
-
o.skipField();
|
|
53213
|
-
break;
|
|
53214
|
-
}
|
|
53215
|
-
}
|
|
53216
|
-
return t;
|
|
53217
|
-
}, proto.viam.component.powersensor.v1.GetVoltageRequest.prototype.serializeBinary = function() {
|
|
53218
|
-
var t = new e.BinaryWriter();
|
|
53219
|
-
return proto.viam.component.powersensor.v1.GetVoltageRequest.serializeBinaryToWriter(this, t), t.getResultBuffer();
|
|
53220
|
-
}, proto.viam.component.powersensor.v1.GetVoltageRequest.serializeBinaryToWriter = function(t, o) {
|
|
53221
|
-
var r = void 0;
|
|
53222
|
-
r = t.getName(), r.length > 0 && o.writeString(
|
|
53223
|
-
1,
|
|
53224
|
-
r
|
|
53225
|
-
), r = t.getExtra(), r != null && o.writeMessage(
|
|
53226
|
-
99,
|
|
53227
|
-
r,
|
|
53228
|
-
p.Struct.serializeBinaryToWriter
|
|
53229
|
-
);
|
|
53230
|
-
}, proto.viam.component.powersensor.v1.GetVoltageRequest.prototype.getName = function() {
|
|
53231
|
-
return (
|
|
53232
|
-
/** @type {string} */
|
|
53233
|
-
e.Message.getFieldWithDefault(this, 1, "")
|
|
53234
|
-
);
|
|
53235
|
-
}, proto.viam.component.powersensor.v1.GetVoltageRequest.prototype.setName = function(t) {
|
|
53236
|
-
return e.Message.setProto3StringField(this, 1, t);
|
|
53237
|
-
}, proto.viam.component.powersensor.v1.GetVoltageRequest.prototype.getExtra = function() {
|
|
53238
|
-
return (
|
|
53239
|
-
/** @type{?proto.google.protobuf.Struct} */
|
|
53240
|
-
e.Message.getWrapperField(this, p.Struct, 99)
|
|
53241
|
-
);
|
|
53242
|
-
}, proto.viam.component.powersensor.v1.GetVoltageRequest.prototype.setExtra = function(t) {
|
|
53243
|
-
return e.Message.setWrapperField(this, 99, t);
|
|
53244
|
-
}, proto.viam.component.powersensor.v1.GetVoltageRequest.prototype.clearExtra = function() {
|
|
53245
|
-
return this.setExtra(void 0);
|
|
53246
|
-
}, proto.viam.component.powersensor.v1.GetVoltageRequest.prototype.hasExtra = function() {
|
|
53247
|
-
return e.Message.getField(this, 99) != null;
|
|
53248
|
-
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.component.powersensor.v1.GetVoltageResponse.prototype.toObject = function(t) {
|
|
53249
|
-
return proto.viam.component.powersensor.v1.GetVoltageResponse.toObject(t, this);
|
|
53250
|
-
}, proto.viam.component.powersensor.v1.GetVoltageResponse.toObject = function(t, o) {
|
|
53251
|
-
var r = {
|
|
53252
|
-
volts: e.Message.getFloatingPointFieldWithDefault(o, 1, 0),
|
|
53253
|
-
isAc: e.Message.getBooleanFieldWithDefault(o, 2, !1)
|
|
53254
|
-
};
|
|
53255
|
-
return t && (r.$jspbMessageInstance = o), r;
|
|
53256
|
-
}), proto.viam.component.powersensor.v1.GetVoltageResponse.deserializeBinary = function(t) {
|
|
53257
|
-
var o = new e.BinaryReader(t), r = new proto.viam.component.powersensor.v1.GetVoltageResponse();
|
|
53258
|
-
return proto.viam.component.powersensor.v1.GetVoltageResponse.deserializeBinaryFromReader(r, o);
|
|
53259
|
-
}, proto.viam.component.powersensor.v1.GetVoltageResponse.deserializeBinaryFromReader = function(t, o) {
|
|
53260
|
-
for (; o.nextField() && !o.isEndGroup(); ) {
|
|
53261
|
-
var r = o.getFieldNumber();
|
|
53262
|
-
switch (r) {
|
|
53263
|
-
case 1:
|
|
53264
|
-
var u = (
|
|
53265
|
-
/** @type {number} */
|
|
53266
|
-
o.readDouble()
|
|
53267
|
-
);
|
|
53268
|
-
t.setVolts(u);
|
|
53269
|
-
break;
|
|
53270
|
-
case 2:
|
|
53271
|
-
var u = (
|
|
53272
|
-
/** @type {boolean} */
|
|
53273
|
-
o.readBool()
|
|
53274
|
-
);
|
|
53275
|
-
t.setIsAc(u);
|
|
53276
|
-
break;
|
|
53277
|
-
default:
|
|
53278
|
-
o.skipField();
|
|
53279
|
-
break;
|
|
53280
|
-
}
|
|
53281
|
-
}
|
|
53282
|
-
return t;
|
|
53283
|
-
}, proto.viam.component.powersensor.v1.GetVoltageResponse.prototype.serializeBinary = function() {
|
|
53284
|
-
var t = new e.BinaryWriter();
|
|
53285
|
-
return proto.viam.component.powersensor.v1.GetVoltageResponse.serializeBinaryToWriter(this, t), t.getResultBuffer();
|
|
53286
|
-
}, proto.viam.component.powersensor.v1.GetVoltageResponse.serializeBinaryToWriter = function(t, o) {
|
|
53287
|
-
var r = void 0;
|
|
53288
|
-
r = t.getVolts(), r !== 0 && o.writeDouble(
|
|
53289
|
-
1,
|
|
53290
|
-
r
|
|
53291
|
-
), r = t.getIsAc(), r && o.writeBool(
|
|
53292
|
-
2,
|
|
53293
|
-
r
|
|
53294
|
-
);
|
|
53295
|
-
}, proto.viam.component.powersensor.v1.GetVoltageResponse.prototype.getVolts = function() {
|
|
53296
|
-
return (
|
|
53297
|
-
/** @type {number} */
|
|
53298
|
-
e.Message.getFloatingPointFieldWithDefault(this, 1, 0)
|
|
53299
|
-
);
|
|
53300
|
-
}, proto.viam.component.powersensor.v1.GetVoltageResponse.prototype.setVolts = function(t) {
|
|
53301
|
-
return e.Message.setProto3FloatField(this, 1, t);
|
|
53302
|
-
}, proto.viam.component.powersensor.v1.GetVoltageResponse.prototype.getIsAc = function() {
|
|
53303
|
-
return (
|
|
53304
|
-
/** @type {boolean} */
|
|
53305
|
-
e.Message.getBooleanFieldWithDefault(this, 2, !1)
|
|
53306
|
-
);
|
|
53307
|
-
}, proto.viam.component.powersensor.v1.GetVoltageResponse.prototype.setIsAc = function(t) {
|
|
53308
|
-
return e.Message.setProto3BooleanField(this, 2, t);
|
|
53309
|
-
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.component.powersensor.v1.GetCurrentRequest.prototype.toObject = function(t) {
|
|
53310
|
-
return proto.viam.component.powersensor.v1.GetCurrentRequest.toObject(t, this);
|
|
53311
|
-
}, proto.viam.component.powersensor.v1.GetCurrentRequest.toObject = function(t, o) {
|
|
53312
|
-
var r, u = {
|
|
53313
|
-
name: e.Message.getFieldWithDefault(o, 1, ""),
|
|
53314
|
-
extra: (r = o.getExtra()) && p.Struct.toObject(t, r)
|
|
53315
|
-
};
|
|
53316
|
-
return t && (u.$jspbMessageInstance = o), u;
|
|
53317
|
-
}), proto.viam.component.powersensor.v1.GetCurrentRequest.deserializeBinary = function(t) {
|
|
53318
|
-
var o = new e.BinaryReader(t), r = new proto.viam.component.powersensor.v1.GetCurrentRequest();
|
|
53319
|
-
return proto.viam.component.powersensor.v1.GetCurrentRequest.deserializeBinaryFromReader(r, o);
|
|
53320
|
-
}, proto.viam.component.powersensor.v1.GetCurrentRequest.deserializeBinaryFromReader = function(t, o) {
|
|
53321
|
-
for (; o.nextField() && !o.isEndGroup(); ) {
|
|
53322
|
-
var r = o.getFieldNumber();
|
|
53323
|
-
switch (r) {
|
|
53324
|
-
case 1:
|
|
53325
|
-
var u = (
|
|
53326
|
-
/** @type {string} */
|
|
53327
|
-
o.readString()
|
|
53328
|
-
);
|
|
53329
|
-
t.setName(u);
|
|
53330
|
-
break;
|
|
53331
|
-
case 99:
|
|
53332
|
-
var u = new p.Struct();
|
|
53333
|
-
o.readMessage(u, p.Struct.deserializeBinaryFromReader), t.setExtra(u);
|
|
53334
|
-
break;
|
|
53335
|
-
default:
|
|
53336
|
-
o.skipField();
|
|
53337
|
-
break;
|
|
53338
|
-
}
|
|
53339
|
-
}
|
|
53340
|
-
return t;
|
|
53341
|
-
}, proto.viam.component.powersensor.v1.GetCurrentRequest.prototype.serializeBinary = function() {
|
|
53342
|
-
var t = new e.BinaryWriter();
|
|
53343
|
-
return proto.viam.component.powersensor.v1.GetCurrentRequest.serializeBinaryToWriter(this, t), t.getResultBuffer();
|
|
53344
|
-
}, proto.viam.component.powersensor.v1.GetCurrentRequest.serializeBinaryToWriter = function(t, o) {
|
|
53345
|
-
var r = void 0;
|
|
53346
|
-
r = t.getName(), r.length > 0 && o.writeString(
|
|
53347
|
-
1,
|
|
53348
|
-
r
|
|
53349
|
-
), r = t.getExtra(), r != null && o.writeMessage(
|
|
53350
|
-
99,
|
|
53351
|
-
r,
|
|
53352
|
-
p.Struct.serializeBinaryToWriter
|
|
53353
|
-
);
|
|
53354
|
-
}, proto.viam.component.powersensor.v1.GetCurrentRequest.prototype.getName = function() {
|
|
53355
|
-
return (
|
|
53356
|
-
/** @type {string} */
|
|
53357
|
-
e.Message.getFieldWithDefault(this, 1, "")
|
|
53358
|
-
);
|
|
53359
|
-
}, proto.viam.component.powersensor.v1.GetCurrentRequest.prototype.setName = function(t) {
|
|
53360
|
-
return e.Message.setProto3StringField(this, 1, t);
|
|
53361
|
-
}, proto.viam.component.powersensor.v1.GetCurrentRequest.prototype.getExtra = function() {
|
|
53362
|
-
return (
|
|
53363
|
-
/** @type{?proto.google.protobuf.Struct} */
|
|
53364
|
-
e.Message.getWrapperField(this, p.Struct, 99)
|
|
53365
|
-
);
|
|
53366
|
-
}, proto.viam.component.powersensor.v1.GetCurrentRequest.prototype.setExtra = function(t) {
|
|
53367
|
-
return e.Message.setWrapperField(this, 99, t);
|
|
53368
|
-
}, proto.viam.component.powersensor.v1.GetCurrentRequest.prototype.clearExtra = function() {
|
|
53369
|
-
return this.setExtra(void 0);
|
|
53370
|
-
}, proto.viam.component.powersensor.v1.GetCurrentRequest.prototype.hasExtra = function() {
|
|
53371
|
-
return e.Message.getField(this, 99) != null;
|
|
53372
|
-
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.component.powersensor.v1.GetCurrentResponse.prototype.toObject = function(t) {
|
|
53373
|
-
return proto.viam.component.powersensor.v1.GetCurrentResponse.toObject(t, this);
|
|
53374
|
-
}, proto.viam.component.powersensor.v1.GetCurrentResponse.toObject = function(t, o) {
|
|
53375
|
-
var r = {
|
|
53376
|
-
amperes: e.Message.getFloatingPointFieldWithDefault(o, 1, 0),
|
|
53377
|
-
isAc: e.Message.getBooleanFieldWithDefault(o, 2, !1)
|
|
53378
|
-
};
|
|
53379
|
-
return t && (r.$jspbMessageInstance = o), r;
|
|
53380
|
-
}), proto.viam.component.powersensor.v1.GetCurrentResponse.deserializeBinary = function(t) {
|
|
53381
|
-
var o = new e.BinaryReader(t), r = new proto.viam.component.powersensor.v1.GetCurrentResponse();
|
|
53382
|
-
return proto.viam.component.powersensor.v1.GetCurrentResponse.deserializeBinaryFromReader(r, o);
|
|
53383
|
-
}, proto.viam.component.powersensor.v1.GetCurrentResponse.deserializeBinaryFromReader = function(t, o) {
|
|
53384
|
-
for (; o.nextField() && !o.isEndGroup(); ) {
|
|
53385
|
-
var r = o.getFieldNumber();
|
|
53386
|
-
switch (r) {
|
|
53387
|
-
case 1:
|
|
53388
|
-
var u = (
|
|
53389
|
-
/** @type {number} */
|
|
53390
|
-
o.readDouble()
|
|
53391
|
-
);
|
|
53392
|
-
t.setAmperes(u);
|
|
53393
|
-
break;
|
|
53394
|
-
case 2:
|
|
53395
|
-
var u = (
|
|
53396
|
-
/** @type {boolean} */
|
|
53397
|
-
o.readBool()
|
|
53398
|
-
);
|
|
53399
|
-
t.setIsAc(u);
|
|
53400
|
-
break;
|
|
53401
|
-
default:
|
|
53402
|
-
o.skipField();
|
|
53403
|
-
break;
|
|
53404
|
-
}
|
|
53405
|
-
}
|
|
53406
|
-
return t;
|
|
53407
|
-
}, proto.viam.component.powersensor.v1.GetCurrentResponse.prototype.serializeBinary = function() {
|
|
53408
|
-
var t = new e.BinaryWriter();
|
|
53409
|
-
return proto.viam.component.powersensor.v1.GetCurrentResponse.serializeBinaryToWriter(this, t), t.getResultBuffer();
|
|
53410
|
-
}, proto.viam.component.powersensor.v1.GetCurrentResponse.serializeBinaryToWriter = function(t, o) {
|
|
53411
|
-
var r = void 0;
|
|
53412
|
-
r = t.getAmperes(), r !== 0 && o.writeDouble(
|
|
53413
|
-
1,
|
|
53414
|
-
r
|
|
53415
|
-
), r = t.getIsAc(), r && o.writeBool(
|
|
53416
|
-
2,
|
|
53417
|
-
r
|
|
53418
|
-
);
|
|
53419
|
-
}, proto.viam.component.powersensor.v1.GetCurrentResponse.prototype.getAmperes = function() {
|
|
53420
|
-
return (
|
|
53421
|
-
/** @type {number} */
|
|
53422
|
-
e.Message.getFloatingPointFieldWithDefault(this, 1, 0)
|
|
53423
|
-
);
|
|
53424
|
-
}, proto.viam.component.powersensor.v1.GetCurrentResponse.prototype.setAmperes = function(t) {
|
|
53425
|
-
return e.Message.setProto3FloatField(this, 1, t);
|
|
53426
|
-
}, proto.viam.component.powersensor.v1.GetCurrentResponse.prototype.getIsAc = function() {
|
|
53427
|
-
return (
|
|
53428
|
-
/** @type {boolean} */
|
|
53429
|
-
e.Message.getBooleanFieldWithDefault(this, 2, !1)
|
|
53430
|
-
);
|
|
53431
|
-
}, proto.viam.component.powersensor.v1.GetCurrentResponse.prototype.setIsAc = function(t) {
|
|
53432
|
-
return e.Message.setProto3BooleanField(this, 2, t);
|
|
53433
|
-
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.component.powersensor.v1.GetPowerRequest.prototype.toObject = function(t) {
|
|
53434
|
-
return proto.viam.component.powersensor.v1.GetPowerRequest.toObject(t, this);
|
|
53435
|
-
}, proto.viam.component.powersensor.v1.GetPowerRequest.toObject = function(t, o) {
|
|
53436
|
-
var r, u = {
|
|
53437
|
-
name: e.Message.getFieldWithDefault(o, 1, ""),
|
|
53438
|
-
extra: (r = o.getExtra()) && p.Struct.toObject(t, r)
|
|
53439
|
-
};
|
|
53440
|
-
return t && (u.$jspbMessageInstance = o), u;
|
|
53441
|
-
}), proto.viam.component.powersensor.v1.GetPowerRequest.deserializeBinary = function(t) {
|
|
53442
|
-
var o = new e.BinaryReader(t), r = new proto.viam.component.powersensor.v1.GetPowerRequest();
|
|
53443
|
-
return proto.viam.component.powersensor.v1.GetPowerRequest.deserializeBinaryFromReader(r, o);
|
|
53444
|
-
}, proto.viam.component.powersensor.v1.GetPowerRequest.deserializeBinaryFromReader = function(t, o) {
|
|
53445
|
-
for (; o.nextField() && !o.isEndGroup(); ) {
|
|
53446
|
-
var r = o.getFieldNumber();
|
|
53447
|
-
switch (r) {
|
|
53448
|
-
case 1:
|
|
53449
|
-
var u = (
|
|
53450
|
-
/** @type {string} */
|
|
53451
|
-
o.readString()
|
|
53452
|
-
);
|
|
53453
|
-
t.setName(u);
|
|
53454
|
-
break;
|
|
53455
|
-
case 99:
|
|
53456
|
-
var u = new p.Struct();
|
|
53457
|
-
o.readMessage(u, p.Struct.deserializeBinaryFromReader), t.setExtra(u);
|
|
53458
|
-
break;
|
|
53459
|
-
default:
|
|
53460
|
-
o.skipField();
|
|
53461
|
-
break;
|
|
53462
|
-
}
|
|
53463
|
-
}
|
|
53464
|
-
return t;
|
|
53465
|
-
}, proto.viam.component.powersensor.v1.GetPowerRequest.prototype.serializeBinary = function() {
|
|
53466
|
-
var t = new e.BinaryWriter();
|
|
53467
|
-
return proto.viam.component.powersensor.v1.GetPowerRequest.serializeBinaryToWriter(this, t), t.getResultBuffer();
|
|
53468
|
-
}, proto.viam.component.powersensor.v1.GetPowerRequest.serializeBinaryToWriter = function(t, o) {
|
|
53469
|
-
var r = void 0;
|
|
53470
|
-
r = t.getName(), r.length > 0 && o.writeString(
|
|
53471
|
-
1,
|
|
53472
|
-
r
|
|
53473
|
-
), r = t.getExtra(), r != null && o.writeMessage(
|
|
53474
|
-
99,
|
|
53475
|
-
r,
|
|
53476
|
-
p.Struct.serializeBinaryToWriter
|
|
53477
|
-
);
|
|
53478
|
-
}, proto.viam.component.powersensor.v1.GetPowerRequest.prototype.getName = function() {
|
|
53479
|
-
return (
|
|
53480
|
-
/** @type {string} */
|
|
53481
|
-
e.Message.getFieldWithDefault(this, 1, "")
|
|
53482
|
-
);
|
|
53483
|
-
}, proto.viam.component.powersensor.v1.GetPowerRequest.prototype.setName = function(t) {
|
|
53484
|
-
return e.Message.setProto3StringField(this, 1, t);
|
|
53485
|
-
}, proto.viam.component.powersensor.v1.GetPowerRequest.prototype.getExtra = function() {
|
|
53486
|
-
return (
|
|
53487
|
-
/** @type{?proto.google.protobuf.Struct} */
|
|
53488
|
-
e.Message.getWrapperField(this, p.Struct, 99)
|
|
53489
|
-
);
|
|
53490
|
-
}, proto.viam.component.powersensor.v1.GetPowerRequest.prototype.setExtra = function(t) {
|
|
53491
|
-
return e.Message.setWrapperField(this, 99, t);
|
|
53492
|
-
}, proto.viam.component.powersensor.v1.GetPowerRequest.prototype.clearExtra = function() {
|
|
53493
|
-
return this.setExtra(void 0);
|
|
53494
|
-
}, proto.viam.component.powersensor.v1.GetPowerRequest.prototype.hasExtra = function() {
|
|
53495
|
-
return e.Message.getField(this, 99) != null;
|
|
53496
|
-
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.component.powersensor.v1.GetPowerResponse.prototype.toObject = function(t) {
|
|
53497
|
-
return proto.viam.component.powersensor.v1.GetPowerResponse.toObject(t, this);
|
|
53498
|
-
}, proto.viam.component.powersensor.v1.GetPowerResponse.toObject = function(t, o) {
|
|
53499
|
-
var r = {
|
|
53500
|
-
watts: e.Message.getFloatingPointFieldWithDefault(o, 1, 0)
|
|
53501
|
-
};
|
|
53502
|
-
return t && (r.$jspbMessageInstance = o), r;
|
|
53503
|
-
}), proto.viam.component.powersensor.v1.GetPowerResponse.deserializeBinary = function(t) {
|
|
53504
|
-
var o = new e.BinaryReader(t), r = new proto.viam.component.powersensor.v1.GetPowerResponse();
|
|
53505
|
-
return proto.viam.component.powersensor.v1.GetPowerResponse.deserializeBinaryFromReader(r, o);
|
|
53506
|
-
}, proto.viam.component.powersensor.v1.GetPowerResponse.deserializeBinaryFromReader = function(t, o) {
|
|
53507
|
-
for (; o.nextField() && !o.isEndGroup(); ) {
|
|
53508
|
-
var r = o.getFieldNumber();
|
|
53509
|
-
switch (r) {
|
|
53510
|
-
case 1:
|
|
53511
|
-
var u = (
|
|
53512
|
-
/** @type {number} */
|
|
53513
|
-
o.readDouble()
|
|
53514
|
-
);
|
|
53515
|
-
t.setWatts(u);
|
|
53516
|
-
break;
|
|
53517
|
-
default:
|
|
53518
|
-
o.skipField();
|
|
53519
|
-
break;
|
|
53520
|
-
}
|
|
53521
|
-
}
|
|
53522
|
-
return t;
|
|
53523
|
-
}, proto.viam.component.powersensor.v1.GetPowerResponse.prototype.serializeBinary = function() {
|
|
53524
|
-
var t = new e.BinaryWriter();
|
|
53525
|
-
return proto.viam.component.powersensor.v1.GetPowerResponse.serializeBinaryToWriter(this, t), t.getResultBuffer();
|
|
53526
|
-
}, proto.viam.component.powersensor.v1.GetPowerResponse.serializeBinaryToWriter = function(t, o) {
|
|
53527
|
-
var r = void 0;
|
|
53528
|
-
r = t.getWatts(), r !== 0 && o.writeDouble(
|
|
53529
|
-
1,
|
|
53530
|
-
r
|
|
53531
|
-
);
|
|
53532
|
-
}, proto.viam.component.powersensor.v1.GetPowerResponse.prototype.getWatts = function() {
|
|
53533
|
-
return (
|
|
53534
|
-
/** @type {number} */
|
|
53535
|
-
e.Message.getFloatingPointFieldWithDefault(this, 1, 0)
|
|
53536
|
-
);
|
|
53537
|
-
}, proto.viam.component.powersensor.v1.GetPowerResponse.prototype.setWatts = function(t) {
|
|
53538
|
-
return e.Message.setProto3FloatField(this, 1, t);
|
|
53539
|
-
}, n.object.extend(i, proto.viam.component.powersensor.v1);
|
|
53540
|
-
})(powersensor_pb);
|
|
53541
|
-
var component_powersensor_v1_powersensor_pb = powersensor_pb, common_v1_common_pb$3 = common_pb, grpc$3 = grpcWebClient_umdExports$1.grpc, PowerSensorService = function() {
|
|
53542
|
-
function i() {
|
|
53543
|
-
}
|
|
53544
|
-
return i.serviceName = "viam.component.powersensor.v1.PowerSensorService", i;
|
|
53545
|
-
}();
|
|
53546
|
-
PowerSensorService.GetVoltage = {
|
|
53547
|
-
methodName: "GetVoltage",
|
|
53548
|
-
service: PowerSensorService,
|
|
53549
|
-
requestStream: !1,
|
|
53550
|
-
responseStream: !1,
|
|
53551
|
-
requestType: component_powersensor_v1_powersensor_pb.GetVoltageRequest,
|
|
53552
|
-
responseType: component_powersensor_v1_powersensor_pb.GetVoltageResponse
|
|
53553
|
-
};
|
|
53554
|
-
PowerSensorService.GetCurrent = {
|
|
53555
|
-
methodName: "GetCurrent",
|
|
53556
|
-
service: PowerSensorService,
|
|
53557
|
-
requestStream: !1,
|
|
53558
|
-
responseStream: !1,
|
|
53559
|
-
requestType: component_powersensor_v1_powersensor_pb.GetCurrentRequest,
|
|
53560
|
-
responseType: component_powersensor_v1_powersensor_pb.GetCurrentResponse
|
|
53561
|
-
};
|
|
53562
|
-
PowerSensorService.GetPower = {
|
|
53563
|
-
methodName: "GetPower",
|
|
53564
|
-
service: PowerSensorService,
|
|
53565
|
-
requestStream: !1,
|
|
53566
|
-
responseStream: !1,
|
|
53567
|
-
requestType: component_powersensor_v1_powersensor_pb.GetPowerRequest,
|
|
53568
|
-
responseType: component_powersensor_v1_powersensor_pb.GetPowerResponse
|
|
53569
|
-
};
|
|
53570
|
-
PowerSensorService.GetReadings = {
|
|
53571
|
-
methodName: "GetReadings",
|
|
53572
|
-
service: PowerSensorService,
|
|
53573
|
-
requestStream: !1,
|
|
53574
|
-
responseStream: !1,
|
|
53575
|
-
requestType: common_v1_common_pb$3.GetReadingsRequest,
|
|
53576
|
-
responseType: common_v1_common_pb$3.GetReadingsResponse
|
|
53577
|
-
};
|
|
53578
|
-
PowerSensorService.DoCommand = {
|
|
53579
|
-
methodName: "DoCommand",
|
|
53580
|
-
service: PowerSensorService,
|
|
53581
|
-
requestStream: !1,
|
|
53582
|
-
responseStream: !1,
|
|
53583
|
-
requestType: common_v1_common_pb$3.DoCommandRequest,
|
|
53584
|
-
responseType: common_v1_common_pb$3.DoCommandResponse
|
|
53585
|
-
};
|
|
53586
|
-
function PowerSensorServiceClient(i, e) {
|
|
53587
|
-
this.serviceHost = i, this.options = e || {};
|
|
53588
|
-
}
|
|
53589
|
-
PowerSensorServiceClient.prototype.getVoltage = function i(e, n, s) {
|
|
53590
|
-
arguments.length === 2 && (s = arguments[1]);
|
|
53591
|
-
var l = grpc$3.unary(PowerSensorService.GetVoltage, {
|
|
53592
|
-
request: e,
|
|
53593
|
-
host: this.serviceHost,
|
|
53594
|
-
metadata: n,
|
|
53595
|
-
transport: this.options.transport,
|
|
53596
|
-
debug: this.options.debug,
|
|
53597
|
-
onEnd: function(g) {
|
|
53598
|
-
if (s)
|
|
53599
|
-
if (g.status !== grpc$3.Code.OK) {
|
|
53600
|
-
var p = new Error(g.statusMessage);
|
|
53601
|
-
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
53602
|
-
} else
|
|
53603
|
-
s(null, g.message);
|
|
53604
|
-
}
|
|
53605
|
-
});
|
|
53606
|
-
return {
|
|
53607
|
-
cancel: function() {
|
|
53608
|
-
s = null, l.close();
|
|
53609
|
-
}
|
|
53610
|
-
};
|
|
53611
|
-
};
|
|
53612
|
-
PowerSensorServiceClient.prototype.getCurrent = function i(e, n, s) {
|
|
53613
|
-
arguments.length === 2 && (s = arguments[1]);
|
|
53614
|
-
var l = grpc$3.unary(PowerSensorService.GetCurrent, {
|
|
53615
|
-
request: e,
|
|
53616
|
-
host: this.serviceHost,
|
|
53617
|
-
metadata: n,
|
|
53618
|
-
transport: this.options.transport,
|
|
53619
|
-
debug: this.options.debug,
|
|
53620
|
-
onEnd: function(g) {
|
|
53621
|
-
if (s)
|
|
53622
|
-
if (g.status !== grpc$3.Code.OK) {
|
|
53623
|
-
var p = new Error(g.statusMessage);
|
|
53624
|
-
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
53625
|
-
} else
|
|
53626
|
-
s(null, g.message);
|
|
53627
|
-
}
|
|
53628
|
-
});
|
|
53629
|
-
return {
|
|
53630
|
-
cancel: function() {
|
|
53631
|
-
s = null, l.close();
|
|
53632
|
-
}
|
|
53633
|
-
};
|
|
53634
|
-
};
|
|
53635
|
-
PowerSensorServiceClient.prototype.getPower = function i(e, n, s) {
|
|
53636
|
-
arguments.length === 2 && (s = arguments[1]);
|
|
53637
|
-
var l = grpc$3.unary(PowerSensorService.GetPower, {
|
|
53638
|
-
request: e,
|
|
53639
|
-
host: this.serviceHost,
|
|
53640
|
-
metadata: n,
|
|
53641
|
-
transport: this.options.transport,
|
|
53642
|
-
debug: this.options.debug,
|
|
53643
|
-
onEnd: function(g) {
|
|
53644
|
-
if (s)
|
|
53645
|
-
if (g.status !== grpc$3.Code.OK) {
|
|
53646
|
-
var p = new Error(g.statusMessage);
|
|
53647
|
-
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
53648
|
-
} else
|
|
53649
|
-
s(null, g.message);
|
|
53650
|
-
}
|
|
53651
|
-
});
|
|
53652
|
-
return {
|
|
53653
|
-
cancel: function() {
|
|
53654
|
-
s = null, l.close();
|
|
53655
|
-
}
|
|
53656
|
-
};
|
|
53657
|
-
};
|
|
53658
|
-
PowerSensorServiceClient.prototype.getReadings = function i(e, n, s) {
|
|
53659
|
-
arguments.length === 2 && (s = arguments[1]);
|
|
53660
|
-
var l = grpc$3.unary(PowerSensorService.GetReadings, {
|
|
53661
|
-
request: e,
|
|
53662
|
-
host: this.serviceHost,
|
|
53663
|
-
metadata: n,
|
|
53664
|
-
transport: this.options.transport,
|
|
53665
|
-
debug: this.options.debug,
|
|
53666
|
-
onEnd: function(g) {
|
|
53667
|
-
if (s)
|
|
53668
|
-
if (g.status !== grpc$3.Code.OK) {
|
|
53669
|
-
var p = new Error(g.statusMessage);
|
|
53670
|
-
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
53671
|
-
} else
|
|
53672
|
-
s(null, g.message);
|
|
53673
|
-
}
|
|
53674
|
-
});
|
|
53675
|
-
return {
|
|
53676
|
-
cancel: function() {
|
|
53677
|
-
s = null, l.close();
|
|
53678
|
-
}
|
|
53679
|
-
};
|
|
53680
|
-
};
|
|
53681
|
-
PowerSensorServiceClient.prototype.doCommand = function i(e, n, s) {
|
|
53682
|
-
arguments.length === 2 && (s = arguments[1]);
|
|
53683
|
-
var l = grpc$3.unary(PowerSensorService.DoCommand, {
|
|
53684
|
-
request: e,
|
|
53685
|
-
host: this.serviceHost,
|
|
53686
|
-
metadata: n,
|
|
53687
|
-
transport: this.options.transport,
|
|
53688
|
-
debug: this.options.debug,
|
|
53689
|
-
onEnd: function(g) {
|
|
53690
|
-
if (s)
|
|
53691
|
-
if (g.status !== grpc$3.Code.OK) {
|
|
53692
|
-
var p = new Error(g.statusMessage);
|
|
53693
|
-
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
53694
|
-
} else
|
|
53695
|
-
s(null, g.message);
|
|
53696
|
-
}
|
|
53697
|
-
});
|
|
53698
|
-
return {
|
|
53699
|
-
cancel: function() {
|
|
53700
|
-
s = null, l.close();
|
|
53701
|
-
}
|
|
53702
|
-
};
|
|
53703
|
-
};
|
|
53704
|
-
var PowerSensorServiceClient_1 = PowerSensorServiceClient;
|
|
53705
54025
|
class PowerSensorClient {
|
|
53706
54026
|
client;
|
|
53707
54027
|
name;
|
|
@@ -54797,7 +55117,7 @@ const concatArrayU8 = (i) => {
|
|
|
54797
55117
|
for (const l of i)
|
|
54798
55118
|
n.set(l, s), s += l.length;
|
|
54799
55119
|
return n;
|
|
54800
|
-
}, version = "0.7.0
|
|
55120
|
+
}, version = "0.7.0";
|
|
54801
55121
|
export {
|
|
54802
55122
|
ArmClient,
|
|
54803
55123
|
BaseClient,
|