@zaber/motion 5.1.2 → 5.1.4

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.
@@ -189,6 +189,7 @@ goog.exportSymbol('zaber.motion.protobufs.SetServoTuningPIDRequest', null, proto
189
189
  goog.exportSymbol('zaber.motion.protobufs.SetServoTuningRequest', null, proto);
190
190
  goog.exportSymbol('zaber.motion.protobufs.SetSimpleTuning', null, proto);
191
191
  goog.exportSymbol('zaber.motion.protobufs.SetStateRequest', null, proto);
192
+ goog.exportSymbol('zaber.motion.protobufs.SimpleTuning', null, proto);
192
193
  goog.exportSymbol('zaber.motion.protobufs.SimpleTuningParamDefinition', null, proto);
193
194
  goog.exportSymbol('zaber.motion.protobufs.StreamArcRequest', null, proto);
194
195
  goog.exportSymbol('zaber.motion.protobufs.StreamArcRequest.Type', null, proto);
@@ -4395,6 +4396,27 @@ if (goog.DEBUG && !COMPILED) {
4395
4396
  */
4396
4397
  proto.zaber.motion.protobufs.SetSimpleTuning.displayName = 'proto.zaber.motion.protobufs.SetSimpleTuning';
4397
4398
  }
4399
+ /**
4400
+ * Generated by JsPbCodeGenerator.
4401
+ * @param {Array=} opt_data Optional initial data array, typically from a
4402
+ * server response, or constructed directly in Javascript. The array is used
4403
+ * in place and becomes part of the constructed object. It is not cloned.
4404
+ * If no data is provided, the constructed object will be empty, but still
4405
+ * valid.
4406
+ * @extends {jspb.Message}
4407
+ * @constructor
4408
+ */
4409
+ proto.zaber.motion.protobufs.SimpleTuning = function(opt_data) {
4410
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.zaber.motion.protobufs.SimpleTuning.repeatedFields_, null);
4411
+ };
4412
+ goog.inherits(proto.zaber.motion.protobufs.SimpleTuning, jspb.Message);
4413
+ if (goog.DEBUG && !COMPILED) {
4414
+ /**
4415
+ * @public
4416
+ * @override
4417
+ */
4418
+ proto.zaber.motion.protobufs.SimpleTuning.displayName = 'proto.zaber.motion.protobufs.SimpleTuning';
4419
+ }
4398
4420
  /**
4399
4421
  * Generated by JsPbCodeGenerator.
4400
4422
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -49989,6 +50011,286 @@ proto.zaber.motion.protobufs.SetSimpleTuning.prototype.clearTuningParamsList = f
49989
50011
 
49990
50012
 
49991
50013
 
50014
+ /**
50015
+ * List of repeated fields within this message type.
50016
+ * @private {!Array<number>}
50017
+ * @const
50018
+ */
50019
+ proto.zaber.motion.protobufs.SimpleTuning.repeatedFields_ = [4];
50020
+
50021
+
50022
+
50023
+ if (jspb.Message.GENERATE_TO_OBJECT) {
50024
+ /**
50025
+ * Creates an object representation of this proto.
50026
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
50027
+ * Optional fields that are not set will be set to undefined.
50028
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
50029
+ * For the list of reserved names please see:
50030
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
50031
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
50032
+ * JSPB instance for transitional soy proto support:
50033
+ * http://goto/soy-param-migration
50034
+ * @return {!Object}
50035
+ */
50036
+ proto.zaber.motion.protobufs.SimpleTuning.prototype.toObject = function(opt_includeInstance) {
50037
+ return proto.zaber.motion.protobufs.SimpleTuning.toObject(opt_includeInstance, this);
50038
+ };
50039
+
50040
+
50041
+ /**
50042
+ * Static version of the {@see toObject} method.
50043
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
50044
+ * the JSPB instance for transitional soy proto support:
50045
+ * http://goto/soy-param-migration
50046
+ * @param {!proto.zaber.motion.protobufs.SimpleTuning} msg The msg instance to transform.
50047
+ * @return {!Object}
50048
+ * @suppress {unusedLocalVariables} f is only used for nested messages
50049
+ */
50050
+ proto.zaber.motion.protobufs.SimpleTuning.toObject = function(includeInstance, msg) {
50051
+ var f, obj = {
50052
+ isUsed: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
50053
+ carriageMass: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
50054
+ hasCarriageMass: jspb.Message.getBooleanFieldWithDefault(msg, 5, false),
50055
+ loadMass: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
50056
+ tuningParamsList: jspb.Message.toObjectList(msg.getTuningParamsList(),
50057
+ proto.zaber.motion.protobufs.ServoTuningParam.toObject, includeInstance)
50058
+ };
50059
+
50060
+ if (includeInstance) {
50061
+ obj.$jspbMessageInstance = msg;
50062
+ }
50063
+ return obj;
50064
+ };
50065
+ }
50066
+
50067
+
50068
+ /**
50069
+ * Deserializes binary data (in protobuf wire format).
50070
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
50071
+ * @return {!proto.zaber.motion.protobufs.SimpleTuning}
50072
+ */
50073
+ proto.zaber.motion.protobufs.SimpleTuning.deserializeBinary = function(bytes) {
50074
+ var reader = new jspb.BinaryReader(bytes);
50075
+ var msg = new proto.zaber.motion.protobufs.SimpleTuning;
50076
+ return proto.zaber.motion.protobufs.SimpleTuning.deserializeBinaryFromReader(msg, reader);
50077
+ };
50078
+
50079
+
50080
+ /**
50081
+ * Deserializes binary data (in protobuf wire format) from the
50082
+ * given reader into the given message object.
50083
+ * @param {!proto.zaber.motion.protobufs.SimpleTuning} msg The message object to deserialize into.
50084
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
50085
+ * @return {!proto.zaber.motion.protobufs.SimpleTuning}
50086
+ */
50087
+ proto.zaber.motion.protobufs.SimpleTuning.deserializeBinaryFromReader = function(msg, reader) {
50088
+ while (reader.nextField()) {
50089
+ if (reader.isEndGroup()) {
50090
+ break;
50091
+ }
50092
+ var field = reader.getFieldNumber();
50093
+ switch (field) {
50094
+ case 1:
50095
+ var value = /** @type {boolean} */ (reader.readBool());
50096
+ msg.setIsUsed(value);
50097
+ break;
50098
+ case 2:
50099
+ var value = /** @type {number} */ (reader.readDouble());
50100
+ msg.setCarriageMass(value);
50101
+ break;
50102
+ case 5:
50103
+ var value = /** @type {boolean} */ (reader.readBool());
50104
+ msg.setHasCarriageMass(value);
50105
+ break;
50106
+ case 3:
50107
+ var value = /** @type {number} */ (reader.readDouble());
50108
+ msg.setLoadMass(value);
50109
+ break;
50110
+ case 4:
50111
+ var value = new proto.zaber.motion.protobufs.ServoTuningParam;
50112
+ reader.readMessage(value,proto.zaber.motion.protobufs.ServoTuningParam.deserializeBinaryFromReader);
50113
+ msg.addTuningParams(value);
50114
+ break;
50115
+ default:
50116
+ reader.skipField();
50117
+ break;
50118
+ }
50119
+ }
50120
+ return msg;
50121
+ };
50122
+
50123
+
50124
+ /**
50125
+ * Serializes the message to binary data (in protobuf wire format).
50126
+ * @return {!Uint8Array}
50127
+ */
50128
+ proto.zaber.motion.protobufs.SimpleTuning.prototype.serializeBinary = function() {
50129
+ var writer = new jspb.BinaryWriter();
50130
+ proto.zaber.motion.protobufs.SimpleTuning.serializeBinaryToWriter(this, writer);
50131
+ return writer.getResultBuffer();
50132
+ };
50133
+
50134
+
50135
+ /**
50136
+ * Serializes the given message to binary data (in protobuf wire
50137
+ * format), writing to the given BinaryWriter.
50138
+ * @param {!proto.zaber.motion.protobufs.SimpleTuning} message
50139
+ * @param {!jspb.BinaryWriter} writer
50140
+ * @suppress {unusedLocalVariables} f is only used for nested messages
50141
+ */
50142
+ proto.zaber.motion.protobufs.SimpleTuning.serializeBinaryToWriter = function(message, writer) {
50143
+ var f = undefined;
50144
+ f = message.getIsUsed();
50145
+ if (f) {
50146
+ writer.writeBool(
50147
+ 1,
50148
+ f
50149
+ );
50150
+ }
50151
+ f = message.getCarriageMass();
50152
+ if (f !== 0.0) {
50153
+ writer.writeDouble(
50154
+ 2,
50155
+ f
50156
+ );
50157
+ }
50158
+ f = message.getHasCarriageMass();
50159
+ if (f) {
50160
+ writer.writeBool(
50161
+ 5,
50162
+ f
50163
+ );
50164
+ }
50165
+ f = message.getLoadMass();
50166
+ if (f !== 0.0) {
50167
+ writer.writeDouble(
50168
+ 3,
50169
+ f
50170
+ );
50171
+ }
50172
+ f = message.getTuningParamsList();
50173
+ if (f.length > 0) {
50174
+ writer.writeRepeatedMessage(
50175
+ 4,
50176
+ f,
50177
+ proto.zaber.motion.protobufs.ServoTuningParam.serializeBinaryToWriter
50178
+ );
50179
+ }
50180
+ };
50181
+
50182
+
50183
+ /**
50184
+ * optional bool is_used = 1;
50185
+ * @return {boolean}
50186
+ */
50187
+ proto.zaber.motion.protobufs.SimpleTuning.prototype.getIsUsed = function() {
50188
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
50189
+ };
50190
+
50191
+
50192
+ /**
50193
+ * @param {boolean} value
50194
+ * @return {!proto.zaber.motion.protobufs.SimpleTuning} returns this
50195
+ */
50196
+ proto.zaber.motion.protobufs.SimpleTuning.prototype.setIsUsed = function(value) {
50197
+ return jspb.Message.setProto3BooleanField(this, 1, value);
50198
+ };
50199
+
50200
+
50201
+ /**
50202
+ * optional double carriage_mass = 2;
50203
+ * @return {number}
50204
+ */
50205
+ proto.zaber.motion.protobufs.SimpleTuning.prototype.getCarriageMass = function() {
50206
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
50207
+ };
50208
+
50209
+
50210
+ /**
50211
+ * @param {number} value
50212
+ * @return {!proto.zaber.motion.protobufs.SimpleTuning} returns this
50213
+ */
50214
+ proto.zaber.motion.protobufs.SimpleTuning.prototype.setCarriageMass = function(value) {
50215
+ return jspb.Message.setProto3FloatField(this, 2, value);
50216
+ };
50217
+
50218
+
50219
+ /**
50220
+ * optional bool has_carriage_mass = 5;
50221
+ * @return {boolean}
50222
+ */
50223
+ proto.zaber.motion.protobufs.SimpleTuning.prototype.getHasCarriageMass = function() {
50224
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
50225
+ };
50226
+
50227
+
50228
+ /**
50229
+ * @param {boolean} value
50230
+ * @return {!proto.zaber.motion.protobufs.SimpleTuning} returns this
50231
+ */
50232
+ proto.zaber.motion.protobufs.SimpleTuning.prototype.setHasCarriageMass = function(value) {
50233
+ return jspb.Message.setProto3BooleanField(this, 5, value);
50234
+ };
50235
+
50236
+
50237
+ /**
50238
+ * optional double load_mass = 3;
50239
+ * @return {number}
50240
+ */
50241
+ proto.zaber.motion.protobufs.SimpleTuning.prototype.getLoadMass = function() {
50242
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
50243
+ };
50244
+
50245
+
50246
+ /**
50247
+ * @param {number} value
50248
+ * @return {!proto.zaber.motion.protobufs.SimpleTuning} returns this
50249
+ */
50250
+ proto.zaber.motion.protobufs.SimpleTuning.prototype.setLoadMass = function(value) {
50251
+ return jspb.Message.setProto3FloatField(this, 3, value);
50252
+ };
50253
+
50254
+
50255
+ /**
50256
+ * repeated ServoTuningParam tuning_params = 4;
50257
+ * @return {!Array<!proto.zaber.motion.protobufs.ServoTuningParam>}
50258
+ */
50259
+ proto.zaber.motion.protobufs.SimpleTuning.prototype.getTuningParamsList = function() {
50260
+ return /** @type{!Array<!proto.zaber.motion.protobufs.ServoTuningParam>} */ (
50261
+ jspb.Message.getRepeatedWrapperField(this, proto.zaber.motion.protobufs.ServoTuningParam, 4));
50262
+ };
50263
+
50264
+
50265
+ /**
50266
+ * @param {!Array<!proto.zaber.motion.protobufs.ServoTuningParam>} value
50267
+ * @return {!proto.zaber.motion.protobufs.SimpleTuning} returns this
50268
+ */
50269
+ proto.zaber.motion.protobufs.SimpleTuning.prototype.setTuningParamsList = function(value) {
50270
+ return jspb.Message.setRepeatedWrapperField(this, 4, value);
50271
+ };
50272
+
50273
+
50274
+ /**
50275
+ * @param {!proto.zaber.motion.protobufs.ServoTuningParam=} opt_value
50276
+ * @param {number=} opt_index
50277
+ * @return {!proto.zaber.motion.protobufs.ServoTuningParam}
50278
+ */
50279
+ proto.zaber.motion.protobufs.SimpleTuning.prototype.addTuningParams = function(opt_value, opt_index) {
50280
+ return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.zaber.motion.protobufs.ServoTuningParam, opt_index);
50281
+ };
50282
+
50283
+
50284
+ /**
50285
+ * Clears the list making it empty but non-null.
50286
+ * @return {!proto.zaber.motion.protobufs.SimpleTuning} returns this
50287
+ */
50288
+ proto.zaber.motion.protobufs.SimpleTuning.prototype.clearTuningParamsList = function() {
50289
+ return this.setTuningParamsList([]);
50290
+ };
50291
+
50292
+
50293
+
49992
50294
 
