motion-master-client 0.0.430 → 0.0.431

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.
@@ -365,6 +365,8 @@ $root.motionmaster = (() => {
365
365
  * @property {motionmaster.MotionMasterMessage.Request.IGetDeviceSii|null} [getDeviceSii] Request getDeviceSii
366
366
  * @property {motionmaster.MotionMasterMessage.Request.IDiscoverEthernetDevices|null} [discoverEthernetDevices] Request discoverEthernetDevices
367
367
  * @property {motionmaster.MotionMasterMessage.Request.IStopEthernetDiscovery|null} [stopEthernetDiscovery] Request stopEthernetDiscovery
368
+ * @property {motionmaster.MotionMasterMessage.Request.IStartDeviceLocate|null} [startDeviceLocate] Request startDeviceLocate
369
+ * @property {motionmaster.MotionMasterMessage.Request.IStopDeviceLocate|null} [stopDeviceLocate] Request stopDeviceLocate
368
370
  */
369
371
 
370
372
  /**
@@ -814,17 +816,33 @@ $root.motionmaster = (() => {
814
816
  */
815
817
  Request.prototype.stopEthernetDiscovery = null;
816
818
 
819
+ /**
820
+ * Request startDeviceLocate.
821
+ * @member {motionmaster.MotionMasterMessage.Request.IStartDeviceLocate|null|undefined} startDeviceLocate
822
+ * @memberof motionmaster.MotionMasterMessage.Request
823
+ * @instance
824
+ */
825
+ Request.prototype.startDeviceLocate = null;
826
+
827
+ /**
828
+ * Request stopDeviceLocate.
829
+ * @member {motionmaster.MotionMasterMessage.Request.IStopDeviceLocate|null|undefined} stopDeviceLocate
830
+ * @memberof motionmaster.MotionMasterMessage.Request
831
+ * @instance
832
+ */
833
+ Request.prototype.stopDeviceLocate = null;
834
+
817
835
  // OneOf field names bound to virtual getters and setters
818
836
  let $oneOfFields;
819
837
 
820
838
  /**
821
839
  * Request type.
822
- * @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"|"discoverEthernetDevices"|"stopEthernetDiscovery"|undefined} type
840
+ * @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"|"discoverEthernetDevices"|"stopEthernetDiscovery"|"startDeviceLocate"|"stopDeviceLocate"|undefined} type
823
841
  * @memberof motionmaster.MotionMasterMessage.Request
824
842
  * @instance
825
843
  */
826
844
  Object.defineProperty(Request.prototype, "type", {
827
- 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", "discoverEthernetDevices", "stopEthernetDiscovery"]),
845
+ 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", "discoverEthernetDevices", "stopEthernetDiscovery", "startDeviceLocate", "stopDeviceLocate"]),
828
846
  set: $util.oneOfSetter($oneOfFields)
829
847
  });
830
848
 
@@ -960,6 +978,10 @@ $root.motionmaster = (() => {
960
978
  $root.motionmaster.MotionMasterMessage.Request.DiscoverEthernetDevices.encode(message.discoverEthernetDevices, writer.uint32(/* id 152, wireType 2 =*/1218).fork()).ldelim();
961
979
  if (message.stopEthernetDiscovery != null && Object.hasOwnProperty.call(message, "stopEthernetDiscovery"))
962
980
  $root.motionmaster.MotionMasterMessage.Request.StopEthernetDiscovery.encode(message.stopEthernetDiscovery, writer.uint32(/* id 153, wireType 2 =*/1226).fork()).ldelim();
981
+ if (message.startDeviceLocate != null && Object.hasOwnProperty.call(message, "startDeviceLocate"))
982
+ $root.motionmaster.MotionMasterMessage.Request.StartDeviceLocate.encode(message.startDeviceLocate, writer.uint32(/* id 154, wireType 2 =*/1234).fork()).ldelim();
983
+ if (message.stopDeviceLocate != null && Object.hasOwnProperty.call(message, "stopDeviceLocate"))
984
+ $root.motionmaster.MotionMasterMessage.Request.StopDeviceLocate.encode(message.stopDeviceLocate, writer.uint32(/* id 155, wireType 2 =*/1242).fork()).ldelim();
963
985
  return writer;
964
986
  };
965
987
 
@@ -1210,6 +1232,14 @@ $root.motionmaster = (() => {
1210
1232
  message.stopEthernetDiscovery = $root.motionmaster.MotionMasterMessage.Request.StopEthernetDiscovery.decode(reader, reader.uint32());
1211
1233
  break;
1212
1234
  }
1235
+ case 154: {
1236
+ message.startDeviceLocate = $root.motionmaster.MotionMasterMessage.Request.StartDeviceLocate.decode(reader, reader.uint32());
1237
+ break;
1238
+ }
1239
+ case 155: {
1240
+ message.stopDeviceLocate = $root.motionmaster.MotionMasterMessage.Request.StopDeviceLocate.decode(reader, reader.uint32());
1241
+ break;
1242
+ }
1213
1243
  default:
1214
1244
  reader.skipType(tag & 7);
1215
1245
  break;
@@ -1777,6 +1807,26 @@ $root.motionmaster = (() => {
1777
1807
  return "stopEthernetDiscovery." + error;
1778
1808
  }
1779
1809
  }
1810
+ if (message.startDeviceLocate != null && message.hasOwnProperty("startDeviceLocate")) {
1811
+ if (properties.type === 1)
1812
+ return "type: multiple values";
1813
+ properties.type = 1;
1814
+ {
1815
+ let error = $root.motionmaster.MotionMasterMessage.Request.StartDeviceLocate.verify(message.startDeviceLocate);
1816
+ if (error)
1817
+ return "startDeviceLocate." + error;
1818
+ }
1819
+ }
1820
+ if (message.stopDeviceLocate != null && message.hasOwnProperty("stopDeviceLocate")) {
1821
+ if (properties.type === 1)
1822
+ return "type: multiple values";
1823
+ properties.type = 1;
1824
+ {
1825
+ let error = $root.motionmaster.MotionMasterMessage.Request.StopDeviceLocate.verify(message.stopDeviceLocate);
1826
+ if (error)
1827
+ return "stopDeviceLocate." + error;
1828
+ }
1829
+ }
1780
1830
  return null;
1781
1831
  };
1782
1832
 
@@ -2059,6 +2109,16 @@ $root.motionmaster = (() => {
2059
2109
  throw TypeError(".motionmaster.MotionMasterMessage.Request.stopEthernetDiscovery: object expected");
2060
2110
  message.stopEthernetDiscovery = $root.motionmaster.MotionMasterMessage.Request.StopEthernetDiscovery.fromObject(object.stopEthernetDiscovery);
2061
2111
  }
2112
+ if (object.startDeviceLocate != null) {
2113
+ if (typeof object.startDeviceLocate !== "object")
2114
+ throw TypeError(".motionmaster.MotionMasterMessage.Request.startDeviceLocate: object expected");
2115
+ message.startDeviceLocate = $root.motionmaster.MotionMasterMessage.Request.StartDeviceLocate.fromObject(object.startDeviceLocate);
2116
+ }
2117
+ if (object.stopDeviceLocate != null) {
2118
+ if (typeof object.stopDeviceLocate !== "object")
2119
+ throw TypeError(".motionmaster.MotionMasterMessage.Request.stopDeviceLocate: object expected");
2120
+ message.stopDeviceLocate = $root.motionmaster.MotionMasterMessage.Request.StopDeviceLocate.fromObject(object.stopDeviceLocate);
2121
+ }
2062
2122
  return message;
2063
2123
  };
2064
2124
 
@@ -2344,6 +2404,16 @@ $root.motionmaster = (() => {
2344
2404
  if (options.oneofs)
2345
2405
  object.type = "stopEthernetDiscovery";
2346
2406
  }
2407
+ if (message.startDeviceLocate != null && message.hasOwnProperty("startDeviceLocate")) {
2408
+ object.startDeviceLocate = $root.motionmaster.MotionMasterMessage.Request.StartDeviceLocate.toObject(message.startDeviceLocate, options);
2409
+ if (options.oneofs)
2410
+ object.type = "startDeviceLocate";
2411
+ }
2412
+ if (message.stopDeviceLocate != null && message.hasOwnProperty("stopDeviceLocate")) {
2413
+ object.stopDeviceLocate = $root.motionmaster.MotionMasterMessage.Request.StopDeviceLocate.toObject(message.stopDeviceLocate, options);
2414
+ if (options.oneofs)
2415
+ object.type = "stopDeviceLocate";
2416
+ }
2347
2417
  return object;
2348
2418
  };
2349
2419
 
@@ -21982,6 +22052,436 @@ $root.motionmaster = (() => {
21982
22052
  return StopEthernetDiscovery;
21983
22053
  })();
21984
22054
 
22055
+ Request.StartDeviceLocate = (function() {
22056
+
22057
+ /**
22058
+ * Properties of a StartDeviceLocate.
22059
+ * @memberof motionmaster.MotionMasterMessage.Request
22060
+ * @interface IStartDeviceLocate
22061
+ * @property {number|null} [deviceAddress] StartDeviceLocate deviceAddress
22062
+ * @property {number|null} [durationMs] StartDeviceLocate durationMs
22063
+ */
22064
+
22065
+ /**
22066
+ * Constructs a new StartDeviceLocate.
22067
+ * @memberof motionmaster.MotionMasterMessage.Request
22068
+ * @classdesc Represents a StartDeviceLocate.
22069
+ * @implements IStartDeviceLocate
22070
+ * @constructor
22071
+ * @param {motionmaster.MotionMasterMessage.Request.IStartDeviceLocate=} [properties] Properties to set
22072
+ */
22073
+ function StartDeviceLocate(properties) {
22074
+ if (properties)
22075
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
22076
+ if (properties[keys[i]] != null)
22077
+ this[keys[i]] = properties[keys[i]];
22078
+ }
22079
+
22080
+ /**
22081
+ * StartDeviceLocate deviceAddress.
22082
+ * @member {number} deviceAddress
22083
+ * @memberof motionmaster.MotionMasterMessage.Request.StartDeviceLocate
22084
+ * @instance
22085
+ */
22086
+ StartDeviceLocate.prototype.deviceAddress = 0;
22087
+
22088
+ /**
22089
+ * StartDeviceLocate durationMs.
22090
+ * @member {number} durationMs
22091
+ * @memberof motionmaster.MotionMasterMessage.Request.StartDeviceLocate
22092
+ * @instance
22093
+ */
22094
+ StartDeviceLocate.prototype.durationMs = 0;
22095
+
22096
+ /**
22097
+ * Creates a new StartDeviceLocate instance using the specified properties.
22098
+ * @function create
22099
+ * @memberof motionmaster.MotionMasterMessage.Request.StartDeviceLocate
22100
+ * @static
22101
+ * @param {motionmaster.MotionMasterMessage.Request.IStartDeviceLocate=} [properties] Properties to set
22102
+ * @returns {motionmaster.MotionMasterMessage.Request.StartDeviceLocate} StartDeviceLocate instance
22103
+ */
22104
+ StartDeviceLocate.create = function create(properties) {
22105
+ return new StartDeviceLocate(properties);
22106
+ };
22107
+
22108
+ /**
22109
+ * Encodes the specified StartDeviceLocate message. Does not implicitly {@link motionmaster.MotionMasterMessage.Request.StartDeviceLocate.verify|verify} messages.
22110
+ * @function encode
22111
+ * @memberof motionmaster.MotionMasterMessage.Request.StartDeviceLocate
22112
+ * @static
22113
+ * @param {motionmaster.MotionMasterMessage.Request.IStartDeviceLocate} message StartDeviceLocate message or plain object to encode
22114
+ * @param {$protobuf.Writer} [writer] Writer to encode to
22115
+ * @returns {$protobuf.Writer} Writer
22116
+ */
22117
+ StartDeviceLocate.encode = function encode(message, writer) {
22118
+ if (!writer)
22119
+ writer = $Writer.create();
22120
+ if (message.deviceAddress != null && Object.hasOwnProperty.call(message, "deviceAddress"))
22121
+ writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.deviceAddress);
22122
+ if (message.durationMs != null && Object.hasOwnProperty.call(message, "durationMs"))
22123
+ writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.durationMs);
22124
+ return writer;
22125
+ };
22126
+
22127
+ /**
22128
+ * Encodes the specified StartDeviceLocate message, length delimited. Does not implicitly {@link motionmaster.MotionMasterMessage.Request.StartDeviceLocate.verify|verify} messages.
22129
+ * @function encodeDelimited
22130
+ * @memberof motionmaster.MotionMasterMessage.Request.StartDeviceLocate
22131
+ * @static
22132
+ * @param {motionmaster.MotionMasterMessage.Request.IStartDeviceLocate} message StartDeviceLocate message or plain object to encode
22133
+ * @param {$protobuf.Writer} [writer] Writer to encode to
22134
+ * @returns {$protobuf.Writer} Writer
22135
+ */
22136
+ StartDeviceLocate.encodeDelimited = function encodeDelimited(message, writer) {
22137
+ return this.encode(message, writer).ldelim();
22138
+ };
22139
+
22140
+ /**
22141
+ * Decodes a StartDeviceLocate message from the specified reader or buffer.
22142
+ * @function decode
22143
+ * @memberof motionmaster.MotionMasterMessage.Request.StartDeviceLocate
22144
+ * @static
22145
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
22146
+ * @param {number} [length] Message length if known beforehand
22147
+ * @returns {motionmaster.MotionMasterMessage.Request.StartDeviceLocate} StartDeviceLocate
22148
+ * @throws {Error} If the payload is not a reader or valid buffer
22149
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
22150
+ */
22151
+ StartDeviceLocate.decode = function decode(reader, length) {
22152
+ if (!(reader instanceof $Reader))
22153
+ reader = $Reader.create(reader);
22154
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.motionmaster.MotionMasterMessage.Request.StartDeviceLocate();
22155
+ while (reader.pos < end) {
22156
+ let tag = reader.uint32();
22157
+ switch (tag >>> 3) {
22158
+ case 1: {
22159
+ message.deviceAddress = reader.uint32();
22160
+ break;
22161
+ }
22162
+ case 2: {
22163
+ message.durationMs = reader.uint32();
22164
+ break;
22165
+ }
22166
+ default:
22167
+ reader.skipType(tag & 7);
22168
+ break;
22169
+ }
22170
+ }
22171
+ return message;
22172
+ };
22173
+
22174
+ /**
22175
+ * Decodes a StartDeviceLocate message from the specified reader or buffer, length delimited.
22176
+ * @function decodeDelimited
22177
+ * @memberof motionmaster.MotionMasterMessage.Request.StartDeviceLocate
22178
+ * @static
22179
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
22180
+ * @returns {motionmaster.MotionMasterMessage.Request.StartDeviceLocate} StartDeviceLocate
22181
+ * @throws {Error} If the payload is not a reader or valid buffer
22182
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
22183
+ */
22184
+ StartDeviceLocate.decodeDelimited = function decodeDelimited(reader) {
22185
+ if (!(reader instanceof $Reader))
22186
+ reader = new $Reader(reader);
22187
+ return this.decode(reader, reader.uint32());
22188
+ };
22189
+
22190
+ /**
22191
+ * Verifies a StartDeviceLocate message.
22192
+ * @function verify
22193
+ * @memberof motionmaster.MotionMasterMessage.Request.StartDeviceLocate
22194
+ * @static
22195
+ * @param {Object.<string,*>} message Plain object to verify
22196
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
22197
+ */
22198
+ StartDeviceLocate.verify = function verify(message) {
22199
+ if (typeof message !== "object" || message === null)
22200
+ return "object expected";
22201
+ if (message.deviceAddress != null && message.hasOwnProperty("deviceAddress"))
22202
+ if (!$util.isInteger(message.deviceAddress))
22203
+ return "deviceAddress: integer expected";
22204
+ if (message.durationMs != null && message.hasOwnProperty("durationMs"))
22205
+ if (!$util.isInteger(message.durationMs))
22206
+ return "durationMs: integer expected";
22207
+ return null;
22208
+ };
22209
+
22210
+ /**
22211
+ * Creates a StartDeviceLocate message from a plain object. Also converts values to their respective internal types.
22212
+ * @function fromObject
22213
+ * @memberof motionmaster.MotionMasterMessage.Request.StartDeviceLocate
22214
+ * @static
22215
+ * @param {Object.<string,*>} object Plain object
22216
+ * @returns {motionmaster.MotionMasterMessage.Request.StartDeviceLocate} StartDeviceLocate
22217
+ */
22218
+ StartDeviceLocate.fromObject = function fromObject(object) {
22219
+ if (object instanceof $root.motionmaster.MotionMasterMessage.Request.StartDeviceLocate)
22220
+ return object;
22221
+ let message = new $root.motionmaster.MotionMasterMessage.Request.StartDeviceLocate();
22222
+ if (object.deviceAddress != null)
22223
+ message.deviceAddress = object.deviceAddress >>> 0;
22224
+ if (object.durationMs != null)
22225
+ message.durationMs = object.durationMs >>> 0;
22226
+ return message;
22227
+ };
22228
+
22229
+ /**
22230
+ * Creates a plain object from a StartDeviceLocate message. Also converts values to other types if specified.
22231
+ * @function toObject
22232
+ * @memberof motionmaster.MotionMasterMessage.Request.StartDeviceLocate
22233
+ * @static
22234
+ * @param {motionmaster.MotionMasterMessage.Request.StartDeviceLocate} message StartDeviceLocate
22235
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
22236
+ * @returns {Object.<string,*>} Plain object
22237
+ */
22238
+ StartDeviceLocate.toObject = function toObject(message, options) {
22239
+ if (!options)
22240
+ options = {};
22241
+ let object = {};
22242
+ if (options.defaults) {
22243
+ object.deviceAddress = 0;
22244
+ object.durationMs = 0;
22245
+ }
22246
+ if (message.deviceAddress != null && message.hasOwnProperty("deviceAddress"))
22247
+ object.deviceAddress = message.deviceAddress;
22248
+ if (message.durationMs != null && message.hasOwnProperty("durationMs"))
22249
+ object.durationMs = message.durationMs;
22250
+ return object;
22251
+ };
22252
+
22253
+ /**
22254
+ * Converts this StartDeviceLocate to JSON.
22255
+ * @function toJSON
22256
+ * @memberof motionmaster.MotionMasterMessage.Request.StartDeviceLocate
22257
+ * @instance
22258
+ * @returns {Object.<string,*>} JSON object
22259
+ */
22260
+ StartDeviceLocate.prototype.toJSON = function toJSON() {
22261
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
22262
+ };
22263
+
22264
+ /**
22265
+ * Gets the default type url for StartDeviceLocate
22266
+ * @function getTypeUrl
22267
+ * @memberof motionmaster.MotionMasterMessage.Request.StartDeviceLocate
22268
+ * @static
22269
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
22270
+ * @returns {string} The default type url
22271
+ */
22272
+ StartDeviceLocate.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
22273
+ if (typeUrlPrefix === undefined) {
22274
+ typeUrlPrefix = "type.googleapis.com";
22275
+ }
22276
+ return typeUrlPrefix + "/motionmaster.MotionMasterMessage.Request.StartDeviceLocate";
22277
+ };
22278
+
22279
+ return StartDeviceLocate;
22280
+ })();
22281
+
22282
+ Request.StopDeviceLocate = (function() {
22283
+
22284
+ /**
22285
+ * Properties of a StopDeviceLocate.
22286
+ * @memberof motionmaster.MotionMasterMessage.Request
22287
+ * @interface IStopDeviceLocate
22288
+ * @property {number|null} [deviceAddress] StopDeviceLocate deviceAddress
22289
+ */
22290
+
22291
+ /**
22292
+ * Constructs a new StopDeviceLocate.
22293
+ * @memberof motionmaster.MotionMasterMessage.Request
22294
+ * @classdesc Represents a StopDeviceLocate.
22295
+ * @implements IStopDeviceLocate
22296
+ * @constructor
22297
+ * @param {motionmaster.MotionMasterMessage.Request.IStopDeviceLocate=} [properties] Properties to set
22298
+ */
22299
+ function StopDeviceLocate(properties) {
22300
+ if (properties)
22301
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
22302
+ if (properties[keys[i]] != null)
22303
+ this[keys[i]] = properties[keys[i]];
22304
+ }
22305
+
22306
+ /**
22307
+ * StopDeviceLocate deviceAddress.
22308
+ * @member {number} deviceAddress
22309
+ * @memberof motionmaster.MotionMasterMessage.Request.StopDeviceLocate
22310
+ * @instance
22311
+ */
22312
+ StopDeviceLocate.prototype.deviceAddress = 0;
22313
+
22314
+ /**
22315
+ * Creates a new StopDeviceLocate instance using the specified properties.
22316
+ * @function create
22317
+ * @memberof motionmaster.MotionMasterMessage.Request.StopDeviceLocate
22318
+ * @static
22319
+ * @param {motionmaster.MotionMasterMessage.Request.IStopDeviceLocate=} [properties] Properties to set
22320
+ * @returns {motionmaster.MotionMasterMessage.Request.StopDeviceLocate} StopDeviceLocate instance
22321
+ */
22322
+ StopDeviceLocate.create = function create(properties) {
22323
+ return new StopDeviceLocate(properties);
22324
+ };
22325
+
22326
+ /**
22327
+ * Encodes the specified StopDeviceLocate message. Does not implicitly {@link motionmaster.MotionMasterMessage.Request.StopDeviceLocate.verify|verify} messages.
22328
+ * @function encode
22329
+ * @memberof motionmaster.MotionMasterMessage.Request.StopDeviceLocate
22330
+ * @static
22331
+ * @param {motionmaster.MotionMasterMessage.Request.IStopDeviceLocate} message StopDeviceLocate message or plain object to encode
22332
+ * @param {$protobuf.Writer} [writer] Writer to encode to
22333
+ * @returns {$protobuf.Writer} Writer
22334
+ */
22335
+ StopDeviceLocate.encode = function encode(message, writer) {
22336
+ if (!writer)
22337
+ writer = $Writer.create();
22338
+ if (message.deviceAddress != null && Object.hasOwnProperty.call(message, "deviceAddress"))
22339
+ writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.deviceAddress);
22340
+ return writer;
22341
+ };
22342
+
22343
+ /**
22344
+ * Encodes the specified StopDeviceLocate message, length delimited. Does not implicitly {@link motionmaster.MotionMasterMessage.Request.StopDeviceLocate.verify|verify} messages.
22345
+ * @function encodeDelimited
22346
+ * @memberof motionmaster.MotionMasterMessage.Request.StopDeviceLocate
22347
+ * @static
22348
+ * @param {motionmaster.MotionMasterMessage.Request.IStopDeviceLocate} message StopDeviceLocate message or plain object to encode
22349
+ * @param {$protobuf.Writer} [writer] Writer to encode to
22350
+ * @returns {$protobuf.Writer} Writer
22351
+ */
22352
+ StopDeviceLocate.encodeDelimited = function encodeDelimited(message, writer) {
22353
+ return this.encode(message, writer).ldelim();
22354
+ };
22355
+
22356
+ /**
22357
+ * Decodes a StopDeviceLocate message from the specified reader or buffer.
22358
+ * @function decode
22359
+ * @memberof motionmaster.MotionMasterMessage.Request.StopDeviceLocate
22360
+ * @static
22361
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
22362
+ * @param {number} [length] Message length if known beforehand
22363
+ * @returns {motionmaster.MotionMasterMessage.Request.StopDeviceLocate} StopDeviceLocate
22364
+ * @throws {Error} If the payload is not a reader or valid buffer
22365
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
22366
+ */
22367
+ StopDeviceLocate.decode = function decode(reader, length) {
22368
+ if (!(reader instanceof $Reader))
22369
+ reader = $Reader.create(reader);
22370
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.motionmaster.MotionMasterMessage.Request.StopDeviceLocate();
22371
+ while (reader.pos < end) {
22372
+ let tag = reader.uint32();
22373
+ switch (tag >>> 3) {
22374
+ case 1: {
22375
+ message.deviceAddress = reader.uint32();
22376
+ break;
22377
+ }
22378
+ default:
22379
+ reader.skipType(tag & 7);
22380
+ break;
22381
+ }
22382
+ }
22383
+ return message;
22384
+ };
22385
+
22386
+ /**
22387
+ * Decodes a StopDeviceLocate message from the specified reader or buffer, length delimited.
22388
+ * @function decodeDelimited
22389
+ * @memberof motionmaster.MotionMasterMessage.Request.StopDeviceLocate
22390
+ * @static
22391
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
22392
+ * @returns {motionmaster.MotionMasterMessage.Request.StopDeviceLocate} StopDeviceLocate
22393
+ * @throws {Error} If the payload is not a reader or valid buffer
22394
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
22395
+ */
22396
+ StopDeviceLocate.decodeDelimited = function decodeDelimited(reader) {
22397
+ if (!(reader instanceof $Reader))
22398
+ reader = new $Reader(reader);
22399
+ return this.decode(reader, reader.uint32());
22400
+ };
22401
+
22402
+ /**
22403
+ * Verifies a StopDeviceLocate message.
22404
+ * @function verify
22405
+ * @memberof motionmaster.MotionMasterMessage.Request.StopDeviceLocate
22406
+ * @static
22407
+ * @param {Object.<string,*>} message Plain object to verify
22408
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
22409
+ */
22410
+ StopDeviceLocate.verify = function verify(message) {
22411
+ if (typeof message !== "object" || message === null)
22412
+ return "object expected";
22413
+ if (message.deviceAddress != null && message.hasOwnProperty("deviceAddress"))
22414
+ if (!$util.isInteger(message.deviceAddress))
22415
+ return "deviceAddress: integer expected";
22416
+ return null;
22417
+ };
22418
+
22419
+ /**
22420
+ * Creates a StopDeviceLocate message from a plain object. Also converts values to their respective internal types.
22421
+ * @function fromObject
22422
+ * @memberof motionmaster.MotionMasterMessage.Request.StopDeviceLocate
22423
+ * @static
22424
+ * @param {Object.<string,*>} object Plain object
22425
+ * @returns {motionmaster.MotionMasterMessage.Request.StopDeviceLocate} StopDeviceLocate
22426
+ */
22427
+ StopDeviceLocate.fromObject = function fromObject(object) {
22428
+ if (object instanceof $root.motionmaster.MotionMasterMessage.Request.StopDeviceLocate)
22429
+ return object;
22430
+ let message = new $root.motionmaster.MotionMasterMessage.Request.StopDeviceLocate();
22431
+ if (object.deviceAddress != null)
22432
+ message.deviceAddress = object.deviceAddress >>> 0;
22433
+ return message;
22434
+ };
22435
+
22436
+ /**
22437
+ * Creates a plain object from a StopDeviceLocate message. Also converts values to other types if specified.
22438
+ * @function toObject
22439
+ * @memberof motionmaster.MotionMasterMessage.Request.StopDeviceLocate
22440
+ * @static
22441
+ * @param {motionmaster.MotionMasterMessage.Request.StopDeviceLocate} message StopDeviceLocate
22442
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
22443
+ * @returns {Object.<string,*>} Plain object
22444
+ */
22445
+ StopDeviceLocate.toObject = function toObject(message, options) {
22446
+ if (!options)
22447
+ options = {};
22448
+ let object = {};
22449
+ if (options.defaults)
22450
+ object.deviceAddress = 0;
22451
+ if (message.deviceAddress != null && message.hasOwnProperty("deviceAddress"))
22452
+ object.deviceAddress = message.deviceAddress;
22453
+ return object;
22454
+ };
22455
+
22456
+ /**
22457
+ * Converts this StopDeviceLocate to JSON.
22458
+ * @function toJSON
22459
+ * @memberof motionmaster.MotionMasterMessage.Request.StopDeviceLocate
22460
+ * @instance
22461
+ * @returns {Object.<string,*>} JSON object
22462
+ */
22463
+ StopDeviceLocate.prototype.toJSON = function toJSON() {
22464
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
22465
+ };
22466
+
22467
+ /**
22468
+ * Gets the default type url for StopDeviceLocate
22469
+ * @function getTypeUrl
22470
+ * @memberof motionmaster.MotionMasterMessage.Request.StopDeviceLocate
22471
+ * @static
22472
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
22473
+ * @returns {string} The default type url
22474
+ */
22475
+ StopDeviceLocate.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
22476
+ if (typeUrlPrefix === undefined) {
22477
+ typeUrlPrefix = "type.googleapis.com";
22478
+ }
22479
+ return typeUrlPrefix + "/motionmaster.MotionMasterMessage.Request.StopDeviceLocate";
22480
+ };
22481
+
22482
+ return StopDeviceLocate;
22483
+ })();
22484
+
21985
22485
  return Request;
