motion-master-client 0.0.308 → 0.0.310

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.
@@ -360,6 +360,8 @@ $root.motionmaster = (() => {
360
360
  * @property {motionmaster.MotionMasterMessage.Request.IStopCirculoEncoderNarrowAngleCalibrationProcedure|null} [stopCirculoEncoderNarrowAngleCalibrationProcedure] Request stopCirculoEncoderNarrowAngleCalibrationProcedure
361
361
  * @property {motionmaster.MotionMasterMessage.Request.IStartOsCommand|null} [startOsCommand] Request startOsCommand
362
362
  * @property {motionmaster.MotionMasterMessage.Request.IExecuteForwardCall|null} [executeForwardCall] Request executeForwardCall
363
+ * @property {motionmaster.MotionMasterMessage.Request.IGetSystemInformation|null} [getSystemInformation] Request getSystemInformation
364
+ * @property {motionmaster.MotionMasterMessage.Request.ISetPdoMode|null} [setPdoMode] Request setPdoMode
363
365
  */
364
366
 
365
367
  /**
@@ -769,17 +771,33 @@ $root.motionmaster = (() => {
769
771
  */
770
772
  Request.prototype.executeForwardCall = null;
771
773
 
774
+ /**
775
+ * Request getSystemInformation.
776
+ * @member {motionmaster.MotionMasterMessage.Request.IGetSystemInformation|null|undefined} getSystemInformation
777
+ * @memberof motionmaster.MotionMasterMessage.Request
778
+ * @instance
779
+ */
780
+ Request.prototype.getSystemInformation = null;
781
+
782
+ /**
783
+ * Request setPdoMode.
784
+ * @member {motionmaster.MotionMasterMessage.Request.ISetPdoMode|null|undefined} setPdoMode
785
+ * @memberof motionmaster.MotionMasterMessage.Request
786
+ * @instance
787
+ */
788
+ Request.prototype.setPdoMode = null;
789
+
772
790
  // OneOf field names bound to virtual getters and setters
773
791
  let $oneOfFields;
774
792
 
775
793
  /**
776
794
  * Request type.
777
- * @member {"pingSystem"|"getSystemVersion"|"getDeviceInfo"|"getDeviceParameterInfo"|"getDeviceParameterValues"|"getMultiDeviceParameterValues"|"setDeviceParameterValues"|"setMultiDeviceParameterValues"|"getDeviceFileList"|"getDeviceFile"|"setDeviceFile"|"deleteDeviceFile"|"resetDeviceFault"|"stopDevice"|"startDeviceFirmwareInstallation"|"getDeviceLog"|"startCoggingTorqueRecording"|"getCoggingTorqueData"|"startOffsetDetection"|"startPlantIdentification"|"computeAutoTuningGains"|"setMotionControllerParameters"|"enableMotionController"|"disableMotionController"|"setSignalGeneratorParameters"|"startSignalGenerator"|"stopSignalGenerator"|"startMonitoringDeviceParameterValues"|"stopMonitoringDeviceParameterValues"|"getEthercatNetworkState"|"setEthercatNetworkState"|"startNarrowAngleCalibration"|"setSystemClientTimeout"|"startSystemIdentification"|"getCirculoEncoderMagnetDistance"|"startCirculoEncoderNarrowAngleCalibrationProcedure"|"getDeviceCia402State"|"setDeviceCia402State"|"getSystemLog"|"startDeviceSiiRestore"|"startOpenLoopFieldControl"|"computeFullAutoTuningGains"|"startFullAutoTuning"|"stopFullAutoTuning"|"startCirculoEncoderConfiguration"|"stopCirculoEncoderNarrowAngleCalibrationProcedure"|"startOsCommand"|"executeForwardCall"|undefined} type
795
+ * @member {"pingSystem"|"getSystemVersion"|"getDeviceInfo"|"getDeviceParameterInfo"|"getDeviceParameterValues"|"getMultiDeviceParameterValues"|"setDeviceParameterValues"|"setMultiDeviceParameterValues"|"getDeviceFileList"|"getDeviceFile"|"setDeviceFile"|"deleteDeviceFile"|"resetDeviceFault"|"stopDevice"|"startDeviceFirmwareInstallation"|"getDeviceLog"|"startCoggingTorqueRecording"|"getCoggingTorqueData"|"startOffsetDetection"|"startPlantIdentification"|"computeAutoTuningGains"|"setMotionControllerParameters"|"enableMotionController"|"disableMotionController"|"setSignalGeneratorParameters"|"startSignalGenerator"|"stopSignalGenerator"|"startMonitoringDeviceParameterValues"|"stopMonitoringDeviceParameterValues"|"getEthercatNetworkState"|"setEthercatNetworkState"|"startNarrowAngleCalibration"|"setSystemClientTimeout"|"startSystemIdentification"|"getCirculoEncoderMagnetDistance"|"startCirculoEncoderNarrowAngleCalibrationProcedure"|"getDeviceCia402State"|"setDeviceCia402State"|"getSystemLog"|"startDeviceSiiRestore"|"startOpenLoopFieldControl"|"computeFullAutoTuningGains"|"startFullAutoTuning"|"stopFullAutoTuning"|"startCirculoEncoderConfiguration"|"stopCirculoEncoderNarrowAngleCalibrationProcedure"|"startOsCommand"|"executeForwardCall"|"getSystemInformation"|"setPdoMode"|undefined} type
778
796
  * @memberof motionmaster.MotionMasterMessage.Request
779
797
  * @instance
780
798
  */
781
799
  Object.defineProperty(Request.prototype, "type", {
782
- get: $util.oneOfGetter($oneOfFields = ["pingSystem", "getSystemVersion", "getDeviceInfo", "getDeviceParameterInfo", "getDeviceParameterValues", "getMultiDeviceParameterValues", "setDeviceParameterValues", "setMultiDeviceParameterValues", "getDeviceFileList", "getDeviceFile", "setDeviceFile", "deleteDeviceFile", "resetDeviceFault", "stopDevice", "startDeviceFirmwareInstallation", "getDeviceLog", "startCoggingTorqueRecording", "getCoggingTorqueData", "startOffsetDetection", "startPlantIdentification", "computeAutoTuningGains", "setMotionControllerParameters", "enableMotionController", "disableMotionController", "setSignalGeneratorParameters", "startSignalGenerator", "stopSignalGenerator", "startMonitoringDeviceParameterValues", "stopMonitoringDeviceParameterValues", "getEthercatNetworkState", "setEthercatNetworkState", "startNarrowAngleCalibration", "setSystemClientTimeout", "startSystemIdentification", "getCirculoEncoderMagnetDistance", "startCirculoEncoderNarrowAngleCalibrationProcedure", "getDeviceCia402State", "setDeviceCia402State", "getSystemLog", "startDeviceSiiRestore", "startOpenLoopFieldControl", "computeFullAutoTuningGains", "startFullAutoTuning", "stopFullAutoTuning", "startCirculoEncoderConfiguration", "stopCirculoEncoderNarrowAngleCalibrationProcedure", "startOsCommand", "executeForwardCall"]),
800
+ get: $util.oneOfGetter($oneOfFields = ["pingSystem", "getSystemVersion", "getDeviceInfo", "getDeviceParameterInfo", "getDeviceParameterValues", "getMultiDeviceParameterValues", "setDeviceParameterValues", "setMultiDeviceParameterValues", "getDeviceFileList", "getDeviceFile", "setDeviceFile", "deleteDeviceFile", "resetDeviceFault", "stopDevice", "startDeviceFirmwareInstallation", "getDeviceLog", "startCoggingTorqueRecording", "getCoggingTorqueData", "startOffsetDetection", "startPlantIdentification", "computeAutoTuningGains", "setMotionControllerParameters", "enableMotionController", "disableMotionController", "setSignalGeneratorParameters", "startSignalGenerator", "stopSignalGenerator", "startMonitoringDeviceParameterValues", "stopMonitoringDeviceParameterValues", "getEthercatNetworkState", "setEthercatNetworkState", "startNarrowAngleCalibration", "setSystemClientTimeout", "startSystemIdentification", "getCirculoEncoderMagnetDistance", "startCirculoEncoderNarrowAngleCalibrationProcedure", "getDeviceCia402State", "setDeviceCia402State", "getSystemLog", "startDeviceSiiRestore", "startOpenLoopFieldControl", "computeFullAutoTuningGains", "startFullAutoTuning", "stopFullAutoTuning", "startCirculoEncoderConfiguration", "stopCirculoEncoderNarrowAngleCalibrationProcedure", "startOsCommand", "executeForwardCall", "getSystemInformation", "setPdoMode"]),
783
801
  set: $util.oneOfSetter($oneOfFields)
784
802
  });
785
803
 
@@ -905,6 +923,10 @@ $root.motionmaster = (() => {
905
923
  $root.motionmaster.MotionMasterMessage.Request.StartOsCommand.encode(message.startOsCommand, writer.uint32(/* id 147, wireType 2 =*/1178).fork()).ldelim();
906
924
  if (message.executeForwardCall != null && Object.hasOwnProperty.call(message, "executeForwardCall"))
907
925
  $root.motionmaster.MotionMasterMessage.Request.ExecuteForwardCall.encode(message.executeForwardCall, writer.uint32(/* id 148, wireType 2 =*/1186).fork()).ldelim();
926
+ if (message.getSystemInformation != null && Object.hasOwnProperty.call(message, "getSystemInformation"))
927
+ $root.motionmaster.MotionMasterMessage.Request.GetSystemInformation.encode(message.getSystemInformation, writer.uint32(/* id 149, wireType 2 =*/1194).fork()).ldelim();
928
+ if (message.setPdoMode != null && Object.hasOwnProperty.call(message, "setPdoMode"))
929
+ $root.motionmaster.MotionMasterMessage.Request.SetPdoMode.encode(message.setPdoMode, writer.uint32(/* id 150, wireType 2 =*/1202).fork()).ldelim();
908
930
  return writer;
909
931
  };
910
932
 
@@ -1135,6 +1157,14 @@ $root.motionmaster = (() => {
1135
1157
  message.executeForwardCall = $root.motionmaster.MotionMasterMessage.Request.ExecuteForwardCall.decode(reader, reader.uint32());
1136
1158
  break;
1137
1159
  }
1160
+ case 149: {
1161
+ message.getSystemInformation = $root.motionmaster.MotionMasterMessage.Request.GetSystemInformation.decode(reader, reader.uint32());
1162
+ break;
1163
+ }
1164
+ case 150: {
1165
+ message.setPdoMode = $root.motionmaster.MotionMasterMessage.Request.SetPdoMode.decode(reader, reader.uint32());
1166
+ break;
1167
+ }
1138
1168
  default:
1139
1169
  reader.skipType(tag & 7);
1140
1170
  break;
@@ -1652,6 +1682,26 @@ $root.motionmaster = (() => {
1652
1682
  return "executeForwardCall." + error;
1653
1683
  }
1654
1684
  }
1685
+ if (message.getSystemInformation != null && message.hasOwnProperty("getSystemInformation")) {
1686
+ if (properties.type === 1)
1687
+ return "type: multiple values";
1688
+ properties.type = 1;
1689
+ {
1690
+ let error = $root.motionmaster.MotionMasterMessage.Request.GetSystemInformation.verify(message.getSystemInformation);
1691
+ if (error)
1692
+ return "getSystemInformation." + error;
1693
+ }
1694
+ }
1695
+ if (message.setPdoMode != null && message.hasOwnProperty("setPdoMode")) {
1696
+ if (properties.type === 1)
1697
+ return "type: multiple values";
1698
+ properties.type = 1;
1699
+ {
1700
+ let error = $root.motionmaster.MotionMasterMessage.Request.SetPdoMode.verify(message.setPdoMode);
1701
+ if (error)
1702
+ return "setPdoMode." + error;
1703
+ }
1704
+ }
1655
1705
  return null;
1656
1706
  };
1657
1707
 
@@ -1909,6 +1959,16 @@ $root.motionmaster = (() => {
1909
1959
  throw TypeError(".motionmaster.MotionMasterMessage.Request.executeForwardCall: object expected");
1910
1960
  message.executeForwardCall = $root.motionmaster.MotionMasterMessage.Request.ExecuteForwardCall.fromObject(object.executeForwardCall);
1911
1961
  }
1962
+ if (object.getSystemInformation != null) {
1963
+ if (typeof object.getSystemInformation !== "object")
1964
+ throw TypeError(".motionmaster.MotionMasterMessage.Request.getSystemInformation: object expected");
1965
+ message.getSystemInformation = $root.motionmaster.MotionMasterMessage.Request.GetSystemInformation.fromObject(object.getSystemInformation);
1966
+ }
1967
+ if (object.setPdoMode != null) {
1968
+ if (typeof object.setPdoMode !== "object")
1969
+ throw TypeError(".motionmaster.MotionMasterMessage.Request.setPdoMode: object expected");
1970
+ message.setPdoMode = $root.motionmaster.MotionMasterMessage.Request.SetPdoMode.fromObject(object.setPdoMode);
1971
+ }
1912
1972
  return message;
1913
1973
  };
1914
1974
 
@@ -2169,6 +2229,16 @@ $root.motionmaster = (() => {
2169
2229
  if (options.oneofs)
2170
2230
  object.type = "executeForwardCall";
2171
2231
  }
2232
+ if (message.getSystemInformation != null && message.hasOwnProperty("getSystemInformation")) {
2233
+ object.getSystemInformation = $root.motionmaster.MotionMasterMessage.Request.GetSystemInformation.toObject(message.getSystemInformation, options);
2234
+ if (options.oneofs)
2235
+ object.type = "getSystemInformation";
2236
+ }
2237
+ if (message.setPdoMode != null && message.hasOwnProperty("setPdoMode")) {
2238
+ object.setPdoMode = $root.motionmaster.MotionMasterMessage.Request.SetPdoMode.toObject(message.setPdoMode, options);
2239
+ if (options.oneofs)
2240
+ object.type = "setPdoMode";
2241
+ }
2172
2242
  return object;
2173
2243
  };
2174
2244
 
@@ -20686,6 +20756,408 @@ $root.motionmaster = (() => {
20686
20756
  return ExecuteForwardCall;
20687
20757
  })();
20688
20758
 
20759
+ Request.GetSystemInformation = (function() {
20760
+
20761
+ /**
20762
+ * Properties of a GetSystemInformation.
20763
+ * @memberof motionmaster.MotionMasterMessage.Request
20764
+ * @interface IGetSystemInformation
20765
+ */
20766
+
20767
+ /**
20768
+ * Constructs a new GetSystemInformation.
20769
+ * @memberof motionmaster.MotionMasterMessage.Request
20770
+ * @classdesc Represents a GetSystemInformation.
20771
+ * @implements IGetSystemInformation
20772
+ * @constructor
20773
+ * @param {motionmaster.MotionMasterMessage.Request.IGetSystemInformation=} [properties] Properties to set
20774
+ */
20775
+ function GetSystemInformation(properties) {
20776
+ if (properties)
20777
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
20778
+ if (properties[keys[i]] != null)
20779
+ this[keys[i]] = properties[keys[i]];
20780
+ }
20781
+
20782
+ /**
20783
+ * Creates a new GetSystemInformation instance using the specified properties.
20784
+ * @function create
20785
+ * @memberof motionmaster.MotionMasterMessage.Request.GetSystemInformation
20786
+ * @static
20787
+ * @param {motionmaster.MotionMasterMessage.Request.IGetSystemInformation=} [properties] Properties to set
20788
+ * @returns {motionmaster.MotionMasterMessage.Request.GetSystemInformation} GetSystemInformation instance
20789
+ */
20790
+ GetSystemInformation.create = function create(properties) {
20791
+ return new GetSystemInformation(properties);
20792
+ };
20793
+
20794
+ /**
20795
+ * Encodes the specified GetSystemInformation message. Does not implicitly {@link motionmaster.MotionMasterMessage.Request.GetSystemInformation.verify|verify} messages.
20796
+ * @function encode
20797
+ * @memberof motionmaster.MotionMasterMessage.Request.GetSystemInformation
20798
+ * @static
20799
+ * @param {motionmaster.MotionMasterMessage.Request.IGetSystemInformation} message GetSystemInformation message or plain object to encode
20800
+ * @param {$protobuf.Writer} [writer] Writer to encode to
20801
+ * @returns {$protobuf.Writer} Writer
20802
+ */
20803
+ GetSystemInformation.encode = function encode(message, writer) {
20804
+ if (!writer)
20805
+ writer = $Writer.create();
20806
+ return writer;
20807
+ };
20808
+
20809
+ /**
20810
+ * Encodes the specified GetSystemInformation message, length delimited. Does not implicitly {@link motionmaster.MotionMasterMessage.Request.GetSystemInformation.verify|verify} messages.
20811
+ * @function encodeDelimited
20812
+ * @memberof motionmaster.MotionMasterMessage.Request.GetSystemInformation
20813
+ * @static
20814
+ * @param {motionmaster.MotionMasterMessage.Request.IGetSystemInformation} message GetSystemInformation message or plain object to encode
20815
+ * @param {$protobuf.Writer} [writer] Writer to encode to
20816
+ * @returns {$protobuf.Writer} Writer
20817
+ */
20818
+ GetSystemInformation.encodeDelimited = function encodeDelimited(message, writer) {
20819
+ return this.encode(message, writer).ldelim();
20820
+ };
20821
+
20822
+ /**
20823
+ * Decodes a GetSystemInformation message from the specified reader or buffer.
20824
+ * @function decode
20825
+ * @memberof motionmaster.MotionMasterMessage.Request.GetSystemInformation
20826
+ * @static
20827
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
20828
+ * @param {number} [length] Message length if known beforehand
20829
+ * @returns {motionmaster.MotionMasterMessage.Request.GetSystemInformation} GetSystemInformation
20830
+ * @throws {Error} If the payload is not a reader or valid buffer
20831
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
20832
+ */
20833
+ GetSystemInformation.decode = function decode(reader, length) {
20834
+ if (!(reader instanceof $Reader))
20835
+ reader = $Reader.create(reader);
20836
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.motionmaster.MotionMasterMessage.Request.GetSystemInformation();
20837
+ while (reader.pos < end) {
20838
+ let tag = reader.uint32();
20839
+ switch (tag >>> 3) {
20840
+ default:
20841
+ reader.skipType(tag & 7);
20842
+ break;
20843
+ }
20844
+ }
20845
+ return message;
20846
+ };
20847
+
20848
+ /**
20849
+ * Decodes a GetSystemInformation message from the specified reader or buffer, length delimited.
20850
+ * @function decodeDelimited
20851
+ * @memberof motionmaster.MotionMasterMessage.Request.GetSystemInformation
20852
+ * @static
20853
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
20854
+ * @returns {motionmaster.MotionMasterMessage.Request.GetSystemInformation} GetSystemInformation
20855
+ * @throws {Error} If the payload is not a reader or valid buffer
20856
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
20857
+ */
20858
+ GetSystemInformation.decodeDelimited = function decodeDelimited(reader) {
20859
+ if (!(reader instanceof $Reader))
20860
+ reader = new $Reader(reader);
20861
+ return this.decode(reader, reader.uint32());
20862
+ };
20863
+
20864
+ /**
20865
+ * Verifies a GetSystemInformation message.
20866
+ * @function verify
20867
+ * @memberof motionmaster.MotionMasterMessage.Request.GetSystemInformation
20868
+ * @static
20869
+ * @param {Object.<string,*>} message Plain object to verify
20870
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
20871
+ */
20872
+ GetSystemInformation.verify = function verify(message) {
20873
+ if (typeof message !== "object" || message === null)
20874
+ return "object expected";
20875
+ return null;
20876
+ };
20877
+
20878
+ /**
20879
+ * Creates a GetSystemInformation message from a plain object. Also converts values to their respective internal types.
20880
+ * @function fromObject
20881
+ * @memberof motionmaster.MotionMasterMessage.Request.GetSystemInformation
20882
+ * @static
20883
+ * @param {Object.<string,*>} object Plain object
20884
+ * @returns {motionmaster.MotionMasterMessage.Request.GetSystemInformation} GetSystemInformation
20885
+ */
20886
+ GetSystemInformation.fromObject = function fromObject(object) {
20887
+ if (object instanceof $root.motionmaster.MotionMasterMessage.Request.GetSystemInformation)
20888
+ return object;
20889
+ return new $root.motionmaster.MotionMasterMessage.Request.GetSystemInformation();
20890
+ };
20891
+
20892
+ /**
20893
+ * Creates a plain object from a GetSystemInformation message. Also converts values to other types if specified.
20894
+ * @function toObject
20895
+ * @memberof motionmaster.MotionMasterMessage.Request.GetSystemInformation
20896
+ * @static
20897
+ * @param {motionmaster.MotionMasterMessage.Request.GetSystemInformation} message GetSystemInformation
20898
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
20899
+ * @returns {Object.<string,*>} Plain object
20900
+ */
20901
+ GetSystemInformation.toObject = function toObject() {
20902
+ return {};
20903
+ };
20904
+
20905
+ /**
20906
+ * Converts this GetSystemInformation to JSON.
20907
+ * @function toJSON
20908
+ * @memberof motionmaster.MotionMasterMessage.Request.GetSystemInformation
20909
+ * @instance
20910
+ * @returns {Object.<string,*>} JSON object
20911
+ */
20912
+ GetSystemInformation.prototype.toJSON = function toJSON() {
20913
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
20914
+ };
20915
+
20916
+ /**
20917
+ * Gets the default type url for GetSystemInformation
20918
+ * @function getTypeUrl
20919
+ * @memberof motionmaster.MotionMasterMessage.Request.GetSystemInformation
20920
+ * @static
20921
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
20922
+ * @returns {string} The default type url
20923
+ */
20924
+ GetSystemInformation.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
20925
+ if (typeUrlPrefix === undefined) {
20926
+ typeUrlPrefix = "type.googleapis.com";
20927
+ }
20928
+ return typeUrlPrefix + "/motionmaster.MotionMasterMessage.Request.GetSystemInformation";
20929
+ };
20930
+
20931
+ return GetSystemInformation;
20932
+ })();
20933
+
20934
+ Request.SetPdoMode = (function() {
20935
+
20936
+ /**
20937
+ * Properties of a SetPdoMode.
20938
+ * @memberof motionmaster.MotionMasterMessage.Request
20939
+ * @interface ISetPdoMode
20940
+ * @property {number|null} [deviceAddress] SetPdoMode deviceAddress
20941
+ * @property {number|null} [mode] SetPdoMode mode
20942
+ */
20943
+
20944
+ /**
20945
+ * Constructs a new SetPdoMode.
20946
+ * @memberof motionmaster.MotionMasterMessage.Request
20947
+ * @classdesc Represents a SetPdoMode.
20948
+ * @implements ISetPdoMode
20949
+ * @constructor
20950
+ * @param {motionmaster.MotionMasterMessage.Request.ISetPdoMode=} [properties] Properties to set
20951
+ */
20952
+ function SetPdoMode(properties) {
20953
+ if (properties)
20954
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
20955
+ if (properties[keys[i]] != null)
20956
+ this[keys[i]] = properties[keys[i]];
20957
+ }
20958
+
20959
+ /**
20960
+ * SetPdoMode deviceAddress.
20961
+ * @member {number} deviceAddress
20962
+ * @memberof motionmaster.MotionMasterMessage.Request.SetPdoMode
20963
+ * @instance
20964
+ */
20965
+ SetPdoMode.prototype.deviceAddress = 0;
20966
+
20967
+ /**
20968
+ * SetPdoMode mode.
20969
+ * @member {number} mode
20970
+ * @memberof motionmaster.MotionMasterMessage.Request.SetPdoMode
20971
+ * @instance
20972
+ */
20973
+ SetPdoMode.prototype.mode = 0;
20974
+
20975
+ /**
20976
+ * Creates a new SetPdoMode instance using the specified properties.
20977
+ * @function create
20978
+ * @memberof motionmaster.MotionMasterMessage.Request.SetPdoMode
20979
+ * @static
20980
+ * @param {motionmaster.MotionMasterMessage.Request.ISetPdoMode=} [properties] Properties to set
20981
+ * @returns {motionmaster.MotionMasterMessage.Request.SetPdoMode} SetPdoMode instance
20982
+ */
20983
+ SetPdoMode.create = function create(properties) {
20984
+ return new SetPdoMode(properties);
20985
+ };
20986
+
20987
+ /**
20988
+ * Encodes the specified SetPdoMode message. Does not implicitly {@link motionmaster.MotionMasterMessage.Request.SetPdoMode.verify|verify} messages.
20989
+ * @function encode
20990
+ * @memberof motionmaster.MotionMasterMessage.Request.SetPdoMode
20991
+ * @static
20992
+ * @param {motionmaster.MotionMasterMessage.Request.ISetPdoMode} message SetPdoMode message or plain object to encode
20993
+ * @param {$protobuf.Writer} [writer] Writer to encode to
20994
+ * @returns {$protobuf.Writer} Writer
20995
+ */
20996
+ SetPdoMode.encode = function encode(message, writer) {
20997
+ if (!writer)
20998
+ writer = $Writer.create();
20999
+ if (message.deviceAddress != null && Object.hasOwnProperty.call(message, "deviceAddress"))
21000
+ writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.deviceAddress);
21001
+ if (message.mode != null && Object.hasOwnProperty.call(message, "mode"))
21002
+ writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.mode);
21003
+ return writer;
21004
+ };
21005
+
21006
+ /**
21007
+ * Encodes the specified SetPdoMode message, length delimited. Does not implicitly {@link motionmaster.MotionMasterMessage.Request.SetPdoMode.verify|verify} messages.
21008
+ * @function encodeDelimited
21009
+ * @memberof motionmaster.MotionMasterMessage.Request.SetPdoMode
21010
+ * @static
21011
+ * @param {motionmaster.MotionMasterMessage.Request.ISetPdoMode} message SetPdoMode message or plain object to encode
21012
+ * @param {$protobuf.Writer} [writer] Writer to encode to
21013
+ * @returns {$protobuf.Writer} Writer
21014
+ */
21015
+ SetPdoMode.encodeDelimited = function encodeDelimited(message, writer) {
21016
+ return this.encode(message, writer).ldelim();
21017
+ };
21018
+
21019
+ /**
21020
+ * Decodes a SetPdoMode message from the specified reader or buffer.
21021
+ * @function decode
21022
+ * @memberof motionmaster.MotionMasterMessage.Request.SetPdoMode
21023
+ * @static
21024
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
21025
+ * @param {number} [length] Message length if known beforehand
21026
+ * @returns {motionmaster.MotionMasterMessage.Request.SetPdoMode} SetPdoMode
21027
+ * @throws {Error} If the payload is not a reader or valid buffer
21028
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
21029
+ */
21030
+ SetPdoMode.decode = function decode(reader, length) {
21031
+ if (!(reader instanceof $Reader))
21032
+ reader = $Reader.create(reader);
21033
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.motionmaster.MotionMasterMessage.Request.SetPdoMode();
21034
+ while (reader.pos < end) {
21035
+ let tag = reader.uint32();
21036
+ switch (tag >>> 3) {
21037
+ case 1: {
21038
+ message.deviceAddress = reader.uint32();
21039
+ break;
21040
+ }
21041
+ case 2: {
21042
+ message.mode = reader.uint32();
21043
+ break;
21044
+ }
21045
+ default:
21046
+ reader.skipType(tag & 7);
21047
+ break;
21048
+ }
21049
+ }
21050
+ return message;
21051
+ };
21052
+
21053
+ /**
21054
+ * Decodes a SetPdoMode message from the specified reader or buffer, length delimited.
21055
+ * @function decodeDelimited
21056
+ * @memberof motionmaster.MotionMasterMessage.Request.SetPdoMode
21057
+ * @static
21058
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
21059
+ * @returns {motionmaster.MotionMasterMessage.Request.SetPdoMode} SetPdoMode
21060
+ * @throws {Error} If the payload is not a reader or valid buffer
21061
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
21062
+ */
21063
+ SetPdoMode.decodeDelimited = function decodeDelimited(reader) {
21064
+ if (!(reader instanceof $Reader))
21065
+ reader = new $Reader(reader);
21066
+ return this.decode(reader, reader.uint32());
21067
+ };
21068
+
21069
+ /**
21070
+ * Verifies a SetPdoMode message.
21071
+ * @function verify
21072
+ * @memberof motionmaster.MotionMasterMessage.Request.SetPdoMode
21073
+ * @static
21074
+ * @param {Object.<string,*>} message Plain object to verify
21075
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
21076
+ */
21077
+ SetPdoMode.verify = function verify(message) {
21078
+ if (typeof message !== "object" || message === null)
21079
+ return "object expected";
21080
+ if (message.deviceAddress != null && message.hasOwnProperty("deviceAddress"))
21081
+ if (!$util.isInteger(message.deviceAddress))
21082
+ return "deviceAddress: integer expected";
21083
+ if (message.mode != null && message.hasOwnProperty("mode"))
21084
+ if (!$util.isInteger(message.mode))
21085
+ return "mode: integer expected";
21086
+ return null;
21087
+ };
21088
+
21089
+ /**
21090
+ * Creates a SetPdoMode message from a plain object. Also converts values to their respective internal types.
21091
+ * @function fromObject
21092
+ * @memberof motionmaster.MotionMasterMessage.Request.SetPdoMode
21093
+ * @static
21094
+ * @param {Object.<string,*>} object Plain object
21095
+ * @returns {motionmaster.MotionMasterMessage.Request.SetPdoMode} SetPdoMode
21096
+ */
21097
+ SetPdoMode.fromObject = function fromObject(object) {
21098
+ if (object instanceof $root.motionmaster.MotionMasterMessage.Request.SetPdoMode)
21099
+ return object;
21100
+ let message = new $root.motionmaster.MotionMasterMessage.Request.SetPdoMode();
21101
+ if (object.deviceAddress != null)
21102
+ message.deviceAddress = object.deviceAddress >>> 0;
21103
+ if (object.mode != null)
21104
+ message.mode = object.mode >>> 0;
21105
+ return message;
21106
+ };
21107
+
21108
+ /**
21109
+ * Creates a plain object from a SetPdoMode message. Also converts values to other types if specified.
21110
+ * @function toObject
21111
+ * @memberof motionmaster.MotionMasterMessage.Request.SetPdoMode
21112
+ * @static
21113
+ * @param {motionmaster.MotionMasterMessage.Request.SetPdoMode} message SetPdoMode
21114
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
21115
+ * @returns {Object.<string,*>} Plain object
21116
+ */
21117
+ SetPdoMode.toObject = function toObject(message, options) {
21118
+ if (!options)
21119
+ options = {};
21120
+ let object = {};
21121
+ if (options.defaults) {
21122
+ object.deviceAddress = 0;
21123
+ object.mode = 0;
21124
+ }
21125
+ if (message.deviceAddress != null && message.hasOwnProperty("deviceAddress"))
21126
+ object.deviceAddress = message.deviceAddress;
21127
+ if (message.mode != null && message.hasOwnProperty("mode"))
21128
+ object.mode = message.mode;
21129
+ return object;
21130
+ };
21131
+
21132
+ /**
21133
+ * Converts this SetPdoMode to JSON.
21134
+ * @function toJSON
21135
+ * @memberof motionmaster.MotionMasterMessage.Request.SetPdoMode
21136
+ * @instance
21137
+ * @returns {Object.<string,*>} JSON object
21138
+ */
21139
+ SetPdoMode.prototype.toJSON = function toJSON() {
21140
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
21141
+ };
21142
+
21143
+ /**
21144
+ * Gets the default type url for SetPdoMode
21145
+ * @function getTypeUrl
21146
+ * @memberof motionmaster.MotionMasterMessage.Request.SetPdoMode
21147
+ * @static
21148
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
21149
+ * @returns {string} The default type url
21150
+ */
21151
+ SetPdoMode.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
21152
+ if (typeUrlPrefix === undefined) {
21153
+ typeUrlPrefix = "type.googleapis.com";
21154
+ }
21155
+ return typeUrlPrefix + "/motionmaster.MotionMasterMessage.Request.SetPdoMode";
21156
+ };
21157
+
21158
+ return SetPdoMode;
21159
+ })();
21160
+
20689
21161
  return Request;