49993
50295
 
49994
50296
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -50024,7 +50326,8 @@ proto.zaber.motion.protobufs.SimpleTuningParamDefinition.toObject = function(inc
50024
50326
  minLabel: jspb.Message.getFieldWithDefault(msg, 2, ""),
50025
50327
  maxLabel: jspb.Message.getFieldWithDefault(msg, 3, ""),
50026
50328
  dataType: jspb.Message.getFieldWithDefault(msg, 4, ""),
50027
- defaultValue: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0)
50329
+ defaultValue: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
50330
+ hasDefaultValue: jspb.Message.getBooleanFieldWithDefault(msg, 6, false)
50028
50331
  };
50029
50332
 
50030
50333
  if (includeInstance) {
@@ -50081,6 +50384,10 @@ proto.zaber.motion.protobufs.SimpleTuningParamDefinition.deserializeBinaryFromRe
50081
50384
  var value = /** @type {number} */ (reader.readDouble());
50082
50385
  msg.setDefaultValue(value);
50083
50386
  break;
50387
+ case 6:
50388
+ var value = /** @type {boolean} */ (reader.readBool());
50389
+ msg.setHasDefaultValue(value);
50390
+ break;
50084
50391
  default:
50085
50392
  reader.skipField();
50086
50393
  break;
@@ -50145,6 +50452,13 @@ proto.zaber.motion.protobufs.SimpleTuningParamDefinition.serializeBinaryToWriter
50145
50452
  f
50146
50453
  );
