@zaber/motion 5.1.3 → 5.1.5

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.
@@ -141,6 +141,7 @@ goog.exportSymbol('zaber.motion.protobufs.Measurement', null, proto);
141
141
  goog.exportSymbol('zaber.motion.protobufs.MessageType', null, proto);
142
142
  goog.exportSymbol('zaber.motion.protobufs.MicroscopeConfig', null, proto);
143
143
  goog.exportSymbol('zaber.motion.protobufs.MicroscopeEmptyRequest', null, proto);
144
+ goog.exportSymbol('zaber.motion.protobufs.MicroscopeInitRequest', null, proto);
144
145
  goog.exportSymbol('zaber.motion.protobufs.MovementFailedExceptionData', null, proto);
145
146
  goog.exportSymbol('zaber.motion.protobufs.MovementInterruptedExceptionData', null, proto);
146
147
  goog.exportSymbol('zaber.motion.protobufs.ObjectiveChangerChangeRequest', null, proto);
@@ -189,6 +190,7 @@ goog.exportSymbol('zaber.motion.protobufs.SetServoTuningPIDRequest', null, proto
189
190
  goog.exportSymbol('zaber.motion.protobufs.SetServoTuningRequest', null, proto);
190
191
  goog.exportSymbol('zaber.motion.protobufs.SetSimpleTuning', null, proto);
191
192
  goog.exportSymbol('zaber.motion.protobufs.SetStateRequest', null, proto);
193
+ goog.exportSymbol('zaber.motion.protobufs.SimpleTuning', null, proto);
192
194
  goog.exportSymbol('zaber.motion.protobufs.SimpleTuningParamDefinition', null, proto);
193
195
  goog.exportSymbol('zaber.motion.protobufs.StreamArcRequest', null, proto);
194
196
  goog.exportSymbol('zaber.motion.protobufs.StreamArcRequest.Type', null, proto);
@@ -4395,6 +4397,27 @@ if (goog.DEBUG && !COMPILED) {
4395
4397
  */
4396
4398
  proto.zaber.motion.protobufs.SetSimpleTuning.displayName = 'proto.zaber.motion.protobufs.SetSimpleTuning';
4397
4399
  }
4400
+ /**
4401
+ * Generated by JsPbCodeGenerator.
4402
+ * @param {Array=} opt_data Optional initial data array, typically from a
4403
+ * server response, or constructed directly in Javascript. The array is used
4404
+ * in place and becomes part of the constructed object. It is not cloned.
4405
+ * If no data is provided, the constructed object will be empty, but still
4406
+ * valid.
4407
+ * @extends {jspb.Message}
4408
+ * @constructor
4409
+ */
4410
+ proto.zaber.motion.protobufs.SimpleTuning = function(opt_data) {
4411
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.zaber.motion.protobufs.SimpleTuning.repeatedFields_, null);
4412
+ };
4413
+ goog.inherits(proto.zaber.motion.protobufs.SimpleTuning, jspb.Message);
4414
+ if (goog.DEBUG && !COMPILED) {
4415
+ /**
4416
+ * @public
4417
+ * @override
4418
+ */
4419
+ proto.zaber.motion.protobufs.SimpleTuning.displayName = 'proto.zaber.motion.protobufs.SimpleTuning';
4420
+ }
4398
4421
  /**
4399
4422
  * Generated by JsPbCodeGenerator.
4400
4423
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -5382,6 +5405,27 @@ if (goog.DEBUG && !COMPILED) {
5382
5405
  */
5383
5406
  proto.zaber.motion.protobufs.MicroscopeEmptyRequest.displayName = 'proto.zaber.motion.protobufs.MicroscopeEmptyRequest';
5384
5407
  }
