@zaber/motion 4.2.0 → 4.2.2

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.
Files changed (34) hide show
  1. package/dist/binding/wasm/zaber-motion-lib.wasm +0 -0
  2. package/dist/lib/ascii/axis.d.ts +1 -1
  3. package/dist/lib/ascii/axis.js +1 -1
  4. package/dist/lib/ascii/axis.js.map +1 -1
  5. package/dist/lib/ascii/device.d.ts +3 -3
  6. package/dist/lib/ascii/device.js +3 -3
  7. package/dist/lib/ascii/device.js.map +1 -1
  8. package/dist/lib/ascii/index.d.ts +5 -0
  9. package/dist/lib/ascii/index.js +12 -1
  10. package/dist/lib/ascii/index.js.map +1 -1
  11. package/dist/lib/ascii/process.d.ts +152 -0
  12. package/dist/lib/ascii/process.js +313 -0
  13. package/dist/lib/ascii/process.js.map +1 -0
  14. package/dist/lib/ascii/process_controller.d.ts +39 -0
  15. package/dist/lib/ascii/process_controller.js +89 -0
  16. package/dist/lib/ascii/process_controller.js.map +1 -0
  17. package/dist/lib/ascii/process_controller_mode.d.ts +9 -0
  18. package/dist/lib/ascii/process_controller_mode.js +16 -0
  19. package/dist/lib/ascii/process_controller_mode.js.map +1 -0
  20. package/dist/lib/ascii/process_controller_source.d.ts +17 -0
  21. package/dist/lib/ascii/process_controller_source.js +53 -0
  22. package/dist/lib/ascii/process_controller_source.js.map +1 -0
  23. package/dist/lib/ascii/process_controller_source_sensor.d.ts +7 -0
  24. package/dist/lib/ascii/process_controller_source_sensor.js +14 -0
  25. package/dist/lib/ascii/process_controller_source_sensor.js.map +1 -0
  26. package/dist/lib/ascii_ns.d.ts +5 -0
  27. package/dist/lib/ascii_ns.js +5 -0
  28. package/dist/lib/ascii_ns.js.map +1 -1
  29. package/dist/lib/measurement.js +8 -0
  30. package/dist/lib/measurement.js.map +1 -1
  31. package/dist/lib/protobufs/main_pb.d.ts +103 -0
  32. package/dist/lib/protobufs/main_pb.js +757 -1
  33. package/dist/lib/protobufs/main_pb.js.map +1 -1
  34. package/package.json +1 -1