50147
50454
  }
50455
+ f = message.getHasDefaultValue();
50456
+ if (f) {
50457
+ writer.writeBool(
50458
+ 6,
50459
+ f
50460
+ );
50461
+ }
50148
50462
  };
50149
50463
 
50150
50464
 
@@ -50238,6 +50552,24 @@ proto.zaber.motion.protobufs.SimpleTuningParamDefinition.prototype.setDefaultVal
50238
50552
  };
50239
50553
 
50240
50554
 
50555
+ /**
50556
+ * optional bool has_default_value = 6;
50557
+ * @return {boolean}
50558
+ */
50559
+ proto.zaber.motion.protobufs.SimpleTuningParamDefinition.prototype.getHasDefaultValue = function() {
50560
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
50561
+ };
50562
+
50563
+
50564
+ /**
50565
+ * @param {boolean} value
50566
+ * @return {!proto.zaber.motion.protobufs.SimpleTuningParamDefinition} returns this
50567
+ */
50568
+ proto.zaber.motion.protobufs.SimpleTuningParamDefinition.prototype.setHasDefaultValue = function(value) {
50569
+ return jspb.Message.setProto3BooleanField(this, 6, value);
50570
+ };
50571
+
50572
+
50241
50573
 
50242
50574
  /**
50243
50575
  * List of repeated fields within this message type.
@@ -50763,7 +51095,8 @@ proto.zaber.motion.protobufs.TranslatorAxisDefinition.prototype.toObject = funct
50763
51095
  proto.zaber.motion.protobufs.TranslatorAxisDefinition.toObject = function(includeInstance, msg) {
50764
51096
  var f, obj = {
50765
51097
  peripheralId: jspb.Message.getFieldWithDefault(msg, 1, 0),
50766
- microstepResolution: jspb.Message.getFieldWithDefault(msg, 2, 0)
51098
+ microstepResolution: jspb.Message.getFieldWithDefault(msg, 2, 0),
51099
+ hasMicrostepResolution: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
50767
51100
  };
50768
51101
 
50769
51102
  if (includeInstance) {
@@ -50808,6 +51141,10 @@ proto.zaber.motion.protobufs.TranslatorAxisDefinition.deserializeBinaryFromReade
50808
51141
  var value = /** @type {number} */ (reader.readInt32());