5408
+ /**
5409
+ * Generated by JsPbCodeGenerator.
5410
+ * @param {Array=} opt_data Optional initial data array, typically from a
5411
+ * server response, or constructed directly in Javascript. The array is used
5412
+ * in place and becomes part of the constructed object. It is not cloned.
5413
+ * If no data is provided, the constructed object will be empty, but still
5414
+ * valid.
5415
+ * @extends {jspb.Message}
5416
+ * @constructor
5417
+ */
5418
+ proto.zaber.motion.protobufs.MicroscopeInitRequest = function(opt_data) {
5419
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
5420
+ };
5421
+ goog.inherits(proto.zaber.motion.protobufs.MicroscopeInitRequest, jspb.Message);
5422
+ if (goog.DEBUG && !COMPILED) {
5423
+ /**
5424
+ * @public
5425
+ * @override
5426
+ */
5427
+ proto.zaber.motion.protobufs.MicroscopeInitRequest.displayName = 'proto.zaber.motion.protobufs.MicroscopeInitRequest';
5428
+ }
5385
5429
  /**
5386
5430
  * Generated by JsPbCodeGenerator.
5387
5431
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -49989,6 +50033,286 @@ proto.zaber.motion.protobufs.SetSimpleTuning.prototype.clearTuningParamsList = f
49989
50033
 
49990
50034
 
49991
50035
 
50036
+ /**
50037
+ * List of repeated fields within this message type.
50038
+ * @private {!Array<number>}
50039
+ * @const
50040
+ */
50041
+ proto.zaber.motion.protobufs.SimpleTuning.repeatedFields_ = [4];
50042
+
50043
+
50044
+
50045
+ if (jspb.Message.GENERATE_TO_OBJECT) {
50046
+ /**
50047
+ * Creates an object representation of this proto.
50048
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
50049
+ * Optional fields that are not set will be set to undefined.
50050
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
50051
+ * For the list of reserved names please see:
50052
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
50053
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
50054
+ * JSPB instance for transitional soy proto support:
50055
+ * http://goto/soy-param-migration
50056
+ * @return {!Object}
50057
+ */
50058
+ proto.zaber.motion.protobufs.SimpleTuning.prototype.toObject = function(opt_includeInstance) {
50059
+ return proto.zaber.motion.protobufs.SimpleTuning.toObject(opt_includeInstance, this);
50060
+ };
50061
+
50062
+
50063
+ /**
50064
+ * Static version of the {@see toObject} method.
50065
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
50066
+ * the JSPB instance for transitional soy proto support:
50067
+ * http://goto/soy-param-migration
50068
+ * @param {!proto.zaber.motion.protobufs.SimpleTuning} msg The msg instance to transform.
50069
+ * @return {!Object}
50070
+ * @suppress {unusedLocalVariables} f is only used for nested messages
50071
+ */
50072
+ proto.zaber.motion.protobufs.SimpleTuning.toObject = function(includeInstance, msg) {
50073
+ var f, obj = {
50074
+ isUsed: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
50075
+ carriageMass: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
50076
+ hasCarriageMass: jspb.Message.getBooleanFieldWithDefault(msg, 5, false),
50077
+ loadMass: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
50078
+ tuningParamsList: jspb.Message.toObjectList(msg.getTuningParamsList(),
50079
+ proto.zaber.motion.protobufs.ServoTuningParam.toObject, includeInstance)
50080
+ };
50081
+
50082
+ if (includeInstance) {
50083
+ obj.$jspbMessageInstance = msg;
50084
+ }
50085
+ return obj;
50086
+ };
50087
+ }
50088
+
50089
+
50090
+ /**
50091
+ * Deserializes binary data (in protobuf wire format).
50092
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
50093
+ * @return {!proto.zaber.motion.protobufs.SimpleTuning}
50094
+ */
50095
+ proto.zaber.motion.protobufs.SimpleTuning.deserializeBinary = function(bytes) {
50096
+ var reader = new jspb.BinaryReader(bytes);
50097
+ var msg = new proto.zaber.motion.protobufs.SimpleTuning;
50098
+ return proto.zaber.motion.protobufs.SimpleTuning.deserializeBinaryFromReader(msg, reader);
50099
+ };
50100
+
50101
+
50102
+ /**
50103
+ * Deserializes binary data (in protobuf wire format) from the
50104
+ * given reader into the given message object.
50105
+ * @param {!proto.zaber.motion.protobufs.SimpleTuning} msg The message object to deserialize into.
50106
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
50107
+ * @return {!proto.zaber.motion.protobufs.SimpleTuning}
50108
+ */
50109
+ proto.zaber.motion.protobufs.SimpleTuning.deserializeBinaryFromReader = function(msg, reader) {
50110
+ while (reader.nextField()) {
50111
+ if (reader.isEndGroup()) {
50112
+ break;
50113
+ }
50114
+ var field = reader.getFieldNumber();
50115
+ switch (field) {
50116
+ case 1:
50117
+ var value = /** @type {boolean} */ (reader.readBool());
50118
+ msg.setIsUsed(value);
50119
+ break;
50120
+ case 2:
50121
+ var value = /** @type {number} */ (reader.readDouble());
50122
+ msg.setCarriageMass(value);
50123
+ break;
50124
+ case 5:
50125
+ var value = /** @type {boolean} */ (reader.readBool());
50126
+ msg.setHasCarriageMass(value);
50127
+ break;
50128
+ case 3:
50129
+ var value = /** @type {number} */ (reader.readDouble());
50130
+ msg.setLoadMass(value);
50131
+ break;
50132
+ case 4:
50133
+ var value = new proto.zaber.motion.protobufs.ServoTuningParam;
50134
+ reader.readMessage(value,proto.zaber.motion.protobufs.ServoTuningParam.deserializeBinaryFromReader);
50135
+ msg.addTuningParams(value);
50136
+ break;
50137
+ default:
50138
+ reader.skipField();
50139
+ break;
50140
+ }
50141
+ }
50142
+ return msg;
50143
+ };
50144
+
50145
+
50146
+ /**
50147
+ * Serializes the message to binary data (in protobuf wire format).
50148
+ * @return {!Uint8Array}
50149
+ */
50150
+ proto.zaber.motion.protobufs.SimpleTuning.prototype.serializeBinary = function() {
50151
+ var writer = new jspb.BinaryWriter();
50152
+ proto.zaber.motion.protobufs.SimpleTuning.serializeBinaryToWriter(this, writer);
50153
+ return writer.getResultBuffer();
50154
+ };
50155
+
50156
+
50157
+ /**
50158
+ * Serializes the given message to binary data (in protobuf wire
50159
+ * format), writing to the given BinaryWriter.
50160
+ * @param {!proto.zaber.motion.protobufs.SimpleTuning} message
50161
+ * @param {!jspb.BinaryWriter} writer
50162
+ * @suppress {unusedLocalVariables} f is only used for nested messages
50163
+ */
50164
+ proto.zaber.motion.protobufs.SimpleTuning.serializeBinaryToWriter = function(message, writer) {
50165
+ var f = undefined;
50166
+ f = message.getIsUsed();
50167
+ if (f) {
50168
+ writer.writeBool(
50169
+ 1,
50170
+ f
50171
+ );
50172
+ }
50173
+ f = message.getCarriageMass();
50174
+ if (f !== 0.0) {
50175
+ writer.writeDouble(
50176
+ 2,
50177
+ f
50178
+ );
50179
+ }
50180
+ f = message.getHasCarriageMass();
50181
+ if (f) {
50182
+ writer.writeBool(
50183
+ 5,
50184
+ f
50185
+ );
50186
+ }
50187
+ f = message.getLoadMass();
50188
+ if (f !== 0.0) {
50189
+ writer.writeDouble(
50190
+ 3,
50191
+ f
50192
+ );
50193
+ }
50194
+ f = message.getTuningParamsList();
50195
+ if (f.length > 0) {
50196
+ writer.writeRepeatedMessage(
50197
+ 4,
50198
+ f,
50199
+ proto.zaber.motion.protobufs.ServoTuningParam.serializeBinaryToWriter
50200
+ );
50201
+ }
50202
+ };
50203
+
50204
+
50205
+ /**
50206
+ * optional bool is_used = 1;
50207
+ * @return {boolean}
50208
+ */
50209
+ proto.zaber.motion.protobufs.SimpleTuning.prototype.getIsUsed = function() {
50210
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
50211
+ };
50212
+
50213
+
50214
+ /**
50215
+ * @param {boolean} value
50216
+ * @return {!proto.zaber.motion.protobufs.SimpleTuning} returns this
50217
+ */
50218
+ proto.zaber.motion.protobufs.SimpleTuning.prototype.setIsUsed = function(value) {
50219
+ return jspb.Message.setProto3BooleanField(this, 1, value);
50220
+ };
50221
+
50222
+
50223
+ /**
50224
+ * optional double carriage_mass = 2;
50225
+ * @return {number}
50226
+ */
50227
+ proto.zaber.motion.protobufs.SimpleTuning.prototype.getCarriageMass = function() {
50228
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
50229
+ };
50230
+
50231
+
50232
+ /**
50233
+ * @param {number} value
50234
+ * @return {!proto.zaber.motion.protobufs.SimpleTuning} returns this
50235
+ */
50236
+ proto.zaber.motion.protobufs.SimpleTuning.prototype.setCarriageMass = function(value) {
50237
+ return jspb.Message.setProto3FloatField(this, 2, value);
50238
+ };
50239
+
50240
+
50241
+ /**
50242
+ * optional bool has_carriage_mass = 5;
50243
+ * @return {boolean}
50244
+ */
50245
+ proto.zaber.motion.protobufs.SimpleTuning.prototype.getHasCarriageMass = function() {
50246
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
50247
+ };
50248
+
50249
+
50250
+ /**
50251
+ * @param {boolean} value
50252
+ * @return {!proto.zaber.motion.protobufs.SimpleTuning} returns this
50253
+ */
50254
+ proto.zaber.motion.protobufs.SimpleTuning.prototype.setHasCarriageMass = function(value) {
50255
+ return jspb.Message.setProto3BooleanField(this, 5, value);
50256
+ };
50257
+
50258
+
50259
+ /**
50260
+ * optional double load_mass = 3;
50261
+ * @return {number}
50262
+ */
50263
+ proto.zaber.motion.protobufs.SimpleTuning.prototype.getLoadMass = function() {
50264
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
50265
+ };
50266
+
50267
+
50268
+ /**
50269
+ * @param {number} value
50270
+ * @return {!proto.zaber.motion.protobufs.SimpleTuning} returns this
50271
+ */
50272
+ proto.zaber.motion.protobufs.SimpleTuning.prototype.setLoadMass = function(value) {
50273
+ return jspb.Message.setProto3FloatField(this, 3, value);
50274
+ };
50275
+
50276
+
50277
+ /**
50278
+ * repeated ServoTuningParam tuning_params = 4;
50279
+ * @return {!Array<!proto.zaber.motion.protobufs.ServoTuningParam>}
50280
+ */
50281
+ proto.zaber.motion.protobufs.SimpleTuning.prototype.getTuningParamsList = function() {
50282
+ return /** @type{!Array<!proto.zaber.motion.protobufs.ServoTuningParam>} */ (
50283
+ jspb.Message.getRepeatedWrapperField(this, proto.zaber.motion.protobufs.ServoTuningParam, 4));
50284
+ };
50285
+
50286
+
50287
+ /**
50288
+ * @param {!Array<!proto.zaber.motion.protobufs.ServoTuningParam>} value
50289
+ * @return {!proto.zaber.motion.protobufs.SimpleTuning} returns this
50290
+ */
50291
+ proto.zaber.motion.protobufs.SimpleTuning.prototype.setTuningParamsList = function(value) {
50292
+ return jspb.Message.setRepeatedWrapperField(this, 4, value);
50293
+ };
50294
+
50295
+
50296
+ /**
50297
+ * @param {!proto.zaber.motion.protobufs.ServoTuningParam=} opt_value
50298
+ * @param {number=} opt_index
50299
+ * @return {!proto.zaber.motion.protobufs.ServoTuningParam}
50300
+ */
50301
+ proto.zaber.motion.protobufs.SimpleTuning.prototype.addTuningParams = function(opt_value, opt_index) {
50302
+ return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.zaber.motion.protobufs.ServoTuningParam, opt_index);
50303
+ };
50304
+
50305
+
50306
+ /**
50307
+ * Clears the list making it empty but non-null.
50308
+ * @return {!proto.zaber.motion.protobufs.SimpleTuning} returns this
50309
+ */
50310
+ proto.zaber.motion.protobufs.SimpleTuning.prototype.clearTuningParamsList = function() {
50311
+ return this.setTuningParamsList([]);
50312
+ };
50313
+
50314
+
50315
+
49992
50316
 
