motion-master-client 0.0.362 → 0.0.366

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.
@@ -362,6 +362,7 @@ $root.motionmaster = (() => {
362
362
  * @property {motionmaster.MotionMasterMessage.Request.IExecuteForwardCall|null} [executeForwardCall] Request executeForwardCall
363
363
  * @property {motionmaster.MotionMasterMessage.Request.IGetSystemInformation|null} [getSystemInformation] Request getSystemInformation
364
364
  * @property {motionmaster.MotionMasterMessage.Request.ISetPdoMode|null} [setPdoMode] Request setPdoMode
365
+ * @property {motionmaster.MotionMasterMessage.Request.IGetDeviceSii|null} [getDeviceSii] Request getDeviceSii
365
366
  */
366
367
 
367
368
  /**
@@ -787,17 +788,25 @@ $root.motionmaster = (() => {
787
788
  */
788
789
  Request.prototype.setPdoMode = null;
789
790
 
791
+ /**
792
+ * Request getDeviceSii.
793
+ * @member {motionmaster.MotionMasterMessage.Request.IGetDeviceSii|null|undefined} getDeviceSii
794
+ * @memberof motionmaster.MotionMasterMessage.Request
795
+ * @instance
796
+ */
797
+ Request.prototype.getDeviceSii = null;
798
+
790
799
  // OneOf field names bound to virtual getters and setters
791
800
  let $oneOfFields;
792
801
 
793
802
  /**
794
803
  * Request 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
804
+ * @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"|"getDeviceSii"|undefined} type
796
805
  * @memberof motionmaster.MotionMasterMessage.Request
797
806
  * @instance
798
807
  */
799
808
  Object.defineProperty(Request.prototype, "type", {
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"]),
809
+ 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", "getDeviceSii"]),
801
810
  set: $util.oneOfSetter($oneOfFields)
802
811
  });
803
812
 
@@ -927,6 +936,8 @@ $root.motionmaster = (() => {
927
936
  $root.motionmaster.MotionMasterMessage.Request.GetSystemInformation.encode(message.getSystemInformation, writer.uint32(/* id 149, wireType 2 =*/1194).fork()).ldelim();
928
937
  if (message.setPdoMode != null && Object.hasOwnProperty.call(message, "setPdoMode"))
929
938
  $root.motionmaster.MotionMasterMessage.Request.SetPdoMode.encode(message.setPdoMode, writer.uint32(/* id 150, wireType 2 =*/1202).fork()).ldelim();
939
+ if (message.getDeviceSii != null && Object.hasOwnProperty.call(message, "getDeviceSii"))
940
+ $root.motionmaster.MotionMasterMessage.Request.GetDeviceSii.encode(message.getDeviceSii, writer.uint32(/* id 151, wireType 2 =*/1210).fork()).ldelim();
930
941
  return writer;
931
942
  };
932
943
 
@@ -1165,6 +1176,10 @@ $root.motionmaster = (() => {
1165
1176
  message.setPdoMode = $root.motionmaster.MotionMasterMessage.Request.SetPdoMode.decode(reader, reader.uint32());
1166
1177
  break;
1167
1178
  }
1179
+ case 151: {
1180
+ message.getDeviceSii = $root.motionmaster.MotionMasterMessage.Request.GetDeviceSii.decode(reader, reader.uint32());
1181
+ break;
1182
+ }
1168
1183
  default:
1169
1184
  reader.skipType(tag & 7);
1170
1185
  break;
@@ -1702,6 +1717,16 @@ $root.motionmaster = (() => {
1702
1717
  return "setPdoMode." + error;
1703
1718
  }
1704
1719
  }
1720
+ if (message.getDeviceSii != null && message.hasOwnProperty("getDeviceSii")) {
1721
+ if (properties.type === 1)
1722
+ return "type: multiple values";
1723
+ properties.type = 1;
1724
+ {
1725
+ let error = $root.motionmaster.MotionMasterMessage.Request.GetDeviceSii.verify(message.getDeviceSii);
1726
+ if (error)
1727
+ return "getDeviceSii." + error;
1728
+ }
1729
+ }
1705
1730
  return null;
1706
1731
  };
1707
1732
 
@@ -1969,6 +1994,11 @@ $root.motionmaster = (() => {
1969
1994
  throw TypeError(".motionmaster.MotionMasterMessage.Request.setPdoMode: object expected");
1970
1995
  message.setPdoMode = $root.motionmaster.MotionMasterMessage.Request.SetPdoMode.fromObject(object.setPdoMode);
1971
1996
  }
1997
+ if (object.getDeviceSii != null) {
1998
+ if (typeof object.getDeviceSii !== "object")
1999
+ throw TypeError(".motionmaster.MotionMasterMessage.Request.getDeviceSii: object expected");
2000
+ message.getDeviceSii = $root.motionmaster.MotionMasterMessage.Request.GetDeviceSii.fromObject(object.getDeviceSii);
2001
+ }
1972
2002
  return message;
1973
2003
  };
1974
2004
 
@@ -2239,6 +2269,11 @@ $root.motionmaster = (() => {
2239
2269
  if (options.oneofs)
2240
2270
  object.type = "setPdoMode";
2241
2271
  }
2272
+ if (message.getDeviceSii != null && message.hasOwnProperty("getDeviceSii")) {
2273
+ object.getDeviceSii = $root.motionmaster.MotionMasterMessage.Request.GetDeviceSii.toObject(message.getDeviceSii, options);
2274
+ if (options.oneofs)
2275
+ object.type = "getDeviceSii";
2276
+ }
2242
2277
  return object;
2243
2278
  };
2244
2279
 
@@ -21244,6 +21279,209 @@ $root.motionmaster = (() => {
21244
21279
  return SetPdoMode;
21245
21280
  })();
21246
21281
 
21282
+ Request.GetDeviceSii = (function() {
21283
+
21284
+ /**
21285
+ * Properties of a GetDeviceSii.
21286
+ * @memberof motionmaster.MotionMasterMessage.Request
21287
+ * @interface IGetDeviceSii
21288
+ * @property {number|null} [deviceAddress] GetDeviceSii deviceAddress
21289
+ */
21290
+
21291
+ /**
21292
+ * Constructs a new GetDeviceSii.
21293
+ * @memberof motionmaster.MotionMasterMessage.Request
21294
+ * @classdesc Represents a GetDeviceSii.
21295
+ * @implements IGetDeviceSii
21296
+ * @constructor
21297
+ * @param {motionmaster.MotionMasterMessage.Request.IGetDeviceSii=} [properties] Properties to set
21298
+ */
21299
+ function GetDeviceSii(properties) {
21300
+ if (properties)
21301
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
21302
+ if (properties[keys[i]] != null)
21303
+ this[keys[i]] = properties[keys[i]];
21304
+ }
21305
+
21306
+ /**
21307
+ * GetDeviceSii deviceAddress.
21308
+ * @member {number} deviceAddress
21309
+ * @memberof motionmaster.MotionMasterMessage.Request.GetDeviceSii
21310
+ * @instance
21311
+ */
21312
+ GetDeviceSii.prototype.deviceAddress = 0;
21313
+
21314
+ /**
21315
+ * Creates a new GetDeviceSii instance using the specified properties.
21316
+ * @function create
21317
+ * @memberof motionmaster.MotionMasterMessage.Request.GetDeviceSii
21318
+ * @static
21319
+ * @param {motionmaster.MotionMasterMessage.Request.IGetDeviceSii=} [properties] Properties to set
21320
+ * @returns {motionmaster.MotionMasterMessage.Request.GetDeviceSii} GetDeviceSii instance
21321
+ */
21322
+ GetDeviceSii.create = function create(properties) {
21323
+ return new GetDeviceSii(properties);
21324
+ };
21325
+
21326
+ /**
21327
+ * Encodes the specified GetDeviceSii message. Does not implicitly {@link motionmaster.MotionMasterMessage.Request.GetDeviceSii.verify|verify} messages.
21328
+ * @function encode
21329
+ * @memberof motionmaster.MotionMasterMessage.Request.GetDeviceSii
21330
+ * @static
21331
+ * @param {motionmaster.MotionMasterMessage.Request.IGetDeviceSii} message GetDeviceSii message or plain object to encode
21332
+ * @param {$protobuf.Writer} [writer] Writer to encode to
21333
+ * @returns {$protobuf.Writer} Writer
21334
+ */
21335
+ GetDeviceSii.encode = function encode(message, writer) {
21336
+ if (!writer)
21337
+ writer = $Writer.create();
21338
+ if (message.deviceAddress != null && Object.hasOwnProperty.call(message, "deviceAddress"))
21339
+ writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.deviceAddress);
21340
+ return writer;
21341
+ };
21342
+
21343
+ /**
21344
+ * Encodes the specified GetDeviceSii message, length delimited. Does not implicitly {@link motionmaster.MotionMasterMessage.Request.GetDeviceSii.verify|verify} messages.
21345
+ * @function encodeDelimited
21346
+ * @memberof motionmaster.MotionMasterMessage.Request.GetDeviceSii
21347
+ * @static
21348
+ * @param {motionmaster.MotionMasterMessage.Request.IGetDeviceSii} message GetDeviceSii message or plain object to encode
21349
+ * @param {$protobuf.Writer} [writer] Writer to encode to
21350
+ * @returns {$protobuf.Writer} Writer
21351
+ */
21352
+ GetDeviceSii.encodeDelimited = function encodeDelimited(message, writer) {
21353
+ return this.encode(message, writer).ldelim();
21354
+ };
21355
+
21356
+ /**
21357
+ * Decodes a GetDeviceSii message from the specified reader or buffer.
21358
+ * @function decode
21359
+ * @memberof motionmaster.MotionMasterMessage.Request.GetDeviceSii
21360
+ * @static
21361
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
21362
+ * @param {number} [length] Message length if known beforehand
21363
+ * @returns {motionmaster.MotionMasterMessage.Request.GetDeviceSii} GetDeviceSii
21364
+ * @throws {Error} If the payload is not a reader or valid buffer
21365
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
21366
+ */
21367
+ GetDeviceSii.decode = function decode(reader, length) {
21368
+ if (!(reader instanceof $Reader))
21369
+ reader = $Reader.create(reader);
21370
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.motionmaster.MotionMasterMessage.Request.GetDeviceSii();
21371
+ while (reader.pos < end) {
21372
+ let tag = reader.uint32();
21373
+ switch (tag >>> 3) {
21374
+ case 1: {
21375
+ message.deviceAddress = reader.uint32();
21376
+ break;
21377
+ }
21378
+ default:
21379
+ reader.skipType(tag & 7);
21380
+ break;
21381
+ }
21382
+ }
21383
+ return message;
21384
+ };
21385
+
21386
+ /**
21387
+ * Decodes a GetDeviceSii message from the specified reader or buffer, length delimited.
21388
+ * @function decodeDelimited
21389
+ * @memberof motionmaster.MotionMasterMessage.Request.GetDeviceSii
21390
+ * @static
21391
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
21392
+ * @returns {motionmaster.MotionMasterMessage.Request.GetDeviceSii} GetDeviceSii
21393
+ * @throws {Error} If the payload is not a reader or valid buffer
21394
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
21395
+ */
21396
+ GetDeviceSii.decodeDelimited = function decodeDelimited(reader) {
21397
+ if (!(reader instanceof $Reader))
21398
+ reader = new $Reader(reader);
21399
+ return this.decode(reader, reader.uint32());
21400
+ };
21401
+
21402
+ /**
21403
+ * Verifies a GetDeviceSii message.
21404
+ * @function verify
21405
+ * @memberof motionmaster.MotionMasterMessage.Request.GetDeviceSii
21406
+ * @static
21407
+ * @param {Object.<string,*>} message Plain object to verify
21408
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
21409
+ */
21410
+ GetDeviceSii.verify = function verify(message) {
21411
+ if (typeof message !== "object" || message === null)
21412
+ return "object expected";
21413
+ if (message.deviceAddress != null && message.hasOwnProperty("deviceAddress"))
21414
+ if (!$util.isInteger(message.deviceAddress))
21415
+ return "deviceAddress: integer expected";
21416
+ return null;
21417
+ };
21418
+
21419
+ /**
21420
+ * Creates a GetDeviceSii message from a plain object. Also converts values to their respective internal types.
21421
+ * @function fromObject
21422
+ * @memberof motionmaster.MotionMasterMessage.Request.GetDeviceSii
21423
+ * @static
21424
+ * @param {Object.<string,*>} object Plain object
21425
+ * @returns {motionmaster.MotionMasterMessage.Request.GetDeviceSii} GetDeviceSii
21426
+ */
21427
+ GetDeviceSii.fromObject = function fromObject(object) {
21428
+ if (object instanceof $root.motionmaster.MotionMasterMessage.Request.GetDeviceSii)
21429
+ return object;
21430
+ let message = new $root.motionmaster.MotionMasterMessage.Request.GetDeviceSii();
21431
+ if (object.deviceAddress != null)
21432
+ message.deviceAddress = object.deviceAddress >>> 0;
21433
+ return message;
21434
+ };
21435
+
21436
+ /**
21437
+ * Creates a plain object from a GetDeviceSii message. Also converts values to other types if specified.
21438
+ * @function toObject
21439
+ * @memberof motionmaster.MotionMasterMessage.Request.GetDeviceSii
21440
+ * @static
21441
+ * @param {motionmaster.MotionMasterMessage.Request.GetDeviceSii} message GetDeviceSii
21442
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
21443
+ * @returns {Object.<string,*>} Plain object
21444
+ */
21445
+ GetDeviceSii.toObject = function toObject(message, options) {
21446
+ if (!options)
21447
+ options = {};
21448
+ let object = {};
21449
+ if (options.defaults)
21450
+ object.deviceAddress = 0;
21451
+ if (message.deviceAddress != null && message.hasOwnProperty("deviceAddress"))
21452
+ object.deviceAddress = message.deviceAddress;
21453
+ return object;
21454
+ };
21455
+
21456
+ /**
21457
+ * Converts this GetDeviceSii to JSON.
21458
+ * @function toJSON
21459
+ * @memberof motionmaster.MotionMasterMessage.Request.GetDeviceSii
21460
+ * @instance
21461
+ * @returns {Object.<string,*>} JSON object
21462
+ */
21463
+ GetDeviceSii.prototype.toJSON = function toJSON() {
21464
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
21465
+ };
21466
+
21467
+ /**
21468
+ * Gets the default type url for GetDeviceSii
21469
+ * @function getTypeUrl
21470
+ * @memberof motionmaster.MotionMasterMessage.Request.GetDeviceSii
21471
+ * @static
21472
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
21473
+ * @returns {string} The default type url
21474
+ */
21475
+ GetDeviceSii.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
21476
+ if (typeUrlPrefix === undefined) {
21477
+ typeUrlPrefix = "type.googleapis.com";
21478
+ }
21479
+ return typeUrlPrefix + "/motionmaster.MotionMasterMessage.Request.GetDeviceSii";
21480
+ };
21481
+
21482
+ return GetDeviceSii;
21483
+ })();
21484
+
21247
21485
  return Request;
21248
21486
  })();
