@zaber/motion 4.3.0 → 4.4.0

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.
@@ -138,7 +138,8 @@ goog.exportSymbol('zaber.motion.protobufs.OscilloscopeDataGetSampleTimeRequest',
138
138
  goog.exportSymbol('zaber.motion.protobufs.OscilloscopeDataGetSamplesResponse', null, proto);
139
139
  goog.exportSymbol('zaber.motion.protobufs.OscilloscopeDataIdentifier', null, proto);
140
140
  goog.exportSymbol('zaber.motion.protobufs.OscilloscopeReadResponse', null, proto);
141
- goog.exportSymbol('zaber.motion.protobufs.OscilloscopeStartStopRequest', null, proto);
141
+ goog.exportSymbol('zaber.motion.protobufs.OscilloscopeRequest', null, proto);
142
+ goog.exportSymbol('zaber.motion.protobufs.OscilloscopeStartRequest', null, proto);
142
143
  goog.exportSymbol('zaber.motion.protobufs.ParamsetInfo', null, proto);
143
144
  goog.exportSymbol('zaber.motion.protobufs.PidTuning', null, proto);
144
145
  goog.exportSymbol('zaber.motion.protobufs.PrepareCommandRequest', null, proto);
@@ -2253,6 +2254,27 @@ if (goog.DEBUG && !COMPILED) {
2253
2254
  */
2254
2255
  proto.zaber.motion.protobufs.LockstepSetRequest.displayName = 'proto.zaber.motion.protobufs.LockstepSetRequest';
2255
2256
  }
2257
+ /**
2258
+ * Generated by JsPbCodeGenerator.
2259
+ * @param {Array=} opt_data Optional initial data array, typically from a
2260
+ * server response, or constructed directly in Javascript. The array is used
2261
+ * in place and becomes part of the constructed object. It is not cloned.
2262
+ * If no data is provided, the constructed object will be empty, but still
2263
+ * valid.
2264
+ * @extends {jspb.Message}
2265
+ * @constructor
2266
+ */
2267
+ proto.zaber.motion.protobufs.OscilloscopeRequest = function(opt_data) {
2268
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2269
+ };
2270
+ goog.inherits(proto.zaber.motion.protobufs.OscilloscopeRequest, jspb.Message);
2271
+ if (goog.DEBUG && !COMPILED) {
2272
+ /**
2273
+ * @public
2274
+ * @override
2275
+ */
2276
+ proto.zaber.motion.protobufs.OscilloscopeRequest.displayName = 'proto.zaber.motion.protobufs.OscilloscopeRequest';
2277
+ }
2256
2278
  /**
2257
2279
  * Generated by JsPbCodeGenerator.
2258
2280
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -2305,16 +2327,16 @@ if (goog.DEBUG && !COMPILED) {
2305
2327
  * @extends {jspb.Message}
2306
2328
  * @constructor
2307
2329
  */
2308
- proto.zaber.motion.protobufs.OscilloscopeStartStopRequest = function(opt_data) {
2330
+ proto.zaber.motion.protobufs.OscilloscopeStartRequest = function(opt_data) {
2309
2331
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2310
2332
  };
2311
- goog.inherits(proto.zaber.motion.protobufs.OscilloscopeStartStopRequest, jspb.Message);
2333
+ goog.inherits(proto.zaber.motion.protobufs.OscilloscopeStartRequest, jspb.Message);
2312
2334
  if (goog.DEBUG && !COMPILED) {
2313
2335
  /**
2314
2336
  * @public
2315
2337
  * @override
2316
2338
  */
2317
- proto.zaber.motion.protobufs.OscilloscopeStartStopRequest.displayName = 'proto.zaber.motion.protobufs.OscilloscopeStartStopRequest';
2339
+ proto.zaber.motion.protobufs.OscilloscopeStartRequest.displayName = 'proto.zaber.motion.protobufs.OscilloscopeStartRequest';
2318
2340
  }
2319
2341
  /**
2320
2342
  * Generated by JsPbCodeGenerator.
@@ -24492,6 +24514,166 @@ proto.zaber.motion.protobufs.LockstepSetRequest.prototype.setAxisIndex = functio
24492
24514
 
24493
24515
 
24494
24516
 
24517
+ if (jspb.Message.GENERATE_TO_OBJECT) {
24518
+ /**
24519
+ * Creates an object representation of this proto.
24520
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
24521
+ * Optional fields that are not set will be set to undefined.
24522
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
24523
+ * For the list of reserved names please see:
24524
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
24525
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
24526
+ * JSPB instance for transitional soy proto support:
24527
+ * http://goto/soy-param-migration
24528
+ * @return {!Object}
24529
+ */
24530
+ proto.zaber.motion.protobufs.OscilloscopeRequest.prototype.toObject = function(opt_includeInstance) {
24531
+ return proto.zaber.motion.protobufs.OscilloscopeRequest.toObject(opt_includeInstance, this);
24532
+ };
24533
+
24534
+
24535
+ /**
24536
+ * Static version of the {@see toObject} method.
24537
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
24538
+ * the JSPB instance for transitional soy proto support:
24539
+ * http://goto/soy-param-migration
24540
+ * @param {!proto.zaber.motion.protobufs.OscilloscopeRequest} msg The msg instance to transform.
24541
+ * @return {!Object}
24542
+ * @suppress {unusedLocalVariables} f is only used for nested messages
24543
+ */
24544
+ proto.zaber.motion.protobufs.OscilloscopeRequest.toObject = function(includeInstance, msg) {
24545
+ var f, obj = {
24546
+ interfaceId: jspb.Message.getFieldWithDefault(msg, 1, 0),
24547
+ device: jspb.Message.getFieldWithDefault(msg, 2, 0)
24548
+ };
24549
+
24550
+ if (includeInstance) {
24551
+ obj.$jspbMessageInstance = msg;
24552
+ }
24553
+ return obj;
24554
+ };
24555
+ }
24556
+
24557
+
24558
+ /**
24559
+ * Deserializes binary data (in protobuf wire format).
24560
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
24561
+ * @return {!proto.zaber.motion.protobufs.OscilloscopeRequest}
24562
+ */
24563
+ proto.zaber.motion.protobufs.OscilloscopeRequest.deserializeBinary = function(bytes) {
24564
+ var reader = new jspb.BinaryReader(bytes);
24565
+ var msg = new proto.zaber.motion.protobufs.OscilloscopeRequest;
24566
+ return proto.zaber.motion.protobufs.OscilloscopeRequest.deserializeBinaryFromReader(msg, reader);
24567
+ };
24568
+
24569
+
24570
+ /**
24571
+ * Deserializes binary data (in protobuf wire format) from the
24572
+ * given reader into the given message object.
24573
+ * @param {!proto.zaber.motion.protobufs.OscilloscopeRequest} msg The message object to deserialize into.
24574
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
24575
+ * @return {!proto.zaber.motion.protobufs.OscilloscopeRequest}
24576
+ */
24577
+ proto.zaber.motion.protobufs.OscilloscopeRequest.deserializeBinaryFromReader = function(msg, reader) {
24578
+ while (reader.nextField()) {
24579
+ if (reader.isEndGroup()) {
24580
+ break;
24581
+ }
24582
+ var field = reader.getFieldNumber();
24583
+ switch (field) {
24584
+ case 1:
24585
+ var value = /** @type {number} */ (reader.readInt32());
24586
+ msg.setInterfaceId(value);
24587
+ break;
24588
+ case 2:
24589
+ var value = /** @type {number} */ (reader.readInt32());
24590
+ msg.setDevice(value);
24591
+ break;
24592
+ default:
24593
+ reader.skipField();
24594
+ break;
24595
+ }
24596
+ }
24597
+ return msg;
24598
+ };
24599
+
24600
+
24601
+ /**
24602
+ * Serializes the message to binary data (in protobuf wire format).
24603
+ * @return {!Uint8Array}
24604
+ */
24605
+ proto.zaber.motion.protobufs.OscilloscopeRequest.prototype.serializeBinary = function() {
24606
+ var writer = new jspb.BinaryWriter();
24607
+ proto.zaber.motion.protobufs.OscilloscopeRequest.serializeBinaryToWriter(this, writer);
24608
+ return writer.getResultBuffer();
24609
+ };
24610
+
24611
+
24612
+ /**
24613
+ * Serializes the given message to binary data (in protobuf wire
24614
+ * format), writing to the given BinaryWriter.
24615
+ * @param {!proto.zaber.motion.protobufs.OscilloscopeRequest} message
24616
+ * @param {!jspb.BinaryWriter} writer
24617
+ * @suppress {unusedLocalVariables} f is only used for nested messages
24618
+ */
24619
+ proto.zaber.motion.protobufs.OscilloscopeRequest.serializeBinaryToWriter = function(message, writer) {
24620
+ var f = undefined;
24621
+ f = message.getInterfaceId();
24622
+ if (f !== 0) {
24623
+ writer.writeInt32(
24624
+ 1,
24625
+ f
24626
+ );
24627
+ }
24628
+ f = message.getDevice();
24629
+ if (f !== 0) {
24630
+ writer.writeInt32(
24631
+ 2,
24632
+ f
24633
+ );
24634
+ }
24635
+ };
24636
+
24637
+
24638
+ /**
24639
+ * optional int32 interface_id = 1;
24640
+ * @return {number}
24641
+ */
24642
+ proto.zaber.motion.protobufs.OscilloscopeRequest.prototype.getInterfaceId = function() {
24643
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
24644
+ };
24645
+
24646
+
24647
+ /**
24648
+ * @param {number} value
24649
+ * @return {!proto.zaber.motion.protobufs.OscilloscopeRequest} returns this
24650
+ */
24651
+ proto.zaber.motion.protobufs.OscilloscopeRequest.prototype.setInterfaceId = function(value) {
24652
+ return jspb.Message.setProto3IntField(this, 1, value);
24653
+ };
24654
+
24655
+
24656
+ /**
24657
+ * optional int32 device = 2;
24658
+ * @return {number}
24659
+ */
24660
+ proto.zaber.motion.protobufs.OscilloscopeRequest.prototype.getDevice = function() {
24661
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
24662
+ };
24663
+
24664
+
24665
+ /**
24666
+ * @param {number} value
24667
+ * @return {!proto.zaber.motion.protobufs.OscilloscopeRequest} returns this
24668
+ */
24669
+ proto.zaber.motion.protobufs.OscilloscopeRequest.prototype.setDevice = function(value) {
24670
+ return jspb.Message.setProto3IntField(this, 2, value);
24671
+ };
24672
+
24673
+
24674
+
24675
+
24676
+
24495
24677
  if (jspb.Message.GENERATE_TO_OBJECT) {
24496
24678
  /**
24497
24679
  * Creates an object representation of this proto.
@@ -24945,8 +25127,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
24945
25127
  * http://goto/soy-param-migration
24946
25128
  * @return {!Object}
24947
25129
  */
24948
- proto.zaber.motion.protobufs.OscilloscopeStartStopRequest.prototype.toObject = function(opt_includeInstance) {
24949
- return proto.zaber.motion.protobufs.OscilloscopeStartStopRequest.toObject(opt_includeInstance, this);
25130
+ proto.zaber.motion.protobufs.OscilloscopeStartRequest.prototype.toObject = function(opt_includeInstance) {
25131
+ return proto.zaber.motion.protobufs.OscilloscopeStartRequest.toObject(opt_includeInstance, this);
24950
25132
  };
24951
25133
 
24952
25134
 
@@ -24955,15 +25137,14 @@ proto.zaber.motion.protobufs.OscilloscopeStartStopRequest.prototype.toObject = f
24955
25137
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
24956
25138
  * the JSPB instance for transitional soy proto support:
24957
25139
  * http://goto/soy-param-migration
24958
- * @param {!proto.zaber.motion.protobufs.OscilloscopeStartStopRequest} msg The msg instance to transform.
25140
+ * @param {!proto.zaber.motion.protobufs.OscilloscopeStartRequest} msg The msg instance to transform.
24959
25141
  * @return {!Object}
24960
25142
  * @suppress {unusedLocalVariables} f is only used for nested messages
24961
25143
  */
24962
- proto.zaber.motion.protobufs.OscilloscopeStartStopRequest.toObject = function(includeInstance, msg) {
25144
+ proto.zaber.motion.protobufs.OscilloscopeStartRequest.toObject = function(includeInstance, msg) {
24963
25145
  var f, obj = {
24964
25146
  interfaceId: jspb.Message.getFieldWithDefault(msg, 1, 0),
24965
25147
  device: jspb.Message.getFieldWithDefault(msg, 2, 0),
24966
- start: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
24967
25148
  captureLength: jspb.Message.getFieldWithDefault(msg, 4, 0)
24968
25149
  };
24969
25150
 
@@ -24978,23 +25159,23 @@ proto.zaber.motion.protobufs.OscilloscopeStartStopRequest.toObject = function(in
24978
25159
  /**
24979
25160
  * Deserializes binary data (in protobuf wire format).
24980
25161
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
24981
- * @return {!proto.zaber.motion.protobufs.OscilloscopeStartStopRequest}
25162
+ * @return {!proto.zaber.motion.protobufs.OscilloscopeStartRequest}
24982
25163
  */
24983
- proto.zaber.motion.protobufs.OscilloscopeStartStopRequest.deserializeBinary = function(bytes) {
25164
+ proto.zaber.motion.protobufs.OscilloscopeStartRequest.deserializeBinary = function(bytes) {
24984
25165
  var reader = new jspb.BinaryReader(bytes);
24985
- var msg = new proto.zaber.motion.protobufs.OscilloscopeStartStopRequest;
24986
- return proto.zaber.motion.protobufs.OscilloscopeStartStopRequest.deserializeBinaryFromReader(msg, reader);
25166
+ var msg = new proto.zaber.motion.protobufs.OscilloscopeStartRequest;
25167
+ return proto.zaber.motion.protobufs.OscilloscopeStartRequest.deserializeBinaryFromReader(msg, reader);
24987
25168
  };
24988
25169
 
24989
25170
 
24990
25171
  /**
24991
25172
  * Deserializes binary data (in protobuf wire format) from the
24992
25173
  * given reader into the given message object.
24993
- * @param {!proto.zaber.motion.protobufs.OscilloscopeStartStopRequest} msg The message object to deserialize into.
25174
+ * @param {!proto.zaber.motion.protobufs.OscilloscopeStartRequest} msg The message object to deserialize into.
24994
25175
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
24995
- * @return {!proto.zaber.motion.protobufs.OscilloscopeStartStopRequest}
25176
+ * @return {!proto.zaber.motion.protobufs.OscilloscopeStartRequest}
24996
25177
  */
24997
- proto.zaber.motion.protobufs.OscilloscopeStartStopRequest.deserializeBinaryFromReader = function(msg, reader) {
25178
+ proto.zaber.motion.protobufs.OscilloscopeStartRequest.deserializeBinaryFromReader = function(msg, reader) {
24998
25179
  while (reader.nextField()) {
24999
25180
  if (reader.isEndGroup()) {
25000
25181
  break;
@@ -25009,10 +25190,6 @@ proto.zaber.motion.protobufs.OscilloscopeStartStopRequest.deserializeBinaryFromR
25009
25190
  var value = /** @type {number} */ (reader.readInt32());
25010
25191
  msg.setDevice(value);
25011
25192
  break;
25012
- case 3:
25013
- var value = /** @type {boolean} */ (reader.readBool());
25014
- msg.setStart(value);
25015
- break;
25016
25193
  case 4:
25017
25194
  var value = /** @type {number} */ (reader.readInt32());
25018
25195
  msg.setCaptureLength(value);
@@ -25030,9 +25207,9 @@ proto.zaber.motion.protobufs.OscilloscopeStartStopRequest.deserializeBinaryFromR
25030
25207
  * Serializes the message to binary data (in protobuf wire format).
25031
25208
  * @return {!Uint8Array}
25032
25209
  */
25033
- proto.zaber.motion.protobufs.OscilloscopeStartStopRequest.prototype.serializeBinary = function() {
25210
+ proto.zaber.motion.protobufs.OscilloscopeStartRequest.prototype.serializeBinary = function() {
25034
25211
  var writer = new jspb.BinaryWriter();
25035
- proto.zaber.motion.protobufs.OscilloscopeStartStopRequest.serializeBinaryToWriter(this, writer);
25212
+ proto.zaber.motion.protobufs.OscilloscopeStartRequest.serializeBinaryToWriter(this, writer);
25036
25213
  return writer.getResultBuffer();
25037
25214
  };
25038
25215
 
@@ -25040,11 +25217,11 @@ proto.zaber.motion.protobufs.OscilloscopeStartStopRequest.prototype.serializeBin
25040
25217
  /**
25041
25218
  * Serializes the given message to binary data (in protobuf wire
25042
25219
  * format), writing to the given BinaryWriter.
25043
- * @param {!proto.zaber.motion.protobufs.OscilloscopeStartStopRequest} message
25220
+ * @param {!proto.zaber.motion.protobufs.OscilloscopeStartRequest} message
25044
25221
  * @param {!jspb.BinaryWriter} writer
25045
25222
  * @suppress {unusedLocalVariables} f is only used for nested messages
25046
25223
  */
25047
- proto.zaber.motion.protobufs.OscilloscopeStartStopRequest.serializeBinaryToWriter = function(message, writer) {
25224
+ proto.zaber.motion.protobufs.OscilloscopeStartRequest.serializeBinaryToWriter = function(message, writer) {
25048
25225
  var f = undefined;
25049
25226
  f = message.getInterfaceId();
25050
25227
  if (f !== 0) {
@@ -25060,13 +25237,6 @@ proto.zaber.motion.protobufs.OscilloscopeStartStopRequest.serializeBinaryToWrite
25060
25237
  f
25061
25238
  );
25062
25239
  }
25063
- f = message.getStart();
25064
- if (f) {
25065
- writer.writeBool(
25066
- 3,
25067
- f
25068
- );
25069
- }
25070
25240
  f = message.getCaptureLength();
25071
25241
  if (f !== 0) {
25072
25242
  writer.writeInt32(
@@ -25081,16 +25251,16 @@ proto.zaber.motion.protobufs.OscilloscopeStartStopRequest.serializeBinaryToWrite
25081
25251
  * optional int32 interface_id = 1;
25082
25252
  * @return {number}
25083
25253
  */
25084
- proto.zaber.motion.protobufs.OscilloscopeStartStopRequest.prototype.getInterfaceId = function() {
25254
+ proto.zaber.motion.protobufs.OscilloscopeStartRequest.prototype.getInterfaceId = function() {
25085
25255
  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
25086
25256
  };
25087
25257
 
25088
25258
 
25089
25259
  /**
25090
25260
  * @param {number} value
25091
- * @return {!proto.zaber.motion.protobufs.OscilloscopeStartStopRequest} returns this
25261
+ * @return {!proto.zaber.motion.protobufs.OscilloscopeStartRequest} returns this
25092
25262
  */
25093
- proto.zaber.motion.protobufs.OscilloscopeStartStopRequest.prototype.setInterfaceId = function(value) {
25263
+ proto.zaber.motion.protobufs.OscilloscopeStartRequest.prototype.setInterfaceId = function(value) {
25094
25264
  return jspb.Message.setProto3IntField(this, 1, value);
25095
25265
  };
25096
25266
 
@@ -25099,52 +25269,34 @@ proto.zaber.motion.protobufs.OscilloscopeStartStopRequest.prototype.setInterface
25099
25269
  * optional int32 device = 2;
25100
25270
  * @return {number}
25101
25271
  */
25102
- proto.zaber.motion.protobufs.OscilloscopeStartStopRequest.prototype.getDevice = function() {
25272
+ proto.zaber.motion.protobufs.OscilloscopeStartRequest.prototype.getDevice = function() {
25103
25273
  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
25104
25274
  };
25105
25275
 
25106
25276
 
25107
25277
  /**
25108
25278
  * @param {number} value
25109
- * @return {!proto.zaber.motion.protobufs.OscilloscopeStartStopRequest} returns this
25279
+ * @return {!proto.zaber.motion.protobufs.OscilloscopeStartRequest} returns this
25110
25280
  */
25111
- proto.zaber.motion.protobufs.OscilloscopeStartStopRequest.prototype.setDevice = function(value) {
25281
+ proto.zaber.motion.protobufs.OscilloscopeStartRequest.prototype.setDevice = function(value) {
25112
25282
  return jspb.Message.setProto3IntField(this, 2, value);
25113
25283
  };
25114
25284
 
25115
25285
 
25116
- /**
25117
- * optional bool start = 3;
25118
- * @return {boolean}
25119
- */
25120
- proto.zaber.motion.protobufs.OscilloscopeStartStopRequest.prototype.getStart = function() {
25121
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
25122
- };
25123
-
25124
-
25125
- /**
25126
- * @param {boolean} value
25127
- * @return {!proto.zaber.motion.protobufs.OscilloscopeStartStopRequest} returns this
25128
- */
25129
- proto.zaber.motion.protobufs.OscilloscopeStartStopRequest.prototype.setStart = function(value) {
25130
- return jspb.Message.setProto3BooleanField(this, 3, value);
25131
- };
25132
-
25133
-
25134
25286
  /**
25135
25287
  * optional int32 capture_length = 4;
25136
25288
  * @return {number}
25137
25289
  */
25138
- proto.zaber.motion.protobufs.OscilloscopeStartStopRequest.prototype.getCaptureLength = function() {
25290
+ proto.zaber.motion.protobufs.OscilloscopeStartRequest.prototype.getCaptureLength = function() {
25139
25291
  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
25140
25292
  };
25141
25293
 
25142
25294
 
25143
25295
  /**
25144
25296
  * @param {number} value
25145
- * @return {!proto.zaber.motion.protobufs.OscilloscopeStartStopRequest} returns this
25297
+ * @return {!proto.zaber.motion.protobufs.OscilloscopeStartRequest} returns this
25146
25298
  */
25147
- proto.zaber.motion.protobufs.OscilloscopeStartStopRequest.prototype.setCaptureLength = function(value) {
25299
+ proto.zaber.motion.protobufs.OscilloscopeStartRequest.prototype.setCaptureLength = function(value) {
25148
25300
  return jspb.Message.setProto3IntField(this, 4, value);
25149
25301
  };
25150
25302