50809
51142
  msg.setMicrostepResolution(value);
50810
51143
  break;
51144
+ case 3:
51145
+ var value = /** @type {boolean} */ (reader.readBool());
51146
+ msg.setHasMicrostepResolution(value);
51147
+ break;
50811
51148
  default:
50812
51149
  reader.skipField();
50813
51150
  break;
@@ -50851,6 +51188,13 @@ proto.zaber.motion.protobufs.TranslatorAxisDefinition.serializeBinaryToWriter =
50851
51188
  f
50852
51189
  );
50853
51190
  }
51191
+ f = message.getHasMicrostepResolution();
51192
+ if (f) {
51193
+ writer.writeBool(
51194
+ 3,
51195
+ f
51196
+ );
51197
+ }
50854
51198
  };
50855
51199
 
50856
51200
 
@@ -50890,6 +51234,24 @@ proto.zaber.motion.protobufs.TranslatorAxisDefinition.prototype.setMicrostepReso
50890
51234
  };
50891
51235
 
50892
51236
 
51237
+ /**
51238
+ * optional bool has_microstep_resolution = 3;
51239
+ * @return {boolean}
51240
+ */
51241
+ proto.zaber.motion.protobufs.TranslatorAxisDefinition.prototype.getHasMicrostepResolution = function() {
51242
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
51243
+ };
51244
+
51245
+
51246
+ /**
51247
+ * @param {boolean} value
51248
+ * @return {!proto.zaber.motion.protobufs.TranslatorAxisDefinition} returns this
51249
+ */
51250
+ proto.zaber.motion.protobufs.TranslatorAxisDefinition.prototype.setHasMicrostepResolution = function(value) {
51251
+ return jspb.Message.setProto3BooleanField(this, 3, value);
51252
+ };
51253
+
51254
+
50893
51255
 