21249
21487
 
@@ -21290,6 +21528,7 @@ $root.motionmaster = (() => {
21290
21528
  * @property {motionmaster.MotionMasterMessage.Status.IForwardCall|null} [forwardCall] Status forwardCall
21291
21529
  * @property {motionmaster.MotionMasterMessage.Status.ISystemInformation|null} [systemInformation] Status systemInformation
21292
21530
  * @property {motionmaster.MotionMasterMessage.Status.IPdoMode|null} [pdoMode] Status pdoMode
21531
+ * @property {motionmaster.MotionMasterMessage.Status.IDeviceSii|null} [deviceSii] Status deviceSii
21293
21532
  */
21294
21533
 
21295
21534
  /**
@@ -21603,17 +21842,25 @@ $root.motionmaster = (() => {
21603
21842
  */
21604
21843
  Status.prototype.pdoMode = null;
21605
21844
 
21845
+ /**
21846
+ * Status deviceSii.
21847
+ * @member {motionmaster.MotionMasterMessage.Status.IDeviceSii|null|undefined} deviceSii
21848
+ * @memberof motionmaster.MotionMasterMessage.Status
21849
+ * @instance
21850
+ */
21851
+ Status.prototype.deviceSii = null;
21852
+
21606
21853
  // OneOf field names bound to virtual getters and setters
21607
21854
  let $oneOfFields;
21608
21855
 
21609
21856
  /**
21610
21857
  * Status type.
21611
- * @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
21858
+ * @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"|"deviceSii"|undefined} type
21612
21859
  * @memberof motionmaster.MotionMasterMessage.Status
21613
21860
  * @instance
21614
21861
  */
21615
21862
  Object.defineProperty(Status.prototype, "type", {
21616
- 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"]),
21863
+ 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", "deviceSii"]),
21617
21864
  set: $util.oneOfSetter($oneOfFields)
21618
21865
  });
21619
21866
 
@@ -21715,6 +21962,8 @@ $root.motionmaster = (() => {
21715
21962
  $root.motionmaster.MotionMasterMessage.Status.SystemInformation.encode(message.systemInformation, writer.uint32(/* id 136, wireType 2 =*/1090).fork()).ldelim();
21716
21963
  if (message.pdoMode != null && Object.hasOwnProperty.call(message, "pdoMode"))
21717
21964
  $root.motionmaster.MotionMasterMessage.Status.PdoMode.encode(message.pdoMode, writer.uint32(/* id 137, wireType 2 =*/1098).fork()).ldelim();
21965
+ if (message.deviceSii != null && Object.hasOwnProperty.call(message, "deviceSii"))
21966
+ $root.motionmaster.MotionMasterMessage.Status.DeviceSii.encode(message.deviceSii, writer.uint32(/* id 138, wireType 2 =*/1106).fork()).ldelim();
21718
21967
  return writer;
21719
21968
  };
21720
21969
 
@@ -21897,6 +22146,10 @@ $root.motionmaster = (() => {
21897
22146
  message.pdoMode = $root.motionmaster.MotionMasterMessage.Status.PdoMode.decode(reader, reader.uint32());
21898
22147
  break;
21899
22148
  }
22149
+ case 138: {
22150
+ message.deviceSii = $root.motionmaster.MotionMasterMessage.Status.DeviceSii.decode(reader, reader.uint32());
22151
+ break;
22152
+ }
21900
22153
  default:
21901
22154
  reader.skipType(tag & 7);
21902
22155
  break;
@@ -22301,6 +22554,16 @@ $root.motionmaster = (() => {
22301
22554
  return "pdoMode." + error;
22302
22555
  }
22303
22556
  }
22557
+ if (message.deviceSii != null && message.hasOwnProperty("deviceSii")) {
22558
+ if (properties.type === 1)
22559
+ return "type: multiple values";
22560
+ properties.type = 1;
22561
+ {
22562
+ let error = $root.motionmaster.MotionMasterMessage.Status.DeviceSii.verify(message.deviceSii);
22563
+ if (error)
22564
+ return "deviceSii." + error;
22565
+ }
22566
+ }
22304
22567
  return null;
22305
22568
  };
22306
22569
 
@@ -22501,6 +22764,11 @@ $root.motionmaster = (() => {
22501
22764
  throw TypeError(".motionmaster.MotionMasterMessage.Status.pdoMode: object expected");
22502
22765
  message.pdoMode = $root.motionmaster.MotionMasterMessage.Status.PdoMode.fromObject(object.pdoMode);
22503
22766
  }
22767
+ if (object.deviceSii != null) {
22768
+ if (typeof object.deviceSii !== "object")
22769
+ throw TypeError(".motionmaster.MotionMasterMessage.Status.deviceSii: object expected");
22770
+ message.deviceSii = $root.motionmaster.MotionMasterMessage.Status.DeviceSii.fromObject(object.deviceSii);
22771
+ }
22504
22772
  return message;
22505
22773
  };
22506
22774
 
@@ -22702,6 +22970,11 @@ $root.motionmaster = (() => {
22702
22970
  if (options.oneofs)
22703
22971
  object.type = "pdoMode";
22704
22972
  }
22973
+ if (message.deviceSii != null && message.hasOwnProperty("deviceSii")) {
22974
+ object.deviceSii = $root.motionmaster.MotionMasterMessage.Status.DeviceSii.toObject(message.deviceSii, options);
22975
+ if (options.oneofs)
22976
+ object.type = "deviceSii";
22977
+ }
22705
22978
  return object;
22706
22979
  };
22707
22980
 
@@ -56429,6 +56702,556 @@ $root.motionmaster = (() => {
56429
56702
  return PdoMode;
56430
56703
  })();
56431
56704
 
56705
+ Status.DeviceSii = (function() {
56706
+
56707
+ /**
56708
+ * Properties of a DeviceSii.
56709
+ * @memberof motionmaster.MotionMasterMessage.Status
56710
+ * @interface IDeviceSii
56711
+ * @property {number|null} [deviceAddress] DeviceSii deviceAddress
56712
+ * @property {Uint8Array|null} [content] DeviceSii content
56713
+ * @property {motionmaster.MotionMasterMessage.Status.DeviceSii.IError|null} [error] DeviceSii error
56714
+ */
56715
+
56716
+ /**
56717
+ * Constructs a new DeviceSii.
56718
+ * @memberof motionmaster.MotionMasterMessage.Status
56719
+ * @classdesc Represents a DeviceSii.
56720
+ * @implements IDeviceSii
56721
+ * @constructor
56722
+ * @param {motionmaster.MotionMasterMessage.Status.IDeviceSii=} [properties] Properties to set
56723
+ */
56724
+ function DeviceSii(properties) {
56725
+ if (properties)
56726
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
56727
+ if (properties[keys[i]] != null)
56728
+ this[keys[i]] = properties[keys[i]];
56729
+ }
56730
+
56731
+ /**
56732
+ * DeviceSii deviceAddress.
56733
+ * @member {number} deviceAddress
56734
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceSii
56735
+ * @instance
56736
+ */
56737
+ DeviceSii.prototype.deviceAddress = 0;
56738
+
56739
+ /**
56740
+ * DeviceSii content.
56741
+ * @member {Uint8Array|null|undefined} content
56742
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceSii
56743
+ * @instance
56744
+ */
56745
+ DeviceSii.prototype.content = null;
56746
+
56747
+ /**
56748
+ * DeviceSii error.
56749
+ * @member {motionmaster.MotionMasterMessage.Status.DeviceSii.IError|null|undefined} error
56750
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceSii
56751
+ * @instance
56752
+ */
56753
+ DeviceSii.prototype.error = null;
56754
+
56755
+ // OneOf field names bound to virtual getters and setters
56756
+ let $oneOfFields;
56757
+
56758
+ /**
56759
+ * DeviceSii data.
56760
+ * @member {"content"|"error"|undefined} data
56761
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceSii
56762
+ * @instance
56763
+ */
56764
+ Object.defineProperty(DeviceSii.prototype, "data", {
56765
+ get: $util.oneOfGetter($oneOfFields = ["content", "error"]),
56766
+ set: $util.oneOfSetter($oneOfFields)
56767
+ });
56768
+
56769
+ /**
56770
+ * Creates a new DeviceSii instance using the specified properties.
56771
+ * @function create
56772
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceSii
56773
+ * @static
56774
+ * @param {motionmaster.MotionMasterMessage.Status.IDeviceSii=} [properties] Properties to set
56775
+ * @returns {motionmaster.MotionMasterMessage.Status.DeviceSii} DeviceSii instance
56776
+ */
56777
+ DeviceSii.create = function create(properties) {
56778
+ return new DeviceSii(properties);
56779
+ };
56780
+
56781
+ /**
56782
+ * Encodes the specified DeviceSii message. Does not implicitly {@link motionmaster.MotionMasterMessage.Status.DeviceSii.verify|verify} messages.
56783
+ * @function encode
56784
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceSii
56785
+ * @static
56786
+ * @param {motionmaster.MotionMasterMessage.Status.IDeviceSii} message DeviceSii message or plain object to encode
56787
+ * @param {$protobuf.Writer} [writer] Writer to encode to
56788
+ * @returns {$protobuf.Writer} Writer
56789
+ */
56790
+ DeviceSii.encode = function encode(message, writer) {
56791
+ if (!writer)
56792
+ writer = $Writer.create();
56793
+ if (message.deviceAddress != null && Object.hasOwnProperty.call(message, "deviceAddress"))
56794
+ writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.deviceAddress);
56795
+ if (message.content != null && Object.hasOwnProperty.call(message, "content"))
56796
+ writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.content);
56797
+ if (message.error != null && Object.hasOwnProperty.call(message, "error"))
56798
+ $root.motionmaster.MotionMasterMessage.Status.DeviceSii.Error.encode(message.error, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
56799
+ return writer;
56800
+ };
56801
+
56802
+ /**
56803
+ * Encodes the specified DeviceSii message, length delimited. Does not implicitly {@link motionmaster.MotionMasterMessage.Status.DeviceSii.verify|verify} messages.
56804
+ * @function encodeDelimited
56805
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceSii
56806
+ * @static
56807
+ * @param {motionmaster.MotionMasterMessage.Status.IDeviceSii} message DeviceSii message or plain object to encode
56808
+ * @param {$protobuf.Writer} [writer] Writer to encode to
56809
+ * @returns {$protobuf.Writer} Writer
56810
+ */
56811
+ DeviceSii.encodeDelimited = function encodeDelimited(message, writer) {
56812
+ return this.encode(message, writer).ldelim();
56813
+ };
56814
+
56815
+ /**
56816
+ * Decodes a DeviceSii message from the specified reader or buffer.
56817
+ * @function decode
56818
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceSii
56819
+ * @static
56820
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
56821
+ * @param {number} [length] Message length if known beforehand
56822
+ * @returns {motionmaster.MotionMasterMessage.Status.DeviceSii} DeviceSii
56823
+ * @throws {Error} If the payload is not a reader or valid buffer
56824
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
56825
+ */
56826
+ DeviceSii.decode = function decode(reader, length) {
56827
+ if (!(reader instanceof $Reader))
56828
+ reader = $Reader.create(reader);
56829
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.motionmaster.MotionMasterMessage.Status.DeviceSii();
56830
+ while (reader.pos < end) {
56831
+ let tag = reader.uint32();
56832
+ switch (tag >>> 3) {
56833
+ case 1: {
56834
+ message.deviceAddress = reader.uint32();
56835
+ break;
56836
+ }
56837
+ case 2: {
56838
+ message.content = reader.bytes();
56839
+ break;
56840
+ }
56841
+ case 3: {
56842
+ message.error = $root.motionmaster.MotionMasterMessage.Status.DeviceSii.Error.decode(reader, reader.uint32());
56843
+ break;
56844
+ }
56845
+ default:
56846
+ reader.skipType(tag & 7);
56847
+ break;
56848
+ }
56849
+ }
56850
+ return message;
56851
+ };
56852
+
56853
+ /**
56854
+ * Decodes a DeviceSii message from the specified reader or buffer, length delimited.
56855
+ * @function decodeDelimited
56856
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceSii
56857
+ * @static
56858
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
56859
+ * @returns {motionmaster.MotionMasterMessage.Status.DeviceSii} DeviceSii
56860
+ * @throws {Error} If the payload is not a reader or valid buffer
56861
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
56862
+ */
56863
+ DeviceSii.decodeDelimited = function decodeDelimited(reader) {
56864
+ if (!(reader instanceof $Reader))
56865
+ reader = new $Reader(reader);
56866
+ return this.decode(reader, reader.uint32());
56867
+ };
56868
+
56869
+ /**
56870
+ * Verifies a DeviceSii message.
56871
+ * @function verify
56872
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceSii
56873
+ * @static
56874
+ * @param {Object.<string,*>} message Plain object to verify
56875
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
56876
+ */
56877
+ DeviceSii.verify = function verify(message) {
56878
+ if (typeof message !== "object" || message === null)
56879
+ return "object expected";
56880
+ let properties = {};
56881
+ if (message.deviceAddress != null && message.hasOwnProperty("deviceAddress"))
56882
+ if (!$util.isInteger(message.deviceAddress))
56883
+ return "deviceAddress: integer expected";
56884
+ if (message.content != null && message.hasOwnProperty("content")) {
56885
+ properties.data = 1;
56886
+ if (!(message.content && typeof message.content.length === "number" || $util.isString(message.content)))
56887
+ return "content: buffer expected";
56888
+ }
56889
+ if (message.error != null && message.hasOwnProperty("error")) {
56890
+ if (properties.data === 1)
56891
+ return "data: multiple values";
56892
+ properties.data = 1;
56893
+ {
56894
+ let error = $root.motionmaster.MotionMasterMessage.Status.DeviceSii.Error.verify(message.error);
56895
+ if (error)
56896
+ return "error." + error;
56897
+ }
56898
+ }
56899
+ return null;
56900
+ };
56901
+
56902
+ /**
56903
+ * Creates a DeviceSii message from a plain object. Also converts values to their respective internal types.
56904
+ * @function fromObject
56905
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceSii
56906
+ * @static
56907
+ * @param {Object.<string,*>} object Plain object
56908
+ * @returns {motionmaster.MotionMasterMessage.Status.DeviceSii} DeviceSii
56909
+ */
56910
+ DeviceSii.fromObject = function fromObject(object) {
56911
+ if (object instanceof $root.motionmaster.MotionMasterMessage.Status.DeviceSii)
56912
+ return object;
56913
+ let message = new $root.motionmaster.MotionMasterMessage.Status.DeviceSii();
56914
+ if (object.deviceAddress != null)
56915
+ message.deviceAddress = object.deviceAddress >>> 0;
56916
+ if (object.content != null)
56917
+ if (typeof object.content === "string")
56918
+ $util.base64.decode(object.content, message.content = $util.newBuffer($util.base64.length(object.content)), 0);
56919
+ else if (object.content.length >= 0)
56920
+ message.content = object.content;
56921
+ if (object.error != null) {
56922
+ if (typeof object.error !== "object")
56923
+ throw TypeError(".motionmaster.MotionMasterMessage.Status.DeviceSii.error: object expected");
56924
+ message.error = $root.motionmaster.MotionMasterMessage.Status.DeviceSii.Error.fromObject(object.error);
56925
+ }
56926
+ return message;
56927
+ };
56928
+
56929
+ /**
56930
+ * Creates a plain object from a DeviceSii message. Also converts values to other types if specified.
56931
+ * @function toObject
56932
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceSii
56933
+ * @static
56934
+ * @param {motionmaster.MotionMasterMessage.Status.DeviceSii} message DeviceSii
56935
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
56936
+ * @returns {Object.<string,*>} Plain object
56937
+ */
56938
+ DeviceSii.toObject = function toObject(message, options) {
56939
+ if (!options)
56940
+ options = {};
56941
+ let object = {};
56942
+ if (options.defaults)
56943
+ object.deviceAddress = 0;
56944
+ if (message.deviceAddress != null && message.hasOwnProperty("deviceAddress"))
56945
+ object.deviceAddress = message.deviceAddress;
56946
+ if (message.content != null && message.hasOwnProperty("content")) {
56947
+ object.content = options.bytes === String ? $util.base64.encode(message.content, 0, message.content.length) : options.bytes === Array ? Array.prototype.slice.call(message.content) : message.content;
56948
+ if (options.oneofs)
56949
+ object.data = "content";
56950
+ }
56951
+ if (message.error != null && message.hasOwnProperty("error")) {
56952
+ object.error = $root.motionmaster.MotionMasterMessage.Status.DeviceSii.Error.toObject(message.error, options);
56953
+ if (options.oneofs)
56954
+ object.data = "error";
56955
+ }
56956
+ return object;
56957
+ };
56958
+
56959
+ /**
56960
+ * Converts this DeviceSii to JSON.
56961
+ * @function toJSON
56962
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceSii
56963
+ * @instance
56964
+ * @returns {Object.<string,*>} JSON object
56965
+ */
56966
+ DeviceSii.prototype.toJSON = function toJSON() {
56967
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
56968
+ };
56969
+
56970
+ /**
56971
+ * Gets the default type url for DeviceSii
56972
+ * @function getTypeUrl
56973
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceSii
56974
+ * @static
56975
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
56976
+ * @returns {string} The default type url
56977
+ */
56978
+ DeviceSii.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
56979
+ if (typeUrlPrefix === undefined) {
56980
+ typeUrlPrefix = "type.googleapis.com";
56981
+ }
56982
+ return typeUrlPrefix + "/motionmaster.MotionMasterMessage.Status.DeviceSii";
56983
+ };
56984
+
56985
+ DeviceSii.Error = (function() {
56986
+
56987
+ /**
56988
+ * Properties of an Error.
56989
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceSii
56990
+ * @interface IError
56991
+ * @property {motionmaster.MotionMasterMessage.Status.DeviceSii.Error.Code|null} [code] Error code
56992
+ * @property {string|null} [message] Error message
56993
+ */
56994
+
56995
+ /**
56996
+ * Constructs a new Error.
56997
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceSii
56998
+ * @classdesc Represents an Error.
56999
+ * @implements IError
57000
+ * @constructor
57001
+ * @param {motionmaster.MotionMasterMessage.Status.DeviceSii.IError=} [properties] Properties to set
57002
+ */
57003
+ function Error(properties) {
57004
+ if (properties)
57005
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
57006
+ if (properties[keys[i]] != null)
57007
+ this[keys[i]] = properties[keys[i]];
57008
+ }
57009
+
57010
+ /**
57011
+ * Error code.
57012
+ * @member {motionmaster.MotionMasterMessage.Status.DeviceSii.Error.Code} code
57013
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceSii.Error
57014
+ * @instance
57015
+ */
57016
+ Error.prototype.code = 0;
57017
+
57018
+ /**
57019
+ * Error message.
57020
+ * @member {string} message
57021
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceSii.Error
57022
+ * @instance
57023
+ */
57024
+ Error.prototype.message = "";
57025
+
57026
+ /**
57027
+ * Creates a new Error instance using the specified properties.
57028
+ * @function create
57029
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceSii.Error
57030
+ * @static
57031
+ * @param {motionmaster.MotionMasterMessage.Status.DeviceSii.IError=} [properties] Properties to set
57032
+ * @returns {motionmaster.MotionMasterMessage.Status.DeviceSii.Error} Error instance
57033
+ */
57034
+ Error.create = function create(properties) {
57035
+ return new Error(properties);
57036
+ };
57037
+
57038
+ /**
57039
+ * Encodes the specified Error message. Does not implicitly {@link motionmaster.MotionMasterMessage.Status.DeviceSii.Error.verify|verify} messages.
57040
+ * @function encode
57041
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceSii.Error
57042
+ * @static
57043
+ * @param {motionmaster.MotionMasterMessage.Status.DeviceSii.IError} message Error message or plain object to encode
57044
+ * @param {$protobuf.Writer} [writer] Writer to encode to
57045
+ * @returns {$protobuf.Writer} Writer
57046
+ */
57047
+ Error.encode = function encode(message, writer) {
57048
+ if (!writer)
57049
+ writer = $Writer.create();
57050
+ if (message.code != null && Object.hasOwnProperty.call(message, "code"))
57051
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.code);
57052
+ if (message.message != null && Object.hasOwnProperty.call(message, "message"))
57053
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.message);
57054
+ return writer;
57055
+ };
57056
+
57057
+ /**
57058
+ * Encodes the specified Error message, length delimited. Does not implicitly {@link motionmaster.MotionMasterMessage.Status.DeviceSii.Error.verify|verify} messages.
57059
+ * @function encodeDelimited
57060
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceSii.Error
57061
+ * @static
57062
+ * @param {motionmaster.MotionMasterMessage.Status.DeviceSii.IError} message Error message or plain object to encode
57063
+ * @param {$protobuf.Writer} [writer] Writer to encode to
57064
+ * @returns {$protobuf.Writer} Writer
57065
+ */
57066
+ Error.encodeDelimited = function encodeDelimited(message, writer) {
57067
+ return this.encode(message, writer).ldelim();
57068
+ };
57069
+
57070
+ /**
57071
+ * Decodes an Error message from the specified reader or buffer.
57072
+ * @function decode
57073
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceSii.Error
57074
+ * @static
57075
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
57076
+ * @param {number} [length] Message length if known beforehand
57077
+ * @returns {motionmaster.MotionMasterMessage.Status.DeviceSii.Error} Error
57078
+ * @throws {Error} If the payload is not a reader or valid buffer
57079
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
57080
+ */
57081
+ Error.decode = function decode(reader, length) {
57082
+ if (!(reader instanceof $Reader))
57083
+ reader = $Reader.create(reader);
57084
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.motionmaster.MotionMasterMessage.Status.DeviceSii.Error();
57085
+ while (reader.pos < end) {
57086
+ let tag = reader.uint32();
57087
+ switch (tag >>> 3) {
57088
+ case 1: {
57089
+ message.code = reader.int32();
57090
+ break;
57091
+ }
57092
+ case 2: {
57093
+ message.message = reader.string();
57094
+ break;
57095
+ }
57096
+ default:
57097
+ reader.skipType(tag & 7);
57098
+ break;
57099
+ }
57100
+ }
57101
+ return message;
57102
+ };
57103
+
57104
+ /**
57105
+ * Decodes an Error message from the specified reader or buffer, length delimited.
57106
+ * @function decodeDelimited
57107
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceSii.Error
57108
+ * @static
57109
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
57110
+ * @returns {motionmaster.MotionMasterMessage.Status.DeviceSii.Error} Error
57111
+ * @throws {Error} If the payload is not a reader or valid buffer
57112
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
57113
+ */
57114
+ Error.decodeDelimited = function decodeDelimited(reader) {
57115
+ if (!(reader instanceof $Reader))
57116
+ reader = new $Reader(reader);
57117
+ return this.decode(reader, reader.uint32());
57118
+ };
57119
+
57120
+ /**
57121
+ * Verifies an Error message.
57122
+ * @function verify
57123
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceSii.Error
57124
+ * @static
57125
+ * @param {Object.<string,*>} message Plain object to verify
57126
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
57127
+ */
57128
+ Error.verify = function verify(message) {
57129
+ if (typeof message !== "object" || message === null)
57130
+ return "object expected";
57131
+ if (message.code != null && message.hasOwnProperty("code"))
57132
+ switch (message.code) {
57133
+ default:
57134
+ return "code: enum value expected";
57135
+ case 0:
57136
+ case 1:
57137
+ case 2:
57138
+ break;
57139
+ }
57140
+ if (message.message != null && message.hasOwnProperty("message"))
57141
+ if (!$util.isString(message.message))
57142
+ return "message: string expected";
57143
+ return null;
57144
+ };
57145
+
57146
+ /**
57147
+ * Creates an Error message from a plain object. Also converts values to their respective internal types.
57148
+ * @function fromObject
57149
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceSii.Error
57150
+ * @static
57151
+ * @param {Object.<string,*>} object Plain object
57152
+ * @returns {motionmaster.MotionMasterMessage.Status.DeviceSii.Error} Error
57153
+ */
57154
+ Error.fromObject = function fromObject(object) {
57155
+ if (object instanceof $root.motionmaster.MotionMasterMessage.Status.DeviceSii.Error)
57156
+ return object;
57157
+ let message = new $root.motionmaster.MotionMasterMessage.Status.DeviceSii.Error();
57158
+ switch (object.code) {
57159
+ default:
57160
+ if (typeof object.code === "number") {
57161
+ message.code = object.code;
57162
+ break;
57163
+ }
57164
+ break;
57165
+ case "UNSPECIFIED":
57166
+ case 0:
57167
+ message.code = 0;
57168
+ break;
57169
+ case "FAILED":
57170
+ case 1:
57171
+ message.code = 1;
57172
+ break;
57173
+ case "NOT_SUPPORTED":
57174
+ case 2:
57175
+ message.code = 2;
57176
+ break;
57177
+ }
57178
+ if (object.message != null)
57179
+ message.message = String(object.message);
57180
+ return message;
57181
+ };
57182
+
57183
+ /**
57184
+ * Creates a plain object from an Error message. Also converts values to other types if specified.
57185
+ * @function toObject
57186
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceSii.Error
57187
+ * @static
57188
+ * @param {motionmaster.MotionMasterMessage.Status.DeviceSii.Error} message Error
57189
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
57190
+ * @returns {Object.<string,*>} Plain object
57191
+ */
57192
+ Error.toObject = function toObject(message, options) {
57193
+ if (!options)
57194
+ options = {};
57195
+ let object = {};
57196
+ if (options.defaults) {
57197
+ object.code = options.enums === String ? "UNSPECIFIED" : 0;
57198
+ object.message = "";
57199
+ }
57200
+ if (message.code != null && message.hasOwnProperty("code"))
57201
+ object.code = options.enums === String ? $root.motionmaster.MotionMasterMessage.Status.DeviceSii.Error.Code[message.code] === undefined ? message.code : $root.motionmaster.MotionMasterMessage.Status.DeviceSii.Error.Code[message.code] : message.code;
57202
+ if (message.message != null && message.hasOwnProperty("message"))
57203
+ object.message = message.message;
57204
+ return object;
57205
+ };
57206
+
57207
+ /**
57208
+ * Converts this Error to JSON.
57209
+ * @function toJSON
57210
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceSii.Error
57211
+ * @instance
57212
+ * @returns {Object.<string,*>} JSON object
57213
+ */
57214
+ Error.prototype.toJSON = function toJSON() {
57215
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
57216
+ };
57217
+
57218
+ /**
57219
+ * Gets the default type url for Error
57220
+ * @function getTypeUrl
57221
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceSii.Error
57222
+ * @static
57223
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
57224
+ * @returns {string} The default type url
57225
+ */
57226
+ Error.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
57227
+ if (typeUrlPrefix === undefined) {
57228
+ typeUrlPrefix = "type.googleapis.com";
57229
+ }
57230
+ return typeUrlPrefix + "/motionmaster.MotionMasterMessage.Status.DeviceSii.Error";
57231
+ };
57232
+
57233
+ /**
57234
+ * Code enum.
57235
+ * @name motionmaster.MotionMasterMessage.Status.DeviceSii.Error.Code
57236
+ * @enum {number}
57237
+ * @property {number} UNSPECIFIED=0 UNSPECIFIED value
57238
+ * @property {number} FAILED=1 FAILED value
57239
+ * @property {number} NOT_SUPPORTED=2 NOT_SUPPORTED value
57240
+ */
57241
+ Error.Code = (function() {
57242
+ const valuesById = {}, values = Object.create(valuesById);
57243
+ values[valuesById[0] = "UNSPECIFIED"] = 0;
57244
+ values[valuesById[1] = "FAILED"] = 1;
57245
+ values[valuesById[2] = "NOT_SUPPORTED"] = 2;
57246
+ return values;
57247
+ })();
57248
+
57249
+ return Error;
57250
+ })();
57251
+
57252
+ return DeviceSii;
57253
+ })();
57254
+
56432
57255
  return Status;
56433
57256
  })();
56434
57257