21986
22486
  })();
21987
22487
 
@@ -22031,6 +22531,8 @@ $root.motionmaster = (() => {
22031
22531
  * @property {motionmaster.MotionMasterMessage.Status.IDeviceSii|null} [deviceSii] Status deviceSii
22032
22532
  * @property {motionmaster.MotionMasterMessage.Status.IEthernetDiscovery|null} [ethernetDiscovery] Status ethernetDiscovery
22033
22533
  * @property {motionmaster.MotionMasterMessage.Status.IEthernetDiscoveryStop|null} [ethernetDiscoveryStop] Status ethernetDiscoveryStop
22534
+ * @property {motionmaster.MotionMasterMessage.Status.IDeviceLocate|null} [deviceLocate] Status deviceLocate
22535
+ * @property {motionmaster.MotionMasterMessage.Status.IDeviceLocateStop|null} [deviceLocateStop] Status deviceLocateStop
22034
22536
  */
22035
22537
 
22036
22538
  /**
@@ -22368,17 +22870,33 @@ $root.motionmaster = (() => {
22368
22870
  */
22369
22871
  Status.prototype.ethernetDiscoveryStop = null;
22370
22872
 
22873
+ /**
22874
+ * Status deviceLocate.
22875
+ * @member {motionmaster.MotionMasterMessage.Status.IDeviceLocate|null|undefined} deviceLocate
22876
+ * @memberof motionmaster.MotionMasterMessage.Status
22877
+ * @instance
22878
+ */
22879
+ Status.prototype.deviceLocate = null;
22880
+
22881
+ /**
22882
+ * Status deviceLocateStop.
22883
+ * @member {motionmaster.MotionMasterMessage.Status.IDeviceLocateStop|null|undefined} deviceLocateStop
22884
+ * @memberof motionmaster.MotionMasterMessage.Status
22885
+ * @instance
22886
+ */
22887
+ Status.prototype.deviceLocateStop = null;
22888
+
22371
22889
  // OneOf field names bound to virtual getters and setters
22372
22890
  let $oneOfFields;
22373
22891
 
22374
22892
  /**
22375
22893
  * Status type.
22376
- * @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"|"ethernetDiscovery"|"ethernetDiscoveryStop"|undefined} type
22894
+ * @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"|"ethernetDiscovery"|"ethernetDiscoveryStop"|"deviceLocate"|"deviceLocateStop"|undefined} type
22377
22895
  * @memberof motionmaster.MotionMasterMessage.Status
22378
22896
  * @instance
22379
22897
  */
22380
22898
  Object.defineProperty(Status.prototype, "type", {
22381
- 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", "ethernetDiscovery", "ethernetDiscoveryStop"]),
22899
+ 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", "ethernetDiscovery", "ethernetDiscoveryStop", "deviceLocate", "deviceLocateStop"]),
22382
22900
  set: $util.oneOfSetter($oneOfFields)
22383
22901
  });
22384
22902
 
@@ -22486,6 +23004,10 @@ $root.motionmaster = (() => {
22486
23004
  $root.motionmaster.MotionMasterMessage.Status.EthernetDiscovery.encode(message.ethernetDiscovery, writer.uint32(/* id 139, wireType 2 =*/1114).fork()).ldelim();
22487
23005
  if (message.ethernetDiscoveryStop != null && Object.hasOwnProperty.call(message, "ethernetDiscoveryStop"))
22488
23006
  $root.motionmaster.MotionMasterMessage.Status.EthernetDiscoveryStop.encode(message.ethernetDiscoveryStop, writer.uint32(/* id 140, wireType 2 =*/1122).fork()).ldelim();
23007
+ if (message.deviceLocate != null && Object.hasOwnProperty.call(message, "deviceLocate"))
23008
+ $root.motionmaster.MotionMasterMessage.Status.DeviceLocate.encode(message.deviceLocate, writer.uint32(/* id 141, wireType 2 =*/1130).fork()).ldelim();
23009
+ if (message.deviceLocateStop != null && Object.hasOwnProperty.call(message, "deviceLocateStop"))
23010
+ $root.motionmaster.MotionMasterMessage.Status.DeviceLocateStop.encode(message.deviceLocateStop, writer.uint32(/* id 142, wireType 2 =*/1138).fork()).ldelim();
22489
23011
  return writer;
22490
23012
  };
22491
23013
 
@@ -22680,6 +23202,14 @@ $root.motionmaster = (() => {
22680
23202
  message.ethernetDiscoveryStop = $root.motionmaster.MotionMasterMessage.Status.EthernetDiscoveryStop.decode(reader, reader.uint32());
22681
23203
  break;
22682
23204
  }
23205
+ case 141: {
23206
+ message.deviceLocate = $root.motionmaster.MotionMasterMessage.Status.DeviceLocate.decode(reader, reader.uint32());
23207
+ break;
23208
+ }
23209
+ case 142: {
23210
+ message.deviceLocateStop = $root.motionmaster.MotionMasterMessage.Status.DeviceLocateStop.decode(reader, reader.uint32());
23211
+ break;
23212
+ }
22683
23213
  default:
22684
23214
  reader.skipType(tag & 7);
22685
23215
  break;
@@ -23114,6 +23644,26 @@ $root.motionmaster = (() => {
23114
23644
  return "ethernetDiscoveryStop." + error;
23115
23645
  }
23116
23646
  }
23647
+ if (message.deviceLocate != null && message.hasOwnProperty("deviceLocate")) {
23648
+ if (properties.type === 1)
23649
+ return "type: multiple values";
23650
+ properties.type = 1;
23651
+ {
23652
+ let error = $root.motionmaster.MotionMasterMessage.Status.DeviceLocate.verify(message.deviceLocate);
23653
+ if (error)
23654
+ return "deviceLocate." + error;
23655
+ }
23656
+ }
23657
+ if (message.deviceLocateStop != null && message.hasOwnProperty("deviceLocateStop")) {
23658
+ if (properties.type === 1)
23659
+ return "type: multiple values";
23660
+ properties.type = 1;
23661
+ {
23662
+ let error = $root.motionmaster.MotionMasterMessage.Status.DeviceLocateStop.verify(message.deviceLocateStop);
23663
+ if (error)
23664
+ return "deviceLocateStop." + error;
23665
+ }
23666
+ }
23117
23667
  return null;
23118
23668
  };
23119
23669
 
@@ -23329,6 +23879,16 @@ $root.motionmaster = (() => {
23329
23879
  throw TypeError(".motionmaster.MotionMasterMessage.Status.ethernetDiscoveryStop: object expected");
23330
23880
  message.ethernetDiscoveryStop = $root.motionmaster.MotionMasterMessage.Status.EthernetDiscoveryStop.fromObject(object.ethernetDiscoveryStop);
23331
23881
  }
23882
+ if (object.deviceLocate != null) {
23883
+ if (typeof object.deviceLocate !== "object")
23884
+ throw TypeError(".motionmaster.MotionMasterMessage.Status.deviceLocate: object expected");
23885
+ message.deviceLocate = $root.motionmaster.MotionMasterMessage.Status.DeviceLocate.fromObject(object.deviceLocate);
23886
+ }
23887
+ if (object.deviceLocateStop != null) {
23888
+ if (typeof object.deviceLocateStop !== "object")
23889
+ throw TypeError(".motionmaster.MotionMasterMessage.Status.deviceLocateStop: object expected");
23890
+ message.deviceLocateStop = $root.motionmaster.MotionMasterMessage.Status.DeviceLocateStop.fromObject(object.deviceLocateStop);
23891
+ }
23332
23892
  return message;
23333
23893
  };
23334
23894
 
@@ -23545,6 +24105,16 @@ $root.motionmaster = (() => {
23545
24105
  if (options.oneofs)
23546
24106
  object.type = "ethernetDiscoveryStop";
23547
24107
  }
24108
+ if (message.deviceLocate != null && message.hasOwnProperty("deviceLocate")) {
24109
+ object.deviceLocate = $root.motionmaster.MotionMasterMessage.Status.DeviceLocate.toObject(message.deviceLocate, options);
24110
+ if (options.oneofs)
24111
+ object.type = "deviceLocate";
24112
+ }
24113
+ if (message.deviceLocateStop != null && message.hasOwnProperty("deviceLocateStop")) {
24114
+ object.deviceLocateStop = $root.motionmaster.MotionMasterMessage.Status.DeviceLocateStop.toObject(message.deviceLocateStop, options);
24115
+ if (options.oneofs)
24116
+ object.type = "deviceLocateStop";
24117
+ }
23548
24118
  return object;
23549
24119
  };
23550
24120
 
@@ -25704,6 +26274,7 @@ $root.motionmaster = (() => {
25704
26274
  * @property {motionmaster.MotionMasterMessage.Status.DeviceInfo.Device.Type|null} [type] Device type
25705
26275
  * @property {number|null} [position] Device position
25706
26276
  * @property {number|null} [alias] Device alias
26277
+ * @property {string|null} [ipAddress] Device ipAddress
25707
26278
  */
25708
26279
 
25709
26280
  /**
@@ -25753,6 +26324,14 @@ $root.motionmaster = (() => {
25753
26324
  */
25754
26325
  Device.prototype.alias = 0;
25755
26326
 
26327
+ /**
26328
+ * Device ipAddress.
26329
+ * @member {string} ipAddress
26330
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceInfo.Device
26331
+ * @instance
26332
+ */
26333
+ Device.prototype.ipAddress = "";
26334
+
25756
26335
  /**
25757
26336
  * Creates a new Device instance using the specified properties.
25758
26337
  * @function create
@@ -25785,6 +26364,8 @@ $root.motionmaster = (() => {
25785
26364
  writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.position);
25786
26365
  if (message.alias != null && Object.hasOwnProperty.call(message, "alias"))
25787
26366
  writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.alias);
26367
+ if (message.ipAddress != null && Object.hasOwnProperty.call(message, "ipAddress"))
26368
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.ipAddress);
25788
26369
  return writer;
25789
26370
  };
25790
26371
 
@@ -25835,6 +26416,10 @@ $root.motionmaster = (() => {
25835
26416
  message.alias = reader.uint32();
25836
26417
  break;
25837
26418
  }
26419
+ case 5: {
26420
+ message.ipAddress = reader.string();
26421
+ break;
26422
+ }
25838
26423
  default:
25839
26424
  reader.skipType(tag & 7);
25840
26425
  break;
@@ -25888,6 +26473,9 @@ $root.motionmaster = (() => {
25888
26473
  if (message.alias != null && message.hasOwnProperty("alias"))
25889
26474
  if (!$util.isInteger(message.alias))
25890
26475
  return "alias: integer expected";
26476
+ if (message.ipAddress != null && message.hasOwnProperty("ipAddress"))
26477
+ if (!$util.isString(message.ipAddress))
26478
+ return "ipAddress: string expected";
25891
26479
  return null;
25892
26480
  };
25893
26481
 
@@ -25929,6 +26517,8 @@ $root.motionmaster = (() => {
25929
26517
  message.position = object.position >>> 0;
25930
26518
  if (object.alias != null)
25931
26519
  message.alias = object.alias >>> 0;
26520
+ if (object.ipAddress != null)
26521
+ message.ipAddress = String(object.ipAddress);
25932
26522
  return message;
25933
26523
  };
25934
26524
 
@@ -25950,6 +26540,7 @@ $root.motionmaster = (() => {
25950
26540
  object.type = options.enums === String ? "UNSPECIFIED" : 0;
25951
26541
  object.position = 0;
25952
26542
  object.alias = 0;
26543
+ object.ipAddress = "";
25953
26544
  }
25954
26545
  if (message.deviceAddress != null && message.hasOwnProperty("deviceAddress"))
25955
26546
  object.deviceAddress = message.deviceAddress;
@@ -25959,6 +26550,8 @@ $root.motionmaster = (() => {
25959
26550
  object.position = message.position;
25960
26551
  if (message.alias != null && message.hasOwnProperty("alias"))
25961
26552
  object.alias = message.alias;
26553
+ if (message.ipAddress != null && message.hasOwnProperty("ipAddress"))
26554
+ object.ipAddress = message.ipAddress;
25962
26555
  return object;
25963
26556
  };
25964
26557
 
@@ -59283,6 +59876,1081 @@ $root.motionmaster = (() => {
59283
59876
  return EthernetDiscoveryStop;
59284
59877
  })();
59285
59878
 
59879
+ Status.DeviceLocate = (function() {
59880
+
59881
+ /**
59882
+ * Properties of a DeviceLocate.
59883
+ * @memberof motionmaster.MotionMasterMessage.Status
59884
+ * @interface IDeviceLocate
59885
+ * @property {number|null} [deviceAddress] DeviceLocate deviceAddress
59886
+ * @property {motionmaster.MotionMasterMessage.Status.DeviceLocate.ISuccess|null} [success] DeviceLocate success
59887
+ * @property {motionmaster.MotionMasterMessage.Status.DeviceLocate.IError|null} [error] DeviceLocate error
59888
+ */
59889
+
59890
+ /**
59891
+ * Constructs a new DeviceLocate.
59892
+ * @memberof motionmaster.MotionMasterMessage.Status
59893
+ * @classdesc Represents a DeviceLocate.
59894
+ * @implements IDeviceLocate
59895
+ * @constructor
59896
+ * @param {motionmaster.MotionMasterMessage.Status.IDeviceLocate=} [properties] Properties to set
59897
+ */
59898
+ function DeviceLocate(properties) {
59899
+ if (properties)
59900
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
59901
+ if (properties[keys[i]] != null)
59902
+ this[keys[i]] = properties[keys[i]];
59903
+ }
59904
+
59905
+ /**
59906
+ * DeviceLocate deviceAddress.
59907
+ * @member {number} deviceAddress
59908
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceLocate
59909
+ * @instance
59910
+ */
59911
+ DeviceLocate.prototype.deviceAddress = 0;
59912
+
59913
+ /**
59914
+ * DeviceLocate success.
59915
+ * @member {motionmaster.MotionMasterMessage.Status.DeviceLocate.ISuccess|null|undefined} success
59916
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceLocate
59917
+ * @instance
59918
+ */
59919
+ DeviceLocate.prototype.success = null;
59920
+
59921
+ /**
59922
+ * DeviceLocate error.
59923
+ * @member {motionmaster.MotionMasterMessage.Status.DeviceLocate.IError|null|undefined} error
59924
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceLocate
59925
+ * @instance
59926
+ */
59927
+ DeviceLocate.prototype.error = null;
59928
+
59929
+ // OneOf field names bound to virtual getters and setters
59930
+ let $oneOfFields;
59931
+
59932
+ /**
59933
+ * DeviceLocate status.
59934
+ * @member {"success"|"error"|undefined} status
59935
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceLocate
59936
+ * @instance
59937
+ */
59938
+ Object.defineProperty(DeviceLocate.prototype, "status", {
59939
+ get: $util.oneOfGetter($oneOfFields = ["success", "error"]),
59940
+ set: $util.oneOfSetter($oneOfFields)
59941
+ });
59942
+
59943
+ /**
59944
+ * Creates a new DeviceLocate instance using the specified properties.
59945
+ * @function create
59946
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceLocate
59947
+ * @static
59948
+ * @param {motionmaster.MotionMasterMessage.Status.IDeviceLocate=} [properties] Properties to set
59949
+ * @returns {motionmaster.MotionMasterMessage.Status.DeviceLocate} DeviceLocate instance
59950
+ */
59951
+ DeviceLocate.create = function create(properties) {
59952
+ return new DeviceLocate(properties);
59953
+ };
59954
+
59955
+ /**
59956
+ * Encodes the specified DeviceLocate message. Does not implicitly {@link motionmaster.MotionMasterMessage.Status.DeviceLocate.verify|verify} messages.
59957
+ * @function encode
59958
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceLocate
59959
+ * @static
59960
+ * @param {motionmaster.MotionMasterMessage.Status.IDeviceLocate} message DeviceLocate message or plain object to encode
59961
+ * @param {$protobuf.Writer} [writer] Writer to encode to
59962
+ * @returns {$protobuf.Writer} Writer
59963
+ */
59964
+ DeviceLocate.encode = function encode(message, writer) {
59965
+ if (!writer)
59966
+ writer = $Writer.create();
59967
+ if (message.deviceAddress != null && Object.hasOwnProperty.call(message, "deviceAddress"))
59968
+ writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.deviceAddress);
59969
+ if (message.success != null && Object.hasOwnProperty.call(message, "success"))
59970
+ $root.motionmaster.MotionMasterMessage.Status.DeviceLocate.Success.encode(message.success, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
59971
+ if (message.error != null && Object.hasOwnProperty.call(message, "error"))
59972
+ $root.motionmaster.MotionMasterMessage.Status.DeviceLocate.Error.encode(message.error, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
59973
+ return writer;
59974
+ };
59975
+
59976
+ /**
59977
+ * Encodes the specified DeviceLocate message, length delimited. Does not implicitly {@link motionmaster.MotionMasterMessage.Status.DeviceLocate.verify|verify} messages.
59978
+ * @function encodeDelimited
59979
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceLocate
59980
+ * @static
59981
+ * @param {motionmaster.MotionMasterMessage.Status.IDeviceLocate} message DeviceLocate message or plain object to encode
59982
+ * @param {$protobuf.Writer} [writer] Writer to encode to
59983
+ * @returns {$protobuf.Writer} Writer
59984
+ */
59985
+ DeviceLocate.encodeDelimited = function encodeDelimited(message, writer) {
59986
+ return this.encode(message, writer).ldelim();
59987
+ };
59988
+
59989
+ /**
59990
+ * Decodes a DeviceLocate message from the specified reader or buffer.
59991
+ * @function decode
59992
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceLocate
59993
+ * @static
59994
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
59995
+ * @param {number} [length] Message length if known beforehand
59996
+ * @returns {motionmaster.MotionMasterMessage.Status.DeviceLocate} DeviceLocate
59997
+ * @throws {Error} If the payload is not a reader or valid buffer
59998
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
59999
+ */
60000
+ DeviceLocate.decode = function decode(reader, length) {
60001
+ if (!(reader instanceof $Reader))
60002
+ reader = $Reader.create(reader);
60003
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.motionmaster.MotionMasterMessage.Status.DeviceLocate();
60004
+ while (reader.pos < end) {
60005
+ let tag = reader.uint32();
60006
+ switch (tag >>> 3) {
60007
+ case 1: {
60008
+ message.deviceAddress = reader.uint32();
60009
+ break;
60010
+ }
60011
+ case 2: {
60012
+ message.success = $root.motionmaster.MotionMasterMessage.Status.DeviceLocate.Success.decode(reader, reader.uint32());
60013
+ break;
60014
+ }
60015
+ case 3: {
60016
+ message.error = $root.motionmaster.MotionMasterMessage.Status.DeviceLocate.Error.decode(reader, reader.uint32());
60017
+ break;
60018
+ }
60019
+ default:
60020
+ reader.skipType(tag & 7);
60021
+ break;
60022
+ }
60023
+ }
60024
+ return message;
60025
+ };
60026
+
60027
+ /**
60028
+ * Decodes a DeviceLocate message from the specified reader or buffer, length delimited.
60029
+ * @function decodeDelimited
60030
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceLocate
60031
+ * @static
60032
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
60033
+ * @returns {motionmaster.MotionMasterMessage.Status.DeviceLocate} DeviceLocate
60034
+ * @throws {Error} If the payload is not a reader or valid buffer
60035
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
60036
+ */
60037
+ DeviceLocate.decodeDelimited = function decodeDelimited(reader) {
60038
+ if (!(reader instanceof $Reader))
60039
+ reader = new $Reader(reader);
60040
+ return this.decode(reader, reader.uint32());
60041
+ };
60042
+
60043
+ /**
60044
+ * Verifies a DeviceLocate message.
60045
+ * @function verify
60046
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceLocate
60047
+ * @static
60048
+ * @param {Object.<string,*>} message Plain object to verify
60049
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
60050
+ */
60051
+ DeviceLocate.verify = function verify(message) {
60052
+ if (typeof message !== "object" || message === null)
60053
+ return "object expected";
60054
+ let properties = {};
60055
+ if (message.deviceAddress != null && message.hasOwnProperty("deviceAddress"))
60056
+ if (!$util.isInteger(message.deviceAddress))
60057
+ return "deviceAddress: integer expected";
60058
+ if (message.success != null && message.hasOwnProperty("success")) {
60059
+ properties.status = 1;
60060
+ {
60061
+ let error = $root.motionmaster.MotionMasterMessage.Status.DeviceLocate.Success.verify(message.success);
60062
+ if (error)
60063
+ return "success." + error;
60064
+ }
60065
+ }
60066
+ if (message.error != null && message.hasOwnProperty("error")) {
60067
+ if (properties.status === 1)
60068
+ return "status: multiple values";
60069
+ properties.status = 1;
60070
+ {
60071
+ let error = $root.motionmaster.MotionMasterMessage.Status.DeviceLocate.Error.verify(message.error);
60072
+ if (error)
60073
+ return "error." + error;
60074
+ }
60075
+ }
60076
+ return null;
60077
+ };
60078
+
60079
+ /**
60080
+ * Creates a DeviceLocate message from a plain object. Also converts values to their respective internal types.
60081
+ * @function fromObject
60082
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceLocate
60083
+ * @static
60084
+ * @param {Object.<string,*>} object Plain object
60085
+ * @returns {motionmaster.MotionMasterMessage.Status.DeviceLocate} DeviceLocate
60086
+ */
60087
+ DeviceLocate.fromObject = function fromObject(object) {
60088
+ if (object instanceof $root.motionmaster.MotionMasterMessage.Status.DeviceLocate)
60089
+ return object;
60090
+ let message = new $root.motionmaster.MotionMasterMessage.Status.DeviceLocate();
60091
+ if (object.deviceAddress != null)
60092
+ message.deviceAddress = object.deviceAddress >>> 0;
60093
+ if (object.success != null) {
60094
+ if (typeof object.success !== "object")
60095
+ throw TypeError(".motionmaster.MotionMasterMessage.Status.DeviceLocate.success: object expected");
60096
+ message.success = $root.motionmaster.MotionMasterMessage.Status.DeviceLocate.Success.fromObject(object.success);
60097
+ }
60098
+ if (object.error != null) {
60099
+ if (typeof object.error !== "object")
60100
+ throw TypeError(".motionmaster.MotionMasterMessage.Status.DeviceLocate.error: object expected");
60101
+ message.error = $root.motionmaster.MotionMasterMessage.Status.DeviceLocate.Error.fromObject(object.error);
60102
+ }
60103
+ return message;
60104
+ };
60105
+
60106
+ /**
60107
+ * Creates a plain object from a DeviceLocate message. Also converts values to other types if specified.
60108
+ * @function toObject
60109
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceLocate
60110
+ * @static
60111
+ * @param {motionmaster.MotionMasterMessage.Status.DeviceLocate} message DeviceLocate
60112
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
60113
+ * @returns {Object.<string,*>} Plain object
60114
+ */
60115
+ DeviceLocate.toObject = function toObject(message, options) {
60116
+ if (!options)
60117
+ options = {};
60118
+ let object = {};
60119
+ if (options.defaults)
60120
+ object.deviceAddress = 0;
60121
+ if (message.deviceAddress != null && message.hasOwnProperty("deviceAddress"))
60122
+ object.deviceAddress = message.deviceAddress;
60123
+ if (message.success != null && message.hasOwnProperty("success")) {
60124
+ object.success = $root.motionmaster.MotionMasterMessage.Status.DeviceLocate.Success.toObject(message.success, options);
60125
+ if (options.oneofs)
60126
+ object.status = "success";
60127
+ }
60128
+ if (message.error != null && message.hasOwnProperty("error")) {
60129
+ object.error = $root.motionmaster.MotionMasterMessage.Status.DeviceLocate.Error.toObject(message.error, options);
60130
+ if (options.oneofs)
60131
+ object.status = "error";
60132
+ }
60133
+ return object;
60134
+ };
60135
+
60136
+ /**
60137
+ * Converts this DeviceLocate to JSON.
60138
+ * @function toJSON
60139
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceLocate
60140
+ * @instance
60141
+ * @returns {Object.<string,*>} JSON object
60142
+ */
60143
+ DeviceLocate.prototype.toJSON = function toJSON() {
60144
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
60145
+ };
60146
+
60147
+ /**
60148
+ * Gets the default type url for DeviceLocate
60149
+ * @function getTypeUrl
60150
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceLocate
60151
+ * @static
60152
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
60153
+ * @returns {string} The default type url
60154
+ */
60155
+ DeviceLocate.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
60156
+ if (typeUrlPrefix === undefined) {
60157
+ typeUrlPrefix = "type.googleapis.com";
60158
+ }
60159
+ return typeUrlPrefix + "/motionmaster.MotionMasterMessage.Status.DeviceLocate";
60160
+ };
60161
+
60162
+ DeviceLocate.Success = (function() {
60163
+
60164
+ /**
60165
+ * Properties of a Success.
60166
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceLocate
60167
+ * @interface ISuccess
60168
+ * @property {motionmaster.MotionMasterMessage.Status.DeviceLocate.Success.Code|null} [code] Success code
60169
+ * @property {string|null} [message] Success message
60170
+ */
60171
+
60172
+ /**
60173
+ * Constructs a new Success.
60174
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceLocate
60175
+ * @classdesc Represents a Success.
60176
+ * @implements ISuccess
60177
+ * @constructor
60178
+ * @param {motionmaster.MotionMasterMessage.Status.DeviceLocate.ISuccess=} [properties] Properties to set
60179
+ */
60180
+ function Success(properties) {
60181
+ if (properties)
60182
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
60183
+ if (properties[keys[i]] != null)
60184
+ this[keys[i]] = properties[keys[i]];
60185
+ }
60186
+
60187
+ /**
60188
+ * Success code.
60189
+ * @member {motionmaster.MotionMasterMessage.Status.DeviceLocate.Success.Code} code
60190
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceLocate.Success
60191
+ * @instance
60192
+ */
60193
+ Success.prototype.code = 0;
60194
+
60195
+ /**
60196
+ * Success message.
60197
+ * @member {string} message
60198
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceLocate.Success
60199
+ * @instance
60200
+ */
60201
+ Success.prototype.message = "";
60202
+
60203
+ /**
60204
+ * Creates a new Success instance using the specified properties.
60205
+ * @function create
60206
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceLocate.Success
60207
+ * @static
60208
+ * @param {motionmaster.MotionMasterMessage.Status.DeviceLocate.ISuccess=} [properties] Properties to set
60209
+ * @returns {motionmaster.MotionMasterMessage.Status.DeviceLocate.Success} Success instance
60210
+ */
60211
+ Success.create = function create(properties) {
60212
+ return new Success(properties);
60213
+ };
60214
+
60215
+ /**
60216
+ * Encodes the specified Success message. Does not implicitly {@link motionmaster.MotionMasterMessage.Status.DeviceLocate.Success.verify|verify} messages.
60217
+ * @function encode
60218
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceLocate.Success
60219
+ * @static
60220
+ * @param {motionmaster.MotionMasterMessage.Status.DeviceLocate.ISuccess} message Success message or plain object to encode
60221
+ * @param {$protobuf.Writer} [writer] Writer to encode to
60222
+ * @returns {$protobuf.Writer} Writer
60223
+ */
60224
+ Success.encode = function encode(message, writer) {
60225
+ if (!writer)
60226
+ writer = $Writer.create();
60227
+ if (message.code != null && Object.hasOwnProperty.call(message, "code"))
60228
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.code);
60229
+ if (message.message != null && Object.hasOwnProperty.call(message, "message"))
60230
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.message);
60231
+ return writer;
60232
+ };
60233
+
60234
+ /**
60235
+ * Encodes the specified Success message, length delimited. Does not implicitly {@link motionmaster.MotionMasterMessage.Status.DeviceLocate.Success.verify|verify} messages.
60236
+ * @function encodeDelimited
60237
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceLocate.Success
60238
+ * @static
60239
+ * @param {motionmaster.MotionMasterMessage.Status.DeviceLocate.ISuccess} message Success message or plain object to encode
60240
+ * @param {$protobuf.Writer} [writer] Writer to encode to
60241
+ * @returns {$protobuf.Writer} Writer
60242
+ */
60243
+ Success.encodeDelimited = function encodeDelimited(message, writer) {
60244
+ return this.encode(message, writer).ldelim();
60245
+ };
60246
+
60247
+ /**
60248
+ * Decodes a Success message from the specified reader or buffer.
60249
+ * @function decode
60250
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceLocate.Success
60251
+ * @static
60252
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
60253
+ * @param {number} [length] Message length if known beforehand
60254
+ * @returns {motionmaster.MotionMasterMessage.Status.DeviceLocate.Success} Success
60255
+ * @throws {Error} If the payload is not a reader or valid buffer
60256
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
60257
+ */
60258
+ Success.decode = function decode(reader, length) {
60259
+ if (!(reader instanceof $Reader))
60260
+ reader = $Reader.create(reader);
60261
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.motionmaster.MotionMasterMessage.Status.DeviceLocate.Success();
60262
+ while (reader.pos < end) {
60263
+ let tag = reader.uint32();
60264
+ switch (tag >>> 3) {
60265
+ case 1: {
60266
+ message.code = reader.int32();
60267
+ break;
60268
+ }
60269
+ case 2: {
60270
+ message.message = reader.string();
60271
+ break;
60272
+ }
60273
+ default:
60274
+ reader.skipType(tag & 7);
60275
+ break;
60276
+ }
60277
+ }
60278
+ return message;
60279
+ };
60280
+
60281
+ /**
60282
+ * Decodes a Success message from the specified reader or buffer, length delimited.
60283
+ * @function decodeDelimited
60284
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceLocate.Success
60285
+ * @static
60286
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
60287
+ * @returns {motionmaster.MotionMasterMessage.Status.DeviceLocate.Success} Success
60288
+ * @throws {Error} If the payload is not a reader or valid buffer
60289
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
60290
+ */
60291
+ Success.decodeDelimited = function decodeDelimited(reader) {
60292
+ if (!(reader instanceof $Reader))
60293
+ reader = new $Reader(reader);
60294
+ return this.decode(reader, reader.uint32());
60295
+ };
60296
+
60297
+ /**
60298
+ * Verifies a Success message.
60299
+ * @function verify
60300
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceLocate.Success
60301
+ * @static
60302
+ * @param {Object.<string,*>} message Plain object to verify
60303
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
60304
+ */
60305
+ Success.verify = function verify(message) {
60306
+ if (typeof message !== "object" || message === null)
60307
+ return "object expected";
60308
+ if (message.code != null && message.hasOwnProperty("code"))
60309
+ switch (message.code) {
60310
+ default:
60311
+ return "code: enum value expected";
60312
+ case 0:
60313
+ case 1:
60314
+ case 2:
60315
+ case 3:
60316
+ break;
60317
+ }
60318
+ if (message.message != null && message.hasOwnProperty("message"))
60319
+ if (!$util.isString(message.message))
60320
+ return "message: string expected";
60321
+ return null;
60322
+ };
60323
+
60324
+ /**
60325
+ * Creates a Success message from a plain object. Also converts values to their respective internal types.
60326
+ * @function fromObject
60327
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceLocate.Success
60328
+ * @static
60329
+ * @param {Object.<string,*>} object Plain object
60330
+ * @returns {motionmaster.MotionMasterMessage.Status.DeviceLocate.Success} Success
60331
+ */
60332
+ Success.fromObject = function fromObject(object) {
60333
+ if (object instanceof $root.motionmaster.MotionMasterMessage.Status.DeviceLocate.Success)
60334
+ return object;
60335
+ let message = new $root.motionmaster.MotionMasterMessage.Status.DeviceLocate.Success();
60336
+ switch (object.code) {
60337
+ default:
60338
+ if (typeof object.code === "number") {
60339
+ message.code = object.code;
60340
+ break;
60341
+ }
60342
+ break;
60343
+ case "UNSPECIFIED":
60344
+ case 0:
60345
+ message.code = 0;
60346
+ break;
60347
+ case "STARTED":
60348
+ case 1:
60349
+ message.code = 1;
60350
+ break;
60351
+ case "DONE":
60352
+ case 2:
60353
+ message.code = 2;
60354
+ break;
60355
+ case "STOPPED":
60356
+ case 3:
60357
+ message.code = 3;
60358
+ break;
60359
+ }
60360
+ if (object.message != null)
60361
+ message.message = String(object.message);
60362
+ return message;
60363
+ };
60364
+
60365
+ /**
60366
+ * Creates a plain object from a Success message. Also converts values to other types if specified.
60367
+ * @function toObject
60368
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceLocate.Success
60369
+ * @static
60370
+ * @param {motionmaster.MotionMasterMessage.Status.DeviceLocate.Success} message Success
60371
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
60372
+ * @returns {Object.<string,*>} Plain object
60373
+ */
60374
+ Success.toObject = function toObject(message, options) {
60375
+ if (!options)
60376
+ options = {};
60377
+ let object = {};
60378
+ if (options.defaults) {
60379
+ object.code = options.enums === String ? "UNSPECIFIED" : 0;
60380
+ object.message = "";
60381
+ }
60382
+ if (message.code != null && message.hasOwnProperty("code"))
60383
+ object.code = options.enums === String ? $root.motionmaster.MotionMasterMessage.Status.DeviceLocate.Success.Code[message.code] === undefined ? message.code : $root.motionmaster.MotionMasterMessage.Status.DeviceLocate.Success.Code[message.code] : message.code;
60384
+ if (message.message != null && message.hasOwnProperty("message"))
60385
+ object.message = message.message;
60386
+ return object;
60387
+ };
60388
+
60389
+ /**
60390
+ * Converts this Success to JSON.
60391
+ * @function toJSON
60392
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceLocate.Success
60393
+ * @instance
60394
+ * @returns {Object.<string,*>} JSON object
60395
+ */
60396
+ Success.prototype.toJSON = function toJSON() {
60397
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
60398
+ };
60399
+
60400
+ /**
60401
+ * Gets the default type url for Success
60402
+ * @function getTypeUrl
60403
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceLocate.Success
60404
+ * @static
60405
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
60406
+ * @returns {string} The default type url
60407
+ */
60408
+ Success.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
60409
+ if (typeUrlPrefix === undefined) {
60410
+ typeUrlPrefix = "type.googleapis.com";
60411
+ }
60412
+ return typeUrlPrefix + "/motionmaster.MotionMasterMessage.Status.DeviceLocate.Success";
60413
+ };
60414
+
60415
+ /**
60416
+ * Code enum.
60417
+ * @name motionmaster.MotionMasterMessage.Status.DeviceLocate.Success.Code
60418
+ * @enum {number}
60419
+ * @property {number} UNSPECIFIED=0 UNSPECIFIED value
60420
+ * @property {number} STARTED=1 STARTED value
60421
+ * @property {number} DONE=2 DONE value
60422
+ * @property {number} STOPPED=3 STOPPED value
60423
+ */
60424
+ Success.Code = (function() {
60425
+ const valuesById = {}, values = Object.create(valuesById);
60426
+ values[valuesById[0] = "UNSPECIFIED"] = 0;
60427
+ values[valuesById[1] = "STARTED"] = 1;
60428
+ values[valuesById[2] = "DONE"] = 2;
60429
+ values[valuesById[3] = "STOPPED"] = 3;
60430
+ return values;
60431
+ })();
60432
+
60433
+ return Success;
60434
+ })();
60435
+
60436
+ DeviceLocate.Error = (function() {
60437
+
60438
+ /**
60439
+ * Properties of an Error.
60440
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceLocate
60441
+ * @interface IError
60442
+ * @property {motionmaster.MotionMasterMessage.Status.DeviceLocate.Error.Code|null} [code] Error code
60443
+ * @property {string|null} [message] Error message
60444
+ */
60445
+
60446
+ /**
60447
+ * Constructs a new Error.
60448
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceLocate
60449
+ * @classdesc Represents an Error.
60450
+ * @implements IError
60451
+ * @constructor
60452
+ * @param {motionmaster.MotionMasterMessage.Status.DeviceLocate.IError=} [properties] Properties to set
60453
+ */
60454
+ function Error(properties) {
60455
+ if (properties)
60456
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
60457
+ if (properties[keys[i]] != null)
60458
+ this[keys[i]] = properties[keys[i]];
60459
+ }
60460
+
60461
+ /**
60462
+ * Error code.
60463
+ * @member {motionmaster.MotionMasterMessage.Status.DeviceLocate.Error.Code} code
60464
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceLocate.Error
60465
+ * @instance
60466
+ */
60467
+ Error.prototype.code = 0;
60468
+
60469
+ /**
60470
+ * Error message.
60471
+ * @member {string} message
60472
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceLocate.Error
60473
+ * @instance
60474
+ */
60475
+ Error.prototype.message = "";
60476
+
60477
+ /**
60478
+ * Creates a new Error instance using the specified properties.
60479
+ * @function create
60480
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceLocate.Error
60481
+ * @static
60482
+ * @param {motionmaster.MotionMasterMessage.Status.DeviceLocate.IError=} [properties] Properties to set
60483
+ * @returns {motionmaster.MotionMasterMessage.Status.DeviceLocate.Error} Error instance
60484
+ */
60485
+ Error.create = function create(properties) {
60486
+ return new Error(properties);
60487
+ };
60488
+
60489
+ /**
60490
+ * Encodes the specified Error message. Does not implicitly {@link motionmaster.MotionMasterMessage.Status.DeviceLocate.Error.verify|verify} messages.
60491
+ * @function encode
60492
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceLocate.Error
60493
+ * @static
60494
+ * @param {motionmaster.MotionMasterMessage.Status.DeviceLocate.IError} message Error message or plain object to encode
60495
+ * @param {$protobuf.Writer} [writer] Writer to encode to
60496
+ * @returns {$protobuf.Writer} Writer
60497
+ */
60498
+ Error.encode = function encode(message, writer) {
60499
+ if (!writer)
60500
+ writer = $Writer.create();
60501
+ if (message.code != null && Object.hasOwnProperty.call(message, "code"))
60502
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.code);
60503
+ if (message.message != null && Object.hasOwnProperty.call(message, "message"))
60504
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.message);
60505
+ return writer;
60506
+ };
60507
+
60508
+ /**
60509
+ * Encodes the specified Error message, length delimited. Does not implicitly {@link motionmaster.MotionMasterMessage.Status.DeviceLocate.Error.verify|verify} messages.
60510
+ * @function encodeDelimited
60511
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceLocate.Error
60512
+ * @static
60513
+ * @param {motionmaster.MotionMasterMessage.Status.DeviceLocate.IError} message Error message or plain object to encode
60514
+ * @param {$protobuf.Writer} [writer] Writer to encode to
60515
+ * @returns {$protobuf.Writer} Writer
60516
+ */
60517
+ Error.encodeDelimited = function encodeDelimited(message, writer) {
60518
+ return this.encode(message, writer).ldelim();
60519
+ };
60520
+
60521
+ /**
60522
+ * Decodes an Error message from the specified reader or buffer.
60523
+ * @function decode
60524
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceLocate.Error
60525
+ * @static
60526
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
60527
+ * @param {number} [length] Message length if known beforehand
60528
+ * @returns {motionmaster.MotionMasterMessage.Status.DeviceLocate.Error} Error
60529
+ * @throws {Error} If the payload is not a reader or valid buffer
60530
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
60531
+ */
60532
+ Error.decode = function decode(reader, length) {
60533
+ if (!(reader instanceof $Reader))
60534
+ reader = $Reader.create(reader);
60535
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.motionmaster.MotionMasterMessage.Status.DeviceLocate.Error();
60536
+ while (reader.pos < end) {
60537
+ let tag = reader.uint32();
60538
+ switch (tag >>> 3) {
60539
+ case 1: {
60540
+ message.code = reader.int32();
60541
+ break;
60542
+ }
60543
+ case 2: {
60544
+ message.message = reader.string();
60545
+ break;
60546
+ }
60547
+ default:
60548
+ reader.skipType(tag & 7);
60549
+ break;
60550
+ }
60551
+ }
60552
+ return message;
60553
+ };
60554
+
60555
+ /**
60556
+ * Decodes an Error message from the specified reader or buffer, length delimited.
60557
+ * @function decodeDelimited
60558
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceLocate.Error
60559
+ * @static
60560
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
60561
+ * @returns {motionmaster.MotionMasterMessage.Status.DeviceLocate.Error} Error
60562
+ * @throws {Error} If the payload is not a reader or valid buffer
60563
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
60564
+ */
60565
+ Error.decodeDelimited = function decodeDelimited(reader) {
60566
+ if (!(reader instanceof $Reader))
60567
+ reader = new $Reader(reader);
60568
+ return this.decode(reader, reader.uint32());
60569
+ };
60570
+
60571
+ /**
60572
+ * Verifies an Error message.
60573
+ * @function verify
60574
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceLocate.Error
60575
+ * @static
60576
+ * @param {Object.<string,*>} message Plain object to verify
60577
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
60578
+ */
60579
+ Error.verify = function verify(message) {
60580
+ if (typeof message !== "object" || message === null)
60581
+ return "object expected";
60582
+ if (message.code != null && message.hasOwnProperty("code"))
60583
+ switch (message.code) {
60584
+ default:
60585
+ return "code: enum value expected";
60586
+ case 0:
60587
+ case 1:
60588
+ case 2:
60589
+ case 3:
60590
+ case 4:
60591
+ case 5:
60592
+ break;
60593
+ }
60594
+ if (message.message != null && message.hasOwnProperty("message"))
60595
+ if (!$util.isString(message.message))
60596
+ return "message: string expected";
60597
+ return null;
60598
+ };
60599
+
60600
+ /**
60601
+ * Creates an Error message from a plain object. Also converts values to their respective internal types.
60602
+ * @function fromObject
60603
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceLocate.Error
60604
+ * @static
60605
+ * @param {Object.<string,*>} object Plain object
60606
+ * @returns {motionmaster.MotionMasterMessage.Status.DeviceLocate.Error} Error
60607
+ */
60608
+ Error.fromObject = function fromObject(object) {
60609
+ if (object instanceof $root.motionmaster.MotionMasterMessage.Status.DeviceLocate.Error)
60610
+ return object;
60611
+ let message = new $root.motionmaster.MotionMasterMessage.Status.DeviceLocate.Error();
60612
+ switch (object.code) {
60613
+ default:
60614
+ if (typeof object.code === "number") {
60615
+ message.code = object.code;
60616
+ break;
60617
+ }
60618
+ break;
60619
+ case "UNSPECIFIED":
60620
+ case 0:
60621
+ message.code = 0;
60622
+ break;
60623
+ case "NOT_SUPPORTED":
60624
+ case 1:
60625
+ message.code = 1;
60626
+ break;
60627
+ case "INVALID_DURATION":
60628
+ case 2:
60629
+ message.code = 2;
60630
+ break;
60631
+ case "ALREADY_RUNNING":
60632
+ case 3:
60633
+ message.code = 3;
60634
+ break;
60635
+ case "START_FAILED":
60636
+ case 4:
60637
+ message.code = 4;
60638
+ break;
60639
+ case "STOP_FAILED":
60640
+ case 5:
60641
+ message.code = 5;
60642
+ break;
60643
+ }
60644
+ if (object.message != null)
60645
+ message.message = String(object.message);
60646
+ return message;
60647
+ };
60648
+
60649
+ /**
60650
+ * Creates a plain object from an Error message. Also converts values to other types if specified.
60651
+ * @function toObject
60652
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceLocate.Error
60653
+ * @static
60654
+ * @param {motionmaster.MotionMasterMessage.Status.DeviceLocate.Error} message Error
60655
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
60656
+ * @returns {Object.<string,*>} Plain object
60657
+ */
60658
+ Error.toObject = function toObject(message, options) {
60659
+ if (!options)
60660
+ options = {};
60661
+ let object = {};
60662
+ if (options.defaults) {
60663
+ object.code = options.enums === String ? "UNSPECIFIED" : 0;
60664
+ object.message = "";
60665
+ }
60666
+ if (message.code != null && message.hasOwnProperty("code"))
60667
+ object.code = options.enums === String ? $root.motionmaster.MotionMasterMessage.Status.DeviceLocate.Error.Code[message.code] === undefined ? message.code : $root.motionmaster.MotionMasterMessage.Status.DeviceLocate.Error.Code[message.code] : message.code;
60668
+ if (message.message != null && message.hasOwnProperty("message"))
60669
+ object.message = message.message;
60670
+ return object;
60671
+ };
60672
+
60673
+ /**
60674
+ * Converts this Error to JSON.
60675
+ * @function toJSON
60676
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceLocate.Error
60677
+ * @instance
60678
+ * @returns {Object.<string,*>} JSON object
60679
+ */
60680
+ Error.prototype.toJSON = function toJSON() {
60681
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
60682
+ };
60683
+
60684
+ /**
60685
+ * Gets the default type url for Error
60686
+ * @function getTypeUrl
60687
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceLocate.Error
60688
+ * @static
60689
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
60690
+ * @returns {string} The default type url
60691
+ */
60692
+ Error.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
60693
+ if (typeUrlPrefix === undefined) {
60694
+ typeUrlPrefix = "type.googleapis.com";
60695
+ }
60696
+ return typeUrlPrefix + "/motionmaster.MotionMasterMessage.Status.DeviceLocate.Error";
60697
+ };
60698
+
60699
+ /**
60700
+ * Code enum.
60701
+ * @name motionmaster.MotionMasterMessage.Status.DeviceLocate.Error.Code
60702
+ * @enum {number}
60703
+ * @property {number} UNSPECIFIED=0 UNSPECIFIED value
60704
+ * @property {number} NOT_SUPPORTED=1 NOT_SUPPORTED value
60705
+ * @property {number} INVALID_DURATION=2 INVALID_DURATION value
60706
+ * @property {number} ALREADY_RUNNING=3 ALREADY_RUNNING value
60707
+ * @property {number} START_FAILED=4 START_FAILED value
60708
+ * @property {number} STOP_FAILED=5 STOP_FAILED value
60709
+ */
60710
+ Error.Code = (function() {
60711
+ const valuesById = {}, values = Object.create(valuesById);
60712
+ values[valuesById[0] = "UNSPECIFIED"] = 0;
60713
+ values[valuesById[1] = "NOT_SUPPORTED"] = 1;
60714
+ values[valuesById[2] = "INVALID_DURATION"] = 2;
60715
+ values[valuesById[3] = "ALREADY_RUNNING"] = 3;
60716
+ values[valuesById[4] = "START_FAILED"] = 4;
60717
+ values[valuesById[5] = "STOP_FAILED"] = 5;
60718
+ return values;
60719
+ })();
60720
+
60721
+ return Error;
60722
+ })();
60723
+
60724
+ return DeviceLocate;
60725
+ })();
60726
+
60727
+ Status.DeviceLocateStop = (function() {
60728
+
60729
+ /**
60730
+ * Properties of a DeviceLocateStop.
60731
+ * @memberof motionmaster.MotionMasterMessage.Status
60732
+ * @interface IDeviceLocateStop
60733
+ * @property {number|null} [deviceAddress] DeviceLocateStop deviceAddress
60734
+ * @property {boolean|null} [stopped] DeviceLocateStop stopped
60735
+ */
60736
+
60737
+ /**
60738
+ * Constructs a new DeviceLocateStop.
60739
+ * @memberof motionmaster.MotionMasterMessage.Status
60740
+ * @classdesc Represents a DeviceLocateStop.
60741
+ * @implements IDeviceLocateStop
60742
+ * @constructor
60743
+ * @param {motionmaster.MotionMasterMessage.Status.IDeviceLocateStop=} [properties] Properties to set
60744
+ */
60745
+ function DeviceLocateStop(properties) {
60746
+ if (properties)
60747
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
60748
+ if (properties[keys[i]] != null)
60749
+ this[keys[i]] = properties[keys[i]];
60750
+ }
60751
+
60752
+ /**
60753
+ * DeviceLocateStop deviceAddress.
60754
+ * @member {number} deviceAddress
60755
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceLocateStop
60756
+ * @instance
60757
+ */
60758
+ DeviceLocateStop.prototype.deviceAddress = 0;
60759
+
60760
+ /**
60761
+ * DeviceLocateStop stopped.
60762
+ * @member {boolean} stopped
60763
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceLocateStop
60764
+ * @instance
60765
+ */
60766
+ DeviceLocateStop.prototype.stopped = false;
60767
+
60768
+ /**
60769
+ * Creates a new DeviceLocateStop instance using the specified properties.
60770
+ * @function create
60771
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceLocateStop
60772
+ * @static
60773
+ * @param {motionmaster.MotionMasterMessage.Status.IDeviceLocateStop=} [properties] Properties to set
60774
+ * @returns {motionmaster.MotionMasterMessage.Status.DeviceLocateStop} DeviceLocateStop instance
60775
+ */
60776
+ DeviceLocateStop.create = function create(properties) {
60777
+ return new DeviceLocateStop(properties);
60778
+ };
60779
+
60780
+ /**
60781
+ * Encodes the specified DeviceLocateStop message. Does not implicitly {@link motionmaster.MotionMasterMessage.Status.DeviceLocateStop.verify|verify} messages.
60782
+ * @function encode
60783
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceLocateStop
60784
+ * @static
60785
+ * @param {motionmaster.MotionMasterMessage.Status.IDeviceLocateStop} message DeviceLocateStop message or plain object to encode
60786
+ * @param {$protobuf.Writer} [writer] Writer to encode to
60787
+ * @returns {$protobuf.Writer} Writer
60788
+ */
60789
+ DeviceLocateStop.encode = function encode(message, writer) {
60790
+ if (!writer)
60791
+ writer = $Writer.create();
60792
+ if (message.deviceAddress != null && Object.hasOwnProperty.call(message, "deviceAddress"))
60793
+ writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.deviceAddress);
60794
+ if (message.stopped != null && Object.hasOwnProperty.call(message, "stopped"))
60795
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.stopped);
60796
+ return writer;
60797
+ };
60798
+
60799
+ /**
60800
+ * Encodes the specified DeviceLocateStop message, length delimited. Does not implicitly {@link motionmaster.MotionMasterMessage.Status.DeviceLocateStop.verify|verify} messages.
60801
+ * @function encodeDelimited
60802
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceLocateStop
60803
+ * @static
60804
+ * @param {motionmaster.MotionMasterMessage.Status.IDeviceLocateStop} message DeviceLocateStop message or plain object to encode
60805
+ * @param {$protobuf.Writer} [writer] Writer to encode to
60806
+ * @returns {$protobuf.Writer} Writer
60807
+ */
60808
+ DeviceLocateStop.encodeDelimited = function encodeDelimited(message, writer) {
60809
+ return this.encode(message, writer).ldelim();
60810
+ };
60811
+
60812
+ /**
60813
+ * Decodes a DeviceLocateStop message from the specified reader or buffer.
60814
+ * @function decode
60815
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceLocateStop
60816
+ * @static
60817
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
60818
+ * @param {number} [length] Message length if known beforehand
60819
+ * @returns {motionmaster.MotionMasterMessage.Status.DeviceLocateStop} DeviceLocateStop
60820
+ * @throws {Error} If the payload is not a reader or valid buffer
60821
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
60822
+ */
60823
+ DeviceLocateStop.decode = function decode(reader, length) {
60824
+ if (!(reader instanceof $Reader))
60825
+ reader = $Reader.create(reader);
60826
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.motionmaster.MotionMasterMessage.Status.DeviceLocateStop();
60827
+ while (reader.pos < end) {
60828
+ let tag = reader.uint32();
60829
+ switch (tag >>> 3) {
60830
+ case 1: {
60831
+ message.deviceAddress = reader.uint32();
60832
+ break;
60833
+ }
60834
+ case 2: {
60835
+ message.stopped = reader.bool();
60836
+ break;
60837
+ }
60838
+ default:
60839
+ reader.skipType(tag & 7);
60840
+ break;
60841
+ }
60842
+ }
60843
+ return message;
60844
+ };
60845
+
60846
+ /**
60847
+ * Decodes a DeviceLocateStop message from the specified reader or buffer, length delimited.
60848
+ * @function decodeDelimited
60849
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceLocateStop
60850
+ * @static
60851
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
60852
+ * @returns {motionmaster.MotionMasterMessage.Status.DeviceLocateStop} DeviceLocateStop
60853
+ * @throws {Error} If the payload is not a reader or valid buffer
60854
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
60855
+ */
60856
+ DeviceLocateStop.decodeDelimited = function decodeDelimited(reader) {
60857
+ if (!(reader instanceof $Reader))
60858
+ reader = new $Reader(reader);
60859
+ return this.decode(reader, reader.uint32());
60860
+ };
60861
+
60862
+ /**
60863
+ * Verifies a DeviceLocateStop message.
60864
+ * @function verify
60865
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceLocateStop
60866
+ * @static
60867
+ * @param {Object.<string,*>} message Plain object to verify
60868
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
60869
+ */
60870
+ DeviceLocateStop.verify = function verify(message) {
60871
+ if (typeof message !== "object" || message === null)
60872
+ return "object expected";
60873
+ if (message.deviceAddress != null && message.hasOwnProperty("deviceAddress"))
60874
+ if (!$util.isInteger(message.deviceAddress))
60875
+ return "deviceAddress: integer expected";
60876
+ if (message.stopped != null && message.hasOwnProperty("stopped"))
60877
+ if (typeof message.stopped !== "boolean")
60878
+ return "stopped: boolean expected";
60879
+ return null;
60880
+ };
60881
+
60882
+ /**
60883
+ * Creates a DeviceLocateStop message from a plain object. Also converts values to their respective internal types.
60884
+ * @function fromObject
60885
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceLocateStop
60886
+ * @static
60887
+ * @param {Object.<string,*>} object Plain object
60888
+ * @returns {motionmaster.MotionMasterMessage.Status.DeviceLocateStop} DeviceLocateStop
60889
+ */
60890
+ DeviceLocateStop.fromObject = function fromObject(object) {
60891
+ if (object instanceof $root.motionmaster.MotionMasterMessage.Status.DeviceLocateStop)
60892
+ return object;
60893
+ let message = new $root.motionmaster.MotionMasterMessage.Status.DeviceLocateStop();
60894
+ if (object.deviceAddress != null)
60895
+ message.deviceAddress = object.deviceAddress >>> 0;
60896
+ if (object.stopped != null)
60897
+ message.stopped = Boolean(object.stopped);
60898
+ return message;
60899
+ };
60900
+
60901
+ /**
60902
+ * Creates a plain object from a DeviceLocateStop message. Also converts values to other types if specified.
60903
+ * @function toObject
60904
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceLocateStop
60905
+ * @static
60906
+ * @param {motionmaster.MotionMasterMessage.Status.DeviceLocateStop} message DeviceLocateStop
60907
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
60908
+ * @returns {Object.<string,*>} Plain object
60909
+ */
60910
+ DeviceLocateStop.toObject = function toObject(message, options) {
60911
+ if (!options)
60912
+ options = {};
60913
+ let object = {};
60914
+ if (options.defaults) {
60915
+ object.deviceAddress = 0;
60916
+ object.stopped = false;
60917
+ }
60918
+ if (message.deviceAddress != null && message.hasOwnProperty("deviceAddress"))
60919
+ object.deviceAddress = message.deviceAddress;
60920
+ if (message.stopped != null && message.hasOwnProperty("stopped"))
60921
+ object.stopped = message.stopped;
60922
+ return object;
60923
+ };
60924
+
60925
+ /**
60926
+ * Converts this DeviceLocateStop to JSON.
60927
+ * @function toJSON
60928
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceLocateStop
60929
+ * @instance
60930
+ * @returns {Object.<string,*>} JSON object
60931
+ */
60932
+ DeviceLocateStop.prototype.toJSON = function toJSON() {
60933
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
60934
+ };
60935
+
60936
+ /**
60937
+ * Gets the default type url for DeviceLocateStop
60938
+ * @function getTypeUrl
60939
+ * @memberof motionmaster.MotionMasterMessage.Status.DeviceLocateStop
60940
+ * @static
60941
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
60942
+ * @returns {string} The default type url
60943
+ */
60944
+ DeviceLocateStop.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
60945
+ if (typeUrlPrefix === undefined) {
60946
+ typeUrlPrefix = "type.googleapis.com";
60947
+ }
60948
+ return typeUrlPrefix + "/motionmaster.MotionMasterMessage.Status.DeviceLocateStop";
60949
+ };
60950
+
60951
+ return DeviceLocateStop;
60952
+ })();
60953
+
59286
60954
  return Status;
59287
60955
  })();
59288
60956