50894
51256
  /**
50895
51257
  * List of repeated fields within this message type.
@@ -51538,6 +51900,7 @@ proto.zaber.motion.protobufs.TranslatorAxisTransformation.toObject = function(in
51538
51900
  var f, obj = {
51539
51901
  axisLetter: jspb.Message.getFieldWithDefault(msg, 1, ""),
51540
51902
  scaling: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
51903
+ hasScaling: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
51541
51904
  translation: (f = msg.getTranslation()) && proto.zaber.motion.protobufs.Measurement.toObject(includeInstance, f)
51542
51905
  };
51543
51906
 
@@ -51584,6 +51947,10 @@ proto.zaber.motion.protobufs.TranslatorAxisTransformation.deserializeBinaryFromR
51584
51947
  msg.setScaling(value);
51585
51948
  break;
51586
51949
  case 3:
51950
+ var value = /** @type {boolean} */ (reader.readBool());
51951
+ msg.setHasScaling(value);
51952
+ break;
51953
+ case 4:
51587
51954
  var value = new proto.zaber.motion.protobufs.Measurement;
51588
51955
  reader.readMessage(value,proto.zaber.motion.protobufs.Measurement.deserializeBinaryFromReader);
51589
51956
  msg.setTranslation(value);
@@ -51631,10 +51998,17 @@ proto.zaber.motion.protobufs.TranslatorAxisTransformation.serializeBinaryToWrite
51631
51998
  f
51632
51999
  );
51633
52000
  }
52001
+ f = message.getHasScaling();
52002
+ if (f) {
52003
+ writer.writeBool(
52004
+ 3,
52005
+ f
52006
+ );
52007
+ }
51634
52008
  f = message.getTranslation();
51635
52009
  if (f != null) {
51636
52010
  writer.writeMessage(
51637
- 3,
52011
+ 4,
51638
52012
  f,
51639
52013
  proto.zaber.motion.protobufs.Measurement.serializeBinaryToWriter
51640
52014
  );
@@ -51679,12 +52053,30 @@ proto.zaber.motion.protobufs.TranslatorAxisTransformation.prototype.setScaling =
51679
52053
 
51680
52054
 
51681
52055
  /**
51682
- * optional Measurement translation = 3;
52056
+ * optional bool has_scaling = 3;
52057
+ * @return {boolean}
52058
+ */
52059
+ proto.zaber.motion.protobufs.TranslatorAxisTransformation.prototype.getHasScaling = function() {
52060
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
52061
+ };
52062
+
52063
+
52064
+ /**
52065
+ * @param {boolean} value
52066
+ * @return {!proto.zaber.motion.protobufs.TranslatorAxisTransformation} returns this
52067
+ */
52068
+ proto.zaber.motion.protobufs.TranslatorAxisTransformation.prototype.setHasScaling = function(value) {
52069
+ return jspb.Message.setProto3BooleanField(this, 3, value);
52070
+ };
52071
+
52072
+
52073
+ /**
52074
+ * optional Measurement translation = 4;
51683
52075
  * @return {?proto.zaber.motion.protobufs.Measurement}
51684
52076
  */
51685
52077
  proto.zaber.motion.protobufs.TranslatorAxisTransformation.prototype.getTranslation = function() {
51686
52078
  return /** @type{?proto.zaber.motion.protobufs.Measurement} */ (
51687
- jspb.Message.getWrapperField(this, proto.zaber.motion.protobufs.Measurement, 3));
52079
+ jspb.Message.getWrapperField(this, proto.zaber.motion.protobufs.Measurement, 4));
51688
52080
  };
51689
52081
 
51690
52082
 
@@ -51693,7 +52085,7 @@ proto.zaber.motion.protobufs.TranslatorAxisTransformation.prototype.getTranslati
51693
52085
  * @return {!proto.zaber.motion.protobufs.TranslatorAxisTransformation} returns this
51694
52086
  */
51695
52087
  proto.zaber.motion.protobufs.TranslatorAxisTransformation.prototype.setTranslation = function(value) {
51696
- return jspb.Message.setWrapperField(this, 3, value);
52088
+ return jspb.Message.setWrapperField(this, 4, value);
51697
52089
  };
51698
52090
 
51699
52091
 
@@ -51711,7 +52103,7 @@ proto.zaber.motion.protobufs.TranslatorAxisTransformation.prototype.clearTransla
51711
52103
  * @return {boolean}
51712
52104
  */
51713
52105
  proto.zaber.motion.protobufs.TranslatorAxisTransformation.prototype.hasTranslation = function() {
51714
- return jspb.Message.getField(this, 3) != null;
52106
+ return jspb.Message.getField(this, 4) != null;
51715
52107
  };
51716
52108
 
51717
52109
 
