@zaber/motion 3.1.1 → 3.2.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.
- package/dist/binding/wasm/zaber-motion-lib.wasm +0 -0
- package/dist/lib/exceptions/device_detection_failed_exception.d.ts +7 -0
- package/dist/lib/exceptions/device_detection_failed_exception.js +17 -0
- package/dist/lib/exceptions/device_detection_failed_exception.js.map +1 -0
- package/dist/lib/exceptions/index.d.ts +1 -0
- package/dist/lib/exceptions/index.js +4 -2
- package/dist/lib/exceptions/index.js.map +1 -1
- package/dist/lib/gateway/convert_exceptions.js +1 -0
- package/dist/lib/gateway/convert_exceptions.js.map +1 -1
- package/dist/lib/index.d.ts +1 -0
- package/dist/lib/index.js +1 -0
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/microscopy/index.d.ts +1 -0
- package/dist/lib/microscopy/index.js +6 -0
- package/dist/lib/microscopy/index.js.map +1 -0
- package/dist/lib/microscopy/objective_changer.d.ts +63 -0
- package/dist/lib/microscopy/objective_changer.js +116 -0
- package/dist/lib/microscopy/objective_changer.js.map +1 -0
- package/dist/lib/microscopy_ns.d.ts +5 -0
- package/dist/lib/microscopy_ns.js +32 -0
- package/dist/lib/microscopy_ns.js.map +1 -0
- package/dist/lib/protobufs/main_pb.d.ts +91 -0
- package/dist/lib/protobufs/main_pb.js +689 -1
- package/dist/lib/protobufs/main_pb.js.map +1 -1
- package/package.json +6 -1
|
@@ -120,6 +120,9 @@ goog.exportSymbol('zaber.motion.protobufs.Measurement', null, proto);
|
|
|
120
120
|
goog.exportSymbol('zaber.motion.protobufs.MessageType', null, proto);
|
|
121
121
|
goog.exportSymbol('zaber.motion.protobufs.MovementFailedExceptionData', null, proto);
|
|
122
122
|
goog.exportSymbol('zaber.motion.protobufs.MovementInterruptedExceptionData', null, proto);
|
|
123
|
+
goog.exportSymbol('zaber.motion.protobufs.ObjectiveChangerChangeRequest', null, proto);
|
|
124
|
+
goog.exportSymbol('zaber.motion.protobufs.ObjectiveChangerCreateResponse', null, proto);
|
|
125
|
+
goog.exportSymbol('zaber.motion.protobufs.ObjectiveChangerRequest', null, proto);
|
|
123
126
|
goog.exportSymbol('zaber.motion.protobufs.OpenBinaryInterfaceRequest', null, proto);
|
|
124
127
|
goog.exportSymbol('zaber.motion.protobufs.OpenInterfaceRequest', null, proto);
|
|
125
128
|
goog.exportSymbol('zaber.motion.protobufs.OpenInterfaceResponse', null, proto);
|
|
@@ -4251,6 +4254,69 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
4251
4254
|
*/
|
|
4252
4255
|
proto.zaber.motion.protobufs.ConversionFactor.displayName = 'proto.zaber.motion.protobufs.ConversionFactor';
|
|
4253
4256
|
}
|
|
4257
|
+
/**
|
|
4258
|
+
* Generated by JsPbCodeGenerator.
|
|
4259
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4260
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4261
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4262
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4263
|
+
* valid.
|
|
4264
|
+
* @extends {jspb.Message}
|
|
4265
|
+
* @constructor
|
|
4266
|
+
*/
|
|
4267
|
+
proto.zaber.motion.protobufs.ObjectiveChangerRequest = function(opt_data) {
|
|
4268
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
4269
|
+
};
|
|
4270
|
+
goog.inherits(proto.zaber.motion.protobufs.ObjectiveChangerRequest, jspb.Message);
|
|
4271
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4272
|
+
/**
|
|
4273
|
+
* @public
|
|
4274
|
+
* @override
|
|
4275
|
+
*/
|
|
4276
|
+
proto.zaber.motion.protobufs.ObjectiveChangerRequest.displayName = 'proto.zaber.motion.protobufs.ObjectiveChangerRequest';
|
|
4277
|
+
}
|
|
4278
|
+
/**
|
|
4279
|
+
* Generated by JsPbCodeGenerator.
|
|
4280
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4281
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4282
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4283
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4284
|
+
* valid.
|
|
4285
|
+
* @extends {jspb.Message}
|
|
4286
|
+
* @constructor
|
|
4287
|
+
*/
|
|
4288
|
+
proto.zaber.motion.protobufs.ObjectiveChangerCreateResponse = function(opt_data) {
|
|
4289
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
4290
|
+
};
|
|
4291
|
+
goog.inherits(proto.zaber.motion.protobufs.ObjectiveChangerCreateResponse, jspb.Message);
|
|
4292
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4293
|
+
/**
|
|
4294
|
+
* @public
|
|
4295
|
+
* @override
|
|
4296
|
+
*/
|
|
4297
|
+
proto.zaber.motion.protobufs.ObjectiveChangerCreateResponse.displayName = 'proto.zaber.motion.protobufs.ObjectiveChangerCreateResponse';
|
|
4298
|
+
}
|
|
4299
|
+
/**
|
|
4300
|
+
* Generated by JsPbCodeGenerator.
|
|
4301
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4302
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4303
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4304
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4305
|
+
* valid.
|
|
4306
|
+
* @extends {jspb.Message}
|
|
4307
|
+
* @constructor
|
|
4308
|
+
*/
|
|
4309
|
+
proto.zaber.motion.protobufs.ObjectiveChangerChangeRequest = function(opt_data) {
|
|
4310
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
4311
|
+
};
|
|
4312
|
+
goog.inherits(proto.zaber.motion.protobufs.ObjectiveChangerChangeRequest, jspb.Message);
|
|
4313
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4314
|
+
/**
|
|
4315
|
+
* @public
|
|
4316
|
+
* @override
|
|
4317
|
+
*/
|
|
4318
|
+
proto.zaber.motion.protobufs.ObjectiveChangerChangeRequest.displayName = 'proto.zaber.motion.protobufs.ObjectiveChangerChangeRequest';
|
|
4319
|
+
}
|
|
4254
4320
|
|
|
4255
4321
|
|
|
4256
4322
|
|
|
@@ -45143,6 +45209,627 @@ proto.zaber.motion.protobufs.ConversionFactor.prototype.setUnit = function(value
|
|
|
45143
45209
|
};
|
|
45144
45210
|
|
|
45145
45211
|
|
|
45212
|
+
|
|
45213
|
+
|
|
45214
|
+
|
|
45215
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
45216
|
+
/**
|
|
45217
|
+
* Creates an object representation of this proto.
|
|
45218
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
45219
|
+
* Optional fields that are not set will be set to undefined.
|
|
45220
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
45221
|
+
* For the list of reserved names please see:
|
|
45222
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
45223
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
45224
|
+
* JSPB instance for transitional soy proto support:
|
|
45225
|
+
* http://goto/soy-param-migration
|
|
45226
|
+
* @return {!Object}
|
|
45227
|
+
*/
|
|
45228
|
+
proto.zaber.motion.protobufs.ObjectiveChangerRequest.prototype.toObject = function(opt_includeInstance) {
|
|
45229
|
+
return proto.zaber.motion.protobufs.ObjectiveChangerRequest.toObject(opt_includeInstance, this);
|
|
45230
|
+
};
|
|
45231
|
+
|
|
45232
|
+
|
|
45233
|
+
/**
|
|
45234
|
+
* Static version of the {@see toObject} method.
|
|
45235
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
45236
|
+
* the JSPB instance for transitional soy proto support:
|
|
45237
|
+
* http://goto/soy-param-migration
|
|
45238
|
+
* @param {!proto.zaber.motion.protobufs.ObjectiveChangerRequest} msg The msg instance to transform.
|
|
45239
|
+
* @return {!Object}
|
|
45240
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
45241
|
+
*/
|
|
45242
|
+
proto.zaber.motion.protobufs.ObjectiveChangerRequest.toObject = function(includeInstance, msg) {
|
|
45243
|
+
var f, obj = {
|
|
45244
|
+
interfaceId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
45245
|
+
turretAddress: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
45246
|
+
focusAddress: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
45247
|
+
};
|
|
45248
|
+
|
|
45249
|
+
if (includeInstance) {
|
|
45250
|
+
obj.$jspbMessageInstance = msg;
|
|
45251
|
+
}
|
|
45252
|
+
return obj;
|
|
45253
|
+
};
|
|
45254
|
+
}
|
|
45255
|
+
|
|
45256
|
+
|
|
45257
|
+
/**
|
|
45258
|
+
* Deserializes binary data (in protobuf wire format).
|
|
45259
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
45260
|
+
* @return {!proto.zaber.motion.protobufs.ObjectiveChangerRequest}
|
|
45261
|
+
*/
|
|
45262
|
+
proto.zaber.motion.protobufs.ObjectiveChangerRequest.deserializeBinary = function(bytes) {
|
|
45263
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
45264
|
+
var msg = new proto.zaber.motion.protobufs.ObjectiveChangerRequest;
|
|
45265
|
+
return proto.zaber.motion.protobufs.ObjectiveChangerRequest.deserializeBinaryFromReader(msg, reader);
|
|
45266
|
+
};
|
|
45267
|
+
|
|
45268
|
+
|
|
45269
|
+
/**
|
|
45270
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
45271
|
+
* given reader into the given message object.
|
|
45272
|
+
* @param {!proto.zaber.motion.protobufs.ObjectiveChangerRequest} msg The message object to deserialize into.
|
|
45273
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
45274
|
+
* @return {!proto.zaber.motion.protobufs.ObjectiveChangerRequest}
|
|
45275
|
+
*/
|
|
45276
|
+
proto.zaber.motion.protobufs.ObjectiveChangerRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
45277
|
+
while (reader.nextField()) {
|
|
45278
|
+
if (reader.isEndGroup()) {
|
|
45279
|
+
break;
|
|
45280
|
+
}
|
|
45281
|
+
var field = reader.getFieldNumber();
|
|
45282
|
+
switch (field) {
|
|
45283
|
+
case 1:
|
|
45284
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
45285
|
+
msg.setInterfaceId(value);
|
|
45286
|
+
break;
|
|
45287
|
+
case 2:
|
|
45288
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
45289
|
+
msg.setTurretAddress(value);
|
|
45290
|
+
break;
|
|
45291
|
+
case 3:
|
|
45292
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
45293
|
+
msg.setFocusAddress(value);
|
|
45294
|
+
break;
|
|
45295
|
+
default:
|
|
45296
|
+
reader.skipField();
|
|
45297
|
+
break;
|
|
45298
|
+
}
|
|
45299
|
+
}
|
|
45300
|
+
return msg;
|
|
45301
|
+
};
|
|
45302
|
+
|
|
45303
|
+
|
|
45304
|
+
/**
|
|
45305
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
45306
|
+
* @return {!Uint8Array}
|
|
45307
|
+
*/
|
|
45308
|
+
proto.zaber.motion.protobufs.ObjectiveChangerRequest.prototype.serializeBinary = function() {
|
|
45309
|
+
var writer = new jspb.BinaryWriter();
|
|
45310
|
+
proto.zaber.motion.protobufs.ObjectiveChangerRequest.serializeBinaryToWriter(this, writer);
|
|
45311
|
+
return writer.getResultBuffer();
|
|
45312
|
+
};
|
|
45313
|
+
|
|
45314
|
+
|
|
45315
|
+
/**
|
|
45316
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
45317
|
+
* format), writing to the given BinaryWriter.
|
|
45318
|
+
* @param {!proto.zaber.motion.protobufs.ObjectiveChangerRequest} message
|
|
45319
|
+
* @param {!jspb.BinaryWriter} writer
|
|
45320
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
45321
|
+
*/
|
|
45322
|
+
proto.zaber.motion.protobufs.ObjectiveChangerRequest.serializeBinaryToWriter = function(message, writer) {
|
|
45323
|
+
var f = undefined;
|
|
45324
|
+
f = message.getInterfaceId();
|
|
45325
|
+
if (f !== 0) {
|
|
45326
|
+
writer.writeInt32(
|
|
45327
|
+
1,
|
|
45328
|
+
f
|
|
45329
|
+
);
|
|
45330
|
+
}
|
|
45331
|
+
f = message.getTurretAddress();
|
|
45332
|
+
if (f !== 0) {
|
|
45333
|
+
writer.writeInt32(
|
|
45334
|
+
2,
|
|
45335
|
+
f
|
|
45336
|
+
);
|
|
45337
|
+
}
|
|
45338
|
+
f = message.getFocusAddress();
|
|
45339
|
+
if (f !== 0) {
|
|
45340
|
+
writer.writeInt32(
|
|
45341
|
+
3,
|
|
45342
|
+
f
|
|
45343
|
+
);
|
|
45344
|
+
}
|
|
45345
|
+
};
|
|
45346
|
+
|
|
45347
|
+
|
|
45348
|
+
/**
|
|
45349
|
+
* optional int32 interface_id = 1;
|
|
45350
|
+
* @return {number}
|
|
45351
|
+
*/
|
|
45352
|
+
proto.zaber.motion.protobufs.ObjectiveChangerRequest.prototype.getInterfaceId = function() {
|
|
45353
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
45354
|
+
};
|
|
45355
|
+
|
|
45356
|
+
|
|
45357
|
+
/**
|
|
45358
|
+
* @param {number} value
|
|
45359
|
+
* @return {!proto.zaber.motion.protobufs.ObjectiveChangerRequest} returns this
|
|
45360
|
+
*/
|
|
45361
|
+
proto.zaber.motion.protobufs.ObjectiveChangerRequest.prototype.setInterfaceId = function(value) {
|
|
45362
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
45363
|
+
};
|
|
45364
|
+
|
|
45365
|
+
|
|
45366
|
+
/**
|
|
45367
|
+
* optional int32 turret_address = 2;
|
|
45368
|
+
* @return {number}
|
|
45369
|
+
*/
|
|
45370
|
+
proto.zaber.motion.protobufs.ObjectiveChangerRequest.prototype.getTurretAddress = function() {
|
|
45371
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
45372
|
+
};
|
|
45373
|
+
|
|
45374
|
+
|
|
45375
|
+
/**
|
|
45376
|
+
* @param {number} value
|
|
45377
|
+
* @return {!proto.zaber.motion.protobufs.ObjectiveChangerRequest} returns this
|
|
45378
|
+
*/
|
|
45379
|
+
proto.zaber.motion.protobufs.ObjectiveChangerRequest.prototype.setTurretAddress = function(value) {
|
|
45380
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
45381
|
+
};
|
|
45382
|
+
|
|
45383
|
+
|
|
45384
|
+
/**
|
|
45385
|
+
* optional int32 focus_address = 3;
|
|
45386
|
+
* @return {number}
|
|
45387
|
+
*/
|
|
45388
|
+
proto.zaber.motion.protobufs.ObjectiveChangerRequest.prototype.getFocusAddress = function() {
|
|
45389
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
45390
|
+
};
|
|
45391
|
+
|
|
45392
|
+
|
|
45393
|
+
/**
|
|
45394
|
+
* @param {number} value
|
|
45395
|
+
* @return {!proto.zaber.motion.protobufs.ObjectiveChangerRequest} returns this
|
|
45396
|
+
*/
|
|
45397
|
+
proto.zaber.motion.protobufs.ObjectiveChangerRequest.prototype.setFocusAddress = function(value) {
|
|
45398
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
45399
|
+
};
|
|
45400
|
+
|
|
45401
|
+
|
|
45402
|
+
|
|
45403
|
+
|
|
45404
|
+
|
|
45405
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
45406
|
+
/**
|
|
45407
|
+
* Creates an object representation of this proto.
|
|
45408
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
45409
|
+
* Optional fields that are not set will be set to undefined.
|
|
45410
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
45411
|
+
* For the list of reserved names please see:
|
|
45412
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
45413
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
45414
|
+
* JSPB instance for transitional soy proto support:
|
|
45415
|
+
* http://goto/soy-param-migration
|
|
45416
|
+
* @return {!Object}
|
|
45417
|
+
*/
|
|
45418
|
+
proto.zaber.motion.protobufs.ObjectiveChangerCreateResponse.prototype.toObject = function(opt_includeInstance) {
|
|
45419
|
+
return proto.zaber.motion.protobufs.ObjectiveChangerCreateResponse.toObject(opt_includeInstance, this);
|
|
45420
|
+
};
|
|
45421
|
+
|
|
45422
|
+
|
|
45423
|
+
/**
|
|
45424
|
+
* Static version of the {@see toObject} method.
|
|
45425
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
45426
|
+
* the JSPB instance for transitional soy proto support:
|
|
45427
|
+
* http://goto/soy-param-migration
|
|
45428
|
+
* @param {!proto.zaber.motion.protobufs.ObjectiveChangerCreateResponse} msg The msg instance to transform.
|
|
45429
|
+
* @return {!Object}
|
|
45430
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
45431
|
+
*/
|
|
45432
|
+
proto.zaber.motion.protobufs.ObjectiveChangerCreateResponse.toObject = function(includeInstance, msg) {
|
|
45433
|
+
var f, obj = {
|
|
45434
|
+
turret: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
45435
|
+
focus: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
45436
|
+
};
|
|
45437
|
+
|
|
45438
|
+
if (includeInstance) {
|
|
45439
|
+
obj.$jspbMessageInstance = msg;
|
|
45440
|
+
}
|
|
45441
|
+
return obj;
|
|
45442
|
+
};
|
|
45443
|
+
}
|
|
45444
|
+
|
|
45445
|
+
|
|
45446
|
+
/**
|
|
45447
|
+
* Deserializes binary data (in protobuf wire format).
|
|
45448
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
45449
|
+
* @return {!proto.zaber.motion.protobufs.ObjectiveChangerCreateResponse}
|
|
45450
|
+
*/
|
|
45451
|
+
proto.zaber.motion.protobufs.ObjectiveChangerCreateResponse.deserializeBinary = function(bytes) {
|
|
45452
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
45453
|
+
var msg = new proto.zaber.motion.protobufs.ObjectiveChangerCreateResponse;
|
|
45454
|
+
return proto.zaber.motion.protobufs.ObjectiveChangerCreateResponse.deserializeBinaryFromReader(msg, reader);
|
|
45455
|
+
};
|
|
45456
|
+
|
|
45457
|
+
|
|
45458
|
+
/**
|
|
45459
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
45460
|
+
* given reader into the given message object.
|
|
45461
|
+
* @param {!proto.zaber.motion.protobufs.ObjectiveChangerCreateResponse} msg The message object to deserialize into.
|
|
45462
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
45463
|
+
* @return {!proto.zaber.motion.protobufs.ObjectiveChangerCreateResponse}
|
|
45464
|
+
*/
|
|
45465
|
+
proto.zaber.motion.protobufs.ObjectiveChangerCreateResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
45466
|
+
while (reader.nextField()) {
|
|
45467
|
+
if (reader.isEndGroup()) {
|
|
45468
|
+
break;
|
|
45469
|
+
}
|
|
45470
|
+
var field = reader.getFieldNumber();
|
|
45471
|
+
switch (field) {
|
|
45472
|
+
case 2:
|
|
45473
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
45474
|
+
msg.setTurret(value);
|
|
45475
|
+
break;
|
|
45476
|
+
case 3:
|
|
45477
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
45478
|
+
msg.setFocus(value);
|
|
45479
|
+
break;
|
|
45480
|
+
default:
|
|
45481
|
+
reader.skipField();
|
|
45482
|
+
break;
|
|
45483
|
+
}
|
|
45484
|
+
}
|
|
45485
|
+
return msg;
|
|
45486
|
+
};
|
|
45487
|
+
|
|
45488
|
+
|
|
45489
|
+
/**
|
|
45490
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
45491
|
+
* @return {!Uint8Array}
|
|
45492
|
+
*/
|
|
45493
|
+
proto.zaber.motion.protobufs.ObjectiveChangerCreateResponse.prototype.serializeBinary = function() {
|
|
45494
|
+
var writer = new jspb.BinaryWriter();
|
|
45495
|
+
proto.zaber.motion.protobufs.ObjectiveChangerCreateResponse.serializeBinaryToWriter(this, writer);
|
|
45496
|
+
return writer.getResultBuffer();
|
|
45497
|
+
};
|
|
45498
|
+
|
|
45499
|
+
|
|
45500
|
+
/**
|
|
45501
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
45502
|
+
* format), writing to the given BinaryWriter.
|
|
45503
|
+
* @param {!proto.zaber.motion.protobufs.ObjectiveChangerCreateResponse} message
|
|
45504
|
+
* @param {!jspb.BinaryWriter} writer
|
|
45505
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
45506
|
+
*/
|
|
45507
|
+
proto.zaber.motion.protobufs.ObjectiveChangerCreateResponse.serializeBinaryToWriter = function(message, writer) {
|
|
45508
|
+
var f = undefined;
|
|
45509
|
+
f = message.getTurret();
|
|
45510
|
+
if (f !== 0) {
|
|
45511
|
+
writer.writeInt32(
|
|
45512
|
+
2,
|
|
45513
|
+
f
|
|
45514
|
+
);
|
|
45515
|
+
}
|
|
45516
|
+
f = message.getFocus();
|
|
45517
|
+
if (f !== 0) {
|
|
45518
|
+
writer.writeInt32(
|
|
45519
|
+
3,
|
|
45520
|
+
f
|
|
45521
|
+
);
|
|
45522
|
+
}
|
|
45523
|
+
};
|
|
45524
|
+
|
|
45525
|
+
|
|
45526
|
+
/**
|
|
45527
|
+
* optional int32 turret = 2;
|
|
45528
|
+
* @return {number}
|
|
45529
|
+
*/
|
|
45530
|
+
proto.zaber.motion.protobufs.ObjectiveChangerCreateResponse.prototype.getTurret = function() {
|
|
45531
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
45532
|
+
};
|
|
45533
|
+
|
|
45534
|
+
|
|
45535
|
+
/**
|
|
45536
|
+
* @param {number} value
|
|
45537
|
+
* @return {!proto.zaber.motion.protobufs.ObjectiveChangerCreateResponse} returns this
|
|
45538
|
+
*/
|
|
45539
|
+
proto.zaber.motion.protobufs.ObjectiveChangerCreateResponse.prototype.setTurret = function(value) {
|
|
45540
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
45541
|
+
};
|
|
45542
|
+
|
|
45543
|
+
|
|
45544
|
+
/**
|
|
45545
|
+
* optional int32 focus = 3;
|
|
45546
|
+
* @return {number}
|
|
45547
|
+
*/
|
|
45548
|
+
proto.zaber.motion.protobufs.ObjectiveChangerCreateResponse.prototype.getFocus = function() {
|
|
45549
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
45550
|
+
};
|
|
45551
|
+
|
|
45552
|
+
|
|
45553
|
+
/**
|
|
45554
|
+
* @param {number} value
|
|
45555
|
+
* @return {!proto.zaber.motion.protobufs.ObjectiveChangerCreateResponse} returns this
|
|
45556
|
+
*/
|
|
45557
|
+
proto.zaber.motion.protobufs.ObjectiveChangerCreateResponse.prototype.setFocus = function(value) {
|
|
45558
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
45559
|
+
};
|
|
45560
|
+
|
|
45561
|
+
|
|
45562
|
+
|
|
45563
|
+
|
|
45564
|
+
|
|
45565
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
45566
|
+
/**
|
|
45567
|
+
* Creates an object representation of this proto.
|
|
45568
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
45569
|
+
* Optional fields that are not set will be set to undefined.
|
|
45570
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
45571
|
+
* For the list of reserved names please see:
|
|
45572
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
45573
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
45574
|
+
* JSPB instance for transitional soy proto support:
|
|
45575
|
+
* http://goto/soy-param-migration
|
|
45576
|
+
* @return {!Object}
|
|
45577
|
+
*/
|
|
45578
|
+
proto.zaber.motion.protobufs.ObjectiveChangerChangeRequest.prototype.toObject = function(opt_includeInstance) {
|
|
45579
|
+
return proto.zaber.motion.protobufs.ObjectiveChangerChangeRequest.toObject(opt_includeInstance, this);
|
|
45580
|
+
};
|
|
45581
|
+
|
|
45582
|
+
|
|
45583
|
+
/**
|
|
45584
|
+
* Static version of the {@see toObject} method.
|
|
45585
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
45586
|
+
* the JSPB instance for transitional soy proto support:
|
|
45587
|
+
* http://goto/soy-param-migration
|
|
45588
|
+
* @param {!proto.zaber.motion.protobufs.ObjectiveChangerChangeRequest} msg The msg instance to transform.
|
|
45589
|
+
* @return {!Object}
|
|
45590
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
45591
|
+
*/
|
|
45592
|
+
proto.zaber.motion.protobufs.ObjectiveChangerChangeRequest.toObject = function(includeInstance, msg) {
|
|
45593
|
+
var f, obj = {
|
|
45594
|
+
interfaceId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
45595
|
+
turretAddress: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
45596
|
+
focusAddress: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
45597
|
+
objective: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
45598
|
+
focusOffset: (f = msg.getFocusOffset()) && proto.zaber.motion.protobufs.Measurement.toObject(includeInstance, f)
|
|
45599
|
+
};
|
|
45600
|
+
|
|
45601
|
+
if (includeInstance) {
|
|
45602
|
+
obj.$jspbMessageInstance = msg;
|
|
45603
|
+
}
|
|
45604
|
+
return obj;
|
|
45605
|
+
};
|
|
45606
|
+
}
|
|
45607
|
+
|
|
45608
|
+
|
|
45609
|
+
/**
|
|
45610
|
+
* Deserializes binary data (in protobuf wire format).
|
|
45611
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
45612
|
+
* @return {!proto.zaber.motion.protobufs.ObjectiveChangerChangeRequest}
|
|
45613
|
+
*/
|
|
45614
|
+
proto.zaber.motion.protobufs.ObjectiveChangerChangeRequest.deserializeBinary = function(bytes) {
|
|
45615
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
45616
|
+
var msg = new proto.zaber.motion.protobufs.ObjectiveChangerChangeRequest;
|
|
45617
|
+
return proto.zaber.motion.protobufs.ObjectiveChangerChangeRequest.deserializeBinaryFromReader(msg, reader);
|
|
45618
|
+
};
|
|
45619
|
+
|
|
45620
|
+
|
|
45621
|
+
/**
|
|
45622
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
45623
|
+
* given reader into the given message object.
|
|
45624
|
+
* @param {!proto.zaber.motion.protobufs.ObjectiveChangerChangeRequest} msg The message object to deserialize into.
|
|
45625
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
45626
|
+
* @return {!proto.zaber.motion.protobufs.ObjectiveChangerChangeRequest}
|
|
45627
|
+
*/
|
|
45628
|
+
proto.zaber.motion.protobufs.ObjectiveChangerChangeRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
45629
|
+
while (reader.nextField()) {
|
|
45630
|
+
if (reader.isEndGroup()) {
|
|
45631
|
+
break;
|
|
45632
|
+
}
|
|
45633
|
+
var field = reader.getFieldNumber();
|
|
45634
|
+
switch (field) {
|
|
45635
|
+
case 1:
|
|
45636
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
45637
|
+
msg.setInterfaceId(value);
|
|
45638
|
+
break;
|
|
45639
|
+
case 2:
|
|
45640
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
45641
|
+
msg.setTurretAddress(value);
|
|
45642
|
+
break;
|
|
45643
|
+
case 3:
|
|
45644
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
45645
|
+
msg.setFocusAddress(value);
|
|
45646
|
+
break;
|
|
45647
|
+
case 4:
|
|
45648
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
45649
|
+
msg.setObjective(value);
|
|
45650
|
+
break;
|
|
45651
|
+
case 5:
|
|
45652
|
+
var value = new proto.zaber.motion.protobufs.Measurement;
|
|
45653
|
+
reader.readMessage(value,proto.zaber.motion.protobufs.Measurement.deserializeBinaryFromReader);
|
|
45654
|
+
msg.setFocusOffset(value);
|
|
45655
|
+
break;
|
|
45656
|
+
default:
|
|
45657
|
+
reader.skipField();
|
|
45658
|
+
break;
|
|
45659
|
+
}
|
|
45660
|
+
}
|
|
45661
|
+
return msg;
|
|
45662
|
+
};
|
|
45663
|
+
|
|
45664
|
+
|
|
45665
|
+
/**
|
|
45666
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
45667
|
+
* @return {!Uint8Array}
|
|
45668
|
+
*/
|
|
45669
|
+
proto.zaber.motion.protobufs.ObjectiveChangerChangeRequest.prototype.serializeBinary = function() {
|
|
45670
|
+
var writer = new jspb.BinaryWriter();
|
|
45671
|
+
proto.zaber.motion.protobufs.ObjectiveChangerChangeRequest.serializeBinaryToWriter(this, writer);
|
|
45672
|
+
return writer.getResultBuffer();
|
|
45673
|
+
};
|
|
45674
|
+
|
|
45675
|
+
|
|
45676
|
+
/**
|
|
45677
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
45678
|
+
* format), writing to the given BinaryWriter.
|
|
45679
|
+
* @param {!proto.zaber.motion.protobufs.ObjectiveChangerChangeRequest} message
|
|
45680
|
+
* @param {!jspb.BinaryWriter} writer
|
|
45681
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
45682
|
+
*/
|
|
45683
|
+
proto.zaber.motion.protobufs.ObjectiveChangerChangeRequest.serializeBinaryToWriter = function(message, writer) {
|
|
45684
|
+
var f = undefined;
|
|
45685
|
+
f = message.getInterfaceId();
|
|
45686
|
+
if (f !== 0) {
|
|
45687
|
+
writer.writeInt32(
|
|
45688
|
+
1,
|
|
45689
|
+
f
|
|
45690
|
+
);
|
|
45691
|
+
}
|
|
45692
|
+
f = message.getTurretAddress();
|
|
45693
|
+
if (f !== 0) {
|
|
45694
|
+
writer.writeInt32(
|
|
45695
|
+
2,
|
|
45696
|
+
f
|
|
45697
|
+
);
|
|
45698
|
+
}
|
|
45699
|
+
f = message.getFocusAddress();
|
|
45700
|
+
if (f !== 0) {
|
|
45701
|
+
writer.writeInt32(
|
|
45702
|
+
3,
|
|
45703
|
+
f
|
|
45704
|
+
);
|
|
45705
|
+
}
|
|
45706
|
+
f = message.getObjective();
|
|
45707
|
+
if (f !== 0) {
|
|
45708
|
+
writer.writeInt32(
|
|
45709
|
+
4,
|
|
45710
|
+
f
|
|
45711
|
+
);
|
|
45712
|
+
}
|
|
45713
|
+
f = message.getFocusOffset();
|
|
45714
|
+
if (f != null) {
|
|
45715
|
+
writer.writeMessage(
|
|
45716
|
+
5,
|
|
45717
|
+
f,
|
|
45718
|
+
proto.zaber.motion.protobufs.Measurement.serializeBinaryToWriter
|
|
45719
|
+
);
|
|
45720
|
+
}
|
|
45721
|
+
};
|
|
45722
|
+
|
|
45723
|
+
|
|
45724
|
+
/**
|
|
45725
|
+
* optional int32 interface_id = 1;
|
|
45726
|
+
* @return {number}
|
|
45727
|
+
*/
|
|
45728
|
+
proto.zaber.motion.protobufs.ObjectiveChangerChangeRequest.prototype.getInterfaceId = function() {
|
|
45729
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
45730
|
+
};
|
|
45731
|
+
|
|
45732
|
+
|
|
45733
|
+
/**
|
|
45734
|
+
* @param {number} value
|
|
45735
|
+
* @return {!proto.zaber.motion.protobufs.ObjectiveChangerChangeRequest} returns this
|
|
45736
|
+
*/
|
|
45737
|
+
proto.zaber.motion.protobufs.ObjectiveChangerChangeRequest.prototype.setInterfaceId = function(value) {
|
|
45738
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
45739
|
+
};
|
|
45740
|
+
|
|
45741
|
+
|
|
45742
|
+
/**
|
|
45743
|
+
* optional int32 turret_address = 2;
|
|
45744
|
+
* @return {number}
|
|
45745
|
+
*/
|
|
45746
|
+
proto.zaber.motion.protobufs.ObjectiveChangerChangeRequest.prototype.getTurretAddress = function() {
|
|
45747
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
45748
|
+
};
|
|
45749
|
+
|
|
45750
|
+
|
|
45751
|
+
/**
|
|
45752
|
+
* @param {number} value
|
|
45753
|
+
* @return {!proto.zaber.motion.protobufs.ObjectiveChangerChangeRequest} returns this
|
|
45754
|
+
*/
|
|
45755
|
+
proto.zaber.motion.protobufs.ObjectiveChangerChangeRequest.prototype.setTurretAddress = function(value) {
|
|
45756
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
45757
|
+
};
|
|
45758
|
+
|
|
45759
|
+
|
|
45760
|
+
/**
|
|
45761
|
+
* optional int32 focus_address = 3;
|
|
45762
|
+
* @return {number}
|
|
45763
|
+
*/
|
|
45764
|
+
proto.zaber.motion.protobufs.ObjectiveChangerChangeRequest.prototype.getFocusAddress = function() {
|
|
45765
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
45766
|
+
};
|
|
45767
|
+
|
|
45768
|
+
|
|
45769
|
+
/**
|
|
45770
|
+
* @param {number} value
|
|
45771
|
+
* @return {!proto.zaber.motion.protobufs.ObjectiveChangerChangeRequest} returns this
|
|
45772
|
+
*/
|
|
45773
|
+
proto.zaber.motion.protobufs.ObjectiveChangerChangeRequest.prototype.setFocusAddress = function(value) {
|
|
45774
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
45775
|
+
};
|
|
45776
|
+
|
|
45777
|
+
|
|
45778
|
+
/**
|
|
45779
|
+
* optional int32 objective = 4;
|
|
45780
|
+
* @return {number}
|
|
45781
|
+
*/
|
|
45782
|
+
proto.zaber.motion.protobufs.ObjectiveChangerChangeRequest.prototype.getObjective = function() {
|
|
45783
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
45784
|
+
};
|
|
45785
|
+
|
|
45786
|
+
|
|
45787
|
+
/**
|
|
45788
|
+
* @param {number} value
|
|
45789
|
+
* @return {!proto.zaber.motion.protobufs.ObjectiveChangerChangeRequest} returns this
|
|
45790
|
+
*/
|
|
45791
|
+
proto.zaber.motion.protobufs.ObjectiveChangerChangeRequest.prototype.setObjective = function(value) {
|
|
45792
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
45793
|
+
};
|
|
45794
|
+
|
|
45795
|
+
|
|
45796
|
+
/**
|
|
45797
|
+
* optional Measurement focus_offset = 5;
|
|
45798
|
+
* @return {?proto.zaber.motion.protobufs.Measurement}
|
|
45799
|
+
*/
|
|
45800
|
+
proto.zaber.motion.protobufs.ObjectiveChangerChangeRequest.prototype.getFocusOffset = function() {
|
|
45801
|
+
return /** @type{?proto.zaber.motion.protobufs.Measurement} */ (
|
|
45802
|
+
jspb.Message.getWrapperField(this, proto.zaber.motion.protobufs.Measurement, 5));
|
|
45803
|
+
};
|
|
45804
|
+
|
|
45805
|
+
|
|
45806
|
+
/**
|
|
45807
|
+
* @param {?proto.zaber.motion.protobufs.Measurement|undefined} value
|
|
45808
|
+
* @return {!proto.zaber.motion.protobufs.ObjectiveChangerChangeRequest} returns this
|
|
45809
|
+
*/
|
|
45810
|
+
proto.zaber.motion.protobufs.ObjectiveChangerChangeRequest.prototype.setFocusOffset = function(value) {
|
|
45811
|
+
return jspb.Message.setWrapperField(this, 5, value);
|
|
45812
|
+
};
|
|
45813
|
+
|
|
45814
|
+
|
|
45815
|
+
/**
|
|
45816
|
+
* Clears the message field making it undefined.
|
|
45817
|
+
* @return {!proto.zaber.motion.protobufs.ObjectiveChangerChangeRequest} returns this
|
|
45818
|
+
*/
|
|
45819
|
+
proto.zaber.motion.protobufs.ObjectiveChangerChangeRequest.prototype.clearFocusOffset = function() {
|
|
45820
|
+
return this.setFocusOffset(undefined);
|
|
45821
|
+
};
|
|
45822
|
+
|
|
45823
|
+
|
|
45824
|
+
/**
|
|
45825
|
+
* Returns whether this field is set.
|
|
45826
|
+
* @return {boolean}
|
|
45827
|
+
*/
|
|
45828
|
+
proto.zaber.motion.protobufs.ObjectiveChangerChangeRequest.prototype.hasFocusOffset = function() {
|
|
45829
|
+
return jspb.Message.getField(this, 5) != null;
|
|
45830
|
+
};
|
|
45831
|
+
|
|
45832
|
+
|
|
45146
45833
|
/**
|
|
45147
45834
|
* @enum {number}
|
|
45148
45835
|
*/
|
|
@@ -45199,7 +45886,8 @@ proto.zaber.motion.protobufs.Errors = {
|
|
|
45199
45886
|
G_CODE_EXECUTION: 42,
|
|
45200
45887
|
INVALID_OPERATION: 43,
|
|
45201
45888
|
COMMAND_TOO_LONG: 44,
|
|
45202
|
-
NO_VALUE_FOR_KEY: 45
|
|
45889
|
+
NO_VALUE_FOR_KEY: 45,
|
|
45890
|
+
DEVICE_DETECTION_FAILED: 46
|
|
45203
45891
|
};
|
|
45204
45892
|
|
|
45205
45893
|
/**
|