20690
21162
  })();
20691
21163
 
@@ -20730,6 +21202,8 @@ $root.motionmaster = (() => {
20730
21202
  * @property {motionmaster.MotionMasterMessage.Status.ICirculoEncoderConfiguration|null} [circuloEncoderConfiguration] Status circuloEncoderConfiguration
20731
21203
  * @property {motionmaster.MotionMasterMessage.Status.IOsCommand|null} [osCommand] Status osCommand
20732
21204
  * @property {motionmaster.MotionMasterMessage.Status.IForwardCall|null} [forwardCall] Status forwardCall
21205
+ * @property {motionmaster.MotionMasterMessage.Status.ISystemInformation|null} [systemInformation] Status systemInformation
21206
+ * @property {motionmaster.MotionMasterMessage.Status.IPdoMode|null} [pdoMode] Status pdoMode
20733
21207
  */
20734
21208
 
20735
21209
  /**
@@ -21027,17 +21501,33 @@ $root.motionmaster = (() => {
21027
21501
  */
21028
21502
  Status.prototype.forwardCall = null;
21029
21503
 
21504
+ /**
21505
+ * Status systemInformation.
21506
+ * @member {motionmaster.MotionMasterMessage.Status.ISystemInformation|null|undefined} systemInformation
21507
+ * @memberof motionmaster.MotionMasterMessage.Status
21508
+ * @instance
21509
+ */
21510
+ Status.prototype.systemInformation = null;
21511
+
21512
+ /**
21513
+ * Status pdoMode.
21514
+ * @member {motionmaster.MotionMasterMessage.Status.IPdoMode|null|undefined} pdoMode
21515
+ * @memberof motionmaster.MotionMasterMessage.Status
21516
+ * @instance
21517
+ */
21518
+ Status.prototype.pdoMode = null;
21519
+
21030
21520
  // OneOf field names bound to virtual getters and setters
21031
21521
  let $oneOfFields;
21032
21522
 
21033
21523
  /**
21034
21524
  * Status type.
21035
- * @member {"systemPong"|"systemVersion"|"systemEvent"|"deviceInfo"|"deviceParameterInfo"|"deviceParameterValues"|"multiDeviceParameterValues"|"deviceFileList"|"deviceFile"|"deviceEvent"|"deviceFirmwareInstallation"|"deviceLog"|"deviceFaultReset"|"coggingTorqueRecording"|"coggingTorqueData"|"offsetDetection"|"plantIdentification"|"autoTuning"|"motionController"|"signalGenerator"|"monitoringParameterValues"|"deviceStop"|"ethercatNetworkState"|"narrowAngleCalibration"|"systemIdentification"|"circuloEncoderMagnetDistance"|"circuloEncoderNarrowAngleCalibrationProcedure"|"deviceCia402State"|"systemLog"|"deviceSiiRestore"|"openLoopFieldControl"|"fullAutoTuning"|"circuloEncoderConfiguration"|"osCommand"|"forwardCall"|undefined} type
21525
+ * @member {"systemPong"|"systemVersion"|"systemEvent"|"deviceInfo"|"deviceParameterInfo"|"deviceParameterValues"|"multiDeviceParameterValues"|"deviceFileList"|"deviceFile"|"deviceEvent"|"deviceFirmwareInstallation"|"deviceLog"|"deviceFaultReset"|"coggingTorqueRecording"|"coggingTorqueData"|"offsetDetection"|"plantIdentification"|"autoTuning"|"motionController"|"signalGenerator"|"monitoringParameterValues"|"deviceStop"|"ethercatNetworkState"|"narrowAngleCalibration"|"systemIdentification"|"circuloEncoderMagnetDistance"|"circuloEncoderNarrowAngleCalibrationProcedure"|"deviceCia402State"|"systemLog"|"deviceSiiRestore"|"openLoopFieldControl"|"fullAutoTuning"|"circuloEncoderConfiguration"|"osCommand"|"forwardCall"|"systemInformation"|"pdoMode"|undefined} type
21036
21526
  * @memberof motionmaster.MotionMasterMessage.Status
21037
21527
  * @instance
21038
21528
  */
21039
21529
  Object.defineProperty(Status.prototype, "type", {
21040
- get: $util.oneOfGetter($oneOfFields = ["systemPong", "systemVersion", "systemEvent", "deviceInfo", "deviceParameterInfo", "deviceParameterValues", "multiDeviceParameterValues", "deviceFileList", "deviceFile", "deviceEvent", "deviceFirmwareInstallation", "deviceLog", "deviceFaultReset", "coggingTorqueRecording", "coggingTorqueData", "offsetDetection", "plantIdentification", "autoTuning", "motionController", "signalGenerator", "monitoringParameterValues", "deviceStop", "ethercatNetworkState", "narrowAngleCalibration", "systemIdentification", "circuloEncoderMagnetDistance", "circuloEncoderNarrowAngleCalibrationProcedure", "deviceCia402State", "systemLog", "deviceSiiRestore", "openLoopFieldControl", "fullAutoTuning", "circuloEncoderConfiguration", "osCommand", "forwardCall"]),
21530
+ get: $util.oneOfGetter($oneOfFields = ["systemPong", "systemVersion", "systemEvent", "deviceInfo", "deviceParameterInfo", "deviceParameterValues", "multiDeviceParameterValues", "deviceFileList", "deviceFile", "deviceEvent", "deviceFirmwareInstallation", "deviceLog", "deviceFaultReset", "coggingTorqueRecording", "coggingTorqueData", "offsetDetection", "plantIdentification", "autoTuning", "motionController", "signalGenerator", "monitoringParameterValues", "deviceStop", "ethercatNetworkState", "narrowAngleCalibration", "systemIdentification", "circuloEncoderMagnetDistance", "circuloEncoderNarrowAngleCalibrationProcedure", "deviceCia402State", "systemLog", "deviceSiiRestore", "openLoopFieldControl", "fullAutoTuning", "circuloEncoderConfiguration", "osCommand", "forwardCall", "systemInformation", "pdoMode"]),
21041
21531
  set: $util.oneOfSetter($oneOfFields)
21042
21532
  });
21043
21533
 
@@ -21135,6 +21625,10 @@ $root.motionmaster = (() => {
21135
21625
  $root.motionmaster.MotionMasterMessage.Status.OsCommand.encode(message.osCommand, writer.uint32(/* id 134, wireType 2 =*/1074).fork()).ldelim();
21136
21626
  if (message.forwardCall != null && Object.hasOwnProperty.call(message, "forwardCall"))
21137
21627
  $root.motionmaster.MotionMasterMessage.Status.ForwardCall.encode(message.forwardCall, writer.uint32(/* id 135, wireType 2 =*/1082).fork()).ldelim();
21628
+ if (message.systemInformation != null && Object.hasOwnProperty.call(message, "systemInformation"))
21629
+ $root.motionmaster.MotionMasterMessage.Status.SystemInformation.encode(message.systemInformation, writer.uint32(/* id 136, wireType 2 =*/1090).fork()).ldelim();
21630
+ if (message.pdoMode != null && Object.hasOwnProperty.call(message, "pdoMode"))
21631
+ $root.motionmaster.MotionMasterMessage.Status.PdoMode.encode(message.pdoMode, writer.uint32(/* id 137, wireType 2 =*/1098).fork()).ldelim();
21138
21632
  return writer;
21139
21633
  };
21140
21634
 
@@ -21309,6 +21803,14 @@ $root.motionmaster = (() => {
21309
21803
  message.forwardCall = $root.motionmaster.MotionMasterMessage.Status.ForwardCall.decode(reader, reader.uint32());
21310
21804
  break;
21311
21805
  }
21806
+ case 136: {
21807
+ message.systemInformation = $root.motionmaster.MotionMasterMessage.Status.SystemInformation.decode(reader, reader.uint32());
21808
+ break;
21809
+ }
21810
+ case 137: {
21811
+ message.pdoMode = $root.motionmaster.MotionMasterMessage.Status.PdoMode.decode(reader, reader.uint32());
21812
+ break;
21813
+ }
21312
21814
  default:
21313
21815
  reader.skipType(tag & 7);
21314
21816
  break;
@@ -21693,6 +22195,26 @@ $root.motionmaster = (() => {
21693
22195
  return "forwardCall." + error;
21694
22196
  }
21695
22197
  }
22198
+ if (message.systemInformation != null && message.hasOwnProperty("systemInformation")) {
22199
+ if (properties.type === 1)
22200
+ return "type: multiple values";
22201
+ properties.type = 1;
22202
+ {
22203
+ let error = $root.motionmaster.MotionMasterMessage.Status.SystemInformation.verify(message.systemInformation);
22204
+ if (error)
22205
+ return "systemInformation." + error;
22206
+ }
22207
+ }
22208
+ if (message.pdoMode != null && message.hasOwnProperty("pdoMode")) {
22209
+ if (properties.type === 1)
22210
+ return "type: multiple values";
22211
+ properties.type = 1;
22212
+ {
22213
+ let error = $root.motionmaster.MotionMasterMessage.Status.PdoMode.verify(message.pdoMode);
22214
+ if (error)
22215
+ return "pdoMode." + error;
22216
+ }
22217
+ }
21696
22218
  return null;
21697
22219
  };
21698
22220
 
@@ -21883,6 +22405,16 @@ $root.motionmaster = (() => {
21883
22405
  throw TypeError(".motionmaster.MotionMasterMessage.Status.forwardCall: object expected");
21884
22406
  message.forwardCall = $root.motionmaster.MotionMasterMessage.Status.ForwardCall.fromObject(object.forwardCall);
21885
22407
  }
22408
+ if (object.systemInformation != null) {
22409
+ if (typeof object.systemInformation !== "object")
22410
+ throw TypeError(".motionmaster.MotionMasterMessage.Status.systemInformation: object expected");
22411
+ message.systemInformation = $root.motionmaster.MotionMasterMessage.Status.SystemInformation.fromObject(object.systemInformation);
22412
+ }
22413
+ if (object.pdoMode != null) {
22414
+ if (typeof object.pdoMode !== "object")
22415
+ throw TypeError(".motionmaster.MotionMasterMessage.Status.pdoMode: object expected");
22416
+ message.pdoMode = $root.motionmaster.MotionMasterMessage.Status.PdoMode.fromObject(object.pdoMode);
22417
+ }
21886
22418
  return message;
21887
22419
  };
21888
22420
 
@@ -22074,6 +22606,16 @@ $root.motionmaster = (() => {
22074
22606
  if (options.oneofs)
22075
22607
  object.type = "forwardCall";
22076
22608
  }
22609
+ if (message.systemInformation != null && message.hasOwnProperty("systemInformation")) {
22610
+ object.systemInformation = $root.motionmaster.MotionMasterMessage.Status.SystemInformation.toObject(message.systemInformation, options);
22611
+ if (options.oneofs)
22612
+ object.type = "systemInformation";
22613
+ }
22614
+ if (message.pdoMode != null && message.hasOwnProperty("pdoMode")) {
22615
+ object.pdoMode = $root.motionmaster.MotionMasterMessage.Status.PdoMode.toObject(message.pdoMode, options);
22616
+ if (options.oneofs)
22617
+ object.type = "pdoMode";
22618
+ }
22077
22619
  return object;
22078
22620
  };
22079
22621
 
@@ -54441,6 +54983,1342 @@ $root.motionmaster = (() => {
54441
54983
  return ForwardCall;
54442
54984
  })();
54443
54985
 
54986
+ Status.SystemInformation = (function() {
54987
+
54988
+ /**
54989
+ * Properties of a SystemInformation.
54990
+ * @memberof motionmaster.MotionMasterMessage.Status
54991
+ * @interface ISystemInformation
54992
+ * @property {string|null} [version] SystemInformation version
54993
+ * @property {motionmaster.MotionMasterMessage.Status.SystemInformation.IStartOptions|null} [startOptions] SystemInformation startOptions
54994
+ */
54995
+
54996
+ /**
54997
+ * Constructs a new SystemInformation.
54998
+ * @memberof motionmaster.MotionMasterMessage.Status
54999
+ * @classdesc Represents a SystemInformation.
55000
+ * @implements ISystemInformation
55001
+ * @constructor
55002
+ * @param {motionmaster.MotionMasterMessage.Status.ISystemInformation=} [properties] Properties to set
55003
+ */
55004
+ function SystemInformation(properties) {
55005
+ if (properties)
55006
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
55007
+ if (properties[keys[i]] != null)
55008
+ this[keys[i]] = properties[keys[i]];
55009
+ }
55010
+
55011
+ /**
55012
+ * SystemInformation version.
55013
+ * @member {string} version
55014
+ * @memberof motionmaster.MotionMasterMessage.Status.SystemInformation
55015
+ * @instance
55016
+ */
55017
+ SystemInformation.prototype.version = "";
55018
+
55019
+ /**
55020
+ * SystemInformation startOptions.
55021
+ * @member {motionmaster.MotionMasterMessage.Status.SystemInformation.IStartOptions|null|undefined} startOptions
55022
+ * @memberof motionmaster.MotionMasterMessage.Status.SystemInformation
55023
+ * @instance
55024
+ */
55025
+ SystemInformation.prototype.startOptions = null;
55026
+
55027
+ /**
55028
+ * Creates a new SystemInformation instance using the specified properties.
55029
+ * @function create
55030
+ * @memberof motionmaster.MotionMasterMessage.Status.SystemInformation
55031
+ * @static
55032
+ * @param {motionmaster.MotionMasterMessage.Status.ISystemInformation=} [properties] Properties to set
55033
+ * @returns {motionmaster.MotionMasterMessage.Status.SystemInformation} SystemInformation instance
55034
+ */
55035
+ SystemInformation.create = function create(properties) {
55036
+ return new SystemInformation(properties);
55037
+ };
55038
+
55039
+ /**
55040
+ * Encodes the specified SystemInformation message. Does not implicitly {@link motionmaster.MotionMasterMessage.Status.SystemInformation.verify|verify} messages.
55041
+ * @function encode
55042
+ * @memberof motionmaster.MotionMasterMessage.Status.SystemInformation
55043
+ * @static
55044
+ * @param {motionmaster.MotionMasterMessage.Status.ISystemInformation} message SystemInformation message or plain object to encode
55045
+ * @param {$protobuf.Writer} [writer] Writer to encode to
55046
+ * @returns {$protobuf.Writer} Writer
55047
+ */
55048
+ SystemInformation.encode = function encode(message, writer) {
55049
+ if (!writer)
55050
+ writer = $Writer.create();
55051
+ if (message.version != null && Object.hasOwnProperty.call(message, "version"))
55052
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.version);
55053
+ if (message.startOptions != null && Object.hasOwnProperty.call(message, "startOptions"))
55054
+ $root.motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions.encode(message.startOptions, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
55055
+ return writer;
55056
+ };
55057
+
55058
+ /**
55059
+ * Encodes the specified SystemInformation message, length delimited. Does not implicitly {@link motionmaster.MotionMasterMessage.Status.SystemInformation.verify|verify} messages.
55060
+ * @function encodeDelimited
55061
+ * @memberof motionmaster.MotionMasterMessage.Status.SystemInformation
55062
+ * @static
55063
+ * @param {motionmaster.MotionMasterMessage.Status.ISystemInformation} message SystemInformation message or plain object to encode
55064
+ * @param {$protobuf.Writer} [writer] Writer to encode to
55065
+ * @returns {$protobuf.Writer} Writer
55066
+ */
55067
+ SystemInformation.encodeDelimited = function encodeDelimited(message, writer) {
55068
+ return this.encode(message, writer).ldelim();
55069
+ };
55070
+
55071
+ /**
55072
+ * Decodes a SystemInformation message from the specified reader or buffer.
55073
+ * @function decode
55074
+ * @memberof motionmaster.MotionMasterMessage.Status.SystemInformation
55075
+ * @static
55076
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
55077
+ * @param {number} [length] Message length if known beforehand
55078
+ * @returns {motionmaster.MotionMasterMessage.Status.SystemInformation} SystemInformation
55079
+ * @throws {Error} If the payload is not a reader or valid buffer
55080
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
55081
+ */
55082
+ SystemInformation.decode = function decode(reader, length) {
55083
+ if (!(reader instanceof $Reader))
55084
+ reader = $Reader.create(reader);
55085
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.motionmaster.MotionMasterMessage.Status.SystemInformation();
55086
+ while (reader.pos < end) {
55087
+ let tag = reader.uint32();
55088
+ switch (tag >>> 3) {
55089
+ case 1: {
55090
+ message.version = reader.string();
55091
+ break;
55092
+ }
55093
+ case 2: {
55094
+ message.startOptions = $root.motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions.decode(reader, reader.uint32());
55095
+ break;
55096
+ }
55097
+ default:
55098
+ reader.skipType(tag & 7);
55099
+ break;
55100
+ }
55101
+ }
55102
+ return message;
55103
+ };
55104
+
55105
+ /**
55106
+ * Decodes a SystemInformation message from the specified reader or buffer, length delimited.
55107
+ * @function decodeDelimited
55108
+ * @memberof motionmaster.MotionMasterMessage.Status.SystemInformation
55109
+ * @static
55110
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
55111
+ * @returns {motionmaster.MotionMasterMessage.Status.SystemInformation} SystemInformation
55112
+ * @throws {Error} If the payload is not a reader or valid buffer
55113
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
55114
+ */
55115
+ SystemInformation.decodeDelimited = function decodeDelimited(reader) {
55116
+ if (!(reader instanceof $Reader))
55117
+ reader = new $Reader(reader);
55118
+ return this.decode(reader, reader.uint32());
55119
+ };
55120
+
55121
+ /**
55122
+ * Verifies a SystemInformation message.
55123
+ * @function verify
55124
+ * @memberof motionmaster.MotionMasterMessage.Status.SystemInformation
55125
+ * @static
55126
+ * @param {Object.<string,*>} message Plain object to verify
55127
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
55128
+ */
55129
+ SystemInformation.verify = function verify(message) {
55130
+ if (typeof message !== "object" || message === null)
55131
+ return "object expected";
55132
+ if (message.version != null && message.hasOwnProperty("version"))
55133
+ if (!$util.isString(message.version))
55134
+ return "version: string expected";
55135
+ if (message.startOptions != null && message.hasOwnProperty("startOptions")) {
55136
+ let error = $root.motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions.verify(message.startOptions);
55137
+ if (error)
55138
+ return "startOptions." + error;
55139
+ }
55140
+ return null;
55141
+ };
55142
+
55143
+ /**
55144
+ * Creates a SystemInformation message from a plain object. Also converts values to their respective internal types.
55145
+ * @function fromObject
55146
+ * @memberof motionmaster.MotionMasterMessage.Status.SystemInformation
55147
+ * @static
55148
+ * @param {Object.<string,*>} object Plain object
55149
+ * @returns {motionmaster.MotionMasterMessage.Status.SystemInformation} SystemInformation
55150
+ */
55151
+ SystemInformation.fromObject = function fromObject(object) {
55152
+ if (object instanceof $root.motionmaster.MotionMasterMessage.Status.SystemInformation)
55153
+ return object;
55154
+ let message = new $root.motionmaster.MotionMasterMessage.Status.SystemInformation();
55155
+ if (object.version != null)
55156
+ message.version = String(object.version);
55157
+ if (object.startOptions != null) {
55158
+ if (typeof object.startOptions !== "object")
55159
+ throw TypeError(".motionmaster.MotionMasterMessage.Status.SystemInformation.startOptions: object expected");
55160
+ message.startOptions = $root.motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions.fromObject(object.startOptions);
55161
+ }
55162
+ return message;
55163
+ };
55164
+
55165
+ /**
55166
+ * Creates a plain object from a SystemInformation message. Also converts values to other types if specified.
55167
+ * @function toObject
55168
+ * @memberof motionmaster.MotionMasterMessage.Status.SystemInformation
55169
+ * @static
55170
+ * @param {motionmaster.MotionMasterMessage.Status.SystemInformation} message SystemInformation
55171
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
55172
+ * @returns {Object.<string,*>} Plain object
55173
+ */
55174
+ SystemInformation.toObject = function toObject(message, options) {
55175
+ if (!options)
55176
+ options = {};
55177
+ let object = {};
55178
+ if (options.defaults) {
55179
+ object.version = "";
55180
+ object.startOptions = null;
55181
+ }
55182
+ if (message.version != null && message.hasOwnProperty("version"))
55183
+ object.version = message.version;
55184
+ if (message.startOptions != null && message.hasOwnProperty("startOptions"))
55185
+ object.startOptions = $root.motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions.toObject(message.startOptions, options);
55186
+ return object;
55187
+ };
55188
+
55189
+ /**
55190
+ * Converts this SystemInformation to JSON.
55191
+ * @function toJSON
55192
+ * @memberof motionmaster.MotionMasterMessage.Status.SystemInformation
55193
+ * @instance
55194
+ * @returns {Object.<string,*>} JSON object
55195
+ */
55196
+ SystemInformation.prototype.toJSON = function toJSON() {
55197
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
55198
+ };
55199
+
55200
+ /**
55201
+ * Gets the default type url for SystemInformation
55202
+ * @function getTypeUrl
55203
+ * @memberof motionmaster.MotionMasterMessage.Status.SystemInformation
55204
+ * @static
55205
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
55206
+ * @returns {string} The default type url
55207
+ */
55208
+ SystemInformation.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
55209
+ if (typeUrlPrefix === undefined) {
55210
+ typeUrlPrefix = "type.googleapis.com";
55211
+ }
55212
+ return typeUrlPrefix + "/motionmaster.MotionMasterMessage.Status.SystemInformation";
55213
+ };
55214
+
55215
+ SystemInformation.StartOptions = (function() {
55216
+
55217
+ /**
55218
+ * Properties of a StartOptions.
55219
+ * @memberof motionmaster.MotionMasterMessage.Status.SystemInformation
55220
+ * @interface IStartOptions
55221
+ * @property {string|null} [driver] StartOptions driver
55222
+ * @property {string|null} [mac] StartOptions mac
55223
+ * @property {number|null} [reqResPort] StartOptions reqResPort
55224
+ * @property {number|null} [pubSubPort] StartOptions pubSubPort
55225
+ * @property {Array.<string>|null} [ips] StartOptions ips
55226
+ * @property {string|null} [pdoMode] StartOptions pdoMode
55227
+ */
55228
+
55229
+ /**
55230
+ * Constructs a new StartOptions.
55231
+ * @memberof motionmaster.MotionMasterMessage.Status.SystemInformation
55232
+ * @classdesc Represents a StartOptions.
55233
+ * @implements IStartOptions
55234
+ * @constructor
55235
+ * @param {motionmaster.MotionMasterMessage.Status.SystemInformation.IStartOptions=} [properties] Properties to set
55236
+ */
55237
+ function StartOptions(properties) {
55238
+ this.ips = [];
55239
+ if (properties)
55240
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
55241
+ if (properties[keys[i]] != null)
55242
+ this[keys[i]] = properties[keys[i]];
55243
+ }
55244
+
55245
+ /**
55246
+ * StartOptions driver.
55247
+ * @member {string} driver
55248
+ * @memberof motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions
55249
+ * @instance
55250
+ */
55251
+ StartOptions.prototype.driver = "";
55252
+
55253
+ /**
55254
+ * StartOptions mac.
55255
+ * @member {string} mac
55256
+ * @memberof motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions
55257
+ * @instance
55258
+ */
55259
+ StartOptions.prototype.mac = "";
55260
+
55261
+ /**
55262
+ * StartOptions reqResPort.
55263
+ * @member {number} reqResPort
55264
+ * @memberof motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions
55265
+ * @instance
55266
+ */
55267
+ StartOptions.prototype.reqResPort = 0;
55268
+
55269
+ /**
55270
+ * StartOptions pubSubPort.
55271
+ * @member {number} pubSubPort
55272
+ * @memberof motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions
55273
+ * @instance
55274
+ */
55275
+ StartOptions.prototype.pubSubPort = 0;
55276
+
55277
+ /**
55278
+ * StartOptions ips.
55279
+ * @member {Array.<string>} ips
55280
+ * @memberof motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions
55281
+ * @instance
55282
+ */
55283
+ StartOptions.prototype.ips = $util.emptyArray;
55284
+
55285
+ /**
55286
+ * StartOptions pdoMode.
55287
+ * @member {string} pdoMode
55288
+ * @memberof motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions
55289
+ * @instance
55290
+ */
55291
+ StartOptions.prototype.pdoMode = "";
55292
+
55293
+ /**
55294
+ * Creates a new StartOptions instance using the specified properties.
55295
+ * @function create
55296
+ * @memberof motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions
55297
+ * @static
55298
+ * @param {motionmaster.MotionMasterMessage.Status.SystemInformation.IStartOptions=} [properties] Properties to set
55299
+ * @returns {motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions} StartOptions instance
55300
+ */
55301
+ StartOptions.create = function create(properties) {
55302
+ return new StartOptions(properties);
55303
+ };
55304
+
55305
+ /**
55306
+ * Encodes the specified StartOptions message. Does not implicitly {@link motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions.verify|verify} messages.
55307
+ * @function encode
55308
+ * @memberof motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions
55309
+ * @static
55310
+ * @param {motionmaster.MotionMasterMessage.Status.SystemInformation.IStartOptions} message StartOptions message or plain object to encode
55311
+ * @param {$protobuf.Writer} [writer] Writer to encode to
55312
+ * @returns {$protobuf.Writer} Writer
55313
+ */
55314
+ StartOptions.encode = function encode(message, writer) {
55315
+ if (!writer)
55316
+ writer = $Writer.create();
55317
+ if (message.driver != null && Object.hasOwnProperty.call(message, "driver"))
55318
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.driver);
55319
+ if (message.mac != null && Object.hasOwnProperty.call(message, "mac"))
55320
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.mac);
55321
+ if (message.reqResPort != null && Object.hasOwnProperty.call(message, "reqResPort"))
55322
+ writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.reqResPort);
55323
+ if (message.pubSubPort != null && Object.hasOwnProperty.call(message, "pubSubPort"))
55324
+ writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.pubSubPort);
55325
+ if (message.ips != null && message.ips.length)
55326
+ for (let i = 0; i < message.ips.length; ++i)
55327
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.ips[i]);
55328
+ if (message.pdoMode != null && Object.hasOwnProperty.call(message, "pdoMode"))
55329
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.pdoMode);
55330
+ return writer;
55331
+ };
55332
+
55333
+ /**
55334
+ * Encodes the specified StartOptions message, length delimited. Does not implicitly {@link motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions.verify|verify} messages.
55335
+ * @function encodeDelimited
55336
+ * @memberof motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions
55337
+ * @static
55338
+ * @param {motionmaster.MotionMasterMessage.Status.SystemInformation.IStartOptions} message StartOptions message or plain object to encode
55339
+ * @param {$protobuf.Writer} [writer] Writer to encode to
55340
+ * @returns {$protobuf.Writer} Writer
55341
+ */
55342
+ StartOptions.encodeDelimited = function encodeDelimited(message, writer) {
55343
+ return this.encode(message, writer).ldelim();
55344
+ };
55345
+
55346
+ /**
55347
+ * Decodes a StartOptions message from the specified reader or buffer.
55348
+ * @function decode
55349
+ * @memberof motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions
55350
+ * @static
55351
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
55352
+ * @param {number} [length] Message length if known beforehand
55353
+ * @returns {motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions} StartOptions
55354
+ * @throws {Error} If the payload is not a reader or valid buffer
55355
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
55356
+ */
55357
+ StartOptions.decode = function decode(reader, length) {
55358
+ if (!(reader instanceof $Reader))
55359
+ reader = $Reader.create(reader);
55360
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions();
55361
+ while (reader.pos < end) {
55362
+ let tag = reader.uint32();
55363
+ switch (tag >>> 3) {
55364
+ case 1: {
55365
+ message.driver = reader.string();
55366
+ break;
55367
+ }
55368
+ case 2: {
55369
+ message.mac = reader.string();
55370
+ break;
55371
+ }
55372
+ case 3: {
55373
+ message.reqResPort = reader.uint32();
55374
+ break;
55375
+ }
55376
+ case 4: {
55377
+ message.pubSubPort = reader.uint32();
55378
+ break;
55379
+ }
55380
+ case 5: {
55381
+ if (!(message.ips && message.ips.length))
55382
+ message.ips = [];
55383
+ message.ips.push(reader.string());
55384
+ break;
55385
+ }
55386
+ case 6: {
55387
+ message.pdoMode = reader.string();
55388
+ break;
55389
+ }
55390
+ default:
55391
+ reader.skipType(tag & 7);
55392
+ break;
55393
+ }
55394
+ }
55395
+ return message;
55396
+ };
55397
+
55398
+ /**
55399
+ * Decodes a StartOptions message from the specified reader or buffer, length delimited.
55400
+ * @function decodeDelimited
55401
+ * @memberof motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions
55402
+ * @static
55403
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
55404
+ * @returns {motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions} StartOptions
55405
+ * @throws {Error} If the payload is not a reader or valid buffer
55406
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
55407
+ */
55408
+ StartOptions.decodeDelimited = function decodeDelimited(reader) {
55409
+ if (!(reader instanceof $Reader))
55410
+ reader = new $Reader(reader);
55411
+ return this.decode(reader, reader.uint32());
55412
+ };
55413
+
55414
+ /**
55415
+ * Verifies a StartOptions message.
55416
+ * @function verify
55417
+ * @memberof motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions
55418
+ * @static
55419
+ * @param {Object.<string,*>} message Plain object to verify
55420
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
55421
+ */
55422
+ StartOptions.verify = function verify(message) {
55423
+ if (typeof message !== "object" || message === null)
55424
+ return "object expected";
55425
+ if (message.driver != null && message.hasOwnProperty("driver"))
55426
+ if (!$util.isString(message.driver))
55427
+ return "driver: string expected";
55428
+ if (message.mac != null && message.hasOwnProperty("mac"))
55429
+ if (!$util.isString(message.mac))
55430
+ return "mac: string expected";
55431
+ if (message.reqResPort != null && message.hasOwnProperty("reqResPort"))
55432
+ if (!$util.isInteger(message.reqResPort))
55433
+ return "reqResPort: integer expected";
55434
+ if (message.pubSubPort != null && message.hasOwnProperty("pubSubPort"))
55435
+ if (!$util.isInteger(message.pubSubPort))
55436
+ return "pubSubPort: integer expected";
55437
+ if (message.ips != null && message.hasOwnProperty("ips")) {
55438
+ if (!Array.isArray(message.ips))
55439
+ return "ips: array expected";
55440
+ for (let i = 0; i < message.ips.length; ++i)
55441
+ if (!$util.isString(message.ips[i]))
55442
+ return "ips: string[] expected";
55443
+ }
55444
+ if (message.pdoMode != null && message.hasOwnProperty("pdoMode"))
55445
+ if (!$util.isString(message.pdoMode))
55446
+ return "pdoMode: string expected";
55447
+ return null;
55448
+ };
55449
+
55450
+ /**
55451
+ * Creates a StartOptions message from a plain object. Also converts values to their respective internal types.
55452
+ * @function fromObject
55453
+ * @memberof motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions
55454
+ * @static
55455
+ * @param {Object.<string,*>} object Plain object
55456
+ * @returns {motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions} StartOptions
55457
+ */
55458
+ StartOptions.fromObject = function fromObject(object) {
55459
+ if (object instanceof $root.motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions)
55460
+ return object;
55461
+ let message = new $root.motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions();
55462
+ if (object.driver != null)
55463
+ message.driver = String(object.driver);
55464
+ if (object.mac != null)
55465
+ message.mac = String(object.mac);
55466
+ if (object.reqResPort != null)
55467
+ message.reqResPort = object.reqResPort >>> 0;
55468
+ if (object.pubSubPort != null)
55469
+ message.pubSubPort = object.pubSubPort >>> 0;
55470
+ if (object.ips) {
55471
+ if (!Array.isArray(object.ips))
55472
+ throw TypeError(".motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions.ips: array expected");
55473
+ message.ips = [];
55474
+ for (let i = 0; i < object.ips.length; ++i)
55475
+ message.ips[i] = String(object.ips[i]);
55476
+ }
55477
+ if (object.pdoMode != null)
55478
+ message.pdoMode = String(object.pdoMode);
55479
+ return message;
55480
+ };
55481
+
55482
+ /**
55483
+ * Creates a plain object from a StartOptions message. Also converts values to other types if specified.
55484
+ * @function toObject
55485
+ * @memberof motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions
55486
+ * @static
55487
+ * @param {motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions} message StartOptions
55488
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
55489
+ * @returns {Object.<string,*>} Plain object
55490
+ */
55491
+ StartOptions.toObject = function toObject(message, options) {
55492
+ if (!options)
55493
+ options = {};
55494
+ let object = {};
55495
+ if (options.arrays || options.defaults)
55496
+ object.ips = [];
55497
+ if (options.defaults) {
55498
+ object.driver = "";
55499
+ object.mac = "";
55500
+ object.reqResPort = 0;
55501
+ object.pubSubPort = 0;
55502
+ object.pdoMode = "";
55503
+ }
55504
+ if (message.driver != null && message.hasOwnProperty("driver"))
55505
+ object.driver = message.driver;
55506
+ if (message.mac != null && message.hasOwnProperty("mac"))
55507
+ object.mac = message.mac;
55508
+ if (message.reqResPort != null && message.hasOwnProperty("reqResPort"))
55509
+ object.reqResPort = message.reqResPort;
55510
+ if (message.pubSubPort != null && message.hasOwnProperty("pubSubPort"))
55511
+ object.pubSubPort = message.pubSubPort;
55512
+ if (message.ips && message.ips.length) {
55513
+ object.ips = [];
55514
+ for (let j = 0; j < message.ips.length; ++j)
55515
+ object.ips[j] = message.ips[j];
55516
+ }
55517
+ if (message.pdoMode != null && message.hasOwnProperty("pdoMode"))
55518
+ object.pdoMode = message.pdoMode;
55519
+ return object;
55520
+ };
55521
+
55522
+ /**
55523
+ * Converts this StartOptions to JSON.
55524
+ * @function toJSON
55525
+ * @memberof motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions
55526
+ * @instance
55527
+ * @returns {Object.<string,*>} JSON object
55528
+ */
55529
+ StartOptions.prototype.toJSON = function toJSON() {
55530
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
55531
+ };
55532
+
55533
+ /**
55534
+ * Gets the default type url for StartOptions
55535
+ * @function getTypeUrl
55536
+ * @memberof motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions
55537
+ * @static
55538
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
55539
+ * @returns {string} The default type url
55540
+ */
55541
+ StartOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
55542
+ if (typeUrlPrefix === undefined) {
55543
+ typeUrlPrefix = "type.googleapis.com";
55544
+ }
55545
+ return typeUrlPrefix + "/motionmaster.MotionMasterMessage.Status.SystemInformation.StartOptions";
55546
+ };
55547
+
55548
+ return StartOptions;
55549
+ })();
55550
+
55551
+ return SystemInformation;
55552
+ })();
55553
+
55554
+ Status.PdoMode = (function() {
55555
+
55556
+ /**
55557
+ * Properties of a PdoMode.
55558
+ * @memberof motionmaster.MotionMasterMessage.Status
55559
+ * @interface IPdoMode
55560
+ * @property {motionmaster.MotionMasterMessage.Status.PdoMode.ISuccess|null} [success] PdoMode success
55561
+ * @property {motionmaster.MotionMasterMessage.Status.PdoMode.IError|null} [error] PdoMode error
55562
+ */
55563
+
55564
+ /**
55565
+ * Constructs a new PdoMode.
55566
+ * @memberof motionmaster.MotionMasterMessage.Status
55567
+ * @classdesc Represents a PdoMode.
55568
+ * @implements IPdoMode
55569
+ * @constructor
55570
+ * @param {motionmaster.MotionMasterMessage.Status.IPdoMode=} [properties] Properties to set
55571
+ */
55572
+ function PdoMode(properties) {
55573
+ if (properties)
55574
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
55575
+ if (properties[keys[i]] != null)
55576
+ this[keys[i]] = properties[keys[i]];
55577
+ }
55578
+
55579
+ /**
55580
+ * PdoMode success.
55581
+ * @member {motionmaster.MotionMasterMessage.Status.PdoMode.ISuccess|null|undefined} success
55582
+ * @memberof motionmaster.MotionMasterMessage.Status.PdoMode
55583
+ * @instance
55584
+ */
55585
+ PdoMode.prototype.success = null;
55586
+
55587
+ /**
55588
+ * PdoMode error.
55589
+ * @member {motionmaster.MotionMasterMessage.Status.PdoMode.IError|null|undefined} error
55590
+ * @memberof motionmaster.MotionMasterMessage.Status.PdoMode
55591
+ * @instance
55592
+ */
55593
+ PdoMode.prototype.error = null;
55594
+
55595
+ // OneOf field names bound to virtual getters and setters
55596
+ let $oneOfFields;
55597
+
55598
+ /**
55599
+ * PdoMode status.
55600
+ * @member {"success"|"error"|undefined} status
55601
+ * @memberof motionmaster.MotionMasterMessage.Status.PdoMode
55602
+ * @instance
55603
+ */
55604
+ Object.defineProperty(PdoMode.prototype, "status", {
55605
+ get: $util.oneOfGetter($oneOfFields = ["success", "error"]),
55606
+ set: $util.oneOfSetter($oneOfFields)
55607
+ });
55608
+
55609
+ /**
55610
+ * Creates a new PdoMode instance using the specified properties.
55611
+ * @function create
55612
+ * @memberof motionmaster.MotionMasterMessage.Status.PdoMode
55613
+ * @static
55614
+ * @param {motionmaster.MotionMasterMessage.Status.IPdoMode=} [properties] Properties to set
55615
+ * @returns {motionmaster.MotionMasterMessage.Status.PdoMode} PdoMode instance
55616
+ */
55617
+ PdoMode.create = function create(properties) {
55618
+ return new PdoMode(properties);
55619
+ };
55620
+
55621
+ /**
55622
+ * Encodes the specified PdoMode message. Does not implicitly {@link motionmaster.MotionMasterMessage.Status.PdoMode.verify|verify} messages.
55623
+ * @function encode
55624
+ * @memberof motionmaster.MotionMasterMessage.Status.PdoMode
55625
+ * @static
55626
+ * @param {motionmaster.MotionMasterMessage.Status.IPdoMode} message PdoMode message or plain object to encode
55627
+ * @param {$protobuf.Writer} [writer] Writer to encode to
55628
+ * @returns {$protobuf.Writer} Writer
55629
+ */
55630
+ PdoMode.encode = function encode(message, writer) {
55631
+ if (!writer)
55632
+ writer = $Writer.create();
55633
+ if (message.success != null && Object.hasOwnProperty.call(message, "success"))
55634
+ $root.motionmaster.MotionMasterMessage.Status.PdoMode.Success.encode(message.success, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
55635
+ if (message.error != null && Object.hasOwnProperty.call(message, "error"))
55636
+ $root.motionmaster.MotionMasterMessage.Status.PdoMode.Error.encode(message.error, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
55637
+ return writer;
55638
+ };
55639
+
55640
+ /**
55641
+ * Encodes the specified PdoMode message, length delimited. Does not implicitly {@link motionmaster.MotionMasterMessage.Status.PdoMode.verify|verify} messages.
55642
+ * @function encodeDelimited
55643
+ * @memberof motionmaster.MotionMasterMessage.Status.PdoMode
55644
+ * @static
55645
+ * @param {motionmaster.MotionMasterMessage.Status.IPdoMode} message PdoMode message or plain object to encode
55646
+ * @param {$protobuf.Writer} [writer] Writer to encode to
55647
+ * @returns {$protobuf.Writer} Writer
55648
+ */
55649
+ PdoMode.encodeDelimited = function encodeDelimited(message, writer) {
55650
+ return this.encode(message, writer).ldelim();
55651
+ };
55652
+
55653
+ /**
55654
+ * Decodes a PdoMode message from the specified reader or buffer.
55655
+ * @function decode
55656
+ * @memberof motionmaster.MotionMasterMessage.Status.PdoMode
55657
+ * @static
55658
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
55659
+ * @param {number} [length] Message length if known beforehand
55660
+ * @returns {motionmaster.MotionMasterMessage.Status.PdoMode} PdoMode
55661
+ * @throws {Error} If the payload is not a reader or valid buffer
55662
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
55663
+ */
55664
+ PdoMode.decode = function decode(reader, length) {
55665
+ if (!(reader instanceof $Reader))
55666
+ reader = $Reader.create(reader);
55667
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.motionmaster.MotionMasterMessage.Status.PdoMode();
55668
+ while (reader.pos < end) {
55669
+ let tag = reader.uint32();
55670
+ switch (tag >>> 3) {
55671
+ case 2: {
55672
+ message.success = $root.motionmaster.MotionMasterMessage.Status.PdoMode.Success.decode(reader, reader.uint32());
55673
+ break;
55674
+ }
55675
+ case 3: {
55676
+ message.error = $root.motionmaster.MotionMasterMessage.Status.PdoMode.Error.decode(reader, reader.uint32());
55677
+ break;
55678
+ }
55679
+ default:
55680
+ reader.skipType(tag & 7);
55681
+ break;
55682
+ }
55683
+ }
55684
+ return message;
55685
+ };
55686
+
55687
+ /**
55688
+ * Decodes a PdoMode message from the specified reader or buffer, length delimited.
55689
+ * @function decodeDelimited
55690
+ * @memberof motionmaster.MotionMasterMessage.Status.PdoMode
55691
+ * @static
55692
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
55693
+ * @returns {motionmaster.MotionMasterMessage.Status.PdoMode} PdoMode
55694
+ * @throws {Error} If the payload is not a reader or valid buffer
55695
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
55696
+ */
55697
+ PdoMode.decodeDelimited = function decodeDelimited(reader) {
55698
+ if (!(reader instanceof $Reader))
55699
+ reader = new $Reader(reader);
55700
+ return this.decode(reader, reader.uint32());
55701
+ };
55702
+
55703
+ /**
55704
+ * Verifies a PdoMode message.
55705
+ * @function verify
55706
+ * @memberof motionmaster.MotionMasterMessage.Status.PdoMode
55707
+ * @static
55708
+ * @param {Object.<string,*>} message Plain object to verify
55709
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
55710
+ */
55711
+ PdoMode.verify = function verify(message) {
55712
+ if (typeof message !== "object" || message === null)
55713
+ return "object expected";
55714
+ let properties = {};
55715
+ if (message.success != null && message.hasOwnProperty("success")) {
55716
+ properties.status = 1;
55717
+ {
55718
+ let error = $root.motionmaster.MotionMasterMessage.Status.PdoMode.Success.verify(message.success);
55719
+ if (error)
55720
+ return "success." + error;
55721
+ }
55722
+ }
55723
+ if (message.error != null && message.hasOwnProperty("error")) {
55724
+ if (properties.status === 1)
55725
+ return "status: multiple values";
55726
+ properties.status = 1;
55727
+ {
55728
+ let error = $root.motionmaster.MotionMasterMessage.Status.PdoMode.Error.verify(message.error);
55729
+ if (error)
55730
+ return "error." + error;
55731
+ }
55732
+ }
55733
+ return null;
55734
+ };
55735
+
55736
+ /**
55737
+ * Creates a PdoMode message from a plain object. Also converts values to their respective internal types.
55738
+ * @function fromObject
55739
+ * @memberof motionmaster.MotionMasterMessage.Status.PdoMode
55740
+ * @static
55741
+ * @param {Object.<string,*>} object Plain object
55742
+ * @returns {motionmaster.MotionMasterMessage.Status.PdoMode} PdoMode
55743
+ */
55744
+ PdoMode.fromObject = function fromObject(object) {
55745
+ if (object instanceof $root.motionmaster.MotionMasterMessage.Status.PdoMode)
55746
+ return object;
55747
+ let message = new $root.motionmaster.MotionMasterMessage.Status.PdoMode();
55748
+ if (object.success != null) {
55749
+ if (typeof object.success !== "object")
55750
+ throw TypeError(".motionmaster.MotionMasterMessage.Status.PdoMode.success: object expected");
55751
+ message.success = $root.motionmaster.MotionMasterMessage.Status.PdoMode.Success.fromObject(object.success);
55752
+ }
55753
+ if (object.error != null) {
55754
+ if (typeof object.error !== "object")
55755
+ throw TypeError(".motionmaster.MotionMasterMessage.Status.PdoMode.error: object expected");
55756
+ message.error = $root.motionmaster.MotionMasterMessage.Status.PdoMode.Error.fromObject(object.error);
55757
+ }
55758
+ return message;
55759
+ };
55760
+
55761
+ /**
55762
+ * Creates a plain object from a PdoMode message. Also converts values to other types if specified.
55763
+ * @function toObject
55764
+ * @memberof motionmaster.MotionMasterMessage.Status.PdoMode
55765
+ * @static
55766
+ * @param {motionmaster.MotionMasterMessage.Status.PdoMode} message PdoMode
55767
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
55768
+ * @returns {Object.<string,*>} Plain object
55769
+ */
55770
+ PdoMode.toObject = function toObject(message, options) {
55771
+ if (!options)
55772
+ options = {};
55773
+ let object = {};
55774
+ if (message.success != null && message.hasOwnProperty("success")) {
55775
+ object.success = $root.motionmaster.MotionMasterMessage.Status.PdoMode.Success.toObject(message.success, options);
55776
+ if (options.oneofs)
55777
+ object.status = "success";
55778
+ }
55779
+ if (message.error != null && message.hasOwnProperty("error")) {
55780
+ object.error = $root.motionmaster.MotionMasterMessage.Status.PdoMode.Error.toObject(message.error, options);
55781
+ if (options.oneofs)
55782
+ object.status = "error";
55783
+ }
55784
+ return object;
55785
+ };
55786
+
55787
+ /**
55788
+ * Converts this PdoMode to JSON.
55789
+ * @function toJSON
55790
+ * @memberof motionmaster.MotionMasterMessage.Status.PdoMode
55791
+ * @instance
55792
+ * @returns {Object.<string,*>} JSON object
55793
+ */
55794
+ PdoMode.prototype.toJSON = function toJSON() {
55795
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
55796
+ };
55797
+
55798
+ /**
55799
+ * Gets the default type url for PdoMode
55800
+ * @function getTypeUrl
55801
+ * @memberof motionmaster.MotionMasterMessage.Status.PdoMode
55802
+ * @static
55803
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
55804
+ * @returns {string} The default type url
55805
+ */
55806
+ PdoMode.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
55807
+ if (typeUrlPrefix === undefined) {
55808
+ typeUrlPrefix = "type.googleapis.com";
55809
+ }
55810
+ return typeUrlPrefix + "/motionmaster.MotionMasterMessage.Status.PdoMode";
55811
+ };
55812
+
55813
+ PdoMode.Success = (function() {
55814
+
55815
+ /**
55816
+ * Properties of a Success.
55817
+ * @memberof motionmaster.MotionMasterMessage.Status.PdoMode
55818
+ * @interface ISuccess
55819
+ * @property {motionmaster.MotionMasterMessage.Status.PdoMode.Success.Code|null} [code] Success code
55820
+ * @property {string|null} [message] Success message
55821
+ */
55822
+
55823
+ /**
55824
+ * Constructs a new Success.
55825
+ * @memberof motionmaster.MotionMasterMessage.Status.PdoMode
55826
+ * @classdesc Represents a Success.
55827
+ * @implements ISuccess
55828
+ * @constructor
55829
+ * @param {motionmaster.MotionMasterMessage.Status.PdoMode.ISuccess=} [properties] Properties to set
55830
+ */
55831
+ function Success(properties) {
55832
+ if (properties)
55833
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
55834
+ if (properties[keys[i]] != null)
55835
+ this[keys[i]] = properties[keys[i]];
55836
+ }
55837
+
55838
+ /**
55839
+ * Success code.
55840
+ * @member {motionmaster.MotionMasterMessage.Status.PdoMode.Success.Code} code
55841
+ * @memberof motionmaster.MotionMasterMessage.Status.PdoMode.Success
55842
+ * @instance
55843
+ */
55844
+ Success.prototype.code = 0;
55845
+
55846
+ /**
55847
+ * Success message.
55848
+ * @member {string} message
55849
+ * @memberof motionmaster.MotionMasterMessage.Status.PdoMode.Success
55850
+ * @instance
55851
+ */
55852
+ Success.prototype.message = "";
55853
+
55854
+ /**
55855
+ * Creates a new Success instance using the specified properties.
55856
+ * @function create
55857
+ * @memberof motionmaster.MotionMasterMessage.Status.PdoMode.Success
55858
+ * @static
55859
+ * @param {motionmaster.MotionMasterMessage.Status.PdoMode.ISuccess=} [properties] Properties to set
55860
+ * @returns {motionmaster.MotionMasterMessage.Status.PdoMode.Success} Success instance
55861
+ */
55862
+ Success.create = function create(properties) {
55863
+ return new Success(properties);
55864
+ };
55865
+
55866
+ /**
55867
+ * Encodes the specified Success message. Does not implicitly {@link motionmaster.MotionMasterMessage.Status.PdoMode.Success.verify|verify} messages.
55868
+ * @function encode
55869
+ * @memberof motionmaster.MotionMasterMessage.Status.PdoMode.Success
55870
+ * @static
55871
+ * @param {motionmaster.MotionMasterMessage.Status.PdoMode.ISuccess} message Success message or plain object to encode
55872
+ * @param {$protobuf.Writer} [writer] Writer to encode to
55873
+ * @returns {$protobuf.Writer} Writer
55874
+ */
55875
+ Success.encode = function encode(message, writer) {
55876
+ if (!writer)
55877
+ writer = $Writer.create();
55878
+ if (message.code != null && Object.hasOwnProperty.call(message, "code"))
55879
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.code);
55880
+ if (message.message != null && Object.hasOwnProperty.call(message, "message"))
55881
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.message);
55882
+ return writer;
55883
+ };
55884
+
55885
+ /**
55886
+ * Encodes the specified Success message, length delimited. Does not implicitly {@link motionmaster.MotionMasterMessage.Status.PdoMode.Success.verify|verify} messages.
55887
+ * @function encodeDelimited
55888
+ * @memberof motionmaster.MotionMasterMessage.Status.PdoMode.Success
55889
+ * @static
55890
+ * @param {motionmaster.MotionMasterMessage.Status.PdoMode.ISuccess} message Success message or plain object to encode
55891
+ * @param {$protobuf.Writer} [writer] Writer to encode to
55892
+ * @returns {$protobuf.Writer} Writer
55893
+ */
55894
+ Success.encodeDelimited = function encodeDelimited(message, writer) {
55895
+ return this.encode(message, writer).ldelim();
55896
+ };
55897
+
55898
+ /**
55899
+ * Decodes a Success message from the specified reader or buffer.
55900
+ * @function decode
55901
+ * @memberof motionmaster.MotionMasterMessage.Status.PdoMode.Success
55902
+ * @static
55903
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
55904
+ * @param {number} [length] Message length if known beforehand
55905
+ * @returns {motionmaster.MotionMasterMessage.Status.PdoMode.Success} Success
55906
+ * @throws {Error} If the payload is not a reader or valid buffer
55907
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
55908
+ */
55909
+ Success.decode = function decode(reader, length) {
55910
+ if (!(reader instanceof $Reader))
55911
+ reader = $Reader.create(reader);
55912
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.motionmaster.MotionMasterMessage.Status.PdoMode.Success();
55913
+ while (reader.pos < end) {
55914
+ let tag = reader.uint32();
55915
+ switch (tag >>> 3) {
55916
+ case 1: {
55917
+ message.code = reader.int32();
55918
+ break;
55919
+ }
55920
+ case 2: {
55921
+ message.message = reader.string();
55922
+ break;
55923
+ }
55924
+ default:
55925
+ reader.skipType(tag & 7);
55926
+ break;
55927
+ }
55928
+ }
55929
+ return message;
55930
+ };
55931
+
55932
+ /**
55933
+ * Decodes a Success message from the specified reader or buffer, length delimited.
55934
+ * @function decodeDelimited
55935
+ * @memberof motionmaster.MotionMasterMessage.Status.PdoMode.Success
55936
+ * @static
55937
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
55938
+ * @returns {motionmaster.MotionMasterMessage.Status.PdoMode.Success} Success
55939
+ * @throws {Error} If the payload is not a reader or valid buffer
55940
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
55941
+ */
55942
+ Success.decodeDelimited = function decodeDelimited(reader) {
55943
+ if (!(reader instanceof $Reader))
55944
+ reader = new $Reader(reader);
55945
+ return this.decode(reader, reader.uint32());
55946
+ };
55947
+
55948
+ /**
55949
+ * Verifies a Success message.
55950
+ * @function verify
55951
+ * @memberof motionmaster.MotionMasterMessage.Status.PdoMode.Success
55952
+ * @static
55953
+ * @param {Object.<string,*>} message Plain object to verify
55954
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
55955
+ */
55956
+ Success.verify = function verify(message) {
55957
+ if (typeof message !== "object" || message === null)
55958
+ return "object expected";
55959
+ if (message.code != null && message.hasOwnProperty("code"))
55960
+ switch (message.code) {
55961
+ default:
55962
+ return "code: enum value expected";
55963
+ case 0:
55964
+ break;
55965
+ }
55966
+ if (message.message != null && message.hasOwnProperty("message"))
55967
+ if (!$util.isString(message.message))
55968
+ return "message: string expected";
55969
+ return null;
55970
+ };
55971
+
55972
+ /**
55973
+ * Creates a Success message from a plain object. Also converts values to their respective internal types.
55974
+ * @function fromObject
55975
+ * @memberof motionmaster.MotionMasterMessage.Status.PdoMode.Success
55976
+ * @static
55977
+ * @param {Object.<string,*>} object Plain object
55978
+ * @returns {motionmaster.MotionMasterMessage.Status.PdoMode.Success} Success
55979
+ */
55980
+ Success.fromObject = function fromObject(object) {
55981
+ if (object instanceof $root.motionmaster.MotionMasterMessage.Status.PdoMode.Success)
55982
+ return object;
55983
+ let message = new $root.motionmaster.MotionMasterMessage.Status.PdoMode.Success();
55984
+ switch (object.code) {
55985
+ default:
55986
+ if (typeof object.code === "number") {
55987
+ message.code = object.code;
55988
+ break;
55989
+ }
55990
+ break;
55991
+ case "UNSPECIFIED":
55992
+ case 0:
55993
+ message.code = 0;
55994
+ break;
55995
+ }
55996
+ if (object.message != null)
55997
+ message.message = String(object.message);
55998
+ return message;
55999
+ };
56000
+
56001
+ /**
56002
+ * Creates a plain object from a Success message. Also converts values to other types if specified.
56003
+ * @function toObject
56004
+ * @memberof motionmaster.MotionMasterMessage.Status.PdoMode.Success
56005
+ * @static
56006
+ * @param {motionmaster.MotionMasterMessage.Status.PdoMode.Success} message Success
56007
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
56008
+ * @returns {Object.<string,*>} Plain object
56009
+ */
56010
+ Success.toObject = function toObject(message, options) {
56011
+ if (!options)
56012
+ options = {};
56013
+ let object = {};
56014
+ if (options.defaults) {
56015
+ object.code = options.enums === String ? "UNSPECIFIED" : 0;
56016
+ object.message = "";
56017
+ }
56018
+ if (message.code != null && message.hasOwnProperty("code"))
56019
+ object.code = options.enums === String ? $root.motionmaster.MotionMasterMessage.Status.PdoMode.Success.Code[message.code] === undefined ? message.code : $root.motionmaster.MotionMasterMessage.Status.PdoMode.Success.Code[message.code] : message.code;
56020
+ if (message.message != null && message.hasOwnProperty("message"))
56021
+ object.message = message.message;
56022
+ return object;
56023
+ };
56024
+
56025
+ /**
56026
+ * Converts this Success to JSON.
56027
+ * @function toJSON
56028
+ * @memberof motionmaster.MotionMasterMessage.Status.PdoMode.Success
56029
+ * @instance
56030
+ * @returns {Object.<string,*>} JSON object
56031
+ */
56032
+ Success.prototype.toJSON = function toJSON() {
56033
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
56034
+ };
56035
+
56036
+ /**
56037
+ * Gets the default type url for Success
56038
+ * @function getTypeUrl
56039
+ * @memberof motionmaster.MotionMasterMessage.Status.PdoMode.Success
56040
+ * @static
56041
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
56042
+ * @returns {string} The default type url
56043
+ */
56044
+ Success.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
56045
+ if (typeUrlPrefix === undefined) {
56046
+ typeUrlPrefix = "type.googleapis.com";
56047
+ }
56048
+ return typeUrlPrefix + "/motionmaster.MotionMasterMessage.Status.PdoMode.Success";
56049
+ };
56050
+
56051
+ /**
56052
+ * Code enum.
56053
+ * @name motionmaster.MotionMasterMessage.Status.PdoMode.Success.Code
56054
+ * @enum {number}
56055
+ * @property {number} UNSPECIFIED=0 UNSPECIFIED value
56056
+ */
56057
+ Success.Code = (function() {
56058
+ const valuesById = {}, values = Object.create(valuesById);
56059
+ values[valuesById[0] = "UNSPECIFIED"] = 0;
56060
+ return values;
56061
+ })();
56062
+
56063
+ return Success;
56064
+ })();
56065
+
56066
+ PdoMode.Error = (function() {
56067
+
56068
+ /**
56069
+ * Properties of an Error.
56070
+ * @memberof motionmaster.MotionMasterMessage.Status.PdoMode
56071
+ * @interface IError
56072
+ * @property {motionmaster.MotionMasterMessage.Status.PdoMode.Error.Code|null} [code] Error code
56073
+ * @property {string|null} [message] Error message
56074
+ */
56075
+
56076
+ /**
56077
+ * Constructs a new Error.
56078
+ * @memberof motionmaster.MotionMasterMessage.Status.PdoMode
56079
+ * @classdesc Represents an Error.
56080
+ * @implements IError
56081
+ * @constructor
56082
+ * @param {motionmaster.MotionMasterMessage.Status.PdoMode.IError=} [properties] Properties to set
56083
+ */
56084
+ function Error(properties) {
56085
+ if (properties)
56086
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
56087
+ if (properties[keys[i]] != null)
56088
+ this[keys[i]] = properties[keys[i]];
56089
+ }
56090
+
56091
+ /**
56092
+ * Error code.
56093
+ * @member {motionmaster.MotionMasterMessage.Status.PdoMode.Error.Code} code
56094
+ * @memberof motionmaster.MotionMasterMessage.Status.PdoMode.Error
56095
+ * @instance
56096
+ */
56097
+ Error.prototype.code = 0;
56098
+
56099
+ /**
56100
+ * Error message.
56101
+ * @member {string} message
56102
+ * @memberof motionmaster.MotionMasterMessage.Status.PdoMode.Error
56103
+ * @instance
56104
+ */
56105
+ Error.prototype.message = "";
56106
+
56107
+ /**
56108
+ * Creates a new Error instance using the specified properties.
56109
+ * @function create
56110
+ * @memberof motionmaster.MotionMasterMessage.Status.PdoMode.Error
56111
+ * @static
56112
+ * @param {motionmaster.MotionMasterMessage.Status.PdoMode.IError=} [properties] Properties to set
56113
+ * @returns {motionmaster.MotionMasterMessage.Status.PdoMode.Error} Error instance
56114
+ */
56115
+ Error.create = function create(properties) {
56116
+ return new Error(properties);
56117
+ };
56118
+
56119
+ /**
56120
+ * Encodes the specified Error message. Does not implicitly {@link motionmaster.MotionMasterMessage.Status.PdoMode.Error.verify|verify} messages.
56121
+ * @function encode
56122
+ * @memberof motionmaster.MotionMasterMessage.Status.PdoMode.Error
56123
+ * @static
56124
+ * @param {motionmaster.MotionMasterMessage.Status.PdoMode.IError} message Error message or plain object to encode
56125
+ * @param {$protobuf.Writer} [writer] Writer to encode to
56126
+ * @returns {$protobuf.Writer} Writer
56127
+ */
56128
+ Error.encode = function encode(message, writer) {
56129
+ if (!writer)
56130
+ writer = $Writer.create();
56131
+ if (message.code != null && Object.hasOwnProperty.call(message, "code"))
56132
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.code);
56133
+ if (message.message != null && Object.hasOwnProperty.call(message, "message"))
56134
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.message);
56135
+ return writer;
56136
+ };
56137
+
56138
+ /**
56139
+ * Encodes the specified Error message, length delimited. Does not implicitly {@link motionmaster.MotionMasterMessage.Status.PdoMode.Error.verify|verify} messages.
56140
+ * @function encodeDelimited
56141
+ * @memberof motionmaster.MotionMasterMessage.Status.PdoMode.Error
56142
+ * @static
56143
+ * @param {motionmaster.MotionMasterMessage.Status.PdoMode.IError} message Error message or plain object to encode
56144
+ * @param {$protobuf.Writer} [writer] Writer to encode to
56145
+ * @returns {$protobuf.Writer} Writer
56146
+ */
56147
+ Error.encodeDelimited = function encodeDelimited(message, writer) {
56148
+ return this.encode(message, writer).ldelim();
56149
+ };
56150
+
56151
+ /**
56152
+ * Decodes an Error message from the specified reader or buffer.
56153
+ * @function decode
56154
+ * @memberof motionmaster.MotionMasterMessage.Status.PdoMode.Error
56155
+ * @static
56156
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
56157
+ * @param {number} [length] Message length if known beforehand
56158
+ * @returns {motionmaster.MotionMasterMessage.Status.PdoMode.Error} Error
56159
+ * @throws {Error} If the payload is not a reader or valid buffer
56160
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
56161
+ */
56162
+ Error.decode = function decode(reader, length) {
56163
+ if (!(reader instanceof $Reader))
56164
+ reader = $Reader.create(reader);
56165
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.motionmaster.MotionMasterMessage.Status.PdoMode.Error();
56166
+ while (reader.pos < end) {
56167
+ let tag = reader.uint32();
56168
+ switch (tag >>> 3) {
56169
+ case 1: {
56170
+ message.code = reader.int32();
56171
+ break;
56172
+ }
56173
+ case 2: {
56174
+ message.message = reader.string();
56175
+ break;
56176
+ }
56177
+ default:
56178
+ reader.skipType(tag & 7);
56179
+ break;
56180
+ }
56181
+ }
56182
+ return message;
56183
+ };
56184
+
56185
+ /**
56186
+ * Decodes an Error message from the specified reader or buffer, length delimited.
56187
+ * @function decodeDelimited
56188
+ * @memberof motionmaster.MotionMasterMessage.Status.PdoMode.Error
56189
+ * @static
56190
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
56191
+ * @returns {motionmaster.MotionMasterMessage.Status.PdoMode.Error} Error
56192
+ * @throws {Error} If the payload is not a reader or valid buffer
56193
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
56194
+ */
56195
+ Error.decodeDelimited = function decodeDelimited(reader) {
56196
+ if (!(reader instanceof $Reader))
56197
+ reader = new $Reader(reader);
56198
+ return this.decode(reader, reader.uint32());
56199
+ };
56200
+
56201
+ /**
56202
+ * Verifies an Error message.
56203
+ * @function verify
56204
+ * @memberof motionmaster.MotionMasterMessage.Status.PdoMode.Error
56205
+ * @static
56206
+ * @param {Object.<string,*>} message Plain object to verify
56207
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
56208
+ */
56209
+ Error.verify = function verify(message) {
56210
+ if (typeof message !== "object" || message === null)
56211
+ return "object expected";
56212
+ if (message.code != null && message.hasOwnProperty("code"))
56213
+ switch (message.code) {
56214
+ default:
56215
+ return "code: enum value expected";
56216
+ case 0:
56217
+ break;
56218
+ }
56219
+ if (message.message != null && message.hasOwnProperty("message"))
56220
+ if (!$util.isString(message.message))
56221
+ return "message: string expected";
56222
+ return null;
56223
+ };
56224
+
56225
+ /**
56226
+ * Creates an Error message from a plain object. Also converts values to their respective internal types.
56227
+ * @function fromObject
56228
+ * @memberof motionmaster.MotionMasterMessage.Status.PdoMode.Error
56229
+ * @static
56230
+ * @param {Object.<string,*>} object Plain object
56231
+ * @returns {motionmaster.MotionMasterMessage.Status.PdoMode.Error} Error
56232
+ */
56233
+ Error.fromObject = function fromObject(object) {
56234
+ if (object instanceof $root.motionmaster.MotionMasterMessage.Status.PdoMode.Error)
56235
+ return object;
56236
+ let message = new $root.motionmaster.MotionMasterMessage.Status.PdoMode.Error();
56237
+ switch (object.code) {
56238
+ default:
56239
+ if (typeof object.code === "number") {
56240
+ message.code = object.code;
56241
+ break;
56242
+ }
56243
+ break;
56244
+ case "UNSPECIFIED":
56245
+ case 0:
56246
+ message.code = 0;
56247
+ break;
56248
+ }
56249
+ if (object.message != null)
56250
+ message.message = String(object.message);
56251
+ return message;
56252
+ };
56253
+
56254
+ /**
56255
+ * Creates a plain object from an Error message. Also converts values to other types if specified.
56256
+ * @function toObject
56257
+ * @memberof motionmaster.MotionMasterMessage.Status.PdoMode.Error
56258
+ * @static
56259
+ * @param {motionmaster.MotionMasterMessage.Status.PdoMode.Error} message Error
56260
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
56261
+ * @returns {Object.<string,*>} Plain object
56262
+ */
56263
+ Error.toObject = function toObject(message, options) {
56264
+ if (!options)
56265
+ options = {};
56266
+ let object = {};
56267
+ if (options.defaults) {
56268
+ object.code = options.enums === String ? "UNSPECIFIED" : 0;
56269
+ object.message = "";
56270
+ }
56271
+ if (message.code != null && message.hasOwnProperty("code"))
56272
+ object.code = options.enums === String ? $root.motionmaster.MotionMasterMessage.Status.PdoMode.Error.Code[message.code] === undefined ? message.code : $root.motionmaster.MotionMasterMessage.Status.PdoMode.Error.Code[message.code] : message.code;
56273
+ if (message.message != null && message.hasOwnProperty("message"))
56274
+ object.message = message.message;
56275
+ return object;
56276
+ };
56277
+
56278
+ /**
56279
+ * Converts this Error to JSON.
56280
+ * @function toJSON
56281
+ * @memberof motionmaster.MotionMasterMessage.Status.PdoMode.Error
56282
+ * @instance
56283
+ * @returns {Object.<string,*>} JSON object
56284
+ */
56285
+ Error.prototype.toJSON = function toJSON() {
56286
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
56287
+ };
56288
+
56289
+ /**
56290
+ * Gets the default type url for Error
56291
+ * @function getTypeUrl
56292
+ * @memberof motionmaster.MotionMasterMessage.Status.PdoMode.Error
56293
+ * @static
56294
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
56295
+ * @returns {string} The default type url
56296
+ */
56297
+ Error.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
56298
+ if (typeUrlPrefix === undefined) {
56299
+ typeUrlPrefix = "type.googleapis.com";
56300
+ }
56301
+ return typeUrlPrefix + "/motionmaster.MotionMasterMessage.Status.PdoMode.Error";
56302
+ };
56303
+
56304
+ /**
56305
+ * Code enum.
56306
+ * @name motionmaster.MotionMasterMessage.Status.PdoMode.Error.Code
56307
+ * @enum {number}
56308
+ * @property {number} UNSPECIFIED=0 UNSPECIFIED value
56309
+ */
56310
+ Error.Code = (function() {
56311
+ const valuesById = {}, values = Object.create(valuesById);
56312
+ values[valuesById[0] = "UNSPECIFIED"] = 0;
56313
+ return values;
56314
+ })();
56315
+
56316
+ return Error;
56317
+ })();
56318
+
56319
+ return PdoMode;
56320
+ })();
56321
+
54444
56322
  return Status;
54445
56323
  })();
54446
56324