@@ -59195,8 +59587,11 @@ proto.zaber.motion.protobufs.MicroscopeConfig.prototype.toObject = function(opt_
59195
59587
  proto.zaber.motion.protobufs.MicroscopeConfig.toObject = function(includeInstance, msg) {
59196
59588
  var f, obj = {
59197
59589
  illuminator: jspb.Message.getFieldWithDefault(msg, 1, 0),
59198
- filterChanger: jspb.Message.getFieldWithDefault(msg, 2, 0),
59199
- objectiveChanger: jspb.Message.getFieldWithDefault(msg, 3, 0),
59590
+ hasIlluminator: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
59591
+ filterChanger: jspb.Message.getFieldWithDefault(msg, 3, 0),
59592
+ hasFilterChanger: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
59593
+ objectiveChanger: jspb.Message.getFieldWithDefault(msg, 5, 0),
59594
+ hasObjectiveChanger: jspb.Message.getBooleanFieldWithDefault(msg, 6, false),
59200
59595
  focusAxis: (f = msg.getFocusAxis()) && proto.zaber.motion.protobufs.AxisAddress.toObject(includeInstance, f),
59201
59596
  xAxis: (f = msg.getXAxis()) && proto.zaber.motion.protobufs.AxisAddress.toObject(includeInstance, f),
59202
59597
  yAxis: (f = msg.getYAxis()) && proto.zaber.motion.protobufs.AxisAddress.toObject(includeInstance, f)
@@ -59241,24 +59636,36 @@ proto.zaber.motion.protobufs.MicroscopeConfig.deserializeBinaryFromReader = func
59241
59636
  msg.setIlluminator(value);
59242
59637
  break;
59243
59638
  case 2:
59639
+ var value = /** @type {boolean} */ (reader.readBool());
59640
+ msg.setHasIlluminator(value);
59641
+ break;
59642
+ case 3:
59244
59643
  var value = /** @type {number} */ (reader.readInt32());
59245
59644
  msg.setFilterChanger(value);
59246
59645
  break;
59247
- case 3:
59646
+ case 4:
59647
+ var value = /** @type {boolean} */ (reader.readBool());
59648
+ msg.setHasFilterChanger(value);
59649
+ break;
59650
+ case 5:
59248
59651
  var value = /** @type {number} */ (reader.readInt32());
59249
59652
  msg.setObjectiveChanger(value);
59250
59653
  break;
59251
- case 4:
59654
+ case 6:
59655
+ var value = /** @type {boolean} */ (reader.readBool());
59656
+ msg.setHasObjectiveChanger(value);
59657
+ break;
59658
+ case 7:
59252
59659
  var value = new proto.zaber.motion.protobufs.AxisAddress;
59253
59660
  reader.readMessage(value,proto.zaber.motion.protobufs.AxisAddress.deserializeBinaryFromReader);
59254
59661
  msg.setFocusAxis(value);
59255
59662
  break;
59256
- case 5:
59663
+ case 8:
59257
59664
  var value = new proto.zaber.motion.protobufs.AxisAddress;
59258
59665
  reader.readMessage(value,proto.zaber.motion.protobufs.AxisAddress.deserializeBinaryFromReader);
59259
59666
  msg.setXAxis(value);
59260
59667
  break;
59261
- case 6:
59668
+ case 9:
59262
59669
  var value = new proto.zaber.motion.protobufs.AxisAddress;
59263
59670
  reader.readMessage(value,proto.zaber.motion.protobufs.AxisAddress.deserializeBinaryFromReader);
59264
59671
  msg.setYAxis(value);
@@ -59299,24 +59706,45 @@ proto.zaber.motion.protobufs.MicroscopeConfig.serializeBinaryToWriter = function
59299
59706
  f
59300
59707
  );
59301
59708
  }
59709
+ f = message.getHasIlluminator();
59710
+ if (f) {
59711
+ writer.writeBool(
59712
+ 2,
59713
+ f
59714
+ );
59715
+ }
59302
59716
  f = message.getFilterChanger();
59303
59717
  if (f !== 0) {
59304
59718
  writer.writeInt32(
59305
- 2,
59719
+ 3,
59720
+ f
59721
+ );
59722
+ }
59723
+ f = message.getHasFilterChanger();
59724
+ if (f) {
59725
+ writer.writeBool(
59726
+ 4,
59306
59727
  f
59307
59728
  );
59308
59729
  }
59309
59730
  f = message.getObjectiveChanger();
59310
59731
  if (f !== 0) {
59311
59732
  writer.writeInt32(
59312
- 3,
59733
+ 5,
59734
+ f
59735
+ );
59736
+ }
59737
+ f = message.getHasObjectiveChanger();
59738
+ if (f) {
59739
+ writer.writeBool(
59740
+ 6,
59313
59741
  f
59314
59742
  );
59315
59743
  }
59316
59744
  f = message.getFocusAxis();
59317
59745
  if (f != null) {
59318
59746
  writer.writeMessage(
59319
- 4,
59747
+ 7,
59320
59748
  f,
59321
59749
  proto.zaber.motion.protobufs.AxisAddress.serializeBinaryToWriter
59322
59750
  );
@@ -59324,7 +59752,7 @@ proto.zaber.motion.protobufs.MicroscopeConfig.serializeBinaryToWriter = function
59324
59752
  f = message.getXAxis();
59325
59753
  if (f != null) {
59326
59754
  writer.writeMessage(
59327
- 5,
59755
+ 8,
59328
59756
  f,
59329
59757
  proto.zaber.motion.protobufs.AxisAddress.serializeBinaryToWriter
59330
59758
  );
@@ -59332,7 +59760,7 @@ proto.zaber.motion.protobufs.MicroscopeConfig.serializeBinaryToWriter = function
59332
59760
  f = message.getYAxis();
59333
59761
  if (f != null) {
59334
59762
  writer.writeMessage(
59335
- 6,
59763
+ 9,
59336
59764
  f,
59337
59765
  proto.zaber.motion.protobufs.AxisAddress.serializeBinaryToWriter
59338
59766
  );
@@ -59359,11 +59787,29 @@ proto.zaber.motion.protobufs.MicroscopeConfig.prototype.setIlluminator = functio
59359
59787
 
59360
59788
 
59361
59789
  /**
59362
- * optional int32 filter_changer = 2;
59790
+ * optional bool has_illuminator = 2;
59791
+ * @return {boolean}
59792
+ */
59793
+ proto.zaber.motion.protobufs.MicroscopeConfig.prototype.getHasIlluminator = function() {
59794
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
59795
+ };
59796
+
59797
+
59798
+ /**
59799
+ * @param {boolean} value
59800
+ * @return {!proto.zaber.motion.protobufs.MicroscopeConfig} returns this
59801
+ */
59802
+ proto.zaber.motion.protobufs.MicroscopeConfig.prototype.setHasIlluminator = function(value) {
59803
+ return jspb.Message.setProto3BooleanField(this, 2, value);
59804
+ };
59805
+
59806
+
59807
+ /**
59808
+ * optional int32 filter_changer = 3;
59363
59809
  * @return {number}
59364
59810
  */
59365
59811
  proto.zaber.motion.protobufs.MicroscopeConfig.prototype.getFilterChanger = function() {
59366
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
59812
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
59367
59813
  };
59368
59814
 
59369
59815
 
@@ -59372,16 +59818,34 @@ proto.zaber.motion.protobufs.MicroscopeConfig.prototype.getFilterChanger = funct
59372
59818
  * @return {!proto.zaber.motion.protobufs.MicroscopeConfig} returns this
59373
59819
  */
59374
59820
  proto.zaber.motion.protobufs.MicroscopeConfig.prototype.setFilterChanger = function(value) {
59375
- return jspb.Message.setProto3IntField(this, 2, value);
59821
+ return jspb.Message.setProto3IntField(this, 3, value);
59376
59822
  };
59377
59823
 
59378
59824
 
59379
59825
  /**
59380
- * optional int32 objective_changer = 3;
59826
+ * optional bool has_filter_changer = 4;
59827
+ * @return {boolean}
59828
+ */
59829
+ proto.zaber.motion.protobufs.MicroscopeConfig.prototype.getHasFilterChanger = function() {
59830
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
59831
+ };
59832
+
59833
+
59834
+ /**
59835
+ * @param {boolean} value
59836
+ * @return {!proto.zaber.motion.protobufs.MicroscopeConfig} returns this
59837
+ */
59838
+ proto.zaber.motion.protobufs.MicroscopeConfig.prototype.setHasFilterChanger = function(value) {
59839
+ return jspb.Message.setProto3BooleanField(this, 4, value);
59840
+ };
59841
+
59842
+
59843
+ /**
59844
+ * optional int32 objective_changer = 5;
59381
59845
  * @return {number}
59382
59846
  */
59383
59847
  proto.zaber.motion.protobufs.MicroscopeConfig.prototype.getObjectiveChanger = function() {
59384
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
59848
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
59385
59849
  };
59386
59850
 
59387
59851
 
@@ -59390,17 +59854,35 @@ proto.zaber.motion.protobufs.MicroscopeConfig.prototype.getObjectiveChanger = fu
59390
59854
  * @return {!proto.zaber.motion.protobufs.MicroscopeConfig} returns this
59391
59855
  */
59392
59856
  proto.zaber.motion.protobufs.MicroscopeConfig.prototype.setObjectiveChanger = function(value) {
59393
- return jspb.Message.setProto3IntField(this, 3, value);
59857
+ return jspb.Message.setProto3IntField(this, 5, value);
59394
59858
  };
59395
59859
 
59396
59860
 
59397
59861
  /**
59398
- * optional AxisAddress focus_axis = 4;
59862
+ * optional bool has_objective_changer = 6;
59863
+ * @return {boolean}
59864
+ */
59865
+ proto.zaber.motion.protobufs.MicroscopeConfig.prototype.getHasObjectiveChanger = function() {
59866
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
59867
+ };
59868
+
59869
+
59870
+ /**
59871
+ * @param {boolean} value
59872
+ * @return {!proto.zaber.motion.protobufs.MicroscopeConfig} returns this
59873
+ */
59874
+ proto.zaber.motion.protobufs.MicroscopeConfig.prototype.setHasObjectiveChanger = function(value) {
59875
+ return jspb.Message.setProto3BooleanField(this, 6, value);
59876
+ };
59877
+
59878
+
59879
+ /**
59880
+ * optional AxisAddress focus_axis = 7;
59399
59881
  * @return {?proto.zaber.motion.protobufs.AxisAddress}
59400
59882
  */
59401
59883
  proto.zaber.motion.protobufs.MicroscopeConfig.prototype.getFocusAxis = function() {
59402
59884
  return /** @type{?proto.zaber.motion.protobufs.AxisAddress} */ (
59403
- jspb.Message.getWrapperField(this, proto.zaber.motion.protobufs.AxisAddress, 4));
59885
+ jspb.Message.getWrapperField(this, proto.zaber.motion.protobufs.AxisAddress, 7));
59404
59886
  };
59405
59887
 
59406
59888
 
@@ -59409,7 +59891,7 @@ proto.zaber.motion.protobufs.MicroscopeConfig.prototype.getFocusAxis = function(
59409
59891
  * @return {!proto.zaber.motion.protobufs.MicroscopeConfig} returns this
59410
59892
  */
59411
59893
  proto.zaber.motion.protobufs.MicroscopeConfig.prototype.setFocusAxis = function(value) {
59412
- return jspb.Message.setWrapperField(this, 4, value);
59894
+ return jspb.Message.setWrapperField(this, 7, value);
59413
59895
  };
59414
59896
 
59415
59897
 
@@ -59427,17 +59909,17 @@ proto.zaber.motion.protobufs.MicroscopeConfig.prototype.clearFocusAxis = functio
59427
59909
  * @return {boolean}
59428
59910
  */
59429
59911
  proto.zaber.motion.protobufs.MicroscopeConfig.prototype.hasFocusAxis = function() {
59430
- return jspb.Message.getField(this, 4) != null;
59912
+ return jspb.Message.getField(this, 7) != null;
59431
59913
  };
59432
59914
 
59433
59915
 
59434
59916
  /**
59435
- * optional AxisAddress x_axis = 5;
59917
+ * optional AxisAddress x_axis = 8;
59436
59918
  * @return {?proto.zaber.motion.protobufs.AxisAddress}
59437
59919
  */
59438
59920
  proto.zaber.motion.protobufs.MicroscopeConfig.prototype.getXAxis = function() {
59439
59921
  return /** @type{?proto.zaber.motion.protobufs.AxisAddress} */ (
59440
- jspb.Message.getWrapperField(this, proto.zaber.motion.protobufs.AxisAddress, 5));
59922
+ jspb.Message.getWrapperField(this, proto.zaber.motion.protobufs.AxisAddress, 8));
59441
59923
  };
59442
59924
 
59443
59925
 
@@ -59446,7 +59928,7 @@ proto.zaber.motion.protobufs.MicroscopeConfig.prototype.getXAxis = function() {
59446
59928
  * @return {!proto.zaber.motion.protobufs.MicroscopeConfig} returns this
59447
59929
  */
59448
59930
  proto.zaber.motion.protobufs.MicroscopeConfig.prototype.setXAxis = function(value) {
59449
- return jspb.Message.setWrapperField(this, 5, value);
59931
+ return jspb.Message.setWrapperField(this, 8, value);
59450
59932
  };
59451
59933
 
59452
59934
 
@@ -59464,17 +59946,17 @@ proto.zaber.motion.protobufs.MicroscopeConfig.prototype.clearXAxis = function()
59464
59946
  * @return {boolean}
59465
59947
  */
59466
59948
  proto.zaber.motion.protobufs.MicroscopeConfig.prototype.hasXAxis = function() {
59467
- return jspb.Message.getField(this, 5) != null;
59949
+ return jspb.Message.getField(this, 8) != null;
59468
59950
  };
59469
59951
 
59470
59952
 
59471
59953
  /**
59472
- * optional AxisAddress y_axis = 6;
59954
+ * optional AxisAddress y_axis = 9;
59473
59955
  * @return {?proto.zaber.motion.protobufs.AxisAddress}
59474
59956
  */
59475
59957
  proto.zaber.motion.protobufs.MicroscopeConfig.prototype.getYAxis = function() {
59476
59958
  return /** @type{?proto.zaber.motion.protobufs.AxisAddress} */ (
59477
- jspb.Message.getWrapperField(this, proto.zaber.motion.protobufs.AxisAddress, 6));
59959
+ jspb.Message.getWrapperField(this, proto.zaber.motion.protobufs.AxisAddress, 9));
59478
59960
  };
59479
59961
 
59480
59962
 
@@ -59483,7 +59965,7 @@ proto.zaber.motion.protobufs.MicroscopeConfig.prototype.getYAxis = function() {
59483
59965
  * @return {!proto.zaber.motion.protobufs.MicroscopeConfig} returns this
59484
59966
  */
59485
59967
  proto.zaber.motion.protobufs.MicroscopeConfig.prototype.setYAxis = function(value) {
59486
- return jspb.Message.setWrapperField(this, 6, value);
59968
+ return jspb.Message.setWrapperField(this, 9, value);
59487
59969
  };
59488
59970
 
59489
59971
 
@@ -59501,7 +59983,7 @@ proto.zaber.motion.protobufs.MicroscopeConfig.prototype.clearYAxis = function()
59501
59983
  * @return {boolean}
59502
59984
  */
59503
59985
  proto.zaber.motion.protobufs.MicroscopeConfig.prototype.hasYAxis = function() {
59504
- return jspb.Message.getField(this, 6) != null;
59986
+ return jspb.Message.getField(this, 9) != null;
59505
59987
  };
59506
59988
 
59507
59989