@@ -49,6 +49,7 @@ goog.exportSymbol('zaber.motion.protobufs.DeviceAddressConflictExceptionData', n
49
49
  goog.exportSymbol('zaber.motion.protobufs.DeviceConvertSettingRequest', null, proto);
50
50
  goog.exportSymbol('zaber.motion.protobufs.DeviceDbFailedExceptionData', null, proto);
51
51
  goog.exportSymbol('zaber.motion.protobufs.DeviceDetectRequest', null, proto);
52
+ goog.exportSymbol('zaber.motion.protobufs.DeviceDetectRequest.DeviceType', null, proto);
52
53
  goog.exportSymbol('zaber.motion.protobufs.DeviceDetectResponse', null, proto);
53
54
  goog.exportSymbol('zaber.motion.protobufs.DeviceEmptyRequest', null, proto);
54
55
  goog.exportSymbol('zaber.motion.protobufs.DeviceGetAllAnalogIORequest', null, proto);
@@ -139,6 +140,8 @@ goog.exportSymbol('zaber.motion.protobufs.OscilloscopeStartStopRequest', null, p
139
140
  goog.exportSymbol('zaber.motion.protobufs.ParamsetInfo', null, proto);
140
141
  goog.exportSymbol('zaber.motion.protobufs.PidTuning', null, proto);
141
142
  goog.exportSymbol('zaber.motion.protobufs.PrepareCommandRequest', null, proto);
143
+ goog.exportSymbol('zaber.motion.protobufs.ProcessControllerSource', null, proto);
144
+ goog.exportSymbol('zaber.motion.protobufs.ProcessOn', null, proto);
142
145
  goog.exportSymbol('zaber.motion.protobufs.PvtExecutionExceptionData', null, proto);
143
146
  goog.exportSymbol('zaber.motion.protobufs.PvtMovementFailedExceptionData', null, proto);
144
147
  goog.exportSymbol('zaber.motion.protobufs.PvtMovementInterruptedExceptionData', null, proto);
@@ -156,6 +159,7 @@ goog.exportSymbol('zaber.motion.protobufs.SetInterfaceTimeoutRequest', null, pro
156
159
  goog.exportSymbol('zaber.motion.protobufs.SetInternalModeRequest', null, proto);
157
160
  goog.exportSymbol('zaber.motion.protobufs.SetLogOutputRequest', null, proto);
158
161
  goog.exportSymbol('zaber.motion.protobufs.SetPeripheralStateExceptionData', null, proto);
162
+ goog.exportSymbol('zaber.motion.protobufs.SetProcessControllerSource', null, proto);
159
163
  goog.exportSymbol('zaber.motion.protobufs.SetServoTuningPIDRequest', null, proto);
160
164
  goog.exportSymbol('zaber.motion.protobufs.SetServoTuningRequest', null, proto);
161
165
  goog.exportSymbol('zaber.motion.protobufs.SetSimpleTuning', null, proto);
@@ -4494,6 +4498,69 @@ if (goog.DEBUG && !COMPILED) {
4494
4498
  */
4495
4499
  proto.zaber.motion.protobufs.ObjectiveChangerChangeRequest.displayName = 'proto.zaber.motion.protobufs.ObjectiveChangerChangeRequest';
4496
4500
  }
4501
+ /**
4502
+ * Generated by JsPbCodeGenerator.
4503
+ * @param {Array=} opt_data Optional initial data array, typically from a
4504
+ * server response, or constructed directly in Javascript. The array is used
4505
+ * in place and becomes part of the constructed object. It is not cloned.
4506
+ * If no data is provided, the constructed object will be empty, but still
4507
+ * valid.
4508
+ * @extends {jspb.Message}
4509
+ * @constructor
4510
+ */
4511
+ proto.zaber.motion.protobufs.ProcessOn = function(opt_data) {
4512
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4513
+ };
4514
+ goog.inherits(proto.zaber.motion.protobufs.ProcessOn, jspb.Message);
4515
+ if (goog.DEBUG && !COMPILED) {
4516
+ /**
4517
+ * @public
4518
+ * @override
4519
+ */
4520
+ proto.zaber.motion.protobufs.ProcessOn.displayName = 'proto.zaber.motion.protobufs.ProcessOn';
4521
+ }
4522
+ /**
4523
+ * Generated by JsPbCodeGenerator.
4524
+ * @param {Array=} opt_data Optional initial data array, typically from a
4525
+ * server response, or constructed directly in Javascript. The array is used
4526
+ * in place and becomes part of the constructed object. It is not cloned.
4527
+ * If no data is provided, the constructed object will be empty, but still
4528
+ * valid.
4529
+ * @extends {jspb.Message}
4530
+ * @constructor
4531
+ */
4532
+ proto.zaber.motion.protobufs.ProcessControllerSource = function(opt_data) {
4533
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4534
+ };
4535
+ goog.inherits(proto.zaber.motion.protobufs.ProcessControllerSource, jspb.Message);
4536
+ if (goog.DEBUG && !COMPILED) {
4537
+ /**
4538
+ * @public
4539
+ * @override
4540
+ */
4541
+ proto.zaber.motion.protobufs.ProcessControllerSource.displayName = 'proto.zaber.motion.protobufs.ProcessControllerSource';
4542
+ }
4543
+ /**
4544
+ * Generated by JsPbCodeGenerator.
4545
+ * @param {Array=} opt_data Optional initial data array, typically from a
4546
+ * server response, or constructed directly in Javascript. The array is used
4547
+ * in place and becomes part of the constructed object. It is not cloned.
4548
+ * If no data is provided, the constructed object will be empty, but still
4549
+ * valid.
4550
+ * @extends {jspb.Message}
4551
+ * @constructor
4552
+ */
4553
+ proto.zaber.motion.protobufs.SetProcessControllerSource = function(opt_data) {
4554
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4555
+ };
4556
+ goog.inherits(proto.zaber.motion.protobufs.SetProcessControllerSource, jspb.Message);
4557
+ if (goog.DEBUG && !COMPILED) {
4558
+ /**
4559
+ * @public
4560
+ * @override
4561
+ */
4562
+ proto.zaber.motion.protobufs.SetProcessControllerSource.displayName = 'proto.zaber.motion.protobufs.SetProcessControllerSource';
4563
+ }
4497
4564
 
4498
4565
 
4499
4566
 
@@ -15485,7 +15552,8 @@ proto.zaber.motion.protobufs.DeviceDetectRequest.prototype.toObject = function(o
15485
15552
  proto.zaber.motion.protobufs.DeviceDetectRequest.toObject = function(includeInstance, msg) {
15486
15553
  var f, obj = {
15487
15554
  interfaceId: jspb.Message.getFieldWithDefault(msg, 1, 0),
15488
- identifyDevices: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
15555
+ identifyDevices: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
15556
+ type: jspb.Message.getFieldWithDefault(msg, 3, 0)
15489
15557
  };
15490
15558
 
15491
15559
  if (includeInstance) {
@@ -15530,6 +15598,10 @@ proto.zaber.motion.protobufs.DeviceDetectRequest.deserializeBinaryFromReader = f
15530
15598
  var value = /** @type {boolean} */ (reader.readBool());
15531
15599
  msg.setIdentifyDevices(value);
15532
15600
  break;
15601
+ case 3:
15602
+ var value = /** @type {!proto.zaber.motion.protobufs.DeviceDetectRequest.DeviceType} */ (reader.readEnum());
15603
+ msg.setType(value);
15604
+ break;
15533
15605
  default:
15534
15606
  reader.skipField();
15535
15607
  break;
@@ -15573,9 +15645,24 @@ proto.zaber.motion.protobufs.DeviceDetectRequest.serializeBinaryToWriter = funct
15573
15645
  f
15574
15646
  );
15575
15647
  }
15648
+ f = message.getType();
15649
+ if (f !== 0.0) {
15650
+ writer.writeEnum(
15651
+ 3,
15652
+ f
15653
+ );
15654
+ }
15576
15655
  };
15577
15656
 
15578
15657
 
15658
+ /**
15659
+ * @enum {number}
15660
+ */
15661
+ proto.zaber.motion.protobufs.DeviceDetectRequest.DeviceType = {
15662
+ ANY: 0,
15663
+ PROCESS_CONTROLLER: 1
15664
+ };
15665
+
15579
15666
  /**
15580
15667
  * optional int32 interface_id = 1;
15581
15668
  * @return {number}
@@ -15612,6 +15699,24 @@ proto.zaber.motion.protobufs.DeviceDetectRequest.prototype.setIdentifyDevices =
15612
15699
  };
15613
15700
 
15614
15701
 
15702
+ /**
15703
+ * optional DeviceType type = 3;
15704
+ * @return {!proto.zaber.motion.protobufs.DeviceDetectRequest.DeviceType}
15705
+ */
15706
+ proto.zaber.motion.protobufs.DeviceDetectRequest.prototype.getType = function() {
15707
+ return /** @type {!proto.zaber.motion.protobufs.DeviceDetectRequest.DeviceType} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
15708
+ };
15709
+
15710
+
15711
+ /**
15712
+ * @param {!proto.zaber.motion.protobufs.DeviceDetectRequest.DeviceType} value
15713
+ * @return {!proto.zaber.motion.protobufs.DeviceDetectRequest} returns this
15714
+ */
15715
+ proto.zaber.motion.protobufs.DeviceDetectRequest.prototype.setType = function(value) {
15716
+ return jspb.Message.setProto3EnumField(this, 3, value);
15717
+ };
15718
+
15719
+
15615
15720
 
15616
15721
  /**
15617
15722
  * List of repeated fields within this message type.
@@ -49432,6 +49537,657 @@ proto.zaber.motion.protobufs.ObjectiveChangerChangeRequest.prototype.hasFocusOff
49432
49537
  };
49433
49538
 
49434
49539
 
49540
+
49541
+
49542
+
49543
+ if (jspb.Message.GENERATE_TO_OBJECT) {
49544
+ /**
49545
+ * Creates an object representation of this proto.
49546
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
49547
+ * Optional fields that are not set will be set to undefined.
49548
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
49549
+ * For the list of reserved names please see:
49550
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
49551
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
49552
+ * JSPB instance for transitional soy proto support:
49553
+ * http://goto/soy-param-migration
49554
+ * @return {!Object}
49555
+ */
49556
+ proto.zaber.motion.protobufs.ProcessOn.prototype.toObject = function(opt_includeInstance) {
49557
+ return proto.zaber.motion.protobufs.ProcessOn.toObject(opt_includeInstance, this);
49558
+ };
49559
+
49560
+
49561
+ /**
49562
+ * Static version of the {@see toObject} method.
49563
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
49564
+ * the JSPB instance for transitional soy proto support:
49565
+ * http://goto/soy-param-migration
49566
+ * @param {!proto.zaber.motion.protobufs.ProcessOn} msg The msg instance to transform.
49567
+ * @return {!Object}
49568
+ * @suppress {unusedLocalVariables} f is only used for nested messages
49569
+ */
49570
+ proto.zaber.motion.protobufs.ProcessOn.toObject = function(includeInstance, msg) {
49571
+ var f, obj = {
49572
+ interfaceId: jspb.Message.getFieldWithDefault(msg, 1, 0),
49573
+ device: jspb.Message.getFieldWithDefault(msg, 2, 0),
49574
+ axis: jspb.Message.getFieldWithDefault(msg, 3, 0),
49575
+ on: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
49576
+ duration: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0)
49577
+ };
49578
+
49579
+ if (includeInstance) {
49580
+ obj.$jspbMessageInstance = msg;
49581
+ }
49582
+ return obj;
49583
+ };
49584
+ }
49585
+
49586
+
49587
+ /**
49588
+ * Deserializes binary data (in protobuf wire format).
49589
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
49590
+ * @return {!proto.zaber.motion.protobufs.ProcessOn}
49591
+ */
49592
+ proto.zaber.motion.protobufs.ProcessOn.deserializeBinary = function(bytes) {
49593
+ var reader = new jspb.BinaryReader(bytes);
49594
+ var msg = new proto.zaber.motion.protobufs.ProcessOn;
49595
+ return proto.zaber.motion.protobufs.ProcessOn.deserializeBinaryFromReader(msg, reader);
49596
+ };
49597
+
49598
+
49599
+ /**
49600
+ * Deserializes binary data (in protobuf wire format) from the
49601
+ * given reader into the given message object.
49602
+ * @param {!proto.zaber.motion.protobufs.ProcessOn} msg The message object to deserialize into.
49603
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
49604
+ * @return {!proto.zaber.motion.protobufs.ProcessOn}
49605
+ */
49606
+ proto.zaber.motion.protobufs.ProcessOn.deserializeBinaryFromReader = function(msg, reader) {
49607
+ while (reader.nextField()) {
49608
+ if (reader.isEndGroup()) {
49609
+ break;
49610
+ }
49611
+ var field = reader.getFieldNumber();
49612
+ switch (field) {
49613
+ case 1:
49614
+ var value = /** @type {number} */ (reader.readInt32());
49615
+ msg.setInterfaceId(value);
49616
+ break;
49617
+ case 2:
49618
+ var value = /** @type {number} */ (reader.readInt32());
49619
+ msg.setDevice(value);
49620
+ break;
49621
+ case 3:
49622
+ var value = /** @type {number} */ (reader.readInt32());
49623
+ msg.setAxis(value);
49624
+ break;
49625
+ case 4:
49626
+ var value = /** @type {boolean} */ (reader.readBool());
49627
+ msg.setOn(value);
49628
+ break;
49629
+ case 5:
49630
+ var value = /** @type {number} */ (reader.readDouble());
49631
+ msg.setDuration(value);
49632
+ break;
49633
+ default:
49634
+ reader.skipField();
49635
+ break;
49636
+ }
49637
+ }
49638
+ return msg;
49639
+ };
49640
+
49641
+
49642
+ /**
49643
+ * Serializes the message to binary data (in protobuf wire format).
49644
+ * @return {!Uint8Array}
49645
+ */
49646
+ proto.zaber.motion.protobufs.ProcessOn.prototype.serializeBinary = function() {
49647
+ var writer = new jspb.BinaryWriter();
49648
+ proto.zaber.motion.protobufs.ProcessOn.serializeBinaryToWriter(this, writer);
49649
+ return writer.getResultBuffer();
49650
+ };
49651
+
49652
+
49653
+ /**
49654
+ * Serializes the given message to binary data (in protobuf wire
49655
+ * format), writing to the given BinaryWriter.
49656
+ * @param {!proto.zaber.motion.protobufs.ProcessOn} message
49657
+ * @param {!jspb.BinaryWriter} writer
49658
+ * @suppress {unusedLocalVariables} f is only used for nested messages
49659
+ */
49660
+ proto.zaber.motion.protobufs.ProcessOn.serializeBinaryToWriter = function(message, writer) {
49661
+ var f = undefined;
49662
+ f = message.getInterfaceId();
49663
+ if (f !== 0) {
49664
+ writer.writeInt32(
49665
+ 1,
49666
+ f
49667
+ );
49668
+ }
49669
+ f = message.getDevice();
49670
+ if (f !== 0) {
49671
+ writer.writeInt32(
49672
+ 2,
49673
+ f
49674
+ );
49675
+ }
49676
+ f = message.getAxis();
49677
+ if (f !== 0) {
49678
+ writer.writeInt32(
49679
+ 3,
49680
+ f
49681
+ );
49682
+ }
49683
+ f = message.getOn();
49684
+ if (f) {
49685
+ writer.writeBool(
49686
+ 4,
49687
+ f
49688
+ );
49689
+ }
49690
+ f = message.getDuration();
49691
+ if (f !== 0.0) {
49692
+ writer.writeDouble(
49693
+ 5,
49694
+ f
49695
+ );
49696
+ }
49697
+ };
49698
+
49699
+
49700
+ /**
49701
+ * optional int32 interface_id = 1;
49702
+ * @return {number}
49703
+ */
49704
+ proto.zaber.motion.protobufs.ProcessOn.prototype.getInterfaceId = function() {
49705
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
49706
+ };
49707
+
49708
+
49709
+ /**
49710
+ * @param {number} value
49711
+ * @return {!proto.zaber.motion.protobufs.ProcessOn} returns this
49712
+ */
49713
+ proto.zaber.motion.protobufs.ProcessOn.prototype.setInterfaceId = function(value) {
49714
+ return jspb.Message.setProto3IntField(this, 1, value);
49715
+ };
49716
+
49717
+
49718
+ /**
49719
+ * optional int32 device = 2;
49720
+ * @return {number}
49721
+ */
49722
+ proto.zaber.motion.protobufs.ProcessOn.prototype.getDevice = function() {
49723
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
49724
+ };
49725
+
49726
+
49727
+ /**
49728
+ * @param {number} value
49729
+ * @return {!proto.zaber.motion.protobufs.ProcessOn} returns this
49730
+ */
49731
+ proto.zaber.motion.protobufs.ProcessOn.prototype.setDevice = function(value) {
49732
+ return jspb.Message.setProto3IntField(this, 2, value);
49733
+ };
49734
+
49735
+
49736
+ /**
49737
+ * optional int32 axis = 3;
49738
+ * @return {number}
49739
+ */
49740
+ proto.zaber.motion.protobufs.ProcessOn.prototype.getAxis = function() {
49741
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
49742
+ };
49743
+
49744
+
49745
+ /**
49746
+ * @param {number} value
49747
+ * @return {!proto.zaber.motion.protobufs.ProcessOn} returns this
49748
+ */
49749
+ proto.zaber.motion.protobufs.ProcessOn.prototype.setAxis = function(value) {
49750
+ return jspb.Message.setProto3IntField(this, 3, value);
49751
+ };
49752
+
49753
+
49754
+ /**
49755
+ * optional bool on = 4;
49756
+ * @return {boolean}
49757
+ */
49758
+ proto.zaber.motion.protobufs.ProcessOn.prototype.getOn = function() {
49759
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
49760
+ };
49761
+
49762
+
49763
+ /**
49764
+ * @param {boolean} value
49765
+ * @return {!proto.zaber.motion.protobufs.ProcessOn} returns this
49766
+ */
49767
+ proto.zaber.motion.protobufs.ProcessOn.prototype.setOn = function(value) {
49768
+ return jspb.Message.setProto3BooleanField(this, 4, value);
49769
+ };
49770
+
49771
+
49772
+ /**
49773
+ * optional double duration = 5;
49774
+ * @return {number}
49775
+ */
49776
+ proto.zaber.motion.protobufs.ProcessOn.prototype.getDuration = function() {
49777
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
49778
+ };
49779
+
49780
+
49781
+ /**
49782
+ * @param {number} value
49783
+ * @return {!proto.zaber.motion.protobufs.ProcessOn} returns this
49784
+ */
49785
+ proto.zaber.motion.protobufs.ProcessOn.prototype.setDuration = function(value) {
49786
+ return jspb.Message.setProto3FloatField(this, 5, value);
49787
+ };
49788
+
49789
+
49790
+
49791
+
49792
+
49793
+ if (jspb.Message.GENERATE_TO_OBJECT) {
49794
+ /**
49795
+ * Creates an object representation of this proto.
49796
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
49797
+ * Optional fields that are not set will be set to undefined.
49798
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
49799
+ * For the list of reserved names please see:
49800
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
49801
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
49802
+ * JSPB instance for transitional soy proto support:
49803
+ * http://goto/soy-param-migration
49804
+ * @return {!Object}
49805
+ */
49806
+ proto.zaber.motion.protobufs.ProcessControllerSource.prototype.toObject = function(opt_includeInstance) {
49807
+ return proto.zaber.motion.protobufs.ProcessControllerSource.toObject(opt_includeInstance, this);
49808
+ };
49809
+
49810
+
49811
+ /**
49812
+ * Static version of the {@see toObject} method.
49813
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
49814
+ * the JSPB instance for transitional soy proto support:
49815
+ * http://goto/soy-param-migration
49816
+ * @param {!proto.zaber.motion.protobufs.ProcessControllerSource} msg The msg instance to transform.
49817
+ * @return {!Object}
49818
+ * @suppress {unusedLocalVariables} f is only used for nested messages
49819
+ */
49820
+ proto.zaber.motion.protobufs.ProcessControllerSource.toObject = function(includeInstance, msg) {
49821
+ var f, obj = {
49822
+ sensor: jspb.Message.getFieldWithDefault(msg, 1, 0),
49823
+ port: jspb.Message.getFieldWithDefault(msg, 2, 0)
49824
+ };
49825
+
49826
+ if (includeInstance) {
49827
+ obj.$jspbMessageInstance = msg;
49828
+ }
49829
+ return obj;
49830
+ };
49831
+ }
49832
+
49833
+
49834
+ /**
49835
+ * Deserializes binary data (in protobuf wire format).
49836
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
49837
+ * @return {!proto.zaber.motion.protobufs.ProcessControllerSource}
49838
+ */
49839
+ proto.zaber.motion.protobufs.ProcessControllerSource.deserializeBinary = function(bytes) {
49840
+ var reader = new jspb.BinaryReader(bytes);
49841
+ var msg = new proto.zaber.motion.protobufs.ProcessControllerSource;
49842
+ return proto.zaber.motion.protobufs.ProcessControllerSource.deserializeBinaryFromReader(msg, reader);
49843
+ };
49844
+
49845
+
49846
+ /**
49847
+ * Deserializes binary data (in protobuf wire format) from the
49848
+ * given reader into the given message object.
49849
+ * @param {!proto.zaber.motion.protobufs.ProcessControllerSource} msg The message object to deserialize into.
49850
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
49851
+ * @return {!proto.zaber.motion.protobufs.ProcessControllerSource}
49852
+ */
49853
+ proto.zaber.motion.protobufs.ProcessControllerSource.deserializeBinaryFromReader = function(msg, reader) {
49854
+ while (reader.nextField()) {
49855
+ if (reader.isEndGroup()) {
49856
+ break;
49857
+ }
49858
+ var field = reader.getFieldNumber();
49859
+ switch (field) {
49860
+ case 1:
49861
+ var value = /** @type {number} */ (reader.readInt32());
49862
+ msg.setSensor(value);
49863
+ break;
49864
+ case 2:
49865
+ var value = /** @type {number} */ (reader.readInt32());
49866
+ msg.setPort(value);
49867
+ break;
49868
+ default:
49869
+ reader.skipField();
49870
+ break;
49871
+ }
49872
+ }
49873
+ return msg;
49874
+ };
49875
+
49876
+
49877
+ /**
49878
+ * Serializes the message to binary data (in protobuf wire format).
49879
+ * @return {!Uint8Array}
49880
+ */
49881
+ proto.zaber.motion.protobufs.ProcessControllerSource.prototype.serializeBinary = function() {
49882
+ var writer = new jspb.BinaryWriter();
49883
+ proto.zaber.motion.protobufs.ProcessControllerSource.serializeBinaryToWriter(this, writer);
49884
+ return writer.getResultBuffer();
49885
+ };
49886
+
49887
+
49888
+ /**
49889
+ * Serializes the given message to binary data (in protobuf wire
49890
+ * format), writing to the given BinaryWriter.
49891
+ * @param {!proto.zaber.motion.protobufs.ProcessControllerSource} message
49892
+ * @param {!jspb.BinaryWriter} writer
49893
+ * @suppress {unusedLocalVariables} f is only used for nested messages
49894
+ */
49895
+ proto.zaber.motion.protobufs.ProcessControllerSource.serializeBinaryToWriter = function(message, writer) {
49896
+ var f = undefined;
49897
+ f = message.getSensor();
49898
+ if (f !== 0) {
49899
+ writer.writeInt32(
49900
+ 1,
49901
+ f
49902
+ );
49903
+ }
49904
+ f = message.getPort();
49905
+ if (f !== 0) {
49906
+ writer.writeInt32(
49907
+ 2,
49908
+ f
49909
+ );
49910
+ }
49911
+ };
49912
+
49913
+
49914
+ /**
49915
+ * optional int32 sensor = 1;
49916
+ * @return {number}
49917
+ */
49918
+ proto.zaber.motion.protobufs.ProcessControllerSource.prototype.getSensor = function() {
49919
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
49920
+ };
49921
+
49922
+
49923
+ /**
49924
+ * @param {number} value
49925
+ * @return {!proto.zaber.motion.protobufs.ProcessControllerSource} returns this
49926
+ */
49927
+ proto.zaber.motion.protobufs.ProcessControllerSource.prototype.setSensor = function(value) {
49928
+ return jspb.Message.setProto3IntField(this, 1, value);
49929
+ };
49930
+
49931
+
49932
+ /**
49933
+ * optional int32 port = 2;
49934
+ * @return {number}
49935
+ */
49936
+ proto.zaber.motion.protobufs.ProcessControllerSource.prototype.getPort = function() {
49937
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
49938
+ };
49939
+
49940
+
49941
+ /**
49942
+ * @param {number} value
49943
+ * @return {!proto.zaber.motion.protobufs.ProcessControllerSource} returns this
49944
+ */
49945
+ proto.zaber.motion.protobufs.ProcessControllerSource.prototype.setPort = function(value) {
49946
+ return jspb.Message.setProto3IntField(this, 2, value);
49947
+ };
49948
+
49949
+
49950
+
49951
+
49952
+
49953
+ if (jspb.Message.GENERATE_TO_OBJECT) {
49954
+ /**
49955
+ * Creates an object representation of this proto.
49956
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
49957
+ * Optional fields that are not set will be set to undefined.
49958
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
49959
+ * For the list of reserved names please see:
49960
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
49961
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
49962
+ * JSPB instance for transitional soy proto support:
49963
+ * http://goto/soy-param-migration
49964
+ * @return {!Object}
49965
+ */
49966
+ proto.zaber.motion.protobufs.SetProcessControllerSource.prototype.toObject = function(opt_includeInstance) {
49967
+ return proto.zaber.motion.protobufs.SetProcessControllerSource.toObject(opt_includeInstance, this);
49968
+ };
49969
+
49970
+
49971
+ /**
49972
+ * Static version of the {@see toObject} method.
49973
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
49974
+ * the JSPB instance for transitional soy proto support:
49975
+ * http://goto/soy-param-migration
49976
+ * @param {!proto.zaber.motion.protobufs.SetProcessControllerSource} msg The msg instance to transform.
49977
+ * @return {!Object}
49978
+ * @suppress {unusedLocalVariables} f is only used for nested messages
49979
+ */
49980
+ proto.zaber.motion.protobufs.SetProcessControllerSource.toObject = function(includeInstance, msg) {
49981
+ var f, obj = {
49982
+ interfaceId: jspb.Message.getFieldWithDefault(msg, 1, 0),
49983
+ device: jspb.Message.getFieldWithDefault(msg, 2, 0),
49984
+ axis: jspb.Message.getFieldWithDefault(msg, 3, 0),
49985
+ source: (f = msg.getSource()) && proto.zaber.motion.protobufs.ProcessControllerSource.toObject(includeInstance, f)
49986
+ };
49987
+
49988
+ if (includeInstance) {
49989
+ obj.$jspbMessageInstance = msg;
49990
+ }
49991
+ return obj;
49992
+ };
49993
+ }
49994
+
49995
+
49996
+ /**
49997
+ * Deserializes binary data (in protobuf wire format).
49998
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
49999
+ * @return {!proto.zaber.motion.protobufs.SetProcessControllerSource}
50000
+ */
50001
+ proto.zaber.motion.protobufs.SetProcessControllerSource.deserializeBinary = function(bytes) {
50002
+ var reader = new jspb.BinaryReader(bytes);
50003
+ var msg = new proto.zaber.motion.protobufs.SetProcessControllerSource;
50004
+ return proto.zaber.motion.protobufs.SetProcessControllerSource.deserializeBinaryFromReader(msg, reader);
50005
+ };
50006
+
50007
+
50008
+ /**
50009
+ * Deserializes binary data (in protobuf wire format) from the
50010
+ * given reader into the given message object.
50011
+ * @param {!proto.zaber.motion.protobufs.SetProcessControllerSource} msg The message object to deserialize into.
50012
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
50013
+ * @return {!proto.zaber.motion.protobufs.SetProcessControllerSource}
50014
+ */
50015
+ proto.zaber.motion.protobufs.SetProcessControllerSource.deserializeBinaryFromReader = function(msg, reader) {
50016
+ while (reader.nextField()) {
50017
+ if (reader.isEndGroup()) {
50018
+ break;
50019
+ }
50020
+ var field = reader.getFieldNumber();
50021
+ switch (field) {
50022
+ case 1:
50023
+ var value = /** @type {number} */ (reader.readInt32());
50024
+ msg.setInterfaceId(value);
50025
+ break;
50026
+ case 2:
50027
+ var value = /** @type {number} */ (reader.readInt32());
50028
+ msg.setDevice(value);
50029
+ break;
50030
+ case 3:
50031
+ var value = /** @type {number} */ (reader.readInt32());
50032
+ msg.setAxis(value);
50033
+ break;
50034
+ case 4:
50035
+ var value = new proto.zaber.motion.protobufs.ProcessControllerSource;
50036
+ reader.readMessage(value,proto.zaber.motion.protobufs.ProcessControllerSource.deserializeBinaryFromReader);
50037
+ msg.setSource(value);
50038
+ break;
50039
+ default:
50040
+ reader.skipField();
50041
+ break;
50042
+ }
50043
+ }
50044
+ return msg;
50045
+ };
50046
+
50047
+
50048
+ /**
50049
+ * Serializes the message to binary data (in protobuf wire format).
50050
+ * @return {!Uint8Array}
50051
+ */
50052
+ proto.zaber.motion.protobufs.SetProcessControllerSource.prototype.serializeBinary = function() {
50053
+ var writer = new jspb.BinaryWriter();
50054
+ proto.zaber.motion.protobufs.SetProcessControllerSource.serializeBinaryToWriter(this, writer);
50055
+ return writer.getResultBuffer();
50056
+ };
50057
+
50058
+
50059
+ /**
50060
+ * Serializes the given message to binary data (in protobuf wire
50061
+ * format), writing to the given BinaryWriter.
50062
+ * @param {!proto.zaber.motion.protobufs.SetProcessControllerSource} message
50063
+ * @param {!jspb.BinaryWriter} writer
50064
+ * @suppress {unusedLocalVariables} f is only used for nested messages
50065
+ */
50066
+ proto.zaber.motion.protobufs.SetProcessControllerSource.serializeBinaryToWriter = function(message, writer) {
50067
+ var f = undefined;
50068
+ f = message.getInterfaceId();
50069
+ if (f !== 0) {
50070
+ writer.writeInt32(
50071
+ 1,
50072
+ f
50073
+ );
50074
+ }
50075
+ f = message.getDevice();
50076
+ if (f !== 0) {
50077
+ writer.writeInt32(
50078
+ 2,
50079
+ f
50080
+ );
50081
+ }
50082
+ f = message.getAxis();
50083
+ if (f !== 0) {
50084
+ writer.writeInt32(
50085
+ 3,
50086
+ f
50087
+ );
50088
+ }
50089
+ f = message.getSource();
50090
+ if (f != null) {
50091
+ writer.writeMessage(
50092
+ 4,
50093
+ f,
50094
+ proto.zaber.motion.protobufs.ProcessControllerSource.serializeBinaryToWriter
50095
+ );
50096
+ }
50097
+ };
50098
+
50099
+
50100
+ /**
50101
+ * optional int32 interface_id = 1;
50102
+ * @return {number}
50103
+ */
50104
+ proto.zaber.motion.protobufs.SetProcessControllerSource.prototype.getInterfaceId = function() {
50105
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
50106
+ };
50107
+
50108
+
50109
+ /**
50110
+ * @param {number} value
50111
+ * @return {!proto.zaber.motion.protobufs.SetProcessControllerSource} returns this
50112
+ */
50113
+ proto.zaber.motion.protobufs.SetProcessControllerSource.prototype.setInterfaceId = function(value) {
50114
+ return jspb.Message.setProto3IntField(this, 1, value);
50115
+ };
50116
+
50117
+
50118
+ /**
50119
+ * optional int32 device = 2;
50120
+ * @return {number}
50121
+ */
50122
+ proto.zaber.motion.protobufs.SetProcessControllerSource.prototype.getDevice = function() {
50123
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
50124
+ };
50125
+
50126
+
50127
+ /**
50128
+ * @param {number} value
50129
+ * @return {!proto.zaber.motion.protobufs.SetProcessControllerSource} returns this
50130
+ */
50131
+ proto.zaber.motion.protobufs.SetProcessControllerSource.prototype.setDevice = function(value) {
50132
+ return jspb.Message.setProto3IntField(this, 2, value);
50133
+ };
50134
+
50135
+
50136
+ /**
50137
+ * optional int32 axis = 3;
50138
+ * @return {number}
50139
+ */
50140
+ proto.zaber.motion.protobufs.SetProcessControllerSource.prototype.getAxis = function() {
50141
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
50142
+ };
50143
+
50144
+
50145
+ /**
50146
+ * @param {number} value
50147
+ * @return {!proto.zaber.motion.protobufs.SetProcessControllerSource} returns this
50148
+ */
50149
+ proto.zaber.motion.protobufs.SetProcessControllerSource.prototype.setAxis = function(value) {
50150
+ return jspb.Message.setProto3IntField(this, 3, value);
50151
+ };
50152
+
50153
+
50154
+ /**
50155
+ * optional ProcessControllerSource source = 4;
50156
+ * @return {?proto.zaber.motion.protobufs.ProcessControllerSource}
50157
+ */
50158
+ proto.zaber.motion.protobufs.SetProcessControllerSource.prototype.getSource = function() {
50159
+ return /** @type{?proto.zaber.motion.protobufs.ProcessControllerSource} */ (
50160
+ jspb.Message.getWrapperField(this, proto.zaber.motion.protobufs.ProcessControllerSource, 4));
50161
+ };
50162
+
50163
+
50164
+ /**
50165
+ * @param {?proto.zaber.motion.protobufs.ProcessControllerSource|undefined} value
50166
+ * @return {!proto.zaber.motion.protobufs.SetProcessControllerSource} returns this
50167
+ */
50168
+ proto.zaber.motion.protobufs.SetProcessControllerSource.prototype.setSource = function(value) {
50169
+ return jspb.Message.setWrapperField(this, 4, value);
50170
+ };
50171
+
50172
+
50173
+ /**
50174
+ * Clears the message field making it undefined.
50175
+ * @return {!proto.zaber.motion.protobufs.SetProcessControllerSource} returns this
50176
+ */
50177
+ proto.zaber.motion.protobufs.SetProcessControllerSource.prototype.clearSource = function() {
50178
+ return this.setSource(undefined);
50179
+ };
50180
+
50181
+
50182
+ /**
50183
+ * Returns whether this field is set.
50184
+ * @return {boolean}
50185
+ */
50186
+ proto.zaber.motion.protobufs.SetProcessControllerSource.prototype.hasSource = function() {
50187
+ return jspb.Message.getField(this, 4) != null;
50188
+ };
50189
+
50190
+
49435
50191
  /**
49436
50192
  * @enum {number}
49437
50193
  */