49993
50317
 
49994
50318
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -59869,6 +60193,217 @@ proto.zaber.motion.protobufs.MicroscopeEmptyRequest.prototype.hasConfig = functi
59869
60193
 
59870
60194
 
59871
60195
 
60196
+ if (jspb.Message.GENERATE_TO_OBJECT) {
60197
+ /**
60198
+ * Creates an object representation of this proto.
60199
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
60200
+ * Optional fields that are not set will be set to undefined.
60201
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
60202
+ * For the list of reserved names please see:
60203
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
60204
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
60205
+ * JSPB instance for transitional soy proto support:
60206
+ * http://goto/soy-param-migration
60207
+ * @return {!Object}
60208
+ */
60209
+ proto.zaber.motion.protobufs.MicroscopeInitRequest.prototype.toObject = function(opt_includeInstance) {
60210
+ return proto.zaber.motion.protobufs.MicroscopeInitRequest.toObject(opt_includeInstance, this);
60211
+ };
60212
+
60213
+
60214
+ /**
60215
+ * Static version of the {@see toObject} method.
60216
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
60217
+ * the JSPB instance for transitional soy proto support:
60218
+ * http://goto/soy-param-migration
60219
+ * @param {!proto.zaber.motion.protobufs.MicroscopeInitRequest} msg The msg instance to transform.
60220
+ * @return {!Object}
60221
+ * @suppress {unusedLocalVariables} f is only used for nested messages
60222
+ */
60223
+ proto.zaber.motion.protobufs.MicroscopeInitRequest.toObject = function(includeInstance, msg) {
60224
+ var f, obj = {
60225
+ interfaceId: jspb.Message.getFieldWithDefault(msg, 1, 0),
60226
+ config: (f = msg.getConfig()) && proto.zaber.motion.protobufs.MicroscopeConfig.toObject(includeInstance, f),
60227
+ force: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
60228
+ };
60229
+
60230
+ if (includeInstance) {
60231
+ obj.$jspbMessageInstance = msg;
60232
+ }
60233
+ return obj;
60234
+ };
60235
+ }
60236
+
60237
+
60238
+ /**
60239
+ * Deserializes binary data (in protobuf wire format).
60240
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
60241
+ * @return {!proto.zaber.motion.protobufs.MicroscopeInitRequest}
60242
+ */
60243
+ proto.zaber.motion.protobufs.MicroscopeInitRequest.deserializeBinary = function(bytes) {
60244
+ var reader = new jspb.BinaryReader(bytes);
60245
+ var msg = new proto.zaber.motion.protobufs.MicroscopeInitRequest;
60246
+ return proto.zaber.motion.protobufs.MicroscopeInitRequest.deserializeBinaryFromReader(msg, reader);
60247
+ };
60248
+
60249
+
60250
+ /**
60251
+ * Deserializes binary data (in protobuf wire format) from the
60252
+ * given reader into the given message object.
60253
+ * @param {!proto.zaber.motion.protobufs.MicroscopeInitRequest} msg The message object to deserialize into.
60254
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
60255
+ * @return {!proto.zaber.motion.protobufs.MicroscopeInitRequest}
60256
+ */
60257
+ proto.zaber.motion.protobufs.MicroscopeInitRequest.deserializeBinaryFromReader = function(msg, reader) {
60258
+ while (reader.nextField()) {
60259
+ if (reader.isEndGroup()) {
60260
+ break;
60261
+ }
60262
+ var field = reader.getFieldNumber();
60263
+ switch (field) {
60264
+ case 1:
60265
+ var value = /** @type {number} */ (reader.readInt32());
60266
+ msg.setInterfaceId(value);
60267
+ break;
60268
+ case 2:
60269
+ var value = new proto.zaber.motion.protobufs.MicroscopeConfig;
60270
+ reader.readMessage(value,proto.zaber.motion.protobufs.MicroscopeConfig.deserializeBinaryFromReader);
60271
+ msg.setConfig(value);
60272
+ break;
60273
+ case 3:
60274
+ var value = /** @type {boolean} */ (reader.readBool());
60275
+ msg.setForce(value);
60276
+ break;
60277
+ default:
60278
+ reader.skipField();
60279
+ break;
60280
+ }
60281
+ }
60282
+ return msg;
60283
+ };
60284
+
60285
+
60286
+ /**
60287
+ * Serializes the message to binary data (in protobuf wire format).
60288
+ * @return {!Uint8Array}
60289
+ */
60290
+ proto.zaber.motion.protobufs.MicroscopeInitRequest.prototype.serializeBinary = function() {
60291
+ var writer = new jspb.BinaryWriter();
60292
+ proto.zaber.motion.protobufs.MicroscopeInitRequest.serializeBinaryToWriter(this, writer);
60293
+ return writer.getResultBuffer();
60294
+ };
60295
+
60296
+
60297
+ /**
60298
+ * Serializes the given message to binary data (in protobuf wire
60299
+ * format), writing to the given BinaryWriter.
60300
+ * @param {!proto.zaber.motion.protobufs.MicroscopeInitRequest} message
60301
+ * @param {!jspb.BinaryWriter} writer
60302
+ * @suppress {unusedLocalVariables} f is only used for nested messages
60303
+ */
60304
+ proto.zaber.motion.protobufs.MicroscopeInitRequest.serializeBinaryToWriter = function(message, writer) {
60305
+ var f = undefined;
60306
+ f = message.getInterfaceId();
60307
+ if (f !== 0) {
60308
+ writer.writeInt32(
60309
+ 1,
60310
+ f
60311
+ );
60312
+ }
60313
+ f = message.getConfig();
60314
+ if (f != null) {
60315
+ writer.writeMessage(
60316
+ 2,
60317
+ f,
60318
+ proto.zaber.motion.protobufs.MicroscopeConfig.serializeBinaryToWriter
60319
+ );
60320
+ }
60321
+ f = message.getForce();
60322
+ if (f) {
60323
+ writer.writeBool(
60324
+ 3,
60325
+ f
60326
+ );
60327
+ }
60328
+ };
60329
+
60330
+
60331
+ /**
60332
+ * optional int32 interface_id = 1;
60333
+ * @return {number}
60334
+ */
60335
+ proto.zaber.motion.protobufs.MicroscopeInitRequest.prototype.getInterfaceId = function() {
60336
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
60337
+ };
60338
+
60339
+
60340
+ /**
60341
+ * @param {number} value
60342
+ * @return {!proto.zaber.motion.protobufs.MicroscopeInitRequest} returns this
60343
+ */
60344
+ proto.zaber.motion.protobufs.MicroscopeInitRequest.prototype.setInterfaceId = function(value) {
60345
+ return jspb.Message.setProto3IntField(this, 1, value);
60346
+ };
60347
+
60348
+
60349
+ /**
60350
+ * optional MicroscopeConfig config = 2;
60351
+ * @return {?proto.zaber.motion.protobufs.MicroscopeConfig}
60352
+ */
60353
+ proto.zaber.motion.protobufs.MicroscopeInitRequest.prototype.getConfig = function() {
60354
+ return /** @type{?proto.zaber.motion.protobufs.MicroscopeConfig} */ (
60355
+ jspb.Message.getWrapperField(this, proto.zaber.motion.protobufs.MicroscopeConfig, 2));
60356
+ };
60357
+
60358
+
60359
+ /**
60360
+ * @param {?proto.zaber.motion.protobufs.MicroscopeConfig|undefined} value
60361
+ * @return {!proto.zaber.motion.protobufs.MicroscopeInitRequest} returns this
60362
+ */
60363
+ proto.zaber.motion.protobufs.MicroscopeInitRequest.prototype.setConfig = function(value) {
60364
+ return jspb.Message.setWrapperField(this, 2, value);
60365
+ };
60366
+
60367
+
60368
+ /**
60369
+ * Clears the message field making it undefined.
60370
+ * @return {!proto.zaber.motion.protobufs.MicroscopeInitRequest} returns this
60371
+ */
60372
+ proto.zaber.motion.protobufs.MicroscopeInitRequest.prototype.clearConfig = function() {
60373
+ return this.setConfig(undefined);
60374
+ };
60375
+
60376
+
60377
+ /**
60378
+ * Returns whether this field is set.
60379
+ * @return {boolean}
60380
+ */
60381
+ proto.zaber.motion.protobufs.MicroscopeInitRequest.prototype.hasConfig = function() {
60382
+ return jspb.Message.getField(this, 2) != null;
60383
+ };
60384
+
60385
+
60386
+ /**
60387
+ * optional bool force = 3;
60388
+ * @return {boolean}
60389
+ */
60390
+ proto.zaber.motion.protobufs.MicroscopeInitRequest.prototype.getForce = function() {
60391
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
60392
+ };
60393
+
60394
+
60395
+ /**
60396
+ * @param {boolean} value
60397
+ * @return {!proto.zaber.motion.protobufs.MicroscopeInitRequest} returns this
60398
+ */
60399
+ proto.zaber.motion.protobufs.MicroscopeInitRequest.prototype.setForce = function(value) {
60400
+ return jspb.Message.setProto3BooleanField(this, 3, value);
60401
+ };
60402
+
60403
+
60404
+
60405
+
60406
+
59872
60407
  if (jspb.Message.GENERATE_TO_OBJECT) {
59873
60408
  /**
59874
60409
  * Creates an object representation of this proto.