motion-master-client 0.0.309 → 0.0.311
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/package.json +1 -1
- package/src/lib/fetch.js +2 -2
- package/src/lib/fetch.js.map +1 -1
- package/src/lib/motion-master-req-res-client.d.ts +13 -1
- package/src/lib/motion-master-req-res-client.js +20 -0
- package/src/lib/motion-master-req-res-client.js.map +1 -1
- package/src/lib/motion-master.proto.d.ts +184 -2
- package/src/lib/motion-master.proto.js +1922 -4
- package/src/lib/request-status-resolver.js +9 -0
- package/src/lib/request-status-resolver.js.map +1 -1
- package/src/lib/types.d.ts +3 -0
- package/src/lib/types.js.map +1 -1
- package/src/lib/util.d.ts +13 -0
- package/src/lib/util.js +32 -1
- package/src/lib/util.js.map +1 -1
|
@@ -360,6 +360,8 @@ $root.motionmaster = (() => {
|
|
|
360
360
|
* @property {motionmaster.MotionMasterMessage.Request.IStopCirculoEncoderNarrowAngleCalibrationProcedure|null} [stopCirculoEncoderNarrowAngleCalibrationProcedure] Request stopCirculoEncoderNarrowAngleCalibrationProcedure
|
|
361
361
|
* @property {motionmaster.MotionMasterMessage.Request.IStartOsCommand|null} [startOsCommand] Request startOsCommand
|
|
362
362
|
* @property {motionmaster.MotionMasterMessage.Request.IExecuteForwardCall|null} [executeForwardCall] Request executeForwardCall
|
|
363
|
+
* @property {motionmaster.MotionMasterMessage.Request.IGetSystemInformation|null} [getSystemInformation] Request getSystemInformation
|
|
364
|
+
* @property {motionmaster.MotionMasterMessage.Request.ISetPdoMode|null} [setPdoMode] Request setPdoMode
|
|
363
365
|
*/
|
|
364
366
|
|
|
365
367
|
/**
|
|
@@ -769,17 +771,33 @@ $root.motionmaster = (() => {
|
|
|
769
771
|
*/
|
|
770
772
|
Request.prototype.executeForwardCall = null;
|
|
771
773
|
|
|
774
|
+
/**
|
|
775
|
+
* Request getSystemInformation.
|
|
776
|
+
* @member {motionmaster.MotionMasterMessage.Request.IGetSystemInformation|null|undefined} getSystemInformation
|
|
777
|
+
* @memberof motionmaster.MotionMasterMessage.Request
|
|
778
|
+
* @instance
|
|
779
|
+
*/
|
|
780
|
+
Request.prototype.getSystemInformation = null;
|
|
781
|
+
|
|
782
|
+
/**
|
|
783
|
+
* Request setPdoMode.
|
|
784
|
+
* @member {motionmaster.MotionMasterMessage.Request.ISetPdoMode|null|undefined} setPdoMode
|
|
785
|
+
* @memberof motionmaster.MotionMasterMessage.Request
|
|
786
|
+
* @instance
|
|
787
|
+
*/
|
|
788
|
+
Request.prototype.setPdoMode = null;
|
|
789
|
+
|
|
772
790
|
// OneOf field names bound to virtual getters and setters
|
|
773
791
|
let $oneOfFields;
|
|
774
792
|
|
|
775
793
|
/**
|
|
776
794
|
* Request type.
|
|
777
|
-
* @member {"pingSystem"|"getSystemVersion"|"getDeviceInfo"|"getDeviceParameterInfo"|"getDeviceParameterValues"|"getMultiDeviceParameterValues"|"setDeviceParameterValues"|"setMultiDeviceParameterValues"|"getDeviceFileList"|"getDeviceFile"|"setDeviceFile"|"deleteDeviceFile"|"resetDeviceFault"|"stopDevice"|"startDeviceFirmwareInstallation"|"getDeviceLog"|"startCoggingTorqueRecording"|"getCoggingTorqueData"|"startOffsetDetection"|"startPlantIdentification"|"computeAutoTuningGains"|"setMotionControllerParameters"|"enableMotionController"|"disableMotionController"|"setSignalGeneratorParameters"|"startSignalGenerator"|"stopSignalGenerator"|"startMonitoringDeviceParameterValues"|"stopMonitoringDeviceParameterValues"|"getEthercatNetworkState"|"setEthercatNetworkState"|"startNarrowAngleCalibration"|"setSystemClientTimeout"|"startSystemIdentification"|"getCirculoEncoderMagnetDistance"|"startCirculoEncoderNarrowAngleCalibrationProcedure"|"getDeviceCia402State"|"setDeviceCia402State"|"getSystemLog"|"startDeviceSiiRestore"|"startOpenLoopFieldControl"|"computeFullAutoTuningGains"|"startFullAutoTuning"|"stopFullAutoTuning"|"startCirculoEncoderConfiguration"|"stopCirculoEncoderNarrowAngleCalibrationProcedure"|"startOsCommand"|"executeForwardCall"|undefined} type
|
|
795
|
+
* @member {"pingSystem"|"getSystemVersion"|"getDeviceInfo"|"getDeviceParameterInfo"|"getDeviceParameterValues"|"getMultiDeviceParameterValues"|"setDeviceParameterValues"|"setMultiDeviceParameterValues"|"getDeviceFileList"|"getDeviceFile"|"setDeviceFile"|"deleteDeviceFile"|"resetDeviceFault"|"stopDevice"|"startDeviceFirmwareInstallation"|"getDeviceLog"|"startCoggingTorqueRecording"|"getCoggingTorqueData"|"startOffsetDetection"|"startPlantIdentification"|"computeAutoTuningGains"|"setMotionControllerParameters"|"enableMotionController"|"disableMotionController"|"setSignalGeneratorParameters"|"startSignalGenerator"|"stopSignalGenerator"|"startMonitoringDeviceParameterValues"|"stopMonitoringDeviceParameterValues"|"getEthercatNetworkState"|"setEthercatNetworkState"|"startNarrowAngleCalibration"|"setSystemClientTimeout"|"startSystemIdentification"|"getCirculoEncoderMagnetDistance"|"startCirculoEncoderNarrowAngleCalibrationProcedure"|"getDeviceCia402State"|"setDeviceCia402State"|"getSystemLog"|"startDeviceSiiRestore"|"startOpenLoopFieldControl"|"computeFullAutoTuningGains"|"startFullAutoTuning"|"stopFullAutoTuning"|"startCirculoEncoderConfiguration"|"stopCirculoEncoderNarrowAngleCalibrationProcedure"|"startOsCommand"|"executeForwardCall"|"getSystemInformation"|"setPdoMode"|undefined} type
|
|
778
796
|
* @memberof motionmaster.MotionMasterMessage.Request
|
|
779
797
|
* @instance
|
|
780
798
|
*/
|
|
781
799
|
Object.defineProperty(Request.prototype, "type", {
|
|
782
|
-
get: $util.oneOfGetter($oneOfFields = ["pingSystem", "getSystemVersion", "getDeviceInfo", "getDeviceParameterInfo", "getDeviceParameterValues", "getMultiDeviceParameterValues", "setDeviceParameterValues", "setMultiDeviceParameterValues", "getDeviceFileList", "getDeviceFile", "setDeviceFile", "deleteDeviceFile", "resetDeviceFault", "stopDevice", "startDeviceFirmwareInstallation", "getDeviceLog", "startCoggingTorqueRecording", "getCoggingTorqueData", "startOffsetDetection", "startPlantIdentification", "computeAutoTuningGains", "setMotionControllerParameters", "enableMotionController", "disableMotionController", "setSignalGeneratorParameters", "startSignalGenerator", "stopSignalGenerator", "startMonitoringDeviceParameterValues", "stopMonitoringDeviceParameterValues", "getEthercatNetworkState", "setEthercatNetworkState", "startNarrowAngleCalibration", "setSystemClientTimeout", "startSystemIdentification", "getCirculoEncoderMagnetDistance", "startCirculoEncoderNarrowAngleCalibrationProcedure", "getDeviceCia402State", "setDeviceCia402State", "getSystemLog", "startDeviceSiiRestore", "startOpenLoopFieldControl", "computeFullAutoTuningGains", "startFullAutoTuning", "stopFullAutoTuning", "startCirculoEncoderConfiguration", "stopCirculoEncoderNarrowAngleCalibrationProcedure", "startOsCommand", "executeForwardCall"]),
|
|
800
|
+
get: $util.oneOfGetter($oneOfFields = ["pingSystem", "getSystemVersion", "getDeviceInfo", "getDeviceParameterInfo", "getDeviceParameterValues", "getMultiDeviceParameterValues", "setDeviceParameterValues", "setMultiDeviceParameterValues", "getDeviceFileList", "getDeviceFile", "setDeviceFile", "deleteDeviceFile", "resetDeviceFault", "stopDevice", "startDeviceFirmwareInstallation", "getDeviceLog", "startCoggingTorqueRecording", "getCoggingTorqueData", "startOffsetDetection", "startPlantIdentification", "computeAutoTuningGains", "setMotionControllerParameters", "enableMotionController", "disableMotionController", "setSignalGeneratorParameters", "startSignalGenerator", "stopSignalGenerator", "startMonitoringDeviceParameterValues", "stopMonitoringDeviceParameterValues", "getEthercatNetworkState", "setEthercatNetworkState", "startNarrowAngleCalibration", "setSystemClientTimeout", "startSystemIdentification", "getCirculoEncoderMagnetDistance", "startCirculoEncoderNarrowAngleCalibrationProcedure", "getDeviceCia402State", "setDeviceCia402State", "getSystemLog", "startDeviceSiiRestore", "startOpenLoopFieldControl", "computeFullAutoTuningGains", "startFullAutoTuning", "stopFullAutoTuning", "startCirculoEncoderConfiguration", "stopCirculoEncoderNarrowAngleCalibrationProcedure", "startOsCommand", "executeForwardCall", "getSystemInformation", "setPdoMode"]),
|
|
783
801
|
set: $util.oneOfSetter($oneOfFields)
|
|
784
802
|
});
|
|
785
803
|
|
|
@@ -905,6 +923,10 @@ $root.motionmaster = (() => {
|
|
|
905
923
|
$root.motionmaster.MotionMasterMessage.Request.StartOsCommand.encode(message.startOsCommand, writer.uint32(/* id 147, wireType 2 =*/1178).fork()).ldelim();
|
|
906
924
|
if (message.executeForwardCall != null && Object.hasOwnProperty.call(message, "executeForwardCall"))
|
|
907
925
|
$root.motionmaster.MotionMasterMessage.Request.ExecuteForwardCall.encode(message.executeForwardCall, writer.uint32(/* id 148, wireType 2 =*/1186).fork()).ldelim();
|
|
926
|
+
if (message.getSystemInformation != null && Object.hasOwnProperty.call(message, "getSystemInformation"))
|
|
927
|
+
$root.motionmaster.MotionMasterMessage.Request.GetSystemInformation.encode(message.getSystemInformation, writer.uint32(/* id 149, wireType 2 =*/1194).fork()).ldelim();
|
|
928
|
+
if (message.setPdoMode != null && Object.hasOwnProperty.call(message, "setPdoMode"))
|
|
929
|
+
$root.motionmaster.MotionMasterMessage.Request.SetPdoMode.encode(message.setPdoMode, writer.uint32(/* id 150, wireType 2 =*/1202).fork()).ldelim();
|
|
908
930
|
return writer;
|
|
909
931
|
};
|
|
910
932
|
|
|
@@ -1135,6 +1157,14 @@ $root.motionmaster = (() => {
|
|
|
1135
1157
|
message.executeForwardCall = $root.motionmaster.MotionMasterMessage.Request.ExecuteForwardCall.decode(reader, reader.uint32());
|
|
1136
1158
|
break;
|
|
1137
1159
|
}
|
|
1160
|
+
case 149: {
|
|
1161
|
+
message.getSystemInformation = $root.motionmaster.MotionMasterMessage.Request.GetSystemInformation.decode(reader, reader.uint32());
|
|
1162
|
+
break;
|
|
1163
|
+
}
|
|
1164
|
+
case 150: {
|
|
1165
|
+
message.setPdoMode = $root.motionmaster.MotionMasterMessage.Request.SetPdoMode.decode(reader, reader.uint32());
|
|
1166
|
+
break;
|
|
1167
|
+
}
|
|
1138
1168
|
default:
|
|
1139
1169
|
reader.skipType(tag & 7);
|
|
1140
1170
|
break;
|
|
@@ -1652,6 +1682,26 @@ $root.motionmaster = (() => {
|
|
|
1652
1682
|
return "executeForwardCall." + error;
|
|
1653
1683
|
}
|
|
1654
1684
|
}
|
|
1685
|
+
if (message.getSystemInformation != null && message.hasOwnProperty("getSystemInformation")) {
|
|
1686
|
+
if (properties.type === 1)
|
|
1687
|
+
return "type: multiple values";
|
|
1688
|
+
properties.type = 1;
|
|
1689
|
+
{
|
|
1690
|
+
let error = $root.motionmaster.MotionMasterMessage.Request.GetSystemInformation.verify(message.getSystemInformation);
|
|
1691
|
+
if (error)
|
|
1692
|
+
return "getSystemInformation." + error;
|
|
1693
|
+
}
|
|
1694
|
+
}
|
|
1695
|
+
if (message.setPdoMode != null && message.hasOwnProperty("setPdoMode")) {
|
|
1696
|
+
if (properties.type === 1)
|
|
1697
|
+
return "type: multiple values";
|
|
1698
|
+
properties.type = 1;
|
|
1699
|
+
{
|
|
1700
|
+
let error = $root.motionmaster.MotionMasterMessage.Request.SetPdoMode.verify(message.setPdoMode);
|
|
1701
|
+
if (error)
|
|
1702
|
+
return "setPdoMode." + error;
|
|
1703
|
+
}
|
|
1704
|
+
}
|
|
1655
1705
|
return null;
|
|
1656
1706
|
};
|
|
1657
1707
|
|
|
@@ -1909,6 +1959,16 @@ $root.motionmaster = (() => {
|
|
|
1909
1959
|
throw TypeError(".motionmaster.MotionMasterMessage.Request.executeForwardCall: object expected");
|
|
1910
1960
|
message.executeForwardCall = $root.motionmaster.MotionMasterMessage.Request.ExecuteForwardCall.fromObject(object.executeForwardCall);
|
|
1911
1961
|
}
|
|
1962
|
+
if (object.getSystemInformation != null) {
|
|
1963
|
+
if (typeof object.getSystemInformation !== "object")
|
|
1964
|
+
throw TypeError(".motionmaster.MotionMasterMessage.Request.getSystemInformation: object expected");
|
|
1965
|
+
message.getSystemInformation = $root.motionmaster.MotionMasterMessage.Request.GetSystemInformation.fromObject(object.getSystemInformation);
|
|
1966
|
+
}
|
|
1967
|
+
if (object.setPdoMode != null) {
|
|
1968
|
+
if (typeof object.setPdoMode !== "object")
|
|
1969
|
+
throw TypeError(".motionmaster.MotionMasterMessage.Request.setPdoMode: object expected");
|
|
1970
|
+
message.setPdoMode = $root.motionmaster.MotionMasterMessage.Request.SetPdoMode.fromObject(object.setPdoMode);
|
|
1971
|
+
}
|
|
1912
1972
|
return message;
|
|
1913
1973
|
};
|
|
1914
1974
|
|
|
@@ -2169,6 +2229,16 @@ $root.motionmaster = (() => {
|
|
|
2169
2229
|
if (options.oneofs)
|
|
2170
2230
|
object.type = "executeForwardCall";
|
|
2171
2231
|
}
|
|
2232
|
+
if (message.getSystemInformation != null && message.hasOwnProperty("getSystemInformation")) {
|
|
2233
|
+
object.getSystemInformation = $root.motionmaster.MotionMasterMessage.Request.GetSystemInformation.toObject(message.getSystemInformation, options);
|
|
2234
|
+
if (options.oneofs)
|
|
2235
|
+
object.type = "getSystemInformation";
|
|
2236
|
+
}
|
|
2237
|
+
if (message.setPdoMode != null && message.hasOwnProperty("setPdoMode")) {
|
|
2238
|
+
object.setPdoMode = $root.motionmaster.MotionMasterMessage.Request.SetPdoMode.toObject(message.setPdoMode, options);
|
|
2239
|
+
if (options.oneofs)
|
|
2240
|
+
object.type = "setPdoMode";
|
|
2241
|
+
}
|
|
2172
2242
|
return object;
|
|
2173
2243
|
};
|
|
2174
2244
|
|
|
@@ -5906,6 +5976,7 @@ $root.motionmaster = (() => {
|
|
|
5906
5976
|
* @property {number|null} [deviceAddress] StartDeviceFirmwareInstallation deviceAddress
|
|
5907
5977
|
* @property {Uint8Array|null} [firmwarePackageContent] StartDeviceFirmwareInstallation firmwarePackageContent
|
|
5908
5978
|
* @property {boolean|null} [skipSiiInstallation] StartDeviceFirmwareInstallation skipSiiInstallation
|
|
5979
|
+
* @property {Array.<string>|null} [skipFiles] StartDeviceFirmwareInstallation skipFiles
|
|
5909
5980
|
*/
|
|
5910
5981
|
|
|
5911
5982
|
/**
|
|
@@ -5917,6 +5988,7 @@ $root.motionmaster = (() => {
|
|
|
5917
5988
|
* @param {motionmaster.MotionMasterMessage.Request.IStartDeviceFirmwareInstallation=} [properties] Properties to set
|
|
5918
5989
|
*/
|
|
5919
5990
|
function StartDeviceFirmwareInstallation(properties) {
|
|
5991
|
+
this.skipFiles = [];
|
|
5920
5992
|
if (properties)
|
|
5921
5993
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
5922
5994
|
if (properties[keys[i]] != null)
|
|
@@ -5947,6 +6019,14 @@ $root.motionmaster = (() => {
|
|
|
5947
6019
|
*/
|
|
5948
6020
|
StartDeviceFirmwareInstallation.prototype.skipSiiInstallation = false;
|
|
5949
6021
|
|
|
6022
|
+
/**
|
|
6023
|
+
* StartDeviceFirmwareInstallation skipFiles.
|
|
6024
|
+
* @member {Array.<string>} skipFiles
|
|
6025
|
+
* @memberof motionmaster.MotionMasterMessage.Request.StartDeviceFirmwareInstallation
|
|
6026
|
+
* @instance
|
|
6027
|
+
*/
|
|
6028
|
+
StartDeviceFirmwareInstallation.prototype.skipFiles = $util.emptyArray;
|
|
6029
|
+
|
|
5950
6030
|
/**
|
|
5951
6031
|
* Creates a new StartDeviceFirmwareInstallation instance using the specified properties.
|
|
5952
6032
|
* @function create
|
|
@@ -5977,6 +6057,9 @@ $root.motionmaster = (() => {
|
|
|
5977
6057
|
writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.firmwarePackageContent);
|
|
5978
6058
|
if (message.skipSiiInstallation != null && Object.hasOwnProperty.call(message, "skipSiiInstallation"))
|
|
5979
6059
|
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.skipSiiInstallation);
|
|
6060
|
+
if (message.skipFiles != null && message.skipFiles.length)
|
|
6061
|
+
for (let i = 0; i < message.skipFiles.length; ++i)
|
|
6062
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.skipFiles[i]);
|
|
5980
6063
|
return writer;
|
|
5981
6064
|
};
|
|
5982
6065
|
|
|
@@ -6023,6 +6106,12 @@ $root.motionmaster = (() => {
|
|
|
6023
6106
|
message.skipSiiInstallation = reader.bool();
|
|
6024
6107
|
break;
|
|
6025
6108
|
}
|
|
6109
|
+
case 4: {
|
|
6110
|
+
if (!(message.skipFiles && message.skipFiles.length))
|
|
6111
|
+
message.skipFiles = [];
|
|
6112
|
+
message.skipFiles.push(reader.string());
|
|
6113
|
+
break;
|
|
6114
|
+
}
|
|
6026
6115
|
default:
|
|
6027
6116
|
reader.skipType(tag & 7);
|
|
6028
6117
|
break;
|
|
@@ -6067,6 +6156,13 @@ $root.motionmaster = (() => {
|
|
|
6067
6156
|
if (message.skipSiiInstallation != null && message.hasOwnProperty("skipSiiInstallation"))
|
|
6068
6157
|
if (typeof message.skipSiiInstallation !== "boolean")
|
|
6069
6158
|
return "skipSiiInstallation: boolean expected";
|
|
6159
|
+
if (message.skipFiles != null && message.hasOwnProperty("skipFiles")) {
|
|
6160
|
+
if (!Array.isArray(message.skipFiles))
|
|
6161
|
+
return "skipFiles: array expected";
|
|
6162
|
+
for (let i = 0; i < message.skipFiles.length; ++i)
|
|
6163
|
+
if (!$util.isString(message.skipFiles[i]))
|
|
6164
|
+
return "skipFiles: string[] expected";
|
|
6165
|
+
}
|
|
6070
6166
|
return null;
|
|
6071
6167
|
};
|
|
6072
6168
|
|
|
@@ -6091,6 +6187,13 @@ $root.motionmaster = (() => {
|
|
|
6091
6187
|
message.firmwarePackageContent = object.firmwarePackageContent;
|
|
6092
6188
|
if (object.skipSiiInstallation != null)
|
|
6093
6189
|
message.skipSiiInstallation = Boolean(object.skipSiiInstallation);
|
|
6190
|
+
if (object.skipFiles) {
|
|
6191
|
+
if (!Array.isArray(object.skipFiles))
|
|
6192
|
+
throw TypeError(".motionmaster.MotionMasterMessage.Request.StartDeviceFirmwareInstallation.skipFiles: array expected");
|
|
6193
|
+
message.skipFiles = [];
|
|
6194
|
+
for (let i = 0; i < object.skipFiles.length; ++i)
|
|
6195
|
+
message.skipFiles[i] = String(object.skipFiles[i]);
|
|
6196
|
+
}
|
|
6094
6197
|
return message;
|
|
6095
6198
|
};
|
|
6096
6199
|
|
|
@@ -6107,6 +6210,8 @@ $root.motionmaster = (() => {
|
|
|
6107
6210
|
if (!options)
|
|
6108
6211
|
options = {};
|
|
6109
6212
|
let object = {};
|
|
6213
|
+
if (options.arrays || options.defaults)
|
|
6214
|
+
object.skipFiles = [];
|
|
6110
6215
|
if (options.defaults) {
|
|
6111
6216
|
object.deviceAddress = 0;
|
|
6112
6217
|
if (options.bytes === String)
|
|
@@ -6124,6 +6229,11 @@ $root.motionmaster = (() => {
|
|
|
6124
6229
|
object.firmwarePackageContent = options.bytes === String ? $util.base64.encode(message.firmwarePackageContent, 0, message.firmwarePackageContent.length) : options.bytes === Array ? Array.prototype.slice.call(message.firmwarePackageContent) : message.firmwarePackageContent;
|
|
6125
6230
|
if (message.skipSiiInstallation != null && message.hasOwnProperty("skipSiiInstallation"))
|
|
6126
6231
|
object.skipSiiInstallation = message.skipSiiInstallation;
|
|
6232
|
+
if (message.skipFiles && message.skipFiles.length) {
|
|
6233
|
+
object.skipFiles = [];
|
|
6234
|
+
for (let j = 0; j < message.skipFiles.length; ++j)
|
|
6235
|
+
object.skipFiles[j] = message.skipFiles[j];
|
|
6236
|
+
}
|
|
6127
6237
|
return object;
|
|
6128
6238
|
};
|
|
6129
6239
|
|
|
@@ -20686,6 +20796,408 @@ $root.motionmaster = (() => {
|
|
|
20686
20796
|
return ExecuteForwardCall;
|
|
20687
20797
|
})();
|
|
20688
20798
|
|
|
20799
|
+
Request.GetSystemInformation = (function() {
|
|
20800
|
+
|
|
20801
|
+
/**
|
|
20802
|
+
* Properties of a GetSystemInformation.
|
|
20803
|
+
* @memberof motionmaster.MotionMasterMessage.Request
|
|
20804
|
+
* @interface IGetSystemInformation
|
|
20805
|
+
*/
|
|
20806
|
+
|
|
20807
|
+
/**
|
|
20808
|
+
* Constructs a new GetSystemInformation.
|
|
20809
|
+
* @memberof motionmaster.MotionMasterMessage.Request
|
|
20810
|
+
* @classdesc Represents a GetSystemInformation.
|
|
20811
|
+
* @implements IGetSystemInformation
|
|
20812
|
+
* @constructor
|
|
20813
|
+
* @param {motionmaster.MotionMasterMessage.Request.IGetSystemInformation=} [properties] Properties to set
|
|
20814
|
+
*/
|
|
20815
|
+
function GetSystemInformation(properties) {
|
|
20816
|
+
if (properties)
|
|
20817
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
20818
|
+
if (properties[keys[i]] != null)
|
|
20819
|
+
this[keys[i]] = properties[keys[i]];
|
|
20820
|
+
}
|
|
20821
|
+
|
|
20822
|
+
/**
|
|
20823
|
+
* Creates a new GetSystemInformation instance using the specified properties.
|
|
20824
|
+
* @function create
|
|
20825
|
+
* @memberof motionmaster.MotionMasterMessage.Request.GetSystemInformation
|
|
20826
|
+
* @static
|
|
20827
|
+
* @param {motionmaster.MotionMasterMessage.Request.IGetSystemInformation=} [properties] Properties to set
|
|
20828
|
+
* @returns {motionmaster.MotionMasterMessage.Request.GetSystemInformation} GetSystemInformation instance
|
|
20829
|
+
*/
|
|
20830
|
+
GetSystemInformation.create = function create(properties) {
|
|
20831
|
+
return new GetSystemInformation(properties);
|
|
20832
|
+
};
|
|
20833
|
+
|
|
20834
|
+
/**
|
|
20835
|
+
* Encodes the specified GetSystemInformation message. Does not implicitly {@link motionmaster.MotionMasterMessage.Request.GetSystemInformation.verify|verify} messages.
|
|
20836
|
+
* @function encode
|
|
20837
|
+
* @memberof motionmaster.MotionMasterMessage.Request.GetSystemInformation
|
|
20838
|
+
* @static
|
|
20839
|
+
* @param {motionmaster.MotionMasterMessage.Request.IGetSystemInformation} message GetSystemInformation message or plain object to encode
|
|
20840
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
20841
|
+
* @returns {$protobuf.Writer} Writer
|
|
20842
|
+
*/
|
|
20843
|
+
GetSystemInformation.encode = function encode(message, writer) {
|
|
20844
|
+
if (!writer)
|
|
20845
|
+
writer = $Writer.create();
|
|
20846
|
+
return writer;
|
|
20847
|
+
};
|
|
20848
|
+
|
|
20849
|
+
/**
|
|
20850
|
+
* Encodes the specified GetSystemInformation message, length delimited. Does not implicitly {@link motionmaster.MotionMasterMessage.Request.GetSystemInformation.verify|verify} messages.
|
|
20851
|
+
* @function encodeDelimited
|
|
20852
|
+
* @memberof motionmaster.MotionMasterMessage.Request.GetSystemInformation
|
|
20853
|
+
* @static
|
|
20854
|
+
* @param {motionmaster.MotionMasterMessage.Request.IGetSystemInformation} message GetSystemInformation message or plain object to encode
|
|
20855
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
20856
|
+
* @returns {$protobuf.Writer} Writer
|
|
20857
|
+
*/
|
|
20858
|
+
GetSystemInformation.encodeDelimited = function encodeDelimited(message, writer) {
|
|
20859
|
+
return this.encode(message, writer).ldelim();
|
|
20860
|
+
};
|
|
20861
|
+
|
|
20862
|
+
/**
|
|
20863
|
+
* Decodes a GetSystemInformation message from the specified reader or buffer.
|
|
20864
|
+
* @function decode
|
|
20865
|
+
* @memberof motionmaster.MotionMasterMessage.Request.GetSystemInformation
|
|
20866
|
+
* @static
|
|
20867
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
20868
|
+
* @param {number} [length] Message length if known beforehand
|
|
20869
|
+
* @returns {motionmaster.MotionMasterMessage.Request.GetSystemInformation} GetSystemInformation
|
|
20870
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
20871
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
20872
|
+
*/
|
|
20873
|
+
GetSystemInformation.decode = function decode(reader, length) {
|
|
20874
|
+
if (!(reader instanceof $Reader))
|
|
20875
|
+
reader = $Reader.create(reader);
|
|
20876
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.motionmaster.MotionMasterMessage.Request.GetSystemInformation();
|
|
20877
|
+
while (reader.pos < end) {
|
|
20878
|
+
let tag = reader.uint32();
|
|
20879
|
+
switch (tag >>> 3) {
|
|
20880
|
+
default:
|
|
20881
|
+
reader.skipType(tag & 7);
|
|
20882
|
+
break;
|
|
20883
|
+
}
|
|
20884
|
+
}
|
|
20885
|
+
return message;
|
|
20886
|
+
};
|
|
20887
|
+
|
|
20888
|
+
/**
|
|
20889
|
+
* Decodes a GetSystemInformation message from the specified reader or buffer, length delimited.
|
|
20890
|
+
* @function decodeDelimited
|
|
20891
|
+
* @memberof motionmaster.MotionMasterMessage.Request.GetSystemInformation
|
|
20892
|
+
* @static
|
|
20893
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
20894
|
+
* @returns {motionmaster.MotionMasterMessage.Request.GetSystemInformation} GetSystemInformation
|
|
20895
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
20896
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
20897
|
+
*/
|
|
20898
|
+
GetSystemInformation.decodeDelimited = function decodeDelimited(reader) {
|
|
20899
|
+
if (!(reader instanceof $Reader))
|
|
20900
|
+
reader = new $Reader(reader);
|
|
20901
|
+
return this.decode(reader, reader.uint32());
|
|
20902
|
+
};
|
|
20903
|
+
|
|
20904
|
+
/**
|
|
20905
|
+
* Verifies a GetSystemInformation message.
|
|
20906
|
+
* @function verify
|
|
20907
|
+
* @memberof motionmaster.MotionMasterMessage.Request.GetSystemInformation
|
|
20908
|
+
* @static
|
|
20909
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
20910
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
20911
|
+
*/
|
|
20912
|
+
GetSystemInformation.verify = function verify(message) {
|
|
20913
|
+
if (typeof message !== "object" || message === null)
|
|
20914
|
+
return "object expected";
|
|
20915
|
+
return null;
|
|
20916
|
+
};
|
|
20917
|
+
|
|
20918
|
+
/**
|
|
20919
|
+
* Creates a GetSystemInformation message from a plain object. Also converts values to their respective internal types.
|
|
20920
|
+
* @function fromObject
|
|
20921
|
+
* @memberof motionmaster.MotionMasterMessage.Request.GetSystemInformation
|
|
20922
|
+
* @static
|
|
20923
|
+
* @param {Object.<string,*>} object Plain object
|
|
20924
|
+
* @returns {motionmaster.MotionMasterMessage.Request.GetSystemInformation} GetSystemInformation
|
|
20925
|
+
*/
|
|
20926
|
+
GetSystemInformation.fromObject = function fromObject(object) {
|
|
20927
|
+
if (object instanceof $root.motionmaster.MotionMasterMessage.Request.GetSystemInformation)
|
|
20928
|
+
return object;
|
|
20929
|
+
return new $root.motionmaster.MotionMasterMessage.Request.GetSystemInformation();
|
|
20930
|
+
};
|
|
20931
|
+
|
|
20932
|
+
/**
|
|
20933
|
+
* Creates a plain object from a GetSystemInformation message. Also converts values to other types if specified.
|
|
20934
|
+
* @function toObject
|
|
20935
|
+
* @memberof motionmaster.MotionMasterMessage.Request.GetSystemInformation
|
|
20936
|
+
* @static
|
|
20937
|
+
* @param {motionmaster.MotionMasterMessage.Request.GetSystemInformation} message GetSystemInformation
|
|
20938
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
20939
|
+
* @returns {Object.<string,*>} Plain object
|
|
20940
|
+
*/
|
|
20941
|
+
GetSystemInformation.toObject = function toObject() {
|
|
20942
|
+
return {};
|
|
20943
|
+
};
|
|
20944
|
+
|
|
20945
|
+
/**
|
|
20946
|
+
* Converts this GetSystemInformation to JSON.
|
|
20947
|
+
* @function toJSON
|
|
20948
|
+
* @memberof motionmaster.MotionMasterMessage.Request.GetSystemInformation
|
|
20949
|
+
* @instance
|
|
20950
|
+
* @returns {Object.<string,*>} JSON object
|
|
20951
|
+
*/
|
|
20952
|
+
GetSystemInformation.prototype.toJSON = function toJSON() {
|
|
20953
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
20954
|
+
};
|
|
20955
|
+
|
|
20956
|
+
/**
|
|
20957
|
+
* Gets the default type url for GetSystemInformation
|
|
20958
|
+
* @function getTypeUrl
|
|
20959
|
+
* @memberof motionmaster.MotionMasterMessage.Request.GetSystemInformation
|
|
20960
|
+
* @static
|
|
20961
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
20962
|
+
* @returns {string} The default type url
|
|
20963
|
+
*/
|
|
20964
|
+
GetSystemInformation.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
20965
|
+
if (typeUrlPrefix === undefined) {
|
|
20966
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
20967
|
+
}
|
|
20968
|
+
return typeUrlPrefix + "/motionmaster.MotionMasterMessage.Request.GetSystemInformation";
|
|
20969
|
+
};
|
|
20970
|
+
|
|
20971
|
+
return GetSystemInformation;
|
|
20972
|
+
})();
|
|
20973
|
+
|
|
20974
|
+
Request.SetPdoMode = (function() {
|
|
20975
|
+
|
|
20976
|
+
/**
|
|
20977
|
+
* Properties of a SetPdoMode.
|
|
20978
|
+
* @memberof motionmaster.MotionMasterMessage.Request
|
|
20979
|
+
* @interface ISetPdoMode
|
|
20980
|
+
* @property {number|null} [deviceAddress] SetPdoMode deviceAddress
|
|
20981
|
+
* @property {number|null} [mode] SetPdoMode mode
|
|
20982
|
+
*/
|
|
20983
|
+
|
|
20984
|
+
/**
|
|
20985
|
+
* Constructs a new SetPdoMode.
|
|
20986
|
+
* @memberof motionmaster.MotionMasterMessage.Request
|
|
20987
|
+
* @classdesc Represents a SetPdoMode.
|
|
20988
|
+
* @implements ISetPdoMode
|
|
20989
|
+
* @constructor
|
|
20990
|
+
* @param {motionmaster.MotionMasterMessage.Request.ISetPdoMode=} [properties] Properties to set
|
|
20991
|
+
*/
|
|
20992
|
+
function SetPdoMode(properties) {
|
|
20993
|
+
if (properties)
|
|
20994
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
20995
|
+
if (properties[keys[i]] != null)
|
|
20996
|
+
this[keys[i]] = properties[keys[i]];
|
|
20997
|
+
}
|
|
20998
|
+
|
|
20999
|
+
/**
|
|
21000
|
+
* SetPdoMode deviceAddress.
|
|
21001
|
+
* @member {number} deviceAddress
|
|
21002
|
+
* @memberof motionmaster.MotionMasterMessage.Request.SetPdoMode
|
|
21003
|
+
* @instance
|
|
21004
|
+
*/
|
|
21005
|
+
SetPdoMode.prototype.deviceAddress = 0;
|
|
21006
|
+
|
|
21007
|
+
/**
|
|
21008
|
+
* SetPdoMode mode.
|
|
21009
|
+
* @member {number} mode
|
|
21010
|
+
* @memberof motionmaster.MotionMasterMessage.Request.SetPdoMode
|
|
21011
|
+
* @instance
|
|
21012
|
+
*/
|
|
21013
|
+
SetPdoMode.prototype.mode = 0;
|
|
21014
|
+
|
|
21015
|
+
/**
|
|
21016
|
+
* Creates a new SetPdoMode instance using the specified properties.
|
|
21017
|
+
* @function create
|
|
21018
|
+
* @memberof motionmaster.MotionMasterMessage.Request.SetPdoMode
|
|
21019
|
+
* @static
|
|
21020
|
+
* @param {motionmaster.MotionMasterMessage.Request.ISetPdoMode=} [properties] Properties to set
|
|
21021
|
+
* @returns {motionmaster.MotionMasterMessage.Request.SetPdoMode} SetPdoMode instance
|
|
21022
|
+
*/
|
|
21023
|
+
SetPdoMode.create = function create(properties) {
|
|
21024
|
+
return new SetPdoMode(properties);
|
|
21025
|
+
};
|
|
21026
|
+
|
|
21027
|
+
/**
|
|
21028
|
+
* Encodes the specified SetPdoMode message. Does not implicitly {@link motionmaster.MotionMasterMessage.Request.SetPdoMode.verify|verify} messages.
|
|
21029
|
+
* @function encode
|
|
21030
|
+
* @memberof motionmaster.MotionMasterMessage.Request.SetPdoMode
|
|
21031
|
+
* @static
|
|
21032
|
+
* @param {motionmaster.MotionMasterMessage.Request.ISetPdoMode} message SetPdoMode message or plain object to encode
|
|
21033
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
21034
|
+
* @returns {$protobuf.Writer} Writer
|
|
21035
|
+
*/
|
|
21036
|
+
SetPdoMode.encode = function encode(message, writer) {
|
|
21037
|
+
if (!writer)
|
|
21038
|
+
writer = $Writer.create();
|
|
21039
|
+
if (message.deviceAddress != null && Object.hasOwnProperty.call(message, "deviceAddress"))
|
|
21040
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.deviceAddress);
|
|
21041
|
+
if (message.mode != null && Object.hasOwnProperty.call(message, "mode"))
|
|
21042
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.mode);
|
|
21043
|
+
return writer;
|
|
21044
|
+
};
|
|
21045
|
+
|
|
21046
|
+
/**
|
|
21047
|
+
* Encodes the specified SetPdoMode message, length delimited. Does not implicitly {@link motionmaster.MotionMasterMessage.Request.SetPdoMode.verify|verify} messages.
|
|
21048
|
+
* @function encodeDelimited
|
|
21049
|
+
* @memberof motionmaster.MotionMasterMessage.Request.SetPdoMode
|
|
21050
|
+
* @static
|
|
21051
|
+
* @param {motionmaster.MotionMasterMessage.Request.ISetPdoMode} message SetPdoMode message or plain object to encode
|
|
21052
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
21053
|
+
* @returns {$protobuf.Writer} Writer
|
|
21054
|
+
*/
|
|
21055
|
+
SetPdoMode.encodeDelimited = function encodeDelimited(message, writer) {
|
|
21056
|
+
return this.encode(message, writer).ldelim();
|
|
21057
|
+
};
|
|
21058
|
+
|
|
21059
|
+
/**
|
|
21060
|
+
* Decodes a SetPdoMode message from the specified reader or buffer.
|
|
21061
|
+
* @function decode
|
|
21062
|
+
* @memberof motionmaster.MotionMasterMessage.Request.SetPdoMode
|
|
21063
|
+
* @static
|
|
21064
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
21065
|
+
* @param {number} [length] Message length if known beforehand
|
|
21066
|
+
* @returns {motionmaster.MotionMasterMessage.Request.SetPdoMode} SetPdoMode
|
|
21067
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
21068
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
21069
|
+
*/
|
|
21070
|
+
SetPdoMode.decode = function decode(reader, length) {
|
|
21071
|
+
if (!(reader instanceof $Reader))
|
|
21072
|
+
reader = $Reader.create(reader);
|
|
21073
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.motionmaster.MotionMasterMessage.Request.SetPdoMode();
|
|
21074
|
+
while (reader.pos < end) {
|
|
21075
|
+
let tag = reader.uint32();
|
|
21076
|
+
switch (tag >>> 3) {
|
|
21077
|
+
case 1: {
|
|
21078
|
+
message.deviceAddress = reader.uint32();
|
|
21079
|
+
break;
|
|
21080
|
+
}
|
|
21081
|
+
case 2: {
|
|
21082
|
+
message.mode = reader.uint32();
|
|
21083
|
+
break;
|
|
21084
|
+
}
|
|
21085
|
+
default:
|
|
21086
|
+
reader.skipType(tag & 7);
|
|
21087
|
+
break;
|
|
21088
|
+
}
|
|
21089
|
+
}
|
|
21090
|
+
return message;
|
|
21091
|
+
};
|
|
21092
|
+
|
|
21093
|
+
/**
|
|
21094
|
+
* Decodes a SetPdoMode message from the specified reader or buffer, length delimited.
|
|
21095
|
+
* @function decodeDelimited
|
|
21096
|
+
* @memberof motionmaster.MotionMasterMessage.Request.SetPdoMode
|
|
21097
|
+
* @static
|
|
21098
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
21099
|
+
* @returns {motionmaster.MotionMasterMessage.Request.SetPdoMode} SetPdoMode
|
|
21100
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
21101
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
21102
|
+
*/
|
|
21103
|
+
SetPdoMode.decodeDelimited = function decodeDelimited(reader) {
|
|
21104
|
+
if (!(reader instanceof $Reader))
|
|
21105
|
+
reader = new $Reader(reader);
|
|
21106
|
+
return this.decode(reader, reader.uint32());
|
|
21107
|
+
};
|
|
21108
|
+
|
|
21109
|
+
/**
|
|
21110
|
+
* Verifies a SetPdoMode message.
|
|
21111
|
+
* @function verify
|
|
21112
|
+
* @memberof motionmaster.MotionMasterMessage.Request.SetPdoMode
|
|
21113
|
+
* @static
|
|
21114
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
21115
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
21116
|
+
*/
|
|
21117
|
+
SetPdoMode.verify = function verify(message) {
|
|
21118
|
+
if (typeof message !== "object" || message === null)
|
|
21119
|
+
return "object expected";
|
|
21120
|
+
if (message.deviceAddress != null && message.hasOwnProperty("deviceAddress"))
|
|
21121
|
+
if (!$util.isInteger(message.deviceAddress))
|
|
21122
|
+
return "deviceAddress: integer expected";
|
|
21123
|
+
if (message.mode != null && message.hasOwnProperty("mode"))
|
|
21124
|
+
if (!$util.isInteger(message.mode))
|
|
21125
|
+
return "mode: integer expected";
|
|
21126
|
+
return null;
|
|
21127
|
+
};
|
|
21128
|
+
|
|
21129
|
+
/**
|
|
21130
|
+
* Creates a SetPdoMode message from a plain object. Also converts values to their respective internal types.
|
|
21131
|
+
* @function fromObject
|
|
21132
|
+
* @memberof motionmaster.MotionMasterMessage.Request.SetPdoMode
|
|
21133
|
+
* @static
|
|
21134
|
+
* @param {Object.<string,*>} object Plain object
|
|
21135
|
+
* @returns {motionmaster.MotionMasterMessage.Request.SetPdoMode} SetPdoMode
|
|
21136
|
+
*/
|
|
21137
|
+
SetPdoMode.fromObject = function fromObject(object) {
|
|
21138
|
+
if (object instanceof $root.motionmaster.MotionMasterMessage.Request.SetPdoMode)
|
|
21139
|
+
return object;
|
|
21140
|
+
let message = new $root.motionmaster.MotionMasterMessage.Request.SetPdoMode();
|
|
21141
|
+
if (object.deviceAddress != null)
|
|
21142
|
+
message.deviceAddress = object.deviceAddress >>> 0;
|
|
21143
|
+
if (object.mode != null)
|
|
21144
|
+
message.mode = object.mode >>> 0;
|
|
21145
|
+
return message;
|
|
21146
|
+
};
|
|
21147
|
+
|
|
21148
|
+
/**
|
|
21149
|
+
* Creates a plain object from a SetPdoMode message. Also converts values to other types if specified.
|
|
21150
|
+
* @function toObject
|
|
21151
|
+
* @memberof motionmaster.MotionMasterMessage.Request.SetPdoMode
|
|
21152
|
+
* @static
|
|
21153
|
+
* @param {motionmaster.MotionMasterMessage.Request.SetPdoMode} message SetPdoMode
|
|
21154
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
21155
|
+
* @returns {Object.<string,*>} Plain object
|
|
21156
|
+
*/
|
|
21157
|
+
SetPdoMode.toObject = function toObject(message, options) {
|
|
21158
|
+
if (!options)
|
|
21159
|
+
options = {};
|
|
21160
|
+
let object = {};
|
|
21161
|
+
if (options.defaults) {
|
|
21162
|
+
object.deviceAddress = 0;
|
|
21163
|
+
object.mode = 0;
|
|
21164
|
+
}
|
|
21165
|
+
if (message.deviceAddress != null && message.hasOwnProperty("deviceAddress"))
|
|
21166
|
+
object.deviceAddress = message.deviceAddress;
|
|
21167
|
+
if (message.mode != null && message.hasOwnProperty("mode"))
|
|
21168
|
+
object.mode = message.mode;
|
|
21169
|
+
return object;
|
|
21170
|
+
};
|
|
21171
|
+
|
|
21172
|
+
/**
|
|
21173
|
+
* Converts this SetPdoMode to JSON.
|
|
21174
|
+
* @function toJSON
|
|
21175
|
+
* @memberof motionmaster.MotionMasterMessage.Request.SetPdoMode
|
|
21176
|
+
* @instance
|
|
21177
|
+
* @returns {Object.<string,*>} JSON object
|
|
21178
|
+
*/
|
|
21179
|
+
SetPdoMode.prototype.toJSON = function toJSON() {
|
|
21180
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
21181
|
+
};
|
|
21182
|
+
|
|
21183
|
+
/**
|
|
21184
|
+
* Gets the default type url for SetPdoMode
|
|
21185
|
+
* @function getTypeUrl
|
|
21186
|
+
* @memberof motionmaster.MotionMasterMessage.Request.SetPdoMode
|
|
21187
|
+
* @static
|
|
21188
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
21189
|
+
* @returns {string} The default type url
|
|
21190
|
+
*/
|
|
21191
|
+
SetPdoMode.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
21192
|
+
if (typeUrlPrefix === undefined) {
|
|
21193
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
21194
|
+
}
|
|
21195
|
+
return typeUrlPrefix + "/motionmaster.MotionMasterMessage.Request.SetPdoMode";
|
|
21196
|
+
};
|
|
21197
|
+
|
|
21198
|
+
return SetPdoMode;
|
|
21199
|
+
})();
|
|
21200
|
+
|
|
20689
21201
|
return Request;
|
|
20690
21202
|
})();
|
|
20691
21203
|
|
|
@@ -20730,6 +21242,8 @@ $root.motionmaster = (() => {
|
|
|
20730
21242
|
* @property {motionmaster.MotionMasterMessage.Status.ICirculoEncoderConfiguration|null} [circuloEncoderConfiguration] Status circuloEncoderConfiguration
|
|
20731
21243
|
* @property {motionmaster.MotionMasterMessage.Status.IOsCommand|null} [osCommand] Status osCommand
|
|
20732
21244
|
* @property {motionmaster.MotionMasterMessage.Status.IForwardCall|null} [forwardCall] Status forwardCall
|
|
21245
|
+
* @property {motionmaster.MotionMasterMessage.Status.ISystemInformation|null} [systemInformation] Status systemInformation
|
|
21246
|
+
* @property {motionmaster.MotionMasterMessage.Status.IPdoMode|null} [pdoMode] Status pdoMode
|
|
20733
21247
|
*/
|
|
20734
21248
|
|
|
20735
21249
|
/**
|
|
@@ -21027,17 +21541,33 @@ $root.motionmaster = (() => {
|
|
|
21027
21541
|
*/
|
|
21028
21542
|
Status.prototype.forwardCall = null;
|
|
21029
21543
|
|
|
21544
|
+
/**
|
|
21545
|
+
* Status systemInformation.
|
|
21546
|
+
* @member {motionmaster.MotionMasterMessage.Status.ISystemInformation|null|undefined} systemInformation
|
|
21547
|
+
* @memberof motionmaster.MotionMasterMessage.Status
|
|
21548
|
+
* @instance
|
|
21549
|
+
*/
|
|
21550
|
+
Status.prototype.systemInformation = null;
|
|
21551
|
+
|
|
21552
|
+
/**
|
|
21553
|
+
* Status pdoMode.
|
|
21554
|
+
* @member {motionmaster.MotionMasterMessage.Status.IPdoMode|null|undefined} pdoMode
|
|
21555
|
+
* @memberof motionmaster.MotionMasterMessage.Status
|
|
21556
|
+
* @instance
|
|
21557
|
+
*/
|
|
21558
|
+
Status.prototype.pdoMode = null;
|
|
21559
|
+
|
|
21030
21560
|
// OneOf field names bound to virtual getters and setters
|
|
21031
21561
|
let $oneOfFields;
|
|
21032
21562
|
|
|
21033
21563
|
/**
|
|
21034
21564
|
* Status type.
|
|
21035
|
-
* @member {"systemPong"|"systemVersion"|"systemEvent"|"deviceInfo"|"deviceParameterInfo"|"deviceParameterValues"|"multiDeviceParameterValues"|"deviceFileList"|"deviceFile"|"deviceEvent"|"deviceFirmwareInstallation"|"deviceLog"|"deviceFaultReset"|"coggingTorqueRecording"|"coggingTorqueData"|"offsetDetection"|"plantIdentification"|"autoTuning"|"motionController"|"signalGenerator"|"monitoringParameterValues"|"deviceStop"|"ethercatNetworkState"|"narrowAngleCalibration"|"systemIdentification"|"circuloEncoderMagnetDistance"|"circuloEncoderNarrowAngleCalibrationProcedure"|"deviceCia402State"|"systemLog"|"deviceSiiRestore"|"openLoopFieldControl"|"fullAutoTuning"|"circuloEncoderConfiguration"|"osCommand"|"forwardCall"|undefined} type
|
|
21565
|
+
* @member {"systemPong"|"systemVersion"|"systemEvent"|"deviceInfo"|"deviceParameterInfo"|"deviceParameterValues"|"multiDeviceParameterValues"|"deviceFileList"|"deviceFile"|"deviceEvent"|"deviceFirmwareInstallation"|"deviceLog"|"deviceFaultReset"|"coggingTorqueRecording"|"coggingTorqueData"|"offsetDetection"|"plantIdentification"|"autoTuning"|"motionController"|"signalGenerator"|"monitoringParameterValues"|"deviceStop"|"ethercatNetworkState"|"narrowAngleCalibration"|"systemIdentification"|"circuloEncoderMagnetDistance"|"circuloEncoderNarrowAngleCalibrationProcedure"|"deviceCia402State"|"systemLog"|"deviceSiiRestore"|"openLoopFieldControl"|"fullAutoTuning"|"circuloEncoderConfiguration"|"osCommand"|"forwardCall"|"systemInformation"|"pdoMode"|undefined} type
|
|
21036
21566
|
* @memberof motionmaster.MotionMasterMessage.Status
|
|
21037
21567
|
* @instance
|
|
21038
21568
|
*/
|
|
21039
21569
|
Object.defineProperty(Status.prototype, "type", {
|
|
21040
|
-
get: $util.oneOfGetter($oneOfFields = ["systemPong", "systemVersion", "systemEvent", "deviceInfo", "deviceParameterInfo", "deviceParameterValues", "multiDeviceParameterValues", "deviceFileList", "deviceFile", "deviceEvent", "deviceFirmwareInstallation", "deviceLog", "deviceFaultReset", "coggingTorqueRecording", "coggingTorqueData", "offsetDetection", "plantIdentification", "autoTuning", "motionController", "signalGenerator", "monitoringParameterValues", "deviceStop", "ethercatNetworkState", "narrowAngleCalibration", "systemIdentification", "circuloEncoderMagnetDistance", "circuloEncoderNarrowAngleCalibrationProcedure", "deviceCia402State", "systemLog", "deviceSiiRestore", "openLoopFieldControl", "fullAutoTuning", "circuloEncoderConfiguration", "osCommand", "forwardCall"]),
|
|
21570
|
+
get: $util.oneOfGetter($oneOfFields = ["systemPong", "systemVersion", "systemEvent", "deviceInfo", "deviceParameterInfo", "deviceParameterValues", "multiDeviceParameterValues", "deviceFileList", "deviceFile", "deviceEvent", "deviceFirmwareInstallation", "deviceLog", "deviceFaultReset", "coggingTorqueRecording", "coggingTorqueData", "offsetDetection", "plantIdentification", "autoTuning", "motionController", "signalGenerator", "monitoringParameterValues", "deviceStop", "ethercatNetworkState", "narrowAngleCalibration", "systemIdentification", "circuloEncoderMagnetDistance", "circuloEncoderNarrowAngleCalibrationProcedure", "deviceCia402State", "systemLog", "deviceSiiRestore", "openLoopFieldControl", "fullAutoTuning", "circuloEncoderConfiguration", "osCommand", "forwardCall", "systemInformation", "pdoMode"]),
|
|
21041
21571
|
set: $util.oneOfSetter($oneOfFields)
|
|
21042
21572
|
});
|
|
21043
21573
|
|
|
@@ -21135,6 +21665,10 @@ $root.motionmaster = (() => {
|
|
|
21135
21665
|
$root.motionmaster.MotionMasterMessage.Status.OsCommand.encode(message.osCommand, writer.uint32(/* id 134, wireType 2 =*/1074).fork()).ldelim();
|
|
21136
21666
|
if (message.forwardCall != null && Object.hasOwnProperty.call(message, "forwardCall"))
|
|
21137
21667
|
$root.motionmaster.MotionMasterMessage.Status.ForwardCall.encode(message.forwardCall, writer.uint32(/* id 135, wireType 2 =*/1082).fork()).ldelim();
|
|
21668
|
+
if (message.systemInformation != null && Object.hasOwnProperty.call(message, "systemInformation"))
|
|
21669
|
+
$root.motionmaster.MotionMasterMessage.Status.SystemInformation.encode(message.systemInformation, writer.uint32(/* id 136, wireType 2 =*/1090).fork()).ldelim();
|
|
21670
|
+
if (message.pdoMode != null && Object.hasOwnProperty.call(message, "pdoMode"))
|
|
21671
|
+
$root.motionmaster.MotionMasterMessage.Status.PdoMode.encode(message.pdoMode, writer.uint32(/* id 137, wireType 2 =*/1098).fork()).ldelim();
|
|
21138
21672
|
return writer;
|
|
21139
21673
|
};
|
|
21140
21674
|
|
|
@@ -21309,6 +21843,14 @@ $root.motionmaster = (() => {
|
|
|
21309
21843
|
message.forwardCall = $root.motionmaster.MotionMasterMessage.Status.ForwardCall.decode(reader, reader.uint32());
|
|
21310
21844
|
break;
|
|
21311
21845
|
}
|
|
21846
|
+
case 136: {
|
|
21847
|
+
message.systemInformation = $root.motionmaster.MotionMasterMessage.Status.SystemInformation.decode(reader, reader.uint32());
|
|
21848
|
+
break;
|
|
21849
|
+
}
|
|
21850
|
+
case 137: {
|
|
21851
|
+
message.pdoMode = $root.motionmaster.MotionMasterMessage.Status.PdoMode.decode(reader, reader.uint32());
|
|
21852
|
+
break;
|
|
21853
|
+
}
|
|
21312
21854
|
default:
|
|
21313
21855
|
reader.skipType(tag & 7);
|
|
21314
21856
|
break;
|
|
@@ -21693,6 +22235,26 @@ $root.motionmaster = (() => {
|
|
|
21693
22235
|
return "forwardCall." + error;
|
|
21694
22236
|
}
|
|
21695
22237
|
}
|
|
22238
|
+
if (message.systemInformation != null && message.hasOwnProperty("systemInformation")) {
|
|
22239
|
+
if (properties.type === 1)
|
|
22240
|
+
return "type: multiple values";
|
|
22241
|
+
properties.type = 1;
|
|
22242
|
+
{
|
|
22243
|
+
let error = $root.motionmaster.MotionMasterMessage.Status.SystemInformation.verify(message.systemInformation);
|
|
22244
|
+
if (error)
|
|
22245
|
+
return "systemInformation." + error;
|
|
22246
|
+
}
|
|
22247
|
+
}
|
|
22248
|
+
if (message.pdoMode != null && message.hasOwnProperty("pdoMode")) {
|
|
22249
|
+
if (properties.type === 1)
|
|
22250
|
+
return "type: multiple values";
|
|
22251
|
+
properties.type = 1;
|
|
22252
|
+
{
|
|
22253
|
+
let error = $root.motionmaster.MotionMasterMessage.Status.PdoMode.verify(message.pdoMode);
|
|
22254
|
+
if (error)
|
|
22255
|
+
return "pdoMode." + error;
|
|
22256
|
+
}
|
|
22257
|
+
}
|
|
21696
22258
|
return null;
|
|
21697
22259
|
};
|
|
21698
22260
|
|
|
@@ -21883,6 +22445,16 @@ $root.motionmaster = (() => {
|
|
|
21883
22445
|
throw TypeError(".motionmaster.MotionMasterMessage.Status.forwardCall: object expected");
|
|
21884
22446
|
message.forwardCall = $root.motionmaster.MotionMasterMessage.Status.ForwardCall.fromObject(object.forwardCall);
|
|
21885
22447
|
}
|
|
22448
|
+
if (object.systemInformation != null) {
|
|
22449
|
+
if (typeof object.systemInformation !== "object")
|
|
22450
|
+
throw TypeError(".motionmaster.MotionMasterMessage.Status.systemInformation: object expected");
|
|
22451
|
+
message.systemInformation = $root.motionmaster.MotionMasterMessage.Status.SystemInformation.fromObject(object.systemInformation);
|
|
22452
|
+
}
|
|
22453
|
+
if (object.pdoMode != null) {
|
|
22454
|
+
if (typeof object.pdoMode !== "object")
|
|
22455
|
+
throw TypeError(".motionmaster.MotionMasterMessage.Status.pdoMode: object expected");
|
|
22456
|
+
message.pdoMode = $root.motionmaster.MotionMasterMessage.Status.PdoMode.fromObject(object.pdoMode);
|
|
22457
|
+
}
|
|
21886
22458
|
return message;
|
|
21887
22459
|
};
|
|
21888
22460
|
|
|
@@ -22074,6 +22646,16 @@ $root.motionmaster = (() => {
|
|
|
22074
22646
|
if (options.oneofs)
|
|
22075
22647
|
object.type = "forwardCall";
|
|
22076
22648
|
}
|
|
22649
|
+
if (message.systemInformation != null && message.hasOwnProperty("systemInformation")) {
|
|
22650
|
+
object.systemInformation = $root.motionmaster.MotionMasterMessage.Status.SystemInformation.toObject(message.systemInformation, options);
|
|
22651
|
+
if (options.oneofs)
|
|
22652
|
+
object.type = "systemInformation";
|
|
22653
|
+
}
|
|
22654
|
+
if (message.pdoMode != null && message.hasOwnProperty("pdoMode")) {
|
|
22655
|
+
object.pdoMode = $root.motionmaster.MotionMasterMessage.Status.PdoMode.toObject(message.pdoMode, options);
|
|
22656
|
+
if (options.oneofs)
|
|
22657
|
+
object.type = "pdoMode";
|
|
22658
|
+
}
|
|
22077
22659
|
return object;
|
|
22078
22660
|
};
|
|
22079
22661
|
|
|
@@ -54441,6 +55023,1342 @@ $root.motionmaster = (() => {
|
|
|
54441
55023
|
return ForwardCall;
|
|
54442
55024
|
})();
|
|
54443
55025
|
|
|
55026
|
+
Status.SystemInformation = (function() {
|
|
55027
|
+
|
|
55028
|
+
/**
|
|
55029
|
+
* Properties of a SystemInformation.
|
|
55030
|
+
* @memberof motionmaster.MotionMasterMessage.Status
|
|
55031
|
+
* @interface ISystemInformation
|
|
55032
|
+
* @property {string|null} [version] SystemInformation version
|
|
55033
|
+
* @property {motionmaster.MotionMasterMessage.Status.SystemInformation.IStartOptions|null} [startOptions] SystemInformation startOptions
|
|
55034
|
+
*/
|
|
55035
|
+
|
|
55036
|
+
/**
|
|
55037
|
+
* Constructs a new SystemInformation.
|
|
55038
|
+
* @memberof motionmaster.MotionMasterMessage.Status
|
|
55039
|
+
* @classdesc Represents a SystemInformation.
|
|
55040
|
+
* @implements ISystemInformation
|
|
55041
|
+
* @constructor
|
|
55042
|
+
* @param {motionmaster.MotionMasterMessage.Status.ISystemInformation=} [properties] Properties to set
|
|
55043
|
+
*/
|
|
55044
|
+
function SystemInformation(properties) {
|
|
55045
|
+
if (properties)
|
|
55046
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
55047
|
+
if (properties[keys[i]] != null)
|
|
55048
|
+
this[keys[i]] = properties[keys[i]];
|
|
55049
|
+
}
|
|
55050
|
+
|
|
55051
|
+
/**
|
|
55052
|
+
* SystemInformation version.
|
|
55053
|
+
* @member {string} version
|
|
55054
|
+
* @memberof motionmaster.MotionMasterMessage.Status.SystemInformation
|
|
55055
|
+
* @instance
|
|
55056
|
+
*/
|
|
55057
|
+
SystemInformation.prototype.version = "";
|
|
55058
|
+
|
|
55059
|
+
/**
|
|
55060
|
+
* SystemInformation startOptions.
|
|
55061
|
+
* @member {motionmaster.MotionMasterMessage.Status.SystemInformation.IStartOptions|null|undefined} startOptions
|
|
55062
|
+
* @memberof motionmaster.MotionMasterMessage.Status.SystemInformation
|
|
55063
|
+
* @instance
|
|
55064
|
+
*/
|
|
55065
|
+
SystemInformation.prototype.startOptions = null;
|
|
55066
|
+
|
|
55067
|
+
/**
|
|
55068
|
+
* Creates a new SystemInformation instance using the specified properties.
|
|
55069
|
+
* @function create
|
|
55070
|
+
* @memberof motionmaster.MotionMasterMessage.Status.SystemInformation
|
|
55071
|
+
* @static
|
|
55072
|
+
* @param {motionmaster.MotionMasterMessage.Status.ISystemInformation=} [properties] Properties to set
|
|
55073
|
+
* @returns {motionmaster.MotionMasterMessage.Status.SystemInformation} SystemInformation instance
|
|
55074
|
+
*/
|
|
55075
|
+
SystemInformation.create = function create(properties) {
|
|
55076
|
+
return new SystemInformation(properties);
|
|
55077
|
+
};
|
|
55078
|
+
|
|
55079
|
+
/**
|
|
55080
|
+
* Encodes the specified SystemInformation message. Does not implicitly {@link motionmaster.MotionMasterMessage.Status.SystemInformation.verify|verify} messages.
|
|
55081
|
+
* @function encode
|
|
55082
|
+
* @memberof motionmaster.MotionMasterMessage.Status.SystemInformation
|
|
55083
|
+
* @static
|
|
55084
|
+
* @param {motionmaster.MotionMasterMessage.Status.ISystemInformation} message SystemInformation message or plain object to encode
|
|
55085
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
55086
|
+
* @returns {$protobuf.Writer} Writer
|
|
55087
|
+
*/
|
|
55088
|
+
SystemInformation.encode = function encode(message, writer) {
|
|
55089
|
+
if (!writer)
|
|
55090
|
+
writer = $Writer.create();
|
|
55091
|
+
if (message.version != null && Object.hasOwnProperty.call(message, "version"))
|
|
55092
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.version);
|
|
55093
|
+
if (message.startOptions != null && Object.hasOwnProperty.call(message, "startOptions"))
|
|
55094
|
+
$root.motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions.encode(message.startOptions, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
55095
|
+
return writer;
|
|
55096
|
+
};
|
|
55097
|
+
|
|
55098
|
+
/**
|
|
55099
|
+
* Encodes the specified SystemInformation message, length delimited. Does not implicitly {@link motionmaster.MotionMasterMessage.Status.SystemInformation.verify|verify} messages.
|
|
55100
|
+
* @function encodeDelimited
|
|
55101
|
+
* @memberof motionmaster.MotionMasterMessage.Status.SystemInformation
|
|
55102
|
+
* @static
|
|
55103
|
+
* @param {motionmaster.MotionMasterMessage.Status.ISystemInformation} message SystemInformation message or plain object to encode
|
|
55104
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
55105
|
+
* @returns {$protobuf.Writer} Writer
|
|
55106
|
+
*/
|
|
55107
|
+
SystemInformation.encodeDelimited = function encodeDelimited(message, writer) {
|
|
55108
|
+
return this.encode(message, writer).ldelim();
|
|
55109
|
+
};
|
|
55110
|
+
|
|
55111
|
+
/**
|
|
55112
|
+
* Decodes a SystemInformation message from the specified reader or buffer.
|
|
55113
|
+
* @function decode
|
|
55114
|
+
* @memberof motionmaster.MotionMasterMessage.Status.SystemInformation
|
|
55115
|
+
* @static
|
|
55116
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
55117
|
+
* @param {number} [length] Message length if known beforehand
|
|
55118
|
+
* @returns {motionmaster.MotionMasterMessage.Status.SystemInformation} SystemInformation
|
|
55119
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
55120
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
55121
|
+
*/
|
|
55122
|
+
SystemInformation.decode = function decode(reader, length) {
|
|
55123
|
+
if (!(reader instanceof $Reader))
|
|
55124
|
+
reader = $Reader.create(reader);
|
|
55125
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.motionmaster.MotionMasterMessage.Status.SystemInformation();
|
|
55126
|
+
while (reader.pos < end) {
|
|
55127
|
+
let tag = reader.uint32();
|
|
55128
|
+
switch (tag >>> 3) {
|
|
55129
|
+
case 1: {
|
|
55130
|
+
message.version = reader.string();
|
|
55131
|
+
break;
|
|
55132
|
+
}
|
|
55133
|
+
case 2: {
|
|
55134
|
+
message.startOptions = $root.motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions.decode(reader, reader.uint32());
|
|
55135
|
+
break;
|
|
55136
|
+
}
|
|
55137
|
+
default:
|
|
55138
|
+
reader.skipType(tag & 7);
|
|
55139
|
+
break;
|
|
55140
|
+
}
|
|
55141
|
+
}
|
|
55142
|
+
return message;
|
|
55143
|
+
};
|
|
55144
|
+
|
|
55145
|
+
/**
|
|
55146
|
+
* Decodes a SystemInformation message from the specified reader or buffer, length delimited.
|
|
55147
|
+
* @function decodeDelimited
|
|
55148
|
+
* @memberof motionmaster.MotionMasterMessage.Status.SystemInformation
|
|
55149
|
+
* @static
|
|
55150
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
55151
|
+
* @returns {motionmaster.MotionMasterMessage.Status.SystemInformation} SystemInformation
|
|
55152
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
55153
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
55154
|
+
*/
|
|
55155
|
+
SystemInformation.decodeDelimited = function decodeDelimited(reader) {
|
|
55156
|
+
if (!(reader instanceof $Reader))
|
|
55157
|
+
reader = new $Reader(reader);
|
|
55158
|
+
return this.decode(reader, reader.uint32());
|
|
55159
|
+
};
|
|
55160
|
+
|
|
55161
|
+
/**
|
|
55162
|
+
* Verifies a SystemInformation message.
|
|
55163
|
+
* @function verify
|
|
55164
|
+
* @memberof motionmaster.MotionMasterMessage.Status.SystemInformation
|
|
55165
|
+
* @static
|
|
55166
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
55167
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
55168
|
+
*/
|
|
55169
|
+
SystemInformation.verify = function verify(message) {
|
|
55170
|
+
if (typeof message !== "object" || message === null)
|
|
55171
|
+
return "object expected";
|
|
55172
|
+
if (message.version != null && message.hasOwnProperty("version"))
|
|
55173
|
+
if (!$util.isString(message.version))
|
|
55174
|
+
return "version: string expected";
|
|
55175
|
+
if (message.startOptions != null && message.hasOwnProperty("startOptions")) {
|
|
55176
|
+
let error = $root.motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions.verify(message.startOptions);
|
|
55177
|
+
if (error)
|
|
55178
|
+
return "startOptions." + error;
|
|
55179
|
+
}
|
|
55180
|
+
return null;
|
|
55181
|
+
};
|
|
55182
|
+
|
|
55183
|
+
/**
|
|
55184
|
+
* Creates a SystemInformation message from a plain object. Also converts values to their respective internal types.
|
|
55185
|
+
* @function fromObject
|
|
55186
|
+
* @memberof motionmaster.MotionMasterMessage.Status.SystemInformation
|
|
55187
|
+
* @static
|
|
55188
|
+
* @param {Object.<string,*>} object Plain object
|
|
55189
|
+
* @returns {motionmaster.MotionMasterMessage.Status.SystemInformation} SystemInformation
|
|
55190
|
+
*/
|
|
55191
|
+
SystemInformation.fromObject = function fromObject(object) {
|
|
55192
|
+
if (object instanceof $root.motionmaster.MotionMasterMessage.Status.SystemInformation)
|
|
55193
|
+
return object;
|
|
55194
|
+
let message = new $root.motionmaster.MotionMasterMessage.Status.SystemInformation();
|
|
55195
|
+
if (object.version != null)
|
|
55196
|
+
message.version = String(object.version);
|
|
55197
|
+
if (object.startOptions != null) {
|
|
55198
|
+
if (typeof object.startOptions !== "object")
|
|
55199
|
+
throw TypeError(".motionmaster.MotionMasterMessage.Status.SystemInformation.startOptions: object expected");
|
|
55200
|
+
message.startOptions = $root.motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions.fromObject(object.startOptions);
|
|
55201
|
+
}
|
|
55202
|
+
return message;
|
|
55203
|
+
};
|
|
55204
|
+
|
|
55205
|
+
/**
|
|
55206
|
+
* Creates a plain object from a SystemInformation message. Also converts values to other types if specified.
|
|
55207
|
+
* @function toObject
|
|
55208
|
+
* @memberof motionmaster.MotionMasterMessage.Status.SystemInformation
|
|
55209
|
+
* @static
|
|
55210
|
+
* @param {motionmaster.MotionMasterMessage.Status.SystemInformation} message SystemInformation
|
|
55211
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
55212
|
+
* @returns {Object.<string,*>} Plain object
|
|
55213
|
+
*/
|
|
55214
|
+
SystemInformation.toObject = function toObject(message, options) {
|
|
55215
|
+
if (!options)
|
|
55216
|
+
options = {};
|
|
55217
|
+
let object = {};
|
|
55218
|
+
if (options.defaults) {
|
|
55219
|
+
object.version = "";
|
|
55220
|
+
object.startOptions = null;
|
|
55221
|
+
}
|
|
55222
|
+
if (message.version != null && message.hasOwnProperty("version"))
|
|
55223
|
+
object.version = message.version;
|
|
55224
|
+
if (message.startOptions != null && message.hasOwnProperty("startOptions"))
|
|
55225
|
+
object.startOptions = $root.motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions.toObject(message.startOptions, options);
|
|
55226
|
+
return object;
|
|
55227
|
+
};
|
|
55228
|
+
|
|
55229
|
+
/**
|
|
55230
|
+
* Converts this SystemInformation to JSON.
|
|
55231
|
+
* @function toJSON
|
|
55232
|
+
* @memberof motionmaster.MotionMasterMessage.Status.SystemInformation
|
|
55233
|
+
* @instance
|
|
55234
|
+
* @returns {Object.<string,*>} JSON object
|
|
55235
|
+
*/
|
|
55236
|
+
SystemInformation.prototype.toJSON = function toJSON() {
|
|
55237
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
55238
|
+
};
|
|
55239
|
+
|
|
55240
|
+
/**
|
|
55241
|
+
* Gets the default type url for SystemInformation
|
|
55242
|
+
* @function getTypeUrl
|
|
55243
|
+
* @memberof motionmaster.MotionMasterMessage.Status.SystemInformation
|
|
55244
|
+
* @static
|
|
55245
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
55246
|
+
* @returns {string} The default type url
|
|
55247
|
+
*/
|
|
55248
|
+
SystemInformation.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
55249
|
+
if (typeUrlPrefix === undefined) {
|
|
55250
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
55251
|
+
}
|
|
55252
|
+
return typeUrlPrefix + "/motionmaster.MotionMasterMessage.Status.SystemInformation";
|
|
55253
|
+
};
|
|
55254
|
+
|
|
55255
|
+
SystemInformation.StartOptions = (function() {
|
|
55256
|
+
|
|
55257
|
+
/**
|
|
55258
|
+
* Properties of a StartOptions.
|
|
55259
|
+
* @memberof motionmaster.MotionMasterMessage.Status.SystemInformation
|
|
55260
|
+
* @interface IStartOptions
|
|
55261
|
+
* @property {string|null} [driver] StartOptions driver
|
|
55262
|
+
* @property {string|null} [mac] StartOptions mac
|
|
55263
|
+
* @property {number|null} [reqResPort] StartOptions reqResPort
|
|
55264
|
+
* @property {number|null} [pubSubPort] StartOptions pubSubPort
|
|
55265
|
+
* @property {Array.<string>|null} [ips] StartOptions ips
|
|
55266
|
+
* @property {string|null} [pdoMode] StartOptions pdoMode
|
|
55267
|
+
*/
|
|
55268
|
+
|
|
55269
|
+
/**
|
|
55270
|
+
* Constructs a new StartOptions.
|
|
55271
|
+
* @memberof motionmaster.MotionMasterMessage.Status.SystemInformation
|
|
55272
|
+
* @classdesc Represents a StartOptions.
|
|
55273
|
+
* @implements IStartOptions
|
|
55274
|
+
* @constructor
|
|
55275
|
+
* @param {motionmaster.MotionMasterMessage.Status.SystemInformation.IStartOptions=} [properties] Properties to set
|
|
55276
|
+
*/
|
|
55277
|
+
function StartOptions(properties) {
|
|
55278
|
+
this.ips = [];
|
|
55279
|
+
if (properties)
|
|
55280
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
55281
|
+
if (properties[keys[i]] != null)
|
|
55282
|
+
this[keys[i]] = properties[keys[i]];
|
|
55283
|
+
}
|
|
55284
|
+
|
|
55285
|
+
/**
|
|
55286
|
+
* StartOptions driver.
|
|
55287
|
+
* @member {string} driver
|
|
55288
|
+
* @memberof motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions
|
|
55289
|
+
* @instance
|
|
55290
|
+
*/
|
|
55291
|
+
StartOptions.prototype.driver = "";
|
|
55292
|
+
|
|
55293
|
+
/**
|
|
55294
|
+
* StartOptions mac.
|
|
55295
|
+
* @member {string} mac
|
|
55296
|
+
* @memberof motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions
|
|
55297
|
+
* @instance
|
|
55298
|
+
*/
|
|
55299
|
+
StartOptions.prototype.mac = "";
|
|
55300
|
+
|
|
55301
|
+
/**
|
|
55302
|
+
* StartOptions reqResPort.
|
|
55303
|
+
* @member {number} reqResPort
|
|
55304
|
+
* @memberof motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions
|
|
55305
|
+
* @instance
|
|
55306
|
+
*/
|
|
55307
|
+
StartOptions.prototype.reqResPort = 0;
|
|
55308
|
+
|
|
55309
|
+
/**
|
|
55310
|
+
* StartOptions pubSubPort.
|
|
55311
|
+
* @member {number} pubSubPort
|
|
55312
|
+
* @memberof motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions
|
|
55313
|
+
* @instance
|
|
55314
|
+
*/
|
|
55315
|
+
StartOptions.prototype.pubSubPort = 0;
|
|
55316
|
+
|
|
55317
|
+
/**
|
|
55318
|
+
* StartOptions ips.
|
|
55319
|
+
* @member {Array.<string>} ips
|
|
55320
|
+
* @memberof motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions
|
|
55321
|
+
* @instance
|
|
55322
|
+
*/
|
|
55323
|
+
StartOptions.prototype.ips = $util.emptyArray;
|
|
55324
|
+
|
|
55325
|
+
/**
|
|
55326
|
+
* StartOptions pdoMode.
|
|
55327
|
+
* @member {string} pdoMode
|
|
55328
|
+
* @memberof motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions
|
|
55329
|
+
* @instance
|
|
55330
|
+
*/
|
|
55331
|
+
StartOptions.prototype.pdoMode = "";
|
|
55332
|
+
|
|
55333
|
+
/**
|
|
55334
|
+
* Creates a new StartOptions instance using the specified properties.
|
|
55335
|
+
* @function create
|
|
55336
|
+
* @memberof motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions
|
|
55337
|
+
* @static
|
|
55338
|
+
* @param {motionmaster.MotionMasterMessage.Status.SystemInformation.IStartOptions=} [properties] Properties to set
|
|
55339
|
+
* @returns {motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions} StartOptions instance
|
|
55340
|
+
*/
|
|
55341
|
+
StartOptions.create = function create(properties) {
|
|
55342
|
+
return new StartOptions(properties);
|
|
55343
|
+
};
|
|
55344
|
+
|
|
55345
|
+
/**
|
|
55346
|
+
* Encodes the specified StartOptions message. Does not implicitly {@link motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions.verify|verify} messages.
|
|
55347
|
+
* @function encode
|
|
55348
|
+
* @memberof motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions
|
|
55349
|
+
* @static
|
|
55350
|
+
* @param {motionmaster.MotionMasterMessage.Status.SystemInformation.IStartOptions} message StartOptions message or plain object to encode
|
|
55351
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
55352
|
+
* @returns {$protobuf.Writer} Writer
|
|
55353
|
+
*/
|
|
55354
|
+
StartOptions.encode = function encode(message, writer) {
|
|
55355
|
+
if (!writer)
|
|
55356
|
+
writer = $Writer.create();
|
|
55357
|
+
if (message.driver != null && Object.hasOwnProperty.call(message, "driver"))
|
|
55358
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.driver);
|
|
55359
|
+
if (message.mac != null && Object.hasOwnProperty.call(message, "mac"))
|
|
55360
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.mac);
|
|
55361
|
+
if (message.reqResPort != null && Object.hasOwnProperty.call(message, "reqResPort"))
|
|
55362
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.reqResPort);
|
|
55363
|
+
if (message.pubSubPort != null && Object.hasOwnProperty.call(message, "pubSubPort"))
|
|
55364
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.pubSubPort);
|
|
55365
|
+
if (message.ips != null && message.ips.length)
|
|
55366
|
+
for (let i = 0; i < message.ips.length; ++i)
|
|
55367
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.ips[i]);
|
|
55368
|
+
if (message.pdoMode != null && Object.hasOwnProperty.call(message, "pdoMode"))
|
|
55369
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.pdoMode);
|
|
55370
|
+
return writer;
|
|
55371
|
+
};
|
|
55372
|
+
|
|
55373
|
+
/**
|
|
55374
|
+
* Encodes the specified StartOptions message, length delimited. Does not implicitly {@link motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions.verify|verify} messages.
|
|
55375
|
+
* @function encodeDelimited
|
|
55376
|
+
* @memberof motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions
|
|
55377
|
+
* @static
|
|
55378
|
+
* @param {motionmaster.MotionMasterMessage.Status.SystemInformation.IStartOptions} message StartOptions message or plain object to encode
|
|
55379
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
55380
|
+
* @returns {$protobuf.Writer} Writer
|
|
55381
|
+
*/
|
|
55382
|
+
StartOptions.encodeDelimited = function encodeDelimited(message, writer) {
|
|
55383
|
+
return this.encode(message, writer).ldelim();
|
|
55384
|
+
};
|
|
55385
|
+
|
|
55386
|
+
/**
|
|
55387
|
+
* Decodes a StartOptions message from the specified reader or buffer.
|
|
55388
|
+
* @function decode
|
|
55389
|
+
* @memberof motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions
|
|
55390
|
+
* @static
|
|
55391
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
55392
|
+
* @param {number} [length] Message length if known beforehand
|
|
55393
|
+
* @returns {motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions} StartOptions
|
|
55394
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
55395
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
55396
|
+
*/
|
|
55397
|
+
StartOptions.decode = function decode(reader, length) {
|
|
55398
|
+
if (!(reader instanceof $Reader))
|
|
55399
|
+
reader = $Reader.create(reader);
|
|
55400
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions();
|
|
55401
|
+
while (reader.pos < end) {
|
|
55402
|
+
let tag = reader.uint32();
|
|
55403
|
+
switch (tag >>> 3) {
|
|
55404
|
+
case 1: {
|
|
55405
|
+
message.driver = reader.string();
|
|
55406
|
+
break;
|
|
55407
|
+
}
|
|
55408
|
+
case 2: {
|
|
55409
|
+
message.mac = reader.string();
|
|
55410
|
+
break;
|
|
55411
|
+
}
|
|
55412
|
+
case 3: {
|
|
55413
|
+
message.reqResPort = reader.uint32();
|
|
55414
|
+
break;
|
|
55415
|
+
}
|
|
55416
|
+
case 4: {
|
|
55417
|
+
message.pubSubPort = reader.uint32();
|
|
55418
|
+
break;
|
|
55419
|
+
}
|
|
55420
|
+
case 5: {
|
|
55421
|
+
if (!(message.ips && message.ips.length))
|
|
55422
|
+
message.ips = [];
|
|
55423
|
+
message.ips.push(reader.string());
|
|
55424
|
+
break;
|
|
55425
|
+
}
|
|
55426
|
+
case 6: {
|
|
55427
|
+
message.pdoMode = reader.string();
|
|
55428
|
+
break;
|
|
55429
|
+
}
|
|
55430
|
+
default:
|
|
55431
|
+
reader.skipType(tag & 7);
|
|
55432
|
+
break;
|
|
55433
|
+
}
|
|
55434
|
+
}
|
|
55435
|
+
return message;
|
|
55436
|
+
};
|
|
55437
|
+
|
|
55438
|
+
/**
|
|
55439
|
+
* Decodes a StartOptions message from the specified reader or buffer, length delimited.
|
|
55440
|
+
* @function decodeDelimited
|
|
55441
|
+
* @memberof motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions
|
|
55442
|
+
* @static
|
|
55443
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
55444
|
+
* @returns {motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions} StartOptions
|
|
55445
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
55446
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
55447
|
+
*/
|
|
55448
|
+
StartOptions.decodeDelimited = function decodeDelimited(reader) {
|
|
55449
|
+
if (!(reader instanceof $Reader))
|
|
55450
|
+
reader = new $Reader(reader);
|
|
55451
|
+
return this.decode(reader, reader.uint32());
|
|
55452
|
+
};
|
|
55453
|
+
|
|
55454
|
+
/**
|
|
55455
|
+
* Verifies a StartOptions message.
|
|
55456
|
+
* @function verify
|
|
55457
|
+
* @memberof motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions
|
|
55458
|
+
* @static
|
|
55459
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
55460
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
55461
|
+
*/
|
|
55462
|
+
StartOptions.verify = function verify(message) {
|
|
55463
|
+
if (typeof message !== "object" || message === null)
|
|
55464
|
+
return "object expected";
|
|
55465
|
+
if (message.driver != null && message.hasOwnProperty("driver"))
|
|
55466
|
+
if (!$util.isString(message.driver))
|
|
55467
|
+
return "driver: string expected";
|
|
55468
|
+
if (message.mac != null && message.hasOwnProperty("mac"))
|
|
55469
|
+
if (!$util.isString(message.mac))
|
|
55470
|
+
return "mac: string expected";
|
|
55471
|
+
if (message.reqResPort != null && message.hasOwnProperty("reqResPort"))
|
|
55472
|
+
if (!$util.isInteger(message.reqResPort))
|
|
55473
|
+
return "reqResPort: integer expected";
|
|
55474
|
+
if (message.pubSubPort != null && message.hasOwnProperty("pubSubPort"))
|
|
55475
|
+
if (!$util.isInteger(message.pubSubPort))
|
|
55476
|
+
return "pubSubPort: integer expected";
|
|
55477
|
+
if (message.ips != null && message.hasOwnProperty("ips")) {
|
|
55478
|
+
if (!Array.isArray(message.ips))
|
|
55479
|
+
return "ips: array expected";
|
|
55480
|
+
for (let i = 0; i < message.ips.length; ++i)
|
|
55481
|
+
if (!$util.isString(message.ips[i]))
|
|
55482
|
+
return "ips: string[] expected";
|
|
55483
|
+
}
|
|
55484
|
+
if (message.pdoMode != null && message.hasOwnProperty("pdoMode"))
|
|
55485
|
+
if (!$util.isString(message.pdoMode))
|
|
55486
|
+
return "pdoMode: string expected";
|
|
55487
|
+
return null;
|
|
55488
|
+
};
|
|
55489
|
+
|
|
55490
|
+
/**
|
|
55491
|
+
* Creates a StartOptions message from a plain object. Also converts values to their respective internal types.
|
|
55492
|
+
* @function fromObject
|
|
55493
|
+
* @memberof motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions
|
|
55494
|
+
* @static
|
|
55495
|
+
* @param {Object.<string,*>} object Plain object
|
|
55496
|
+
* @returns {motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions} StartOptions
|
|
55497
|
+
*/
|
|
55498
|
+
StartOptions.fromObject = function fromObject(object) {
|
|
55499
|
+
if (object instanceof $root.motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions)
|
|
55500
|
+
return object;
|
|
55501
|
+
let message = new $root.motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions();
|
|
55502
|
+
if (object.driver != null)
|
|
55503
|
+
message.driver = String(object.driver);
|
|
55504
|
+
if (object.mac != null)
|
|
55505
|
+
message.mac = String(object.mac);
|
|
55506
|
+
if (object.reqResPort != null)
|
|
55507
|
+
message.reqResPort = object.reqResPort >>> 0;
|
|
55508
|
+
if (object.pubSubPort != null)
|
|
55509
|
+
message.pubSubPort = object.pubSubPort >>> 0;
|
|
55510
|
+
if (object.ips) {
|
|
55511
|
+
if (!Array.isArray(object.ips))
|
|
55512
|
+
throw TypeError(".motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions.ips: array expected");
|
|
55513
|
+
message.ips = [];
|
|
55514
|
+
for (let i = 0; i < object.ips.length; ++i)
|
|
55515
|
+
message.ips[i] = String(object.ips[i]);
|
|
55516
|
+
}
|
|
55517
|
+
if (object.pdoMode != null)
|
|
55518
|
+
message.pdoMode = String(object.pdoMode);
|
|
55519
|
+
return message;
|
|
55520
|
+
};
|
|
55521
|
+
|
|
55522
|
+
/**
|
|
55523
|
+
* Creates a plain object from a StartOptions message. Also converts values to other types if specified.
|
|
55524
|
+
* @function toObject
|
|
55525
|
+
* @memberof motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions
|
|
55526
|
+
* @static
|
|
55527
|
+
* @param {motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions} message StartOptions
|
|
55528
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
55529
|
+
* @returns {Object.<string,*>} Plain object
|
|
55530
|
+
*/
|
|
55531
|
+
StartOptions.toObject = function toObject(message, options) {
|
|
55532
|
+
if (!options)
|
|
55533
|
+
options = {};
|
|
55534
|
+
let object = {};
|
|
55535
|
+
if (options.arrays || options.defaults)
|
|
55536
|
+
object.ips = [];
|
|
55537
|
+
if (options.defaults) {
|
|
55538
|
+
object.driver = "";
|
|
55539
|
+
object.mac = "";
|
|
55540
|
+
object.reqResPort = 0;
|
|
55541
|
+
object.pubSubPort = 0;
|
|
55542
|
+
object.pdoMode = "";
|
|
55543
|
+
}
|
|
55544
|
+
if (message.driver != null && message.hasOwnProperty("driver"))
|
|
55545
|
+
object.driver = message.driver;
|
|
55546
|
+
if (message.mac != null && message.hasOwnProperty("mac"))
|
|
55547
|
+
object.mac = message.mac;
|
|
55548
|
+
if (message.reqResPort != null && message.hasOwnProperty("reqResPort"))
|
|
55549
|
+
object.reqResPort = message.reqResPort;
|
|
55550
|
+
if (message.pubSubPort != null && message.hasOwnProperty("pubSubPort"))
|
|
55551
|
+
object.pubSubPort = message.pubSubPort;
|
|
55552
|
+
if (message.ips && message.ips.length) {
|
|
55553
|
+
object.ips = [];
|
|
55554
|
+
for (let j = 0; j < message.ips.length; ++j)
|
|
55555
|
+
object.ips[j] = message.ips[j];
|
|
55556
|
+
}
|
|
55557
|
+
if (message.pdoMode != null && message.hasOwnProperty("pdoMode"))
|
|
55558
|
+
object.pdoMode = message.pdoMode;
|
|
55559
|
+
return object;
|
|
55560
|
+
};
|
|
55561
|
+
|
|
55562
|
+
/**
|
|
55563
|
+
* Converts this StartOptions to JSON.
|
|
55564
|
+
* @function toJSON
|
|
55565
|
+
* @memberof motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions
|
|
55566
|
+
* @instance
|
|
55567
|
+
* @returns {Object.<string,*>} JSON object
|
|
55568
|
+
*/
|
|
55569
|
+
StartOptions.prototype.toJSON = function toJSON() {
|
|
55570
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
55571
|
+
};
|
|
55572
|
+
|
|
55573
|
+
/**
|
|
55574
|
+
* Gets the default type url for StartOptions
|
|
55575
|
+
* @function getTypeUrl
|
|
55576
|
+
* @memberof motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions
|
|
55577
|
+
* @static
|
|
55578
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
55579
|
+
* @returns {string} The default type url
|
|
55580
|
+
*/
|
|
55581
|
+
StartOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
55582
|
+
if (typeUrlPrefix === undefined) {
|
|
55583
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
55584
|
+
}
|
|
55585
|
+
return typeUrlPrefix + "/motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions";
|
|
55586
|
+
};
|
|
55587
|
+
|
|
55588
|
+
return StartOptions;
|
|
55589
|
+
})();
|
|
55590
|
+
|
|
55591
|
+
return SystemInformation;
|
|
55592
|
+
})();
|
|
55593
|
+
|
|
55594
|
+
Status.PdoMode = (function() {
|
|
55595
|
+
|
|
55596
|
+
/**
|
|
55597
|
+
* Properties of a PdoMode.
|
|
55598
|
+
* @memberof motionmaster.MotionMasterMessage.Status
|
|
55599
|
+
* @interface IPdoMode
|
|
55600
|
+
* @property {motionmaster.MotionMasterMessage.Status.PdoMode.ISuccess|null} [success] PdoMode success
|
|
55601
|
+
* @property {motionmaster.MotionMasterMessage.Status.PdoMode.IError|null} [error] PdoMode error
|
|
55602
|
+
*/
|
|
55603
|
+
|
|
55604
|
+
/**
|
|
55605
|
+
* Constructs a new PdoMode.
|
|
55606
|
+
* @memberof motionmaster.MotionMasterMessage.Status
|
|
55607
|
+
* @classdesc Represents a PdoMode.
|
|
55608
|
+
* @implements IPdoMode
|
|
55609
|
+
* @constructor
|
|
55610
|
+
* @param {motionmaster.MotionMasterMessage.Status.IPdoMode=} [properties] Properties to set
|
|
55611
|
+
*/
|
|
55612
|
+
function PdoMode(properties) {
|
|
55613
|
+
if (properties)
|
|
55614
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
55615
|
+
if (properties[keys[i]] != null)
|
|
55616
|
+
this[keys[i]] = properties[keys[i]];
|
|
55617
|
+
}
|
|
55618
|
+
|
|
55619
|
+
/**
|
|
55620
|
+
* PdoMode success.
|
|
55621
|
+
* @member {motionmaster.MotionMasterMessage.Status.PdoMode.ISuccess|null|undefined} success
|
|
55622
|
+
* @memberof motionmaster.MotionMasterMessage.Status.PdoMode
|
|
55623
|
+
* @instance
|
|
55624
|
+
*/
|
|
55625
|
+
PdoMode.prototype.success = null;
|
|
55626
|
+
|
|
55627
|
+
/**
|
|
55628
|
+
* PdoMode error.
|
|
55629
|
+
* @member {motionmaster.MotionMasterMessage.Status.PdoMode.IError|null|undefined} error
|
|
55630
|
+
* @memberof motionmaster.MotionMasterMessage.Status.PdoMode
|
|
55631
|
+
* @instance
|
|
55632
|
+
*/
|
|
55633
|
+
PdoMode.prototype.error = null;
|
|
55634
|
+
|
|
55635
|
+
// OneOf field names bound to virtual getters and setters
|
|
55636
|
+
let $oneOfFields;
|
|
55637
|
+
|
|
55638
|
+
/**
|
|
55639
|
+
* PdoMode status.
|
|
55640
|
+
* @member {"success"|"error"|undefined} status
|
|
55641
|
+
* @memberof motionmaster.MotionMasterMessage.Status.PdoMode
|
|
55642
|
+
* @instance
|
|
55643
|
+
*/
|
|
55644
|
+
Object.defineProperty(PdoMode.prototype, "status", {
|
|
55645
|
+
get: $util.oneOfGetter($oneOfFields = ["success", "error"]),
|
|
55646
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
55647
|
+
});
|
|
55648
|
+
|
|
55649
|
+
/**
|
|
55650
|
+
* Creates a new PdoMode instance using the specified properties.
|
|
55651
|
+
* @function create
|
|
55652
|
+
* @memberof motionmaster.MotionMasterMessage.Status.PdoMode
|
|
55653
|
+
* @static
|
|
55654
|
+
* @param {motionmaster.MotionMasterMessage.Status.IPdoMode=} [properties] Properties to set
|
|
55655
|
+
* @returns {motionmaster.MotionMasterMessage.Status.PdoMode} PdoMode instance
|
|
55656
|
+
*/
|
|
55657
|
+
PdoMode.create = function create(properties) {
|
|
55658
|
+
return new PdoMode(properties);
|
|
55659
|
+
};
|
|
55660
|
+
|
|
55661
|
+
/**
|
|
55662
|
+
* Encodes the specified PdoMode message. Does not implicitly {@link motionmaster.MotionMasterMessage.Status.PdoMode.verify|verify} messages.
|
|
55663
|
+
* @function encode
|
|
55664
|
+
* @memberof motionmaster.MotionMasterMessage.Status.PdoMode
|
|
55665
|
+
* @static
|
|
55666
|
+
* @param {motionmaster.MotionMasterMessage.Status.IPdoMode} message PdoMode message or plain object to encode
|
|
55667
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
55668
|
+
* @returns {$protobuf.Writer} Writer
|
|
55669
|
+
*/
|
|
55670
|
+
PdoMode.encode = function encode(message, writer) {
|
|
55671
|
+
if (!writer)
|
|
55672
|
+
writer = $Writer.create();
|
|
55673
|
+
if (message.success != null && Object.hasOwnProperty.call(message, "success"))
|
|
55674
|
+
$root.motionmaster.MotionMasterMessage.Status.PdoMode.Success.encode(message.success, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
55675
|
+
if (message.error != null && Object.hasOwnProperty.call(message, "error"))
|
|
55676
|
+
$root.motionmaster.MotionMasterMessage.Status.PdoMode.Error.encode(message.error, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
55677
|
+
return writer;
|
|
55678
|
+
};
|
|
55679
|
+
|
|
55680
|
+
/**
|
|
55681
|
+
* Encodes the specified PdoMode message, length delimited. Does not implicitly {@link motionmaster.MotionMasterMessage.Status.PdoMode.verify|verify} messages.
|
|
55682
|
+
* @function encodeDelimited
|
|
55683
|
+
* @memberof motionmaster.MotionMasterMessage.Status.PdoMode
|
|
55684
|
+
* @static
|
|
55685
|
+
* @param {motionmaster.MotionMasterMessage.Status.IPdoMode} message PdoMode message or plain object to encode
|
|
55686
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
55687
|
+
* @returns {$protobuf.Writer} Writer
|
|
55688
|
+
*/
|
|
55689
|
+
PdoMode.encodeDelimited = function encodeDelimited(message, writer) {
|
|
55690
|
+
return this.encode(message, writer).ldelim();
|
|
55691
|
+
};
|
|
55692
|
+
|
|
55693
|
+
/**
|
|
55694
|
+
* Decodes a PdoMode message from the specified reader or buffer.
|
|
55695
|
+
* @function decode
|
|
55696
|
+
* @memberof motionmaster.MotionMasterMessage.Status.PdoMode
|
|
55697
|
+
* @static
|
|
55698
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
55699
|
+
* @param {number} [length] Message length if known beforehand
|
|
55700
|
+
* @returns {motionmaster.MotionMasterMessage.Status.PdoMode} PdoMode
|
|
55701
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
55702
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
55703
|
+
*/
|
|
55704
|
+
PdoMode.decode = function decode(reader, length) {
|
|
55705
|
+
if (!(reader instanceof $Reader))
|
|
55706
|
+
reader = $Reader.create(reader);
|
|
55707
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.motionmaster.MotionMasterMessage.Status.PdoMode();
|
|
55708
|
+
while (reader.pos < end) {
|
|
55709
|
+
let tag = reader.uint32();
|
|
55710
|
+
switch (tag >>> 3) {
|
|
55711
|
+
case 2: {
|
|
55712
|
+
message.success = $root.motionmaster.MotionMasterMessage.Status.PdoMode.Success.decode(reader, reader.uint32());
|
|
55713
|
+
break;
|
|
55714
|
+
}
|
|
55715
|
+
case 3: {
|
|
55716
|
+
message.error = $root.motionmaster.MotionMasterMessage.Status.PdoMode.Error.decode(reader, reader.uint32());
|
|
55717
|
+
break;
|
|
55718
|
+
}
|
|
55719
|
+
default:
|
|
55720
|
+
reader.skipType(tag & 7);
|
|
55721
|
+
break;
|
|
55722
|
+
}
|
|
55723
|
+
}
|
|
55724
|
+
return message;
|
|
55725
|
+
};
|
|
55726
|
+
|
|
55727
|
+
/**
|
|
55728
|
+
* Decodes a PdoMode message from the specified reader or buffer, length delimited.
|
|
55729
|
+
* @function decodeDelimited
|
|
55730
|
+
* @memberof motionmaster.MotionMasterMessage.Status.PdoMode
|
|
55731
|
+
* @static
|
|
55732
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
55733
|
+
* @returns {motionmaster.MotionMasterMessage.Status.PdoMode} PdoMode
|
|
55734
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
55735
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
55736
|
+
*/
|
|
55737
|
+
PdoMode.decodeDelimited = function decodeDelimited(reader) {
|
|
55738
|
+
if (!(reader instanceof $Reader))
|
|
55739
|
+
reader = new $Reader(reader);
|
|
55740
|
+
return this.decode(reader, reader.uint32());
|
|
55741
|
+
};
|
|
55742
|
+
|
|
55743
|
+
/**
|
|
55744
|
+
* Verifies a PdoMode message.
|
|
55745
|
+
* @function verify
|
|
55746
|
+
* @memberof motionmaster.MotionMasterMessage.Status.PdoMode
|
|
55747
|
+
* @static
|
|
55748
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
55749
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
55750
|
+
*/
|
|
55751
|
+
PdoMode.verify = function verify(message) {
|
|
55752
|
+
if (typeof message !== "object" || message === null)
|
|
55753
|
+
return "object expected";
|
|
55754
|
+
let properties = {};
|
|
55755
|
+
if (message.success != null && message.hasOwnProperty("success")) {
|
|
55756
|
+
properties.status = 1;
|
|
55757
|
+
{
|
|
55758
|
+
let error = $root.motionmaster.MotionMasterMessage.Status.PdoMode.Success.verify(message.success);
|
|
55759
|
+
if (error)
|
|
55760
|
+
return "success." + error;
|
|
55761
|
+
}
|
|
55762
|
+
}
|
|
55763
|
+
if (message.error != null && message.hasOwnProperty("error")) {
|
|
55764
|
+
if (properties.status === 1)
|
|
55765
|
+
return "status: multiple values";
|
|
55766
|
+
properties.status = 1;
|
|
55767
|
+
{
|
|
55768
|
+
let error = $root.motionmaster.MotionMasterMessage.Status.PdoMode.Error.verify(message.error);
|
|
55769
|
+
if (error)
|
|
55770
|
+
return "error." + error;
|
|
55771
|
+
}
|
|
55772
|
+
}
|
|
55773
|
+
return null;
|
|
55774
|
+
};
|
|
55775
|
+
|
|
55776
|
+
/**
|
|
55777
|
+
* Creates a PdoMode message from a plain object. Also converts values to their respective internal types.
|
|
55778
|
+
* @function fromObject
|
|
55779
|
+
* @memberof motionmaster.MotionMasterMessage.Status.PdoMode
|
|
55780
|
+
* @static
|
|
55781
|
+
* @param {Object.<string,*>} object Plain object
|
|
55782
|
+
* @returns {motionmaster.MotionMasterMessage.Status.PdoMode} PdoMode
|
|
55783
|
+
*/
|
|
55784
|
+
PdoMode.fromObject = function fromObject(object) {
|
|
55785
|
+
if (object instanceof $root.motionmaster.MotionMasterMessage.Status.PdoMode)
|
|
55786
|
+
return object;
|
|
55787
|
+
let message = new $root.motionmaster.MotionMasterMessage.Status.PdoMode();
|
|
55788
|
+
if (object.success != null) {
|
|
55789
|
+
if (typeof object.success !== "object")
|
|
55790
|
+
throw TypeError(".motionmaster.MotionMasterMessage.Status.PdoMode.success: object expected");
|
|
55791
|
+
message.success = $root.motionmaster.MotionMasterMessage.Status.PdoMode.Success.fromObject(object.success);
|
|
55792
|
+
}
|
|
55793
|
+
if (object.error != null) {
|
|
55794
|
+
if (typeof object.error !== "object")
|
|
55795
|
+
throw TypeError(".motionmaster.MotionMasterMessage.Status.PdoMode.error: object expected");
|
|
55796
|
+
message.error = $root.motionmaster.MotionMasterMessage.Status.PdoMode.Error.fromObject(object.error);
|
|
55797
|
+
}
|
|
55798
|
+
return message;
|
|
55799
|
+
};
|
|
55800
|
+
|
|
55801
|
+
/**
|
|
55802
|
+
* Creates a plain object from a PdoMode message. Also converts values to other types if specified.
|
|
55803
|
+
* @function toObject
|
|
55804
|
+
* @memberof motionmaster.MotionMasterMessage.Status.PdoMode
|
|
55805
|
+
* @static
|
|
55806
|
+
* @param {motionmaster.MotionMasterMessage.Status.PdoMode} message PdoMode
|
|
55807
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
55808
|
+
* @returns {Object.<string,*>} Plain object
|
|
55809
|
+
*/
|
|
55810
|
+
PdoMode.toObject = function toObject(message, options) {
|
|
55811
|
+
if (!options)
|
|
55812
|
+
options = {};
|
|
55813
|
+
let object = {};
|
|
55814
|
+
if (message.success != null && message.hasOwnProperty("success")) {
|
|
55815
|
+
object.success = $root.motionmaster.MotionMasterMessage.Status.PdoMode.Success.toObject(message.success, options);
|
|
55816
|
+
if (options.oneofs)
|
|
55817
|
+
object.status = "success";
|
|
55818
|
+
}
|
|
55819
|
+
if (message.error != null && message.hasOwnProperty("error")) {
|
|
55820
|
+
object.error = $root.motionmaster.MotionMasterMessage.Status.PdoMode.Error.toObject(message.error, options);
|
|
55821
|
+
if (options.oneofs)
|
|
55822
|
+
object.status = "error";
|
|
55823
|
+
}
|
|
55824
|
+
return object;
|
|
55825
|
+
};
|
|
55826
|
+
|
|
55827
|
+
/**
|
|
55828
|
+
* Converts this PdoMode to JSON.
|
|
55829
|
+
* @function toJSON
|
|
55830
|
+
* @memberof motionmaster.MotionMasterMessage.Status.PdoMode
|
|
55831
|
+
* @instance
|
|
55832
|
+
* @returns {Object.<string,*>} JSON object
|
|
55833
|
+
*/
|
|
55834
|
+
PdoMode.prototype.toJSON = function toJSON() {
|
|
55835
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
55836
|
+
};
|
|
55837
|
+
|
|
55838
|
+
/**
|
|
55839
|
+
* Gets the default type url for PdoMode
|
|
55840
|
+
* @function getTypeUrl
|
|
55841
|
+
* @memberof motionmaster.MotionMasterMessage.Status.PdoMode
|
|
55842
|
+
* @static
|
|
55843
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
55844
|
+
* @returns {string} The default type url
|
|
55845
|
+
*/
|
|
55846
|
+
PdoMode.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
55847
|
+
if (typeUrlPrefix === undefined) {
|
|
55848
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
55849
|
+
}
|
|
55850
|
+
return typeUrlPrefix + "/motionmaster.MotionMasterMessage.Status.PdoMode";
|
|
55851
|
+
};
|
|
55852
|
+
|
|
55853
|
+
PdoMode.Success = (function() {
|
|
55854
|
+
|
|
55855
|
+
/**
|
|
55856
|
+
* Properties of a Success.
|
|
55857
|
+
* @memberof motionmaster.MotionMasterMessage.Status.PdoMode
|
|
55858
|
+
* @interface ISuccess
|
|
55859
|
+
* @property {motionmaster.MotionMasterMessage.Status.PdoMode.Success.Code|null} [code] Success code
|
|
55860
|
+
* @property {string|null} [message] Success message
|
|
55861
|
+
*/
|
|
55862
|
+
|
|
55863
|
+
/**
|
|
55864
|
+
* Constructs a new Success.
|
|
55865
|
+
* @memberof motionmaster.MotionMasterMessage.Status.PdoMode
|
|
55866
|
+
* @classdesc Represents a Success.
|
|
55867
|
+
* @implements ISuccess
|
|
55868
|
+
* @constructor
|
|
55869
|
+
* @param {motionmaster.MotionMasterMessage.Status.PdoMode.ISuccess=} [properties] Properties to set
|
|
55870
|
+
*/
|
|
55871
|
+
function Success(properties) {
|
|
55872
|
+
if (properties)
|
|
55873
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
55874
|
+
if (properties[keys[i]] != null)
|
|
55875
|
+
this[keys[i]] = properties[keys[i]];
|
|
55876
|
+
}
|
|
55877
|
+
|
|
55878
|
+
/**
|
|
55879
|
+
* Success code.
|
|
55880
|
+
* @member {motionmaster.MotionMasterMessage.Status.PdoMode.Success.Code} code
|
|
55881
|
+
* @memberof motionmaster.MotionMasterMessage.Status.PdoMode.Success
|
|
55882
|
+
* @instance
|
|
55883
|
+
*/
|
|
55884
|
+
Success.prototype.code = 0;
|
|
55885
|
+
|
|
55886
|
+
/**
|
|
55887
|
+
* Success message.
|
|
55888
|
+
* @member {string} message
|
|
55889
|
+
* @memberof motionmaster.MotionMasterMessage.Status.PdoMode.Success
|
|
55890
|
+
* @instance
|
|
55891
|
+
*/
|
|
55892
|
+
Success.prototype.message = "";
|
|
55893
|
+
|
|
55894
|
+
/**
|
|
55895
|
+
* Creates a new Success instance using the specified properties.
|
|
55896
|
+
* @function create
|
|
55897
|
+
* @memberof motionmaster.MotionMasterMessage.Status.PdoMode.Success
|
|
55898
|
+
* @static
|
|
55899
|
+
* @param {motionmaster.MotionMasterMessage.Status.PdoMode.ISuccess=} [properties] Properties to set
|
|
55900
|
+
* @returns {motionmaster.MotionMasterMessage.Status.PdoMode.Success} Success instance
|
|
55901
|
+
*/
|
|
55902
|
+
Success.create = function create(properties) {
|
|
55903
|
+
return new Success(properties);
|
|
55904
|
+
};
|
|
55905
|
+
|
|
55906
|
+
/**
|
|
55907
|
+
* Encodes the specified Success message. Does not implicitly {@link motionmaster.MotionMasterMessage.Status.PdoMode.Success.verify|verify} messages.
|
|
55908
|
+
* @function encode
|
|
55909
|
+
* @memberof motionmaster.MotionMasterMessage.Status.PdoMode.Success
|
|
55910
|
+
* @static
|
|
55911
|
+
* @param {motionmaster.MotionMasterMessage.Status.PdoMode.ISuccess} message Success message or plain object to encode
|
|
55912
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
55913
|
+
* @returns {$protobuf.Writer} Writer
|
|
55914
|
+
*/
|
|
55915
|
+
Success.encode = function encode(message, writer) {
|
|
55916
|
+
if (!writer)
|
|
55917
|
+
writer = $Writer.create();
|
|
55918
|
+
if (message.code != null && Object.hasOwnProperty.call(message, "code"))
|
|
55919
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.code);
|
|
55920
|
+
if (message.message != null && Object.hasOwnProperty.call(message, "message"))
|
|
55921
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.message);
|
|
55922
|
+
return writer;
|
|
55923
|
+
};
|
|
55924
|
+
|
|
55925
|
+
/**
|
|
55926
|
+
* Encodes the specified Success message, length delimited. Does not implicitly {@link motionmaster.MotionMasterMessage.Status.PdoMode.Success.verify|verify} messages.
|
|
55927
|
+
* @function encodeDelimited
|
|
55928
|
+
* @memberof motionmaster.MotionMasterMessage.Status.PdoMode.Success
|
|
55929
|
+
* @static
|
|
55930
|
+
* @param {motionmaster.MotionMasterMessage.Status.PdoMode.ISuccess} message Success message or plain object to encode
|
|
55931
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
55932
|
+
* @returns {$protobuf.Writer} Writer
|
|
55933
|
+
*/
|
|
55934
|
+
Success.encodeDelimited = function encodeDelimited(message, writer) {
|
|
55935
|
+
return this.encode(message, writer).ldelim();
|
|
55936
|
+
};
|
|
55937
|
+
|
|
55938
|
+
/**
|
|
55939
|
+
* Decodes a Success message from the specified reader or buffer.
|
|
55940
|
+
* @function decode
|
|
55941
|
+
* @memberof motionmaster.MotionMasterMessage.Status.PdoMode.Success
|
|
55942
|
+
* @static
|
|
55943
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
55944
|
+
* @param {number} [length] Message length if known beforehand
|
|
55945
|
+
* @returns {motionmaster.MotionMasterMessage.Status.PdoMode.Success} Success
|
|
55946
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
55947
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
55948
|
+
*/
|
|
55949
|
+
Success.decode = function decode(reader, length) {
|
|
55950
|
+
if (!(reader instanceof $Reader))
|
|
55951
|
+
reader = $Reader.create(reader);
|
|
55952
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.motionmaster.MotionMasterMessage.Status.PdoMode.Success();
|
|
55953
|
+
while (reader.pos < end) {
|
|
55954
|
+
let tag = reader.uint32();
|
|
55955
|
+
switch (tag >>> 3) {
|
|
55956
|
+
case 1: {
|
|
55957
|
+
message.code = reader.int32();
|
|
55958
|
+
break;
|
|
55959
|
+
}
|
|
55960
|
+
case 2: {
|
|
55961
|
+
message.message = reader.string();
|
|
55962
|
+
break;
|
|
55963
|
+
}
|
|
55964
|
+
default:
|
|
55965
|
+
reader.skipType(tag & 7);
|
|
55966
|
+
break;
|
|
55967
|
+
}
|
|
55968
|
+
}
|
|
55969
|
+
return message;
|
|
55970
|
+
};
|
|
55971
|
+
|
|
55972
|
+
/**
|
|
55973
|
+
* Decodes a Success message from the specified reader or buffer, length delimited.
|
|
55974
|
+
* @function decodeDelimited
|
|
55975
|
+
* @memberof motionmaster.MotionMasterMessage.Status.PdoMode.Success
|
|
55976
|
+
* @static
|
|
55977
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
55978
|
+
* @returns {motionmaster.MotionMasterMessage.Status.PdoMode.Success} Success
|
|
55979
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
55980
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
55981
|
+
*/
|
|
55982
|
+
Success.decodeDelimited = function decodeDelimited(reader) {
|
|
55983
|
+
if (!(reader instanceof $Reader))
|
|
55984
|
+
reader = new $Reader(reader);
|
|
55985
|
+
return this.decode(reader, reader.uint32());
|
|
55986
|
+
};
|
|
55987
|
+
|
|
55988
|
+
/**
|
|
55989
|
+
* Verifies a Success message.
|
|
55990
|
+
* @function verify
|
|
55991
|
+
* @memberof motionmaster.MotionMasterMessage.Status.PdoMode.Success
|
|
55992
|
+
* @static
|
|
55993
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
55994
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
55995
|
+
*/
|
|
55996
|
+
Success.verify = function verify(message) {
|
|
55997
|
+
if (typeof message !== "object" || message === null)
|
|
55998
|
+
return "object expected";
|
|
55999
|
+
if (message.code != null && message.hasOwnProperty("code"))
|
|
56000
|
+
switch (message.code) {
|
|
56001
|
+
default:
|
|
56002
|
+
return "code: enum value expected";
|
|
56003
|
+
case 0:
|
|
56004
|
+
break;
|
|
56005
|
+
}
|
|
56006
|
+
if (message.message != null && message.hasOwnProperty("message"))
|
|
56007
|
+
if (!$util.isString(message.message))
|
|
56008
|
+
return "message: string expected";
|
|
56009
|
+
return null;
|
|
56010
|
+
};
|
|
56011
|
+
|
|
56012
|
+
/**
|
|
56013
|
+
* Creates a Success message from a plain object. Also converts values to their respective internal types.
|
|
56014
|
+
* @function fromObject
|
|
56015
|
+
* @memberof motionmaster.MotionMasterMessage.Status.PdoMode.Success
|
|
56016
|
+
* @static
|
|
56017
|
+
* @param {Object.<string,*>} object Plain object
|
|
56018
|
+
* @returns {motionmaster.MotionMasterMessage.Status.PdoMode.Success} Success
|
|
56019
|
+
*/
|
|
56020
|
+
Success.fromObject = function fromObject(object) {
|
|
56021
|
+
if (object instanceof $root.motionmaster.MotionMasterMessage.Status.PdoMode.Success)
|
|
56022
|
+
return object;
|
|
56023
|
+
let message = new $root.motionmaster.MotionMasterMessage.Status.PdoMode.Success();
|
|
56024
|
+
switch (object.code) {
|
|
56025
|
+
default:
|
|
56026
|
+
if (typeof object.code === "number") {
|
|
56027
|
+
message.code = object.code;
|
|
56028
|
+
break;
|
|
56029
|
+
}
|
|
56030
|
+
break;
|
|
56031
|
+
case "UNSPECIFIED":
|
|
56032
|
+
case 0:
|
|
56033
|
+
message.code = 0;
|
|
56034
|
+
break;
|
|
56035
|
+
}
|
|
56036
|
+
if (object.message != null)
|
|
56037
|
+
message.message = String(object.message);
|
|
56038
|
+
return message;
|
|
56039
|
+
};
|
|
56040
|
+
|
|
56041
|
+
/**
|
|
56042
|
+
* Creates a plain object from a Success message. Also converts values to other types if specified.
|
|
56043
|
+
* @function toObject
|
|
56044
|
+
* @memberof motionmaster.MotionMasterMessage.Status.PdoMode.Success
|
|
56045
|
+
* @static
|
|
56046
|
+
* @param {motionmaster.MotionMasterMessage.Status.PdoMode.Success} message Success
|
|
56047
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
56048
|
+
* @returns {Object.<string,*>} Plain object
|
|
56049
|
+
*/
|
|
56050
|
+
Success.toObject = function toObject(message, options) {
|
|
56051
|
+
if (!options)
|
|
56052
|
+
options = {};
|
|
56053
|
+
let object = {};
|
|
56054
|
+
if (options.defaults) {
|
|
56055
|
+
object.code = options.enums === String ? "UNSPECIFIED" : 0;
|
|
56056
|
+
object.message = "";
|
|
56057
|
+
}
|
|
56058
|
+
if (message.code != null && message.hasOwnProperty("code"))
|
|
56059
|
+
object.code = options.enums === String ? $root.motionmaster.MotionMasterMessage.Status.PdoMode.Success.Code[message.code] === undefined ? message.code : $root.motionmaster.MotionMasterMessage.Status.PdoMode.Success.Code[message.code] : message.code;
|
|
56060
|
+
if (message.message != null && message.hasOwnProperty("message"))
|
|
56061
|
+
object.message = message.message;
|
|
56062
|
+
return object;
|
|
56063
|
+
};
|
|
56064
|
+
|
|
56065
|
+
/**
|
|
56066
|
+
* Converts this Success to JSON.
|
|
56067
|
+
* @function toJSON
|
|
56068
|
+
* @memberof motionmaster.MotionMasterMessage.Status.PdoMode.Success
|
|
56069
|
+
* @instance
|
|
56070
|
+
* @returns {Object.<string,*>} JSON object
|
|
56071
|
+
*/
|
|
56072
|
+
Success.prototype.toJSON = function toJSON() {
|
|
56073
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
56074
|
+
};
|
|
56075
|
+
|
|
56076
|
+
/**
|
|
56077
|
+
* Gets the default type url for Success
|
|
56078
|
+
* @function getTypeUrl
|
|
56079
|
+
* @memberof motionmaster.MotionMasterMessage.Status.PdoMode.Success
|
|
56080
|
+
* @static
|
|
56081
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
56082
|
+
* @returns {string} The default type url
|
|
56083
|
+
*/
|
|
56084
|
+
Success.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
56085
|
+
if (typeUrlPrefix === undefined) {
|
|
56086
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
56087
|
+
}
|
|
56088
|
+
return typeUrlPrefix + "/motionmaster.MotionMasterMessage.Status.PdoMode.Success";
|
|
56089
|
+
};
|
|
56090
|
+
|
|
56091
|
+
/**
|
|
56092
|
+
* Code enum.
|
|
56093
|
+
* @name motionmaster.MotionMasterMessage.Status.PdoMode.Success.Code
|
|
56094
|
+
* @enum {number}
|
|
56095
|
+
* @property {number} UNSPECIFIED=0 UNSPECIFIED value
|
|
56096
|
+
*/
|
|
56097
|
+
Success.Code = (function() {
|
|
56098
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
56099
|
+
values[valuesById[0] = "UNSPECIFIED"] = 0;
|
|
56100
|
+
return values;
|
|
56101
|
+
})();
|
|
56102
|
+
|
|
56103
|
+
return Success;
|
|
56104
|
+
})();
|
|
56105
|
+
|
|
56106
|
+
PdoMode.Error = (function() {
|
|
56107
|
+
|
|
56108
|
+
/**
|
|
56109
|
+
* Properties of an Error.
|
|
56110
|
+
* @memberof motionmaster.MotionMasterMessage.Status.PdoMode
|
|
56111
|
+
* @interface IError
|
|
56112
|
+
* @property {motionmaster.MotionMasterMessage.Status.PdoMode.Error.Code|null} [code] Error code
|
|
56113
|
+
* @property {string|null} [message] Error message
|
|
56114
|
+
*/
|
|
56115
|
+
|
|
56116
|
+
/**
|
|
56117
|
+
* Constructs a new Error.
|
|
56118
|
+
* @memberof motionmaster.MotionMasterMessage.Status.PdoMode
|
|
56119
|
+
* @classdesc Represents an Error.
|
|
56120
|
+
* @implements IError
|
|
56121
|
+
* @constructor
|
|
56122
|
+
* @param {motionmaster.MotionMasterMessage.Status.PdoMode.IError=} [properties] Properties to set
|
|
56123
|
+
*/
|
|
56124
|
+
function Error(properties) {
|
|
56125
|
+
if (properties)
|
|
56126
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
56127
|
+
if (properties[keys[i]] != null)
|
|
56128
|
+
this[keys[i]] = properties[keys[i]];
|
|
56129
|
+
}
|
|
56130
|
+
|
|
56131
|
+
/**
|
|
56132
|
+
* Error code.
|
|
56133
|
+
* @member {motionmaster.MotionMasterMessage.Status.PdoMode.Error.Code} code
|
|
56134
|
+
* @memberof motionmaster.MotionMasterMessage.Status.PdoMode.Error
|
|
56135
|
+
* @instance
|
|
56136
|
+
*/
|
|
56137
|
+
Error.prototype.code = 0;
|
|
56138
|
+
|
|
56139
|
+
/**
|
|
56140
|
+
* Error message.
|
|
56141
|
+
* @member {string} message
|
|
56142
|
+
* @memberof motionmaster.MotionMasterMessage.Status.PdoMode.Error
|
|
56143
|
+
* @instance
|
|
56144
|
+
*/
|
|
56145
|
+
Error.prototype.message = "";
|
|
56146
|
+
|
|
56147
|
+
/**
|
|
56148
|
+
* Creates a new Error instance using the specified properties.
|
|
56149
|
+
* @function create
|
|
56150
|
+
* @memberof motionmaster.MotionMasterMessage.Status.PdoMode.Error
|
|
56151
|
+
* @static
|
|
56152
|
+
* @param {motionmaster.MotionMasterMessage.Status.PdoMode.IError=} [properties] Properties to set
|
|
56153
|
+
* @returns {motionmaster.MotionMasterMessage.Status.PdoMode.Error} Error instance
|
|
56154
|
+
*/
|
|
56155
|
+
Error.create = function create(properties) {
|
|
56156
|
+
return new Error(properties);
|
|
56157
|
+
};
|
|
56158
|
+
|
|
56159
|
+
/**
|
|
56160
|
+
* Encodes the specified Error message. Does not implicitly {@link motionmaster.MotionMasterMessage.Status.PdoMode.Error.verify|verify} messages.
|
|
56161
|
+
* @function encode
|
|
56162
|
+
* @memberof motionmaster.MotionMasterMessage.Status.PdoMode.Error
|
|
56163
|
+
* @static
|
|
56164
|
+
* @param {motionmaster.MotionMasterMessage.Status.PdoMode.IError} message Error message or plain object to encode
|
|
56165
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
56166
|
+
* @returns {$protobuf.Writer} Writer
|
|
56167
|
+
*/
|
|
56168
|
+
Error.encode = function encode(message, writer) {
|
|
56169
|
+
if (!writer)
|
|
56170
|
+
writer = $Writer.create();
|
|
56171
|
+
if (message.code != null && Object.hasOwnProperty.call(message, "code"))
|
|
56172
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.code);
|
|
56173
|
+
if (message.message != null && Object.hasOwnProperty.call(message, "message"))
|
|
56174
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.message);
|
|
56175
|
+
return writer;
|
|
56176
|
+
};
|
|
56177
|
+
|
|
56178
|
+
/**
|
|
56179
|
+
* Encodes the specified Error message, length delimited. Does not implicitly {@link motionmaster.MotionMasterMessage.Status.PdoMode.Error.verify|verify} messages.
|
|
56180
|
+
* @function encodeDelimited
|
|
56181
|
+
* @memberof motionmaster.MotionMasterMessage.Status.PdoMode.Error
|
|
56182
|
+
* @static
|
|
56183
|
+
* @param {motionmaster.MotionMasterMessage.Status.PdoMode.IError} message Error message or plain object to encode
|
|
56184
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
56185
|
+
* @returns {$protobuf.Writer} Writer
|
|
56186
|
+
*/
|
|
56187
|
+
Error.encodeDelimited = function encodeDelimited(message, writer) {
|
|
56188
|
+
return this.encode(message, writer).ldelim();
|
|
56189
|
+
};
|
|
56190
|
+
|
|
56191
|
+
/**
|
|
56192
|
+
* Decodes an Error message from the specified reader or buffer.
|
|
56193
|
+
* @function decode
|
|
56194
|
+
* @memberof motionmaster.MotionMasterMessage.Status.PdoMode.Error
|
|
56195
|
+
* @static
|
|
56196
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
56197
|
+
* @param {number} [length] Message length if known beforehand
|
|
56198
|
+
* @returns {motionmaster.MotionMasterMessage.Status.PdoMode.Error} Error
|
|
56199
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
56200
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
56201
|
+
*/
|
|
56202
|
+
Error.decode = function decode(reader, length) {
|
|
56203
|
+
if (!(reader instanceof $Reader))
|
|
56204
|
+
reader = $Reader.create(reader);
|
|
56205
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.motionmaster.MotionMasterMessage.Status.PdoMode.Error();
|
|
56206
|
+
while (reader.pos < end) {
|
|
56207
|
+
let tag = reader.uint32();
|
|
56208
|
+
switch (tag >>> 3) {
|
|
56209
|
+
case 1: {
|
|
56210
|
+
message.code = reader.int32();
|
|
56211
|
+
break;
|
|
56212
|
+
}
|
|
56213
|
+
case 2: {
|
|
56214
|
+
message.message = reader.string();
|
|
56215
|
+
break;
|
|
56216
|
+
}
|
|
56217
|
+
default:
|
|
56218
|
+
reader.skipType(tag & 7);
|
|
56219
|
+
break;
|
|
56220
|
+
}
|
|
56221
|
+
}
|
|
56222
|
+
return message;
|
|
56223
|
+
};
|
|
56224
|
+
|
|
56225
|
+
/**
|
|
56226
|
+
* Decodes an Error message from the specified reader or buffer, length delimited.
|
|
56227
|
+
* @function decodeDelimited
|
|
56228
|
+
* @memberof motionmaster.MotionMasterMessage.Status.PdoMode.Error
|
|
56229
|
+
* @static
|
|
56230
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
56231
|
+
* @returns {motionmaster.MotionMasterMessage.Status.PdoMode.Error} Error
|
|
56232
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
56233
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
56234
|
+
*/
|
|
56235
|
+
Error.decodeDelimited = function decodeDelimited(reader) {
|
|
56236
|
+
if (!(reader instanceof $Reader))
|
|
56237
|
+
reader = new $Reader(reader);
|
|
56238
|
+
return this.decode(reader, reader.uint32());
|
|
56239
|
+
};
|
|
56240
|
+
|
|
56241
|
+
/**
|
|
56242
|
+
* Verifies an Error message.
|
|
56243
|
+
* @function verify
|
|
56244
|
+
* @memberof motionmaster.MotionMasterMessage.Status.PdoMode.Error
|
|
56245
|
+
* @static
|
|
56246
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
56247
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
56248
|
+
*/
|
|
56249
|
+
Error.verify = function verify(message) {
|
|
56250
|
+
if (typeof message !== "object" || message === null)
|
|
56251
|
+
return "object expected";
|
|
56252
|
+
if (message.code != null && message.hasOwnProperty("code"))
|
|
56253
|
+
switch (message.code) {
|
|
56254
|
+
default:
|
|
56255
|
+
return "code: enum value expected";
|
|
56256
|
+
case 0:
|
|
56257
|
+
break;
|
|
56258
|
+
}
|
|
56259
|
+
if (message.message != null && message.hasOwnProperty("message"))
|
|
56260
|
+
if (!$util.isString(message.message))
|
|
56261
|
+
return "message: string expected";
|
|
56262
|
+
return null;
|
|
56263
|
+
};
|
|
56264
|
+
|
|
56265
|
+
/**
|
|
56266
|
+
* Creates an Error message from a plain object. Also converts values to their respective internal types.
|
|
56267
|
+
* @function fromObject
|
|
56268
|
+
* @memberof motionmaster.MotionMasterMessage.Status.PdoMode.Error
|
|
56269
|
+
* @static
|
|
56270
|
+
* @param {Object.<string,*>} object Plain object
|
|
56271
|
+
* @returns {motionmaster.MotionMasterMessage.Status.PdoMode.Error} Error
|
|
56272
|
+
*/
|
|
56273
|
+
Error.fromObject = function fromObject(object) {
|
|
56274
|
+
if (object instanceof $root.motionmaster.MotionMasterMessage.Status.PdoMode.Error)
|
|
56275
|
+
return object;
|
|
56276
|
+
let message = new $root.motionmaster.MotionMasterMessage.Status.PdoMode.Error();
|
|
56277
|
+
switch (object.code) {
|
|
56278
|
+
default:
|
|
56279
|
+
if (typeof object.code === "number") {
|
|
56280
|
+
message.code = object.code;
|
|
56281
|
+
break;
|
|
56282
|
+
}
|
|
56283
|
+
break;
|
|
56284
|
+
case "UNSPECIFIED":
|
|
56285
|
+
case 0:
|
|
56286
|
+
message.code = 0;
|
|
56287
|
+
break;
|
|
56288
|
+
}
|
|
56289
|
+
if (object.message != null)
|
|
56290
|
+
message.message = String(object.message);
|
|
56291
|
+
return message;
|
|
56292
|
+
};
|
|
56293
|
+
|
|
56294
|
+
/**
|
|
56295
|
+
* Creates a plain object from an Error message. Also converts values to other types if specified.
|
|
56296
|
+
* @function toObject
|
|
56297
|
+
* @memberof motionmaster.MotionMasterMessage.Status.PdoMode.Error
|
|
56298
|
+
* @static
|
|
56299
|
+
* @param {motionmaster.MotionMasterMessage.Status.PdoMode.Error} message Error
|
|
56300
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
56301
|
+
* @returns {Object.<string,*>} Plain object
|
|
56302
|
+
*/
|
|
56303
|
+
Error.toObject = function toObject(message, options) {
|
|
56304
|
+
if (!options)
|
|
56305
|
+
options = {};
|
|
56306
|
+
let object = {};
|
|
56307
|
+
if (options.defaults) {
|
|
56308
|
+
object.code = options.enums === String ? "UNSPECIFIED" : 0;
|
|
56309
|
+
object.message = "";
|
|
56310
|
+
}
|
|
56311
|
+
if (message.code != null && message.hasOwnProperty("code"))
|
|
56312
|
+
object.code = options.enums === String ? $root.motionmaster.MotionMasterMessage.Status.PdoMode.Error.Code[message.code] === undefined ? message.code : $root.motionmaster.MotionMasterMessage.Status.PdoMode.Error.Code[message.code] : message.code;
|
|
56313
|
+
if (message.message != null && message.hasOwnProperty("message"))
|
|
56314
|
+
object.message = message.message;
|
|
56315
|
+
return object;
|
|
56316
|
+
};
|
|
56317
|
+
|
|
56318
|
+
/**
|
|
56319
|
+
* Converts this Error to JSON.
|
|
56320
|
+
* @function toJSON
|
|
56321
|
+
* @memberof motionmaster.MotionMasterMessage.Status.PdoMode.Error
|
|
56322
|
+
* @instance
|
|
56323
|
+
* @returns {Object.<string,*>} JSON object
|
|
56324
|
+
*/
|
|
56325
|
+
Error.prototype.toJSON = function toJSON() {
|
|
56326
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
56327
|
+
};
|
|
56328
|
+
|
|
56329
|
+
/**
|
|
56330
|
+
* Gets the default type url for Error
|
|
56331
|
+
* @function getTypeUrl
|
|
56332
|
+
* @memberof motionmaster.MotionMasterMessage.Status.PdoMode.Error
|
|
56333
|
+
* @static
|
|
56334
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
56335
|
+
* @returns {string} The default type url
|
|
56336
|
+
*/
|
|
56337
|
+
Error.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
56338
|
+
if (typeUrlPrefix === undefined) {
|
|
56339
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
56340
|
+
}
|
|
56341
|
+
return typeUrlPrefix + "/motionmaster.MotionMasterMessage.Status.PdoMode.Error";
|
|
56342
|
+
};
|
|
56343
|
+
|
|
56344
|
+
/**
|
|
56345
|
+
* Code enum.
|
|
56346
|
+
* @name motionmaster.MotionMasterMessage.Status.PdoMode.Error.Code
|
|
56347
|
+
* @enum {number}
|
|
56348
|
+
* @property {number} UNSPECIFIED=0 UNSPECIFIED value
|
|
56349
|
+
*/
|
|
56350
|
+
Error.Code = (function() {
|
|
56351
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
56352
|
+
values[valuesById[0] = "UNSPECIFIED"] = 0;
|
|
56353
|
+
return values;
|
|
56354
|
+
})();
|
|
56355
|
+
|
|
56356
|
+
return Error;
|
|
56357
|
+
})();
|
|
56358
|
+
|
|
56359
|
+
return PdoMode;
|
|
56360
|
+
})();
|
|
56361
|
+
|
|
54444
56362
|
return Status;
|
|
54445
56363
|
})();
|
|
54446
56364
|
|