@zaber/motion 2.8.1 → 2.9.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/ascii/stream.d.ts +6 -0
- package/dist/lib/ascii/stream.js +13 -0
- package/dist/lib/ascii/stream.js.map +1 -1
- package/dist/lib/ascii/stream_axis_definition.d.ts +1 -1
- package/dist/lib/ascii/stream_axis_definition.js.map +1 -1
- package/dist/lib/ascii/stream_buffer.d.ts +1 -0
- package/dist/lib/ascii/stream_buffer.js +1 -0
- package/dist/lib/ascii/stream_buffer.js.map +1 -1
- package/dist/lib/exceptions/g_code_execution_exception.d.ts +14 -0
- package/dist/lib/exceptions/g_code_execution_exception.js +32 -0
- package/dist/lib/exceptions/g_code_execution_exception.js.map +1 -0
- package/dist/lib/exceptions/g_code_execution_exception_data.d.ts +17 -0
- package/dist/lib/exceptions/g_code_execution_exception_data.js +18 -0
- package/dist/lib/exceptions/g_code_execution_exception_data.js.map +1 -0
- package/dist/lib/exceptions/g_code_syntax_exception.d.ts +14 -0
- package/dist/lib/exceptions/g_code_syntax_exception.js +32 -0
- package/dist/lib/exceptions/g_code_syntax_exception.js.map +1 -0
- package/dist/lib/exceptions/g_code_syntax_exception_data.d.ts +17 -0
- package/dist/lib/exceptions/g_code_syntax_exception_data.js +18 -0
- package/dist/lib/exceptions/g_code_syntax_exception_data.js.map +1 -0
- package/dist/lib/exceptions/index.d.ts +4 -0
- package/dist/lib/exceptions/index.js +10 -2
- package/dist/lib/exceptions/index.js.map +1 -1
- package/dist/lib/finalizer.d.ts +5 -0
- package/dist/lib/finalizer.js +21 -0
- package/dist/lib/finalizer.js.map +1 -0
- package/dist/lib/gateway/convert_exceptions.js +2 -0
- package/dist/lib/gateway/convert_exceptions.js.map +1 -1
- package/dist/lib/gcode/axis_mapping.d.ts +16 -0
- package/dist/lib/gcode/axis_mapping.js +38 -0
- package/dist/lib/gcode/axis_mapping.js.map +1 -0
- package/dist/lib/gcode/index.d.ts +8 -0
- package/dist/lib/gcode/index.js +20 -0
- package/dist/lib/gcode/index.js.map +1 -0
- package/dist/lib/gcode/translate_message.d.ts +21 -0
- package/dist/lib/gcode/translate_message.js +19 -0
- package/dist/lib/gcode/translate_message.js.map +1 -0
- package/dist/lib/gcode/translate_result.d.ts +17 -0
- package/dist/lib/gcode/translate_result.js +19 -0
- package/dist/lib/gcode/translate_result.js.map +1 -0
- package/dist/lib/gcode/translator.d.ts +68 -0
- package/dist/lib/gcode/translator.js +144 -0
- package/dist/lib/gcode/translator.js.map +1 -0
- package/dist/lib/gcode/translator_axis_definition.d.ts +20 -0
- package/dist/lib/gcode/translator_axis_definition.js +48 -0
- package/dist/lib/gcode/translator_axis_definition.js.map +1 -0
- package/dist/lib/gcode/translator_config.d.ts +18 -0
- package/dist/lib/gcode/translator_config.js +41 -0
- package/dist/lib/gcode/translator_config.js.map +1 -0
- package/dist/lib/gcode/translator_definition.d.ts +18 -0
- package/dist/lib/gcode/translator_definition.js +39 -0
- package/dist/lib/gcode/translator_definition.js.map +1 -0
- package/dist/lib/gcode/translator_live.d.ts +70 -0
- package/dist/lib/gcode/translator_live.js +147 -0
- package/dist/lib/gcode/translator_live.js.map +1 -0
- package/dist/lib/gcode_ns.d.ts +19 -0
- package/dist/lib/gcode_ns.js +35 -0
- package/dist/lib/gcode_ns.js.map +1 -0
- 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/measurement.d.ts +1 -1
- package/dist/lib/measurement.js.map +1 -1
- package/dist/lib/protobufs/main_pb.d.ts +478 -0
- package/dist/lib/protobufs/main_pb.js +3682 -1
- package/dist/lib/protobufs/main_pb.js.map +1 -1
- package/package.json +2 -2
|
@@ -111,6 +111,8 @@ goog.exportSymbol('zaber.motion.protobufs.EmptyRequest', null, proto);
|
|
|
111
111
|
goog.exportSymbol('zaber.motion.protobufs.Errors', null, proto);
|
|
112
112
|
goog.exportSymbol('zaber.motion.protobufs.Event', null, proto);
|
|
113
113
|
goog.exportSymbol('zaber.motion.protobufs.FirmwareVersion', null, proto);
|
|
114
|
+
goog.exportSymbol('zaber.motion.protobufs.GCodeExecutionExceptionData', null, proto);
|
|
115
|
+
goog.exportSymbol('zaber.motion.protobufs.GCodeSyntaxExceptionData', null, proto);
|
|
114
116
|
goog.exportSymbol('zaber.motion.protobufs.GenericBinaryRequest', null, proto);
|
|
115
117
|
goog.exportSymbol('zaber.motion.protobufs.GenericCommandRequest', null, proto);
|
|
116
118
|
goog.exportSymbol('zaber.motion.protobufs.GenericCommandResponse', null, proto);
|
|
@@ -175,6 +177,7 @@ goog.exportSymbol('zaber.motion.protobufs.StreamCircleRequest.Type', null, proto
|
|
|
175
177
|
goog.exportSymbol('zaber.motion.protobufs.StreamCorkRequest', null, proto);
|
|
176
178
|
goog.exportSymbol('zaber.motion.protobufs.StreamDisableRequest', null, proto);
|
|
177
179
|
goog.exportSymbol('zaber.motion.protobufs.StreamExecutionExceptionData', null, proto);
|
|
180
|
+
goog.exportSymbol('zaber.motion.protobufs.StreamGenericCommandRequest', null, proto);
|
|
178
181
|
goog.exportSymbol('zaber.motion.protobufs.StreamGetAxesRequest', null, proto);
|
|
179
182
|
goog.exportSymbol('zaber.motion.protobufs.StreamGetAxesResponse', null, proto);
|
|
180
183
|
goog.exportSymbol('zaber.motion.protobufs.StreamGetMaxCentripetalAccelerationRequest', null, proto);
|
|
@@ -217,6 +220,21 @@ goog.exportSymbol('zaber.motion.protobufs.ToStringRequest', null, proto);
|
|
|
217
220
|
goog.exportSymbol('zaber.motion.protobufs.ToStringResponse', null, proto);
|
|
218
221
|
goog.exportSymbol('zaber.motion.protobufs.ToggleDeviceDbStoreRequest', null, proto);
|
|
219
222
|
goog.exportSymbol('zaber.motion.protobufs.ToolsListSerialPortsResponse', null, proto);
|
|
223
|
+
goog.exportSymbol('zaber.motion.protobufs.TranslateMessage', null, proto);
|
|
224
|
+
goog.exportSymbol('zaber.motion.protobufs.TranslatorAxisDefinition', null, proto);
|
|
225
|
+
goog.exportSymbol('zaber.motion.protobufs.TranslatorAxisMapping', null, proto);
|
|
226
|
+
goog.exportSymbol('zaber.motion.protobufs.TranslatorConfig', null, proto);
|
|
227
|
+
goog.exportSymbol('zaber.motion.protobufs.TranslatorCreateLiveRequest', null, proto);
|
|
228
|
+
goog.exportSymbol('zaber.motion.protobufs.TranslatorCreateRequest', null, proto);
|
|
229
|
+
goog.exportSymbol('zaber.motion.protobufs.TranslatorCreateResponse', null, proto);
|
|
230
|
+
goog.exportSymbol('zaber.motion.protobufs.TranslatorDefinition', null, proto);
|
|
231
|
+
goog.exportSymbol('zaber.motion.protobufs.TranslatorEmptyRequest', null, proto);
|
|
232
|
+
goog.exportSymbol('zaber.motion.protobufs.TranslatorGetAxisPositionRequest', null, proto);
|
|
233
|
+
goog.exportSymbol('zaber.motion.protobufs.TranslatorGetAxisPositionResponse', null, proto);
|
|
234
|
+
goog.exportSymbol('zaber.motion.protobufs.TranslatorSetAxisPositionRequest', null, proto);
|
|
235
|
+
goog.exportSymbol('zaber.motion.protobufs.TranslatorSetTraverseRateRequest', null, proto);
|
|
236
|
+
goog.exportSymbol('zaber.motion.protobufs.TranslatorTranslateRequest', null, proto);
|
|
237
|
+
goog.exportSymbol('zaber.motion.protobufs.TranslatorTranslateResponse', null, proto);
|
|
220
238
|
goog.exportSymbol('zaber.motion.protobufs.UnknownBinaryResponseEvent', null, proto);
|
|
221
239
|
goog.exportSymbol('zaber.motion.protobufs.UnknownResponseEvent', null, proto);
|
|
222
240
|
/**
|
|
@@ -3390,6 +3408,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
3390
3408
|
*/
|
|
3391
3409
|
proto.zaber.motion.protobufs.StreamBufferEraseRequest.displayName = 'proto.zaber.motion.protobufs.StreamBufferEraseRequest';
|
|
3392
3410
|
}
|
|
3411
|
+
/**
|
|
3412
|
+
* Generated by JsPbCodeGenerator.
|
|
3413
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3414
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3415
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3416
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3417
|
+
* valid.
|
|
3418
|
+
* @extends {jspb.Message}
|
|
3419
|
+
* @constructor
|
|
3420
|
+
*/
|
|
3421
|
+
proto.zaber.motion.protobufs.StreamGenericCommandRequest = function(opt_data) {
|
|
3422
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
3423
|
+
};
|
|
3424
|
+
goog.inherits(proto.zaber.motion.protobufs.StreamGenericCommandRequest, jspb.Message);
|
|
3425
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3426
|
+
/**
|
|
3427
|
+
* @public
|
|
3428
|
+
* @override
|
|
3429
|
+
*/
|
|
3430
|
+
proto.zaber.motion.protobufs.StreamGenericCommandRequest.displayName = 'proto.zaber.motion.protobufs.StreamGenericCommandRequest';
|
|
3431
|
+
}
|
|
3393
3432
|
/**
|
|
3394
3433
|
* Generated by JsPbCodeGenerator.
|
|
3395
3434
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -4251,6 +4290,363 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
4251
4290
|
*/
|
|
4252
4291
|
proto.zaber.motion.protobufs.SetStateRequest.displayName = 'proto.zaber.motion.protobufs.SetStateRequest';
|
|
4253
4292
|
}
|
|
4293
|
+
/**
|
|
4294
|
+
* Generated by JsPbCodeGenerator.
|
|
4295
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4296
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4297
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4298
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4299
|
+
* valid.
|
|
4300
|
+
* @extends {jspb.Message}
|
|
4301
|
+
* @constructor
|
|
4302
|
+
*/
|
|
4303
|
+
proto.zaber.motion.protobufs.TranslatorCreateRequest = function(opt_data) {
|
|
4304
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
4305
|
+
};
|
|
4306
|
+
goog.inherits(proto.zaber.motion.protobufs.TranslatorCreateRequest, jspb.Message);
|
|
4307
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4308
|
+
/**
|
|
4309
|
+
* @public
|
|
4310
|
+
* @override
|
|
4311
|
+
*/
|
|
4312
|
+
proto.zaber.motion.protobufs.TranslatorCreateRequest.displayName = 'proto.zaber.motion.protobufs.TranslatorCreateRequest';
|
|
4313
|
+
}
|
|
4314
|
+
/**
|
|
4315
|
+
* Generated by JsPbCodeGenerator.
|
|
4316
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4317
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4318
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4319
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4320
|
+
* valid.
|
|
4321
|
+
* @extends {jspb.Message}
|
|
4322
|
+
* @constructor
|
|
4323
|
+
*/
|
|
4324
|
+
proto.zaber.motion.protobufs.TranslatorCreateResponse = function(opt_data) {
|
|
4325
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
4326
|
+
};
|
|
4327
|
+
goog.inherits(proto.zaber.motion.protobufs.TranslatorCreateResponse, jspb.Message);
|
|
4328
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4329
|
+
/**
|
|
4330
|
+
* @public
|
|
4331
|
+
* @override
|
|
4332
|
+
*/
|
|
4333
|
+
proto.zaber.motion.protobufs.TranslatorCreateResponse.displayName = 'proto.zaber.motion.protobufs.TranslatorCreateResponse';
|
|
4334
|
+
}
|
|
4335
|
+
/**
|
|
4336
|
+
* Generated by JsPbCodeGenerator.
|
|
4337
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4338
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4339
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4340
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4341
|
+
* valid.
|
|
4342
|
+
* @extends {jspb.Message}
|
|
4343
|
+
* @constructor
|
|
4344
|
+
*/
|
|
4345
|
+
proto.zaber.motion.protobufs.TranslatorAxisDefinition = function(opt_data) {
|
|
4346
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
4347
|
+
};
|
|
4348
|
+
goog.inherits(proto.zaber.motion.protobufs.TranslatorAxisDefinition, jspb.Message);
|
|
4349
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4350
|
+
/**
|
|
4351
|
+
* @public
|
|
4352
|
+
* @override
|
|
4353
|
+
*/
|
|
4354
|
+
proto.zaber.motion.protobufs.TranslatorAxisDefinition.displayName = 'proto.zaber.motion.protobufs.TranslatorAxisDefinition';
|
|
4355
|
+
}
|
|
4356
|
+
/**
|
|
4357
|
+
* Generated by JsPbCodeGenerator.
|
|
4358
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4359
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4360
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4361
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4362
|
+
* valid.
|
|
4363
|
+
* @extends {jspb.Message}
|
|
4364
|
+
* @constructor
|
|
4365
|
+
*/
|
|
4366
|
+
proto.zaber.motion.protobufs.TranslatorDefinition = function(opt_data) {
|
|
4367
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.zaber.motion.protobufs.TranslatorDefinition.repeatedFields_, null);
|
|
4368
|
+
};
|
|
4369
|
+
goog.inherits(proto.zaber.motion.protobufs.TranslatorDefinition, jspb.Message);
|
|
4370
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4371
|
+
/**
|
|
4372
|
+
* @public
|
|
4373
|
+
* @override
|
|
4374
|
+
*/
|
|
4375
|
+
proto.zaber.motion.protobufs.TranslatorDefinition.displayName = 'proto.zaber.motion.protobufs.TranslatorDefinition';
|
|
4376
|
+
}
|
|
4377
|
+
/**
|
|
4378
|
+
* Generated by JsPbCodeGenerator.
|
|
4379
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4380
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4381
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4382
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4383
|
+
* valid.
|
|
4384
|
+
* @extends {jspb.Message}
|
|
4385
|
+
* @constructor
|
|
4386
|
+
*/
|
|
4387
|
+
proto.zaber.motion.protobufs.TranslatorConfig = function(opt_data) {
|
|
4388
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.zaber.motion.protobufs.TranslatorConfig.repeatedFields_, null);
|
|
4389
|
+
};
|
|
4390
|
+
goog.inherits(proto.zaber.motion.protobufs.TranslatorConfig, jspb.Message);
|
|
4391
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4392
|
+
/**
|
|
4393
|
+
* @public
|
|
4394
|
+
* @override
|
|
4395
|
+
*/
|
|
4396
|
+
proto.zaber.motion.protobufs.TranslatorConfig.displayName = 'proto.zaber.motion.protobufs.TranslatorConfig';
|
|
4397
|
+
}
|
|
4398
|
+
/**
|
|
4399
|
+
* Generated by JsPbCodeGenerator.
|
|
4400
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4401
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4402
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4403
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4404
|
+
* valid.
|
|
4405
|
+
* @extends {jspb.Message}
|
|
4406
|
+
* @constructor
|
|
4407
|
+
*/
|
|
4408
|
+
proto.zaber.motion.protobufs.TranslatorAxisMapping = function(opt_data) {
|
|
4409
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
4410
|
+
};
|
|
4411
|
+
goog.inherits(proto.zaber.motion.protobufs.TranslatorAxisMapping, jspb.Message);
|
|
4412
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4413
|
+
/**
|
|
4414
|
+
* @public
|
|
4415
|
+
* @override
|
|
4416
|
+
*/
|
|
4417
|
+
proto.zaber.motion.protobufs.TranslatorAxisMapping.displayName = 'proto.zaber.motion.protobufs.TranslatorAxisMapping';
|
|
4418
|
+
}
|
|
4419
|
+
/**
|
|
4420
|
+
* Generated by JsPbCodeGenerator.
|
|
4421
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4422
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4423
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4424
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4425
|
+
* valid.
|
|
4426
|
+
* @extends {jspb.Message}
|
|
4427
|
+
* @constructor
|
|
4428
|
+
*/
|
|
4429
|
+
proto.zaber.motion.protobufs.TranslatorTranslateRequest = function(opt_data) {
|
|
4430
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
4431
|
+
};
|
|
4432
|
+
goog.inherits(proto.zaber.motion.protobufs.TranslatorTranslateRequest, jspb.Message);
|
|
4433
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4434
|
+
/**
|
|
4435
|
+
* @public
|
|
4436
|
+
* @override
|
|
4437
|
+
*/
|
|
4438
|
+
proto.zaber.motion.protobufs.TranslatorTranslateRequest.displayName = 'proto.zaber.motion.protobufs.TranslatorTranslateRequest';
|
|
4439
|
+
}
|
|
4440
|
+
/**
|
|
4441
|
+
* Generated by JsPbCodeGenerator.
|
|
4442
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4443
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4444
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4445
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4446
|
+
* valid.
|
|
4447
|
+
* @extends {jspb.Message}
|
|
4448
|
+
* @constructor
|
|
4449
|
+
*/
|
|
4450
|
+
proto.zaber.motion.protobufs.TranslateMessage = function(opt_data) {
|
|
4451
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
4452
|
+
};
|
|
4453
|
+
goog.inherits(proto.zaber.motion.protobufs.TranslateMessage, jspb.Message);
|
|
4454
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4455
|
+
/**
|
|
4456
|
+
* @public
|
|
4457
|
+
* @override
|
|
4458
|
+
*/
|
|
4459
|
+
proto.zaber.motion.protobufs.TranslateMessage.displayName = 'proto.zaber.motion.protobufs.TranslateMessage';
|
|
4460
|
+
}
|
|
4461
|
+
/**
|
|
4462
|
+
* Generated by JsPbCodeGenerator.
|
|
4463
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4464
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4465
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4466
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4467
|
+
* valid.
|
|
4468
|
+
* @extends {jspb.Message}
|
|
4469
|
+
* @constructor
|
|
4470
|
+
*/
|
|
4471
|
+
proto.zaber.motion.protobufs.TranslatorTranslateResponse = function(opt_data) {
|
|
4472
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.zaber.motion.protobufs.TranslatorTranslateResponse.repeatedFields_, null);
|
|
4473
|
+
};
|
|
4474
|
+
goog.inherits(proto.zaber.motion.protobufs.TranslatorTranslateResponse, jspb.Message);
|
|
4475
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4476
|
+
/**
|
|
4477
|
+
* @public
|
|
4478
|
+
* @override
|
|
4479
|
+
*/
|
|
4480
|
+
proto.zaber.motion.protobufs.TranslatorTranslateResponse.displayName = 'proto.zaber.motion.protobufs.TranslatorTranslateResponse';
|
|
4481
|
+
}
|
|
4482
|
+
/**
|
|
4483
|
+
* Generated by JsPbCodeGenerator.
|
|
4484
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4485
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4486
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4487
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4488
|
+
* valid.
|
|
4489
|
+
* @extends {jspb.Message}
|
|
4490
|
+
* @constructor
|
|
4491
|
+
*/
|
|
4492
|
+
proto.zaber.motion.protobufs.GCodeSyntaxExceptionData = function(opt_data) {
|
|
4493
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
4494
|
+
};
|
|
4495
|
+
goog.inherits(proto.zaber.motion.protobufs.GCodeSyntaxExceptionData, jspb.Message);
|
|
4496
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4497
|
+
/**
|
|
4498
|
+
* @public
|
|
4499
|
+
* @override
|
|
4500
|
+
*/
|
|
4501
|
+
proto.zaber.motion.protobufs.GCodeSyntaxExceptionData.displayName = 'proto.zaber.motion.protobufs.GCodeSyntaxExceptionData';
|
|
4502
|
+
}
|
|
4503
|
+
/**
|
|
4504
|
+
* Generated by JsPbCodeGenerator.
|
|
4505
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4506
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4507
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4508
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4509
|
+
* valid.
|
|
4510
|
+
* @extends {jspb.Message}
|
|
4511
|
+
* @constructor
|
|
4512
|
+
*/
|
|
4513
|
+
proto.zaber.motion.protobufs.GCodeExecutionExceptionData = function(opt_data) {
|
|
4514
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
4515
|
+
};
|
|
4516
|
+
goog.inherits(proto.zaber.motion.protobufs.GCodeExecutionExceptionData, jspb.Message);
|
|
4517
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4518
|
+
/**
|
|
4519
|
+
* @public
|
|
4520
|
+
* @override
|
|
4521
|
+
*/
|
|
4522
|
+
proto.zaber.motion.protobufs.GCodeExecutionExceptionData.displayName = 'proto.zaber.motion.protobufs.GCodeExecutionExceptionData';
|
|
4523
|
+
}
|
|
4524
|
+
/**
|
|
4525
|
+
* Generated by JsPbCodeGenerator.
|
|
4526
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4527
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4528
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4529
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4530
|
+
* valid.
|
|
4531
|
+
* @extends {jspb.Message}
|
|
4532
|
+
* @constructor
|
|
4533
|
+
*/
|
|
4534
|
+
proto.zaber.motion.protobufs.TranslatorCreateLiveRequest = function(opt_data) {
|
|
4535
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
4536
|
+
};
|
|
4537
|
+
goog.inherits(proto.zaber.motion.protobufs.TranslatorCreateLiveRequest, jspb.Message);
|
|
4538
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4539
|
+
/**
|
|
4540
|
+
* @public
|
|
4541
|
+
* @override
|
|
4542
|
+
*/
|
|
4543
|
+
proto.zaber.motion.protobufs.TranslatorCreateLiveRequest.displayName = 'proto.zaber.motion.protobufs.TranslatorCreateLiveRequest';
|
|
4544
|
+
}
|
|
4545
|
+
/**
|
|
4546
|
+
* Generated by JsPbCodeGenerator.
|
|
4547
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4548
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4549
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4550
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4551
|
+
* valid.
|
|
4552
|
+
* @extends {jspb.Message}
|
|
4553
|
+
* @constructor
|
|
4554
|
+
*/
|
|
4555
|
+
proto.zaber.motion.protobufs.TranslatorEmptyRequest = function(opt_data) {
|
|
4556
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
4557
|
+
};
|
|
4558
|
+
goog.inherits(proto.zaber.motion.protobufs.TranslatorEmptyRequest, jspb.Message);
|
|
4559
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4560
|
+
/**
|
|
4561
|
+
* @public
|
|
4562
|
+
* @override
|
|
4563
|
+
*/
|
|
4564
|
+
proto.zaber.motion.protobufs.TranslatorEmptyRequest.displayName = 'proto.zaber.motion.protobufs.TranslatorEmptyRequest';
|
|
4565
|
+
}
|
|
4566
|
+
/**
|
|
4567
|
+
* Generated by JsPbCodeGenerator.
|
|
4568
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4569
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4570
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4571
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4572
|
+
* valid.
|
|
4573
|
+
* @extends {jspb.Message}
|
|
4574
|
+
* @constructor
|
|
4575
|
+
*/
|
|
4576
|
+
proto.zaber.motion.protobufs.TranslatorSetTraverseRateRequest = function(opt_data) {
|
|
4577
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
4578
|
+
};
|
|
4579
|
+
goog.inherits(proto.zaber.motion.protobufs.TranslatorSetTraverseRateRequest, jspb.Message);
|
|
4580
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4581
|
+
/**
|
|
4582
|
+
* @public
|
|
4583
|
+
* @override
|
|
4584
|
+
*/
|
|
4585
|
+
proto.zaber.motion.protobufs.TranslatorSetTraverseRateRequest.displayName = 'proto.zaber.motion.protobufs.TranslatorSetTraverseRateRequest';
|
|
4586
|
+
}
|
|
4587
|
+
/**
|
|
4588
|
+
* Generated by JsPbCodeGenerator.
|
|
4589
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4590
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4591
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4592
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4593
|
+
* valid.
|
|
4594
|
+
* @extends {jspb.Message}
|
|
4595
|
+
* @constructor
|
|
4596
|
+
*/
|
|
4597
|
+
proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest = function(opt_data) {
|
|
4598
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
4599
|
+
};
|
|
4600
|
+
goog.inherits(proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest, jspb.Message);
|
|
4601
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4602
|
+
/**
|
|
4603
|
+
* @public
|
|
4604
|
+
* @override
|
|
4605
|
+
*/
|
|
4606
|
+
proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest.displayName = 'proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest';
|
|
4607
|
+
}
|
|
4608
|
+
/**
|
|
4609
|
+
* Generated by JsPbCodeGenerator.
|
|
4610
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4611
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4612
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4613
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4614
|
+
* valid.
|
|
4615
|
+
* @extends {jspb.Message}
|
|
4616
|
+
* @constructor
|
|
4617
|
+
*/
|
|
4618
|
+
proto.zaber.motion.protobufs.TranslatorGetAxisPositionRequest = function(opt_data) {
|
|
4619
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
4620
|
+
};
|
|
4621
|
+
goog.inherits(proto.zaber.motion.protobufs.TranslatorGetAxisPositionRequest, jspb.Message);
|
|
4622
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4623
|
+
/**
|
|
4624
|
+
* @public
|
|
4625
|
+
* @override
|
|
4626
|
+
*/
|
|
4627
|
+
proto.zaber.motion.protobufs.TranslatorGetAxisPositionRequest.displayName = 'proto.zaber.motion.protobufs.TranslatorGetAxisPositionRequest';
|
|
4628
|
+
}
|
|
4629
|
+
/**
|
|
4630
|
+
* Generated by JsPbCodeGenerator.
|
|
4631
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4632
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4633
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4634
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4635
|
+
* valid.
|
|
4636
|
+
* @extends {jspb.Message}
|
|
4637
|
+
* @constructor
|
|
4638
|
+
*/
|
|
4639
|
+
proto.zaber.motion.protobufs.TranslatorGetAxisPositionResponse = function(opt_data) {
|
|
4640
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
4641
|
+
};
|
|
4642
|
+
goog.inherits(proto.zaber.motion.protobufs.TranslatorGetAxisPositionResponse, jspb.Message);
|
|
4643
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4644
|
+
/**
|
|
4645
|
+
* @public
|
|
4646
|
+
* @override
|
|
4647
|
+
*/
|
|
4648
|
+
proto.zaber.motion.protobufs.TranslatorGetAxisPositionResponse.displayName = 'proto.zaber.motion.protobufs.TranslatorGetAxisPositionResponse';
|
|
4649
|
+
}
|
|
4254
4650
|
|
|
4255
4651
|
|
|
4256
4652
|
|
|
@@ -34100,6 +34496,226 @@ proto.zaber.motion.protobufs.StreamBufferEraseRequest.prototype.setBufferId = fu
|
|
|
34100
34496
|
|
|
34101
34497
|
|
|
34102
34498
|
|
|
34499
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
34500
|
+
/**
|
|
34501
|
+
* Creates an object representation of this proto.
|
|
34502
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
34503
|
+
* Optional fields that are not set will be set to undefined.
|
|
34504
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
34505
|
+
* For the list of reserved names please see:
|
|
34506
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
34507
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
34508
|
+
* JSPB instance for transitional soy proto support:
|
|
34509
|
+
* http://goto/soy-param-migration
|
|
34510
|
+
* @return {!Object}
|
|
34511
|
+
*/
|
|
34512
|
+
proto.zaber.motion.protobufs.StreamGenericCommandRequest.prototype.toObject = function(opt_includeInstance) {
|
|
34513
|
+
return proto.zaber.motion.protobufs.StreamGenericCommandRequest.toObject(opt_includeInstance, this);
|
|
34514
|
+
};
|
|
34515
|
+
|
|
34516
|
+
|
|
34517
|
+
/**
|
|
34518
|
+
* Static version of the {@see toObject} method.
|
|
34519
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
34520
|
+
* the JSPB instance for transitional soy proto support:
|
|
34521
|
+
* http://goto/soy-param-migration
|
|
34522
|
+
* @param {!proto.zaber.motion.protobufs.StreamGenericCommandRequest} msg The msg instance to transform.
|
|
34523
|
+
* @return {!Object}
|
|
34524
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
34525
|
+
*/
|
|
34526
|
+
proto.zaber.motion.protobufs.StreamGenericCommandRequest.toObject = function(includeInstance, msg) {
|
|
34527
|
+
var f, obj = {
|
|
34528
|
+
interfaceId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
34529
|
+
device: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
34530
|
+
streamId: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
34531
|
+
command: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
34532
|
+
};
|
|
34533
|
+
|
|
34534
|
+
if (includeInstance) {
|
|
34535
|
+
obj.$jspbMessageInstance = msg;
|
|
34536
|
+
}
|
|
34537
|
+
return obj;
|
|
34538
|
+
};
|
|
34539
|
+
}
|
|
34540
|
+
|
|
34541
|
+
|
|
34542
|
+
/**
|
|
34543
|
+
* Deserializes binary data (in protobuf wire format).
|
|
34544
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
34545
|
+
* @return {!proto.zaber.motion.protobufs.StreamGenericCommandRequest}
|
|
34546
|
+
*/
|
|
34547
|
+
proto.zaber.motion.protobufs.StreamGenericCommandRequest.deserializeBinary = function(bytes) {
|
|
34548
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
34549
|
+
var msg = new proto.zaber.motion.protobufs.StreamGenericCommandRequest;
|
|
34550
|
+
return proto.zaber.motion.protobufs.StreamGenericCommandRequest.deserializeBinaryFromReader(msg, reader);
|
|
34551
|
+
};
|
|
34552
|
+
|
|
34553
|
+
|
|
34554
|
+
/**
|
|
34555
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
34556
|
+
* given reader into the given message object.
|
|
34557
|
+
* @param {!proto.zaber.motion.protobufs.StreamGenericCommandRequest} msg The message object to deserialize into.
|
|
34558
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
34559
|
+
* @return {!proto.zaber.motion.protobufs.StreamGenericCommandRequest}
|
|
34560
|
+
*/
|
|
34561
|
+
proto.zaber.motion.protobufs.StreamGenericCommandRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
34562
|
+
while (reader.nextField()) {
|
|
34563
|
+
if (reader.isEndGroup()) {
|
|
34564
|
+
break;
|
|
34565
|
+
}
|
|
34566
|
+
var field = reader.getFieldNumber();
|
|
34567
|
+
switch (field) {
|
|
34568
|
+
case 1:
|
|
34569
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
34570
|
+
msg.setInterfaceId(value);
|
|
34571
|
+
break;
|
|
34572
|
+
case 2:
|
|
34573
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
34574
|
+
msg.setDevice(value);
|
|
34575
|
+
break;
|
|
34576
|
+
case 3:
|
|
34577
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
34578
|
+
msg.setStreamId(value);
|
|
34579
|
+
break;
|
|
34580
|
+
case 4:
|
|
34581
|
+
var value = /** @type {string} */ (reader.readString());
|
|
34582
|
+
msg.setCommand(value);
|
|
34583
|
+
break;
|
|
34584
|
+
default:
|
|
34585
|
+
reader.skipField();
|
|
34586
|
+
break;
|
|
34587
|
+
}
|
|
34588
|
+
}
|
|
34589
|
+
return msg;
|
|
34590
|
+
};
|
|
34591
|
+
|
|
34592
|
+
|
|
34593
|
+
/**
|
|
34594
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
34595
|
+
* @return {!Uint8Array}
|
|
34596
|
+
*/
|
|
34597
|
+
proto.zaber.motion.protobufs.StreamGenericCommandRequest.prototype.serializeBinary = function() {
|
|
34598
|
+
var writer = new jspb.BinaryWriter();
|
|
34599
|
+
proto.zaber.motion.protobufs.StreamGenericCommandRequest.serializeBinaryToWriter(this, writer);
|
|
34600
|
+
return writer.getResultBuffer();
|
|
34601
|
+
};
|
|
34602
|
+
|
|
34603
|
+
|
|
34604
|
+
/**
|
|
34605
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
34606
|
+
* format), writing to the given BinaryWriter.
|
|
34607
|
+
* @param {!proto.zaber.motion.protobufs.StreamGenericCommandRequest} message
|
|
34608
|
+
* @param {!jspb.BinaryWriter} writer
|
|
34609
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
34610
|
+
*/
|
|
34611
|
+
proto.zaber.motion.protobufs.StreamGenericCommandRequest.serializeBinaryToWriter = function(message, writer) {
|
|
34612
|
+
var f = undefined;
|
|
34613
|
+
f = message.getInterfaceId();
|
|
34614
|
+
if (f !== 0) {
|
|
34615
|
+
writer.writeInt32(
|
|
34616
|
+
1,
|
|
34617
|
+
f
|
|
34618
|
+
);
|
|
34619
|
+
}
|
|
34620
|
+
f = message.getDevice();
|
|
34621
|
+
if (f !== 0) {
|
|
34622
|
+
writer.writeInt32(
|
|
34623
|
+
2,
|
|
34624
|
+
f
|
|
34625
|
+
);
|
|
34626
|
+
}
|
|
34627
|
+
f = message.getStreamId();
|
|
34628
|
+
if (f !== 0) {
|
|
34629
|
+
writer.writeInt32(
|
|
34630
|
+
3,
|
|
34631
|
+
f
|
|
34632
|
+
);
|
|
34633
|
+
}
|
|
34634
|
+
f = message.getCommand();
|
|
34635
|
+
if (f.length > 0) {
|
|
34636
|
+
writer.writeString(
|
|
34637
|
+
4,
|
|
34638
|
+
f
|
|
34639
|
+
);
|
|
34640
|
+
}
|
|
34641
|
+
};
|
|
34642
|
+
|
|
34643
|
+
|
|
34644
|
+
/**
|
|
34645
|
+
* optional int32 interface_id = 1;
|
|
34646
|
+
* @return {number}
|
|
34647
|
+
*/
|
|
34648
|
+
proto.zaber.motion.protobufs.StreamGenericCommandRequest.prototype.getInterfaceId = function() {
|
|
34649
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
34650
|
+
};
|
|
34651
|
+
|
|
34652
|
+
|
|
34653
|
+
/**
|
|
34654
|
+
* @param {number} value
|
|
34655
|
+
* @return {!proto.zaber.motion.protobufs.StreamGenericCommandRequest} returns this
|
|
34656
|
+
*/
|
|
34657
|
+
proto.zaber.motion.protobufs.StreamGenericCommandRequest.prototype.setInterfaceId = function(value) {
|
|
34658
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
34659
|
+
};
|
|
34660
|
+
|
|
34661
|
+
|
|
34662
|
+
/**
|
|
34663
|
+
* optional int32 device = 2;
|
|
34664
|
+
* @return {number}
|
|
34665
|
+
*/
|
|
34666
|
+
proto.zaber.motion.protobufs.StreamGenericCommandRequest.prototype.getDevice = function() {
|
|
34667
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
34668
|
+
};
|
|
34669
|
+
|
|
34670
|
+
|
|
34671
|
+
/**
|
|
34672
|
+
* @param {number} value
|
|
34673
|
+
* @return {!proto.zaber.motion.protobufs.StreamGenericCommandRequest} returns this
|
|
34674
|
+
*/
|
|
34675
|
+
proto.zaber.motion.protobufs.StreamGenericCommandRequest.prototype.setDevice = function(value) {
|
|
34676
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
34677
|
+
};
|
|
34678
|
+
|
|
34679
|
+
|
|
34680
|
+
/**
|
|
34681
|
+
* optional int32 stream_id = 3;
|
|
34682
|
+
* @return {number}
|
|
34683
|
+
*/
|
|
34684
|
+
proto.zaber.motion.protobufs.StreamGenericCommandRequest.prototype.getStreamId = function() {
|
|
34685
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
34686
|
+
};
|
|
34687
|
+
|
|
34688
|
+
|
|
34689
|
+
/**
|
|
34690
|
+
* @param {number} value
|
|
34691
|
+
* @return {!proto.zaber.motion.protobufs.StreamGenericCommandRequest} returns this
|
|
34692
|
+
*/
|
|
34693
|
+
proto.zaber.motion.protobufs.StreamGenericCommandRequest.prototype.setStreamId = function(value) {
|
|
34694
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
34695
|
+
};
|
|
34696
|
+
|
|
34697
|
+
|
|
34698
|
+
/**
|
|
34699
|
+
* optional string command = 4;
|
|
34700
|
+
* @return {string}
|
|
34701
|
+
*/
|
|
34702
|
+
proto.zaber.motion.protobufs.StreamGenericCommandRequest.prototype.getCommand = function() {
|
|
34703
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
34704
|
+
};
|
|
34705
|
+
|
|
34706
|
+
|
|
34707
|
+
/**
|
|
34708
|
+
* @param {string} value
|
|
34709
|
+
* @return {!proto.zaber.motion.protobufs.StreamGenericCommandRequest} returns this
|
|
34710
|
+
*/
|
|
34711
|
+
proto.zaber.motion.protobufs.StreamGenericCommandRequest.prototype.setCommand = function(value) {
|
|
34712
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
34713
|
+
};
|
|
34714
|
+
|
|
34715
|
+
|
|
34716
|
+
|
|
34717
|
+
|
|
34718
|
+
|
|
34103
34719
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
34104
34720
|
/**
|
|
34105
34721
|
* Creates an object representation of this proto.
|
|
@@ -41675,6 +42291,3069 @@ proto.zaber.motion.protobufs.SetStateRequest.prototype.setDeviceOnly = function(
|
|
|
41675
42291
|
};
|
|
41676
42292
|
|
|
41677
42293
|
|
|
42294
|
+
|
|
42295
|
+
|
|
42296
|
+
|
|
42297
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
42298
|
+
/**
|
|
42299
|
+
* Creates an object representation of this proto.
|
|
42300
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
42301
|
+
* Optional fields that are not set will be set to undefined.
|
|
42302
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
42303
|
+
* For the list of reserved names please see:
|
|
42304
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
42305
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
42306
|
+
* JSPB instance for transitional soy proto support:
|
|
42307
|
+
* http://goto/soy-param-migration
|
|
42308
|
+
* @return {!Object}
|
|
42309
|
+
*/
|
|
42310
|
+
proto.zaber.motion.protobufs.TranslatorCreateRequest.prototype.toObject = function(opt_includeInstance) {
|
|
42311
|
+
return proto.zaber.motion.protobufs.TranslatorCreateRequest.toObject(opt_includeInstance, this);
|
|
42312
|
+
};
|
|
42313
|
+
|
|
42314
|
+
|
|
42315
|
+
/**
|
|
42316
|
+
* Static version of the {@see toObject} method.
|
|
42317
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
42318
|
+
* the JSPB instance for transitional soy proto support:
|
|
42319
|
+
* http://goto/soy-param-migration
|
|
42320
|
+
* @param {!proto.zaber.motion.protobufs.TranslatorCreateRequest} msg The msg instance to transform.
|
|
42321
|
+
* @return {!Object}
|
|
42322
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
42323
|
+
*/
|
|
42324
|
+
proto.zaber.motion.protobufs.TranslatorCreateRequest.toObject = function(includeInstance, msg) {
|
|
42325
|
+
var f, obj = {
|
|
42326
|
+
definition: (f = msg.getDefinition()) && proto.zaber.motion.protobufs.TranslatorDefinition.toObject(includeInstance, f),
|
|
42327
|
+
config: (f = msg.getConfig()) && proto.zaber.motion.protobufs.TranslatorConfig.toObject(includeInstance, f)
|
|
42328
|
+
};
|
|
42329
|
+
|
|
42330
|
+
if (includeInstance) {
|
|
42331
|
+
obj.$jspbMessageInstance = msg;
|
|
42332
|
+
}
|
|
42333
|
+
return obj;
|
|
42334
|
+
};
|
|
42335
|
+
}
|
|
42336
|
+
|
|
42337
|
+
|
|
42338
|
+
/**
|
|
42339
|
+
* Deserializes binary data (in protobuf wire format).
|
|
42340
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
42341
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorCreateRequest}
|
|
42342
|
+
*/
|
|
42343
|
+
proto.zaber.motion.protobufs.TranslatorCreateRequest.deserializeBinary = function(bytes) {
|
|
42344
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
42345
|
+
var msg = new proto.zaber.motion.protobufs.TranslatorCreateRequest;
|
|
42346
|
+
return proto.zaber.motion.protobufs.TranslatorCreateRequest.deserializeBinaryFromReader(msg, reader);
|
|
42347
|
+
};
|
|
42348
|
+
|
|
42349
|
+
|
|
42350
|
+
/**
|
|
42351
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
42352
|
+
* given reader into the given message object.
|
|
42353
|
+
* @param {!proto.zaber.motion.protobufs.TranslatorCreateRequest} msg The message object to deserialize into.
|
|
42354
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
42355
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorCreateRequest}
|
|
42356
|
+
*/
|
|
42357
|
+
proto.zaber.motion.protobufs.TranslatorCreateRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
42358
|
+
while (reader.nextField()) {
|
|
42359
|
+
if (reader.isEndGroup()) {
|
|
42360
|
+
break;
|
|
42361
|
+
}
|
|
42362
|
+
var field = reader.getFieldNumber();
|
|
42363
|
+
switch (field) {
|
|
42364
|
+
case 1:
|
|
42365
|
+
var value = new proto.zaber.motion.protobufs.TranslatorDefinition;
|
|
42366
|
+
reader.readMessage(value,proto.zaber.motion.protobufs.TranslatorDefinition.deserializeBinaryFromReader);
|
|
42367
|
+
msg.setDefinition(value);
|
|
42368
|
+
break;
|
|
42369
|
+
case 2:
|
|
42370
|
+
var value = new proto.zaber.motion.protobufs.TranslatorConfig;
|
|
42371
|
+
reader.readMessage(value,proto.zaber.motion.protobufs.TranslatorConfig.deserializeBinaryFromReader);
|
|
42372
|
+
msg.setConfig(value);
|
|
42373
|
+
break;
|
|
42374
|
+
default:
|
|
42375
|
+
reader.skipField();
|
|
42376
|
+
break;
|
|
42377
|
+
}
|
|
42378
|
+
}
|
|
42379
|
+
return msg;
|
|
42380
|
+
};
|
|
42381
|
+
|
|
42382
|
+
|
|
42383
|
+
/**
|
|
42384
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
42385
|
+
* @return {!Uint8Array}
|
|
42386
|
+
*/
|
|
42387
|
+
proto.zaber.motion.protobufs.TranslatorCreateRequest.prototype.serializeBinary = function() {
|
|
42388
|
+
var writer = new jspb.BinaryWriter();
|
|
42389
|
+
proto.zaber.motion.protobufs.TranslatorCreateRequest.serializeBinaryToWriter(this, writer);
|
|
42390
|
+
return writer.getResultBuffer();
|
|
42391
|
+
};
|
|
42392
|
+
|
|
42393
|
+
|
|
42394
|
+
/**
|
|
42395
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
42396
|
+
* format), writing to the given BinaryWriter.
|
|
42397
|
+
* @param {!proto.zaber.motion.protobufs.TranslatorCreateRequest} message
|
|
42398
|
+
* @param {!jspb.BinaryWriter} writer
|
|
42399
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
42400
|
+
*/
|
|
42401
|
+
proto.zaber.motion.protobufs.TranslatorCreateRequest.serializeBinaryToWriter = function(message, writer) {
|
|
42402
|
+
var f = undefined;
|
|
42403
|
+
f = message.getDefinition();
|
|
42404
|
+
if (f != null) {
|
|
42405
|
+
writer.writeMessage(
|
|
42406
|
+
1,
|
|
42407
|
+
f,
|
|
42408
|
+
proto.zaber.motion.protobufs.TranslatorDefinition.serializeBinaryToWriter
|
|
42409
|
+
);
|
|
42410
|
+
}
|
|
42411
|
+
f = message.getConfig();
|
|
42412
|
+
if (f != null) {
|
|
42413
|
+
writer.writeMessage(
|
|
42414
|
+
2,
|
|
42415
|
+
f,
|
|
42416
|
+
proto.zaber.motion.protobufs.TranslatorConfig.serializeBinaryToWriter
|
|
42417
|
+
);
|
|
42418
|
+
}
|
|
42419
|
+
};
|
|
42420
|
+
|
|
42421
|
+
|
|
42422
|
+
/**
|
|
42423
|
+
* optional TranslatorDefinition definition = 1;
|
|
42424
|
+
* @return {?proto.zaber.motion.protobufs.TranslatorDefinition}
|
|
42425
|
+
*/
|
|
42426
|
+
proto.zaber.motion.protobufs.TranslatorCreateRequest.prototype.getDefinition = function() {
|
|
42427
|
+
return /** @type{?proto.zaber.motion.protobufs.TranslatorDefinition} */ (
|
|
42428
|
+
jspb.Message.getWrapperField(this, proto.zaber.motion.protobufs.TranslatorDefinition, 1));
|
|
42429
|
+
};
|
|
42430
|
+
|
|
42431
|
+
|
|
42432
|
+
/**
|
|
42433
|
+
* @param {?proto.zaber.motion.protobufs.TranslatorDefinition|undefined} value
|
|
42434
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorCreateRequest} returns this
|
|
42435
|
+
*/
|
|
42436
|
+
proto.zaber.motion.protobufs.TranslatorCreateRequest.prototype.setDefinition = function(value) {
|
|
42437
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
42438
|
+
};
|
|
42439
|
+
|
|
42440
|
+
|
|
42441
|
+
/**
|
|
42442
|
+
* Clears the message field making it undefined.
|
|
42443
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorCreateRequest} returns this
|
|
42444
|
+
*/
|
|
42445
|
+
proto.zaber.motion.protobufs.TranslatorCreateRequest.prototype.clearDefinition = function() {
|
|
42446
|
+
return this.setDefinition(undefined);
|
|
42447
|
+
};
|
|
42448
|
+
|
|
42449
|
+
|
|
42450
|
+
/**
|
|
42451
|
+
* Returns whether this field is set.
|
|
42452
|
+
* @return {boolean}
|
|
42453
|
+
*/
|
|
42454
|
+
proto.zaber.motion.protobufs.TranslatorCreateRequest.prototype.hasDefinition = function() {
|
|
42455
|
+
return jspb.Message.getField(this, 1) != null;
|
|
42456
|
+
};
|
|
42457
|
+
|
|
42458
|
+
|
|
42459
|
+
/**
|
|
42460
|
+
* optional TranslatorConfig config = 2;
|
|
42461
|
+
* @return {?proto.zaber.motion.protobufs.TranslatorConfig}
|
|
42462
|
+
*/
|
|
42463
|
+
proto.zaber.motion.protobufs.TranslatorCreateRequest.prototype.getConfig = function() {
|
|
42464
|
+
return /** @type{?proto.zaber.motion.protobufs.TranslatorConfig} */ (
|
|
42465
|
+
jspb.Message.getWrapperField(this, proto.zaber.motion.protobufs.TranslatorConfig, 2));
|
|
42466
|
+
};
|
|
42467
|
+
|
|
42468
|
+
|
|
42469
|
+
/**
|
|
42470
|
+
* @param {?proto.zaber.motion.protobufs.TranslatorConfig|undefined} value
|
|
42471
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorCreateRequest} returns this
|
|
42472
|
+
*/
|
|
42473
|
+
proto.zaber.motion.protobufs.TranslatorCreateRequest.prototype.setConfig = function(value) {
|
|
42474
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
42475
|
+
};
|
|
42476
|
+
|
|
42477
|
+
|
|
42478
|
+
/**
|
|
42479
|
+
* Clears the message field making it undefined.
|
|
42480
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorCreateRequest} returns this
|
|
42481
|
+
*/
|
|
42482
|
+
proto.zaber.motion.protobufs.TranslatorCreateRequest.prototype.clearConfig = function() {
|
|
42483
|
+
return this.setConfig(undefined);
|
|
42484
|
+
};
|
|
42485
|
+
|
|
42486
|
+
|
|
42487
|
+
/**
|
|
42488
|
+
* Returns whether this field is set.
|
|
42489
|
+
* @return {boolean}
|
|
42490
|
+
*/
|
|
42491
|
+
proto.zaber.motion.protobufs.TranslatorCreateRequest.prototype.hasConfig = function() {
|
|
42492
|
+
return jspb.Message.getField(this, 2) != null;
|
|
42493
|
+
};
|
|
42494
|
+
|
|
42495
|
+
|
|
42496
|
+
|
|
42497
|
+
|
|
42498
|
+
|
|
42499
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
42500
|
+
/**
|
|
42501
|
+
* Creates an object representation of this proto.
|
|
42502
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
42503
|
+
* Optional fields that are not set will be set to undefined.
|
|
42504
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
42505
|
+
* For the list of reserved names please see:
|
|
42506
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
42507
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
42508
|
+
* JSPB instance for transitional soy proto support:
|
|
42509
|
+
* http://goto/soy-param-migration
|
|
42510
|
+
* @return {!Object}
|
|
42511
|
+
*/
|
|
42512
|
+
proto.zaber.motion.protobufs.TranslatorCreateResponse.prototype.toObject = function(opt_includeInstance) {
|
|
42513
|
+
return proto.zaber.motion.protobufs.TranslatorCreateResponse.toObject(opt_includeInstance, this);
|
|
42514
|
+
};
|
|
42515
|
+
|
|
42516
|
+
|
|
42517
|
+
/**
|
|
42518
|
+
* Static version of the {@see toObject} method.
|
|
42519
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
42520
|
+
* the JSPB instance for transitional soy proto support:
|
|
42521
|
+
* http://goto/soy-param-migration
|
|
42522
|
+
* @param {!proto.zaber.motion.protobufs.TranslatorCreateResponse} msg The msg instance to transform.
|
|
42523
|
+
* @return {!Object}
|
|
42524
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
42525
|
+
*/
|
|
42526
|
+
proto.zaber.motion.protobufs.TranslatorCreateResponse.toObject = function(includeInstance, msg) {
|
|
42527
|
+
var f, obj = {
|
|
42528
|
+
translatorId: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
42529
|
+
};
|
|
42530
|
+
|
|
42531
|
+
if (includeInstance) {
|
|
42532
|
+
obj.$jspbMessageInstance = msg;
|
|
42533
|
+
}
|
|
42534
|
+
return obj;
|
|
42535
|
+
};
|
|
42536
|
+
}
|
|
42537
|
+
|
|
42538
|
+
|
|
42539
|
+
/**
|
|
42540
|
+
* Deserializes binary data (in protobuf wire format).
|
|
42541
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
42542
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorCreateResponse}
|
|
42543
|
+
*/
|
|
42544
|
+
proto.zaber.motion.protobufs.TranslatorCreateResponse.deserializeBinary = function(bytes) {
|
|
42545
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
42546
|
+
var msg = new proto.zaber.motion.protobufs.TranslatorCreateResponse;
|
|
42547
|
+
return proto.zaber.motion.protobufs.TranslatorCreateResponse.deserializeBinaryFromReader(msg, reader);
|
|
42548
|
+
};
|
|
42549
|
+
|
|
42550
|
+
|
|
42551
|
+
/**
|
|
42552
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
42553
|
+
* given reader into the given message object.
|
|
42554
|
+
* @param {!proto.zaber.motion.protobufs.TranslatorCreateResponse} msg The message object to deserialize into.
|
|
42555
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
42556
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorCreateResponse}
|
|
42557
|
+
*/
|
|
42558
|
+
proto.zaber.motion.protobufs.TranslatorCreateResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
42559
|
+
while (reader.nextField()) {
|
|
42560
|
+
if (reader.isEndGroup()) {
|
|
42561
|
+
break;
|
|
42562
|
+
}
|
|
42563
|
+
var field = reader.getFieldNumber();
|
|
42564
|
+
switch (field) {
|
|
42565
|
+
case 1:
|
|
42566
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
42567
|
+
msg.setTranslatorId(value);
|
|
42568
|
+
break;
|
|
42569
|
+
default:
|
|
42570
|
+
reader.skipField();
|
|
42571
|
+
break;
|
|
42572
|
+
}
|
|
42573
|
+
}
|
|
42574
|
+
return msg;
|
|
42575
|
+
};
|
|
42576
|
+
|
|
42577
|
+
|
|
42578
|
+
/**
|
|
42579
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
42580
|
+
* @return {!Uint8Array}
|
|
42581
|
+
*/
|
|
42582
|
+
proto.zaber.motion.protobufs.TranslatorCreateResponse.prototype.serializeBinary = function() {
|
|
42583
|
+
var writer = new jspb.BinaryWriter();
|
|
42584
|
+
proto.zaber.motion.protobufs.TranslatorCreateResponse.serializeBinaryToWriter(this, writer);
|
|
42585
|
+
return writer.getResultBuffer();
|
|
42586
|
+
};
|
|
42587
|
+
|
|
42588
|
+
|
|
42589
|
+
/**
|
|
42590
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
42591
|
+
* format), writing to the given BinaryWriter.
|
|
42592
|
+
* @param {!proto.zaber.motion.protobufs.TranslatorCreateResponse} message
|
|
42593
|
+
* @param {!jspb.BinaryWriter} writer
|
|
42594
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
42595
|
+
*/
|
|
42596
|
+
proto.zaber.motion.protobufs.TranslatorCreateResponse.serializeBinaryToWriter = function(message, writer) {
|
|
42597
|
+
var f = undefined;
|
|
42598
|
+
f = message.getTranslatorId();
|
|
42599
|
+
if (f !== 0) {
|
|
42600
|
+
writer.writeInt32(
|
|
42601
|
+
1,
|
|
42602
|
+
f
|
|
42603
|
+
);
|
|
42604
|
+
}
|
|
42605
|
+
};
|
|
42606
|
+
|
|
42607
|
+
|
|
42608
|
+
/**
|
|
42609
|
+
* optional int32 translator_id = 1;
|
|
42610
|
+
* @return {number}
|
|
42611
|
+
*/
|
|
42612
|
+
proto.zaber.motion.protobufs.TranslatorCreateResponse.prototype.getTranslatorId = function() {
|
|
42613
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
42614
|
+
};
|
|
42615
|
+
|
|
42616
|
+
|
|
42617
|
+
/**
|
|
42618
|
+
* @param {number} value
|
|
42619
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorCreateResponse} returns this
|
|
42620
|
+
*/
|
|
42621
|
+
proto.zaber.motion.protobufs.TranslatorCreateResponse.prototype.setTranslatorId = function(value) {
|
|
42622
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
42623
|
+
};
|
|
42624
|
+
|
|
42625
|
+
|
|
42626
|
+
|
|
42627
|
+
|
|
42628
|
+
|
|
42629
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
42630
|
+
/**
|
|
42631
|
+
* Creates an object representation of this proto.
|
|
42632
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
42633
|
+
* Optional fields that are not set will be set to undefined.
|
|
42634
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
42635
|
+
* For the list of reserved names please see:
|
|
42636
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
42637
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
42638
|
+
* JSPB instance for transitional soy proto support:
|
|
42639
|
+
* http://goto/soy-param-migration
|
|
42640
|
+
* @return {!Object}
|
|
42641
|
+
*/
|
|
42642
|
+
proto.zaber.motion.protobufs.TranslatorAxisDefinition.prototype.toObject = function(opt_includeInstance) {
|
|
42643
|
+
return proto.zaber.motion.protobufs.TranslatorAxisDefinition.toObject(opt_includeInstance, this);
|
|
42644
|
+
};
|
|
42645
|
+
|
|
42646
|
+
|
|
42647
|
+
/**
|
|
42648
|
+
* Static version of the {@see toObject} method.
|
|
42649
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
42650
|
+
* the JSPB instance for transitional soy proto support:
|
|
42651
|
+
* http://goto/soy-param-migration
|
|
42652
|
+
* @param {!proto.zaber.motion.protobufs.TranslatorAxisDefinition} msg The msg instance to transform.
|
|
42653
|
+
* @return {!Object}
|
|
42654
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
42655
|
+
*/
|
|
42656
|
+
proto.zaber.motion.protobufs.TranslatorAxisDefinition.toObject = function(includeInstance, msg) {
|
|
42657
|
+
var f, obj = {
|
|
42658
|
+
axisLetter: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
42659
|
+
peripheralId: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
42660
|
+
microstepResolution: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
42661
|
+
};
|
|
42662
|
+
|
|
42663
|
+
if (includeInstance) {
|
|
42664
|
+
obj.$jspbMessageInstance = msg;
|
|
42665
|
+
}
|
|
42666
|
+
return obj;
|
|
42667
|
+
};
|
|
42668
|
+
}
|
|
42669
|
+
|
|
42670
|
+
|
|
42671
|
+
/**
|
|
42672
|
+
* Deserializes binary data (in protobuf wire format).
|
|
42673
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
42674
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorAxisDefinition}
|
|
42675
|
+
*/
|
|
42676
|
+
proto.zaber.motion.protobufs.TranslatorAxisDefinition.deserializeBinary = function(bytes) {
|
|
42677
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
42678
|
+
var msg = new proto.zaber.motion.protobufs.TranslatorAxisDefinition;
|
|
42679
|
+
return proto.zaber.motion.protobufs.TranslatorAxisDefinition.deserializeBinaryFromReader(msg, reader);
|
|
42680
|
+
};
|
|
42681
|
+
|
|
42682
|
+
|
|
42683
|
+
/**
|
|
42684
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
42685
|
+
* given reader into the given message object.
|
|
42686
|
+
* @param {!proto.zaber.motion.protobufs.TranslatorAxisDefinition} msg The message object to deserialize into.
|
|
42687
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
42688
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorAxisDefinition}
|
|
42689
|
+
*/
|
|
42690
|
+
proto.zaber.motion.protobufs.TranslatorAxisDefinition.deserializeBinaryFromReader = function(msg, reader) {
|
|
42691
|
+
while (reader.nextField()) {
|
|
42692
|
+
if (reader.isEndGroup()) {
|
|
42693
|
+
break;
|
|
42694
|
+
}
|
|
42695
|
+
var field = reader.getFieldNumber();
|
|
42696
|
+
switch (field) {
|
|
42697
|
+
case 1:
|
|
42698
|
+
var value = /** @type {string} */ (reader.readString());
|
|
42699
|
+
msg.setAxisLetter(value);
|
|
42700
|
+
break;
|
|
42701
|
+
case 2:
|
|
42702
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
42703
|
+
msg.setPeripheralId(value);
|
|
42704
|
+
break;
|
|
42705
|
+
case 3:
|
|
42706
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
42707
|
+
msg.setMicrostepResolution(value);
|
|
42708
|
+
break;
|
|
42709
|
+
default:
|
|
42710
|
+
reader.skipField();
|
|
42711
|
+
break;
|
|
42712
|
+
}
|
|
42713
|
+
}
|
|
42714
|
+
return msg;
|
|
42715
|
+
};
|
|
42716
|
+
|
|
42717
|
+
|
|
42718
|
+
/**
|
|
42719
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
42720
|
+
* @return {!Uint8Array}
|
|
42721
|
+
*/
|
|
42722
|
+
proto.zaber.motion.protobufs.TranslatorAxisDefinition.prototype.serializeBinary = function() {
|
|
42723
|
+
var writer = new jspb.BinaryWriter();
|
|
42724
|
+
proto.zaber.motion.protobufs.TranslatorAxisDefinition.serializeBinaryToWriter(this, writer);
|
|
42725
|
+
return writer.getResultBuffer();
|
|
42726
|
+
};
|
|
42727
|
+
|
|
42728
|
+
|
|
42729
|
+
/**
|
|
42730
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
42731
|
+
* format), writing to the given BinaryWriter.
|
|
42732
|
+
* @param {!proto.zaber.motion.protobufs.TranslatorAxisDefinition} message
|
|
42733
|
+
* @param {!jspb.BinaryWriter} writer
|
|
42734
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
42735
|
+
*/
|
|
42736
|
+
proto.zaber.motion.protobufs.TranslatorAxisDefinition.serializeBinaryToWriter = function(message, writer) {
|
|
42737
|
+
var f = undefined;
|
|
42738
|
+
f = message.getAxisLetter();
|
|
42739
|
+
if (f.length > 0) {
|
|
42740
|
+
writer.writeString(
|
|
42741
|
+
1,
|
|
42742
|
+
f
|
|
42743
|
+
);
|
|
42744
|
+
}
|
|
42745
|
+
f = message.getPeripheralId();
|
|
42746
|
+
if (f !== 0) {
|
|
42747
|
+
writer.writeInt32(
|
|
42748
|
+
2,
|
|
42749
|
+
f
|
|
42750
|
+
);
|
|
42751
|
+
}
|
|
42752
|
+
f = message.getMicrostepResolution();
|
|
42753
|
+
if (f !== 0) {
|
|
42754
|
+
writer.writeInt32(
|
|
42755
|
+
3,
|
|
42756
|
+
f
|
|
42757
|
+
);
|
|
42758
|
+
}
|
|
42759
|
+
};
|
|
42760
|
+
|
|
42761
|
+
|
|
42762
|
+
/**
|
|
42763
|
+
* optional string axis_letter = 1;
|
|
42764
|
+
* @return {string}
|
|
42765
|
+
*/
|
|
42766
|
+
proto.zaber.motion.protobufs.TranslatorAxisDefinition.prototype.getAxisLetter = function() {
|
|
42767
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
42768
|
+
};
|
|
42769
|
+
|
|
42770
|
+
|
|
42771
|
+
/**
|
|
42772
|
+
* @param {string} value
|
|
42773
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorAxisDefinition} returns this
|
|
42774
|
+
*/
|
|
42775
|
+
proto.zaber.motion.protobufs.TranslatorAxisDefinition.prototype.setAxisLetter = function(value) {
|
|
42776
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
42777
|
+
};
|
|
42778
|
+
|
|
42779
|
+
|
|
42780
|
+
/**
|
|
42781
|
+
* optional int32 peripheral_id = 2;
|
|
42782
|
+
* @return {number}
|
|
42783
|
+
*/
|
|
42784
|
+
proto.zaber.motion.protobufs.TranslatorAxisDefinition.prototype.getPeripheralId = function() {
|
|
42785
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
42786
|
+
};
|
|
42787
|
+
|
|
42788
|
+
|
|
42789
|
+
/**
|
|
42790
|
+
* @param {number} value
|
|
42791
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorAxisDefinition} returns this
|
|
42792
|
+
*/
|
|
42793
|
+
proto.zaber.motion.protobufs.TranslatorAxisDefinition.prototype.setPeripheralId = function(value) {
|
|
42794
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
42795
|
+
};
|
|
42796
|
+
|
|
42797
|
+
|
|
42798
|
+
/**
|
|
42799
|
+
* optional int32 microstep_resolution = 3;
|
|
42800
|
+
* @return {number}
|
|
42801
|
+
*/
|
|
42802
|
+
proto.zaber.motion.protobufs.TranslatorAxisDefinition.prototype.getMicrostepResolution = function() {
|
|
42803
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
42804
|
+
};
|
|
42805
|
+
|
|
42806
|
+
|
|
42807
|
+
/**
|
|
42808
|
+
* @param {number} value
|
|
42809
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorAxisDefinition} returns this
|
|
42810
|
+
*/
|
|
42811
|
+
proto.zaber.motion.protobufs.TranslatorAxisDefinition.prototype.setMicrostepResolution = function(value) {
|
|
42812
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
42813
|
+
};
|
|
42814
|
+
|
|
42815
|
+
|
|
42816
|
+
|
|
42817
|
+
/**
|
|
42818
|
+
* List of repeated fields within this message type.
|
|
42819
|
+
* @private {!Array<number>}
|
|
42820
|
+
* @const
|
|
42821
|
+
*/
|
|
42822
|
+
proto.zaber.motion.protobufs.TranslatorDefinition.repeatedFields_ = [2];
|
|
42823
|
+
|
|
42824
|
+
|
|
42825
|
+
|
|
42826
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
42827
|
+
/**
|
|
42828
|
+
* Creates an object representation of this proto.
|
|
42829
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
42830
|
+
* Optional fields that are not set will be set to undefined.
|
|
42831
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
42832
|
+
* For the list of reserved names please see:
|
|
42833
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
42834
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
42835
|
+
* JSPB instance for transitional soy proto support:
|
|
42836
|
+
* http://goto/soy-param-migration
|
|
42837
|
+
* @return {!Object}
|
|
42838
|
+
*/
|
|
42839
|
+
proto.zaber.motion.protobufs.TranslatorDefinition.prototype.toObject = function(opt_includeInstance) {
|
|
42840
|
+
return proto.zaber.motion.protobufs.TranslatorDefinition.toObject(opt_includeInstance, this);
|
|
42841
|
+
};
|
|
42842
|
+
|
|
42843
|
+
|
|
42844
|
+
/**
|
|
42845
|
+
* Static version of the {@see toObject} method.
|
|
42846
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
42847
|
+
* the JSPB instance for transitional soy proto support:
|
|
42848
|
+
* http://goto/soy-param-migration
|
|
42849
|
+
* @param {!proto.zaber.motion.protobufs.TranslatorDefinition} msg The msg instance to transform.
|
|
42850
|
+
* @return {!Object}
|
|
42851
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
42852
|
+
*/
|
|
42853
|
+
proto.zaber.motion.protobufs.TranslatorDefinition.toObject = function(includeInstance, msg) {
|
|
42854
|
+
var f, obj = {
|
|
42855
|
+
deviceId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
42856
|
+
axesList: jspb.Message.toObjectList(msg.getAxesList(),
|
|
42857
|
+
proto.zaber.motion.protobufs.TranslatorAxisDefinition.toObject, includeInstance)
|
|
42858
|
+
};
|
|
42859
|
+
|
|
42860
|
+
if (includeInstance) {
|
|
42861
|
+
obj.$jspbMessageInstance = msg;
|
|
42862
|
+
}
|
|
42863
|
+
return obj;
|
|
42864
|
+
};
|
|
42865
|
+
}
|
|
42866
|
+
|
|
42867
|
+
|
|
42868
|
+
/**
|
|
42869
|
+
* Deserializes binary data (in protobuf wire format).
|
|
42870
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
42871
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorDefinition}
|
|
42872
|
+
*/
|
|
42873
|
+
proto.zaber.motion.protobufs.TranslatorDefinition.deserializeBinary = function(bytes) {
|
|
42874
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
42875
|
+
var msg = new proto.zaber.motion.protobufs.TranslatorDefinition;
|
|
42876
|
+
return proto.zaber.motion.protobufs.TranslatorDefinition.deserializeBinaryFromReader(msg, reader);
|
|
42877
|
+
};
|
|
42878
|
+
|
|
42879
|
+
|
|
42880
|
+
/**
|
|
42881
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
42882
|
+
* given reader into the given message object.
|
|
42883
|
+
* @param {!proto.zaber.motion.protobufs.TranslatorDefinition} msg The message object to deserialize into.
|
|
42884
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
42885
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorDefinition}
|
|
42886
|
+
*/
|
|
42887
|
+
proto.zaber.motion.protobufs.TranslatorDefinition.deserializeBinaryFromReader = function(msg, reader) {
|
|
42888
|
+
while (reader.nextField()) {
|
|
42889
|
+
if (reader.isEndGroup()) {
|
|
42890
|
+
break;
|
|
42891
|
+
}
|
|
42892
|
+
var field = reader.getFieldNumber();
|
|
42893
|
+
switch (field) {
|
|
42894
|
+
case 1:
|
|
42895
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
42896
|
+
msg.setDeviceId(value);
|
|
42897
|
+
break;
|
|
42898
|
+
case 2:
|
|
42899
|
+
var value = new proto.zaber.motion.protobufs.TranslatorAxisDefinition;
|
|
42900
|
+
reader.readMessage(value,proto.zaber.motion.protobufs.TranslatorAxisDefinition.deserializeBinaryFromReader);
|
|
42901
|
+
msg.addAxes(value);
|
|
42902
|
+
break;
|
|
42903
|
+
default:
|
|
42904
|
+
reader.skipField();
|
|
42905
|
+
break;
|
|
42906
|
+
}
|
|
42907
|
+
}
|
|
42908
|
+
return msg;
|
|
42909
|
+
};
|
|
42910
|
+
|
|
42911
|
+
|
|
42912
|
+
/**
|
|
42913
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
42914
|
+
* @return {!Uint8Array}
|
|
42915
|
+
*/
|
|
42916
|
+
proto.zaber.motion.protobufs.TranslatorDefinition.prototype.serializeBinary = function() {
|
|
42917
|
+
var writer = new jspb.BinaryWriter();
|
|
42918
|
+
proto.zaber.motion.protobufs.TranslatorDefinition.serializeBinaryToWriter(this, writer);
|
|
42919
|
+
return writer.getResultBuffer();
|
|
42920
|
+
};
|
|
42921
|
+
|
|
42922
|
+
|
|
42923
|
+
/**
|
|
42924
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
42925
|
+
* format), writing to the given BinaryWriter.
|
|
42926
|
+
* @param {!proto.zaber.motion.protobufs.TranslatorDefinition} message
|
|
42927
|
+
* @param {!jspb.BinaryWriter} writer
|
|
42928
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
42929
|
+
*/
|
|
42930
|
+
proto.zaber.motion.protobufs.TranslatorDefinition.serializeBinaryToWriter = function(message, writer) {
|
|
42931
|
+
var f = undefined;
|
|
42932
|
+
f = message.getDeviceId();
|
|
42933
|
+
if (f !== 0) {
|
|
42934
|
+
writer.writeInt32(
|
|
42935
|
+
1,
|
|
42936
|
+
f
|
|
42937
|
+
);
|
|
42938
|
+
}
|
|
42939
|
+
f = message.getAxesList();
|
|
42940
|
+
if (f.length > 0) {
|
|
42941
|
+
writer.writeRepeatedMessage(
|
|
42942
|
+
2,
|
|
42943
|
+
f,
|
|
42944
|
+
proto.zaber.motion.protobufs.TranslatorAxisDefinition.serializeBinaryToWriter
|
|
42945
|
+
);
|
|
42946
|
+
}
|
|
42947
|
+
};
|
|
42948
|
+
|
|
42949
|
+
|
|
42950
|
+
/**
|
|
42951
|
+
* optional int32 device_id = 1;
|
|
42952
|
+
* @return {number}
|
|
42953
|
+
*/
|
|
42954
|
+
proto.zaber.motion.protobufs.TranslatorDefinition.prototype.getDeviceId = function() {
|
|
42955
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
42956
|
+
};
|
|
42957
|
+
|
|
42958
|
+
|
|
42959
|
+
/**
|
|
42960
|
+
* @param {number} value
|
|
42961
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorDefinition} returns this
|
|
42962
|
+
*/
|
|
42963
|
+
proto.zaber.motion.protobufs.TranslatorDefinition.prototype.setDeviceId = function(value) {
|
|
42964
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
42965
|
+
};
|
|
42966
|
+
|
|
42967
|
+
|
|
42968
|
+
/**
|
|
42969
|
+
* repeated TranslatorAxisDefinition axes = 2;
|
|
42970
|
+
* @return {!Array<!proto.zaber.motion.protobufs.TranslatorAxisDefinition>}
|
|
42971
|
+
*/
|
|
42972
|
+
proto.zaber.motion.protobufs.TranslatorDefinition.prototype.getAxesList = function() {
|
|
42973
|
+
return /** @type{!Array<!proto.zaber.motion.protobufs.TranslatorAxisDefinition>} */ (
|
|
42974
|
+
jspb.Message.getRepeatedWrapperField(this, proto.zaber.motion.protobufs.TranslatorAxisDefinition, 2));
|
|
42975
|
+
};
|
|
42976
|
+
|
|
42977
|
+
|
|
42978
|
+
/**
|
|
42979
|
+
* @param {!Array<!proto.zaber.motion.protobufs.TranslatorAxisDefinition>} value
|
|
42980
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorDefinition} returns this
|
|
42981
|
+
*/
|
|
42982
|
+
proto.zaber.motion.protobufs.TranslatorDefinition.prototype.setAxesList = function(value) {
|
|
42983
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
42984
|
+
};
|
|
42985
|
+
|
|
42986
|
+
|
|
42987
|
+
/**
|
|
42988
|
+
* @param {!proto.zaber.motion.protobufs.TranslatorAxisDefinition=} opt_value
|
|
42989
|
+
* @param {number=} opt_index
|
|
42990
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorAxisDefinition}
|
|
42991
|
+
*/
|
|
42992
|
+
proto.zaber.motion.protobufs.TranslatorDefinition.prototype.addAxes = function(opt_value, opt_index) {
|
|
42993
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.zaber.motion.protobufs.TranslatorAxisDefinition, opt_index);
|
|
42994
|
+
};
|
|
42995
|
+
|
|
42996
|
+
|
|
42997
|
+
/**
|
|
42998
|
+
* Clears the list making it empty but non-null.
|
|
42999
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorDefinition} returns this
|
|
43000
|
+
*/
|
|
43001
|
+
proto.zaber.motion.protobufs.TranslatorDefinition.prototype.clearAxesList = function() {
|
|
43002
|
+
return this.setAxesList([]);
|
|
43003
|
+
};
|
|
43004
|
+
|
|
43005
|
+
|
|
43006
|
+
|
|
43007
|
+
/**
|
|
43008
|
+
* List of repeated fields within this message type.
|
|
43009
|
+
* @private {!Array<number>}
|
|
43010
|
+
* @const
|
|
43011
|
+
*/
|
|
43012
|
+
proto.zaber.motion.protobufs.TranslatorConfig.repeatedFields_ = [2];
|
|
43013
|
+
|
|
43014
|
+
|
|
43015
|
+
|
|
43016
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
43017
|
+
/**
|
|
43018
|
+
* Creates an object representation of this proto.
|
|
43019
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
43020
|
+
* Optional fields that are not set will be set to undefined.
|
|
43021
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
43022
|
+
* For the list of reserved names please see:
|
|
43023
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
43024
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
43025
|
+
* JSPB instance for transitional soy proto support:
|
|
43026
|
+
* http://goto/soy-param-migration
|
|
43027
|
+
* @return {!Object}
|
|
43028
|
+
*/
|
|
43029
|
+
proto.zaber.motion.protobufs.TranslatorConfig.prototype.toObject = function(opt_includeInstance) {
|
|
43030
|
+
return proto.zaber.motion.protobufs.TranslatorConfig.toObject(opt_includeInstance, this);
|
|
43031
|
+
};
|
|
43032
|
+
|
|
43033
|
+
|
|
43034
|
+
/**
|
|
43035
|
+
* Static version of the {@see toObject} method.
|
|
43036
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
43037
|
+
* the JSPB instance for transitional soy proto support:
|
|
43038
|
+
* http://goto/soy-param-migration
|
|
43039
|
+
* @param {!proto.zaber.motion.protobufs.TranslatorConfig} msg The msg instance to transform.
|
|
43040
|
+
* @return {!Object}
|
|
43041
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
43042
|
+
*/
|
|
43043
|
+
proto.zaber.motion.protobufs.TranslatorConfig.toObject = function(includeInstance, msg) {
|
|
43044
|
+
var f, obj = {
|
|
43045
|
+
traverseRate: (f = msg.getTraverseRate()) && proto.zaber.motion.protobufs.Measurement.toObject(includeInstance, f),
|
|
43046
|
+
axesMappingList: jspb.Message.toObjectList(msg.getAxesMappingList(),
|
|
43047
|
+
proto.zaber.motion.protobufs.TranslatorAxisMapping.toObject, includeInstance)
|
|
43048
|
+
};
|
|
43049
|
+
|
|
43050
|
+
if (includeInstance) {
|
|
43051
|
+
obj.$jspbMessageInstance = msg;
|
|
43052
|
+
}
|
|
43053
|
+
return obj;
|
|
43054
|
+
};
|
|
43055
|
+
}
|
|
43056
|
+
|
|
43057
|
+
|
|
43058
|
+
/**
|
|
43059
|
+
* Deserializes binary data (in protobuf wire format).
|
|
43060
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
43061
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorConfig}
|
|
43062
|
+
*/
|
|
43063
|
+
proto.zaber.motion.protobufs.TranslatorConfig.deserializeBinary = function(bytes) {
|
|
43064
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
43065
|
+
var msg = new proto.zaber.motion.protobufs.TranslatorConfig;
|
|
43066
|
+
return proto.zaber.motion.protobufs.TranslatorConfig.deserializeBinaryFromReader(msg, reader);
|
|
43067
|
+
};
|
|
43068
|
+
|
|
43069
|
+
|
|
43070
|
+
/**
|
|
43071
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
43072
|
+
* given reader into the given message object.
|
|
43073
|
+
* @param {!proto.zaber.motion.protobufs.TranslatorConfig} msg The message object to deserialize into.
|
|
43074
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
43075
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorConfig}
|
|
43076
|
+
*/
|
|
43077
|
+
proto.zaber.motion.protobufs.TranslatorConfig.deserializeBinaryFromReader = function(msg, reader) {
|
|
43078
|
+
while (reader.nextField()) {
|
|
43079
|
+
if (reader.isEndGroup()) {
|
|
43080
|
+
break;
|
|
43081
|
+
}
|
|
43082
|
+
var field = reader.getFieldNumber();
|
|
43083
|
+
switch (field) {
|
|
43084
|
+
case 1:
|
|
43085
|
+
var value = new proto.zaber.motion.protobufs.Measurement;
|
|
43086
|
+
reader.readMessage(value,proto.zaber.motion.protobufs.Measurement.deserializeBinaryFromReader);
|
|
43087
|
+
msg.setTraverseRate(value);
|
|
43088
|
+
break;
|
|
43089
|
+
case 2:
|
|
43090
|
+
var value = new proto.zaber.motion.protobufs.TranslatorAxisMapping;
|
|
43091
|
+
reader.readMessage(value,proto.zaber.motion.protobufs.TranslatorAxisMapping.deserializeBinaryFromReader);
|
|
43092
|
+
msg.addAxesMapping(value);
|
|
43093
|
+
break;
|
|
43094
|
+
default:
|
|
43095
|
+
reader.skipField();
|
|
43096
|
+
break;
|
|
43097
|
+
}
|
|
43098
|
+
}
|
|
43099
|
+
return msg;
|
|
43100
|
+
};
|
|
43101
|
+
|
|
43102
|
+
|
|
43103
|
+
/**
|
|
43104
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
43105
|
+
* @return {!Uint8Array}
|
|
43106
|
+
*/
|
|
43107
|
+
proto.zaber.motion.protobufs.TranslatorConfig.prototype.serializeBinary = function() {
|
|
43108
|
+
var writer = new jspb.BinaryWriter();
|
|
43109
|
+
proto.zaber.motion.protobufs.TranslatorConfig.serializeBinaryToWriter(this, writer);
|
|
43110
|
+
return writer.getResultBuffer();
|
|
43111
|
+
};
|
|
43112
|
+
|
|
43113
|
+
|
|
43114
|
+
/**
|
|
43115
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
43116
|
+
* format), writing to the given BinaryWriter.
|
|
43117
|
+
* @param {!proto.zaber.motion.protobufs.TranslatorConfig} message
|
|
43118
|
+
* @param {!jspb.BinaryWriter} writer
|
|
43119
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
43120
|
+
*/
|
|
43121
|
+
proto.zaber.motion.protobufs.TranslatorConfig.serializeBinaryToWriter = function(message, writer) {
|
|
43122
|
+
var f = undefined;
|
|
43123
|
+
f = message.getTraverseRate();
|
|
43124
|
+
if (f != null) {
|
|
43125
|
+
writer.writeMessage(
|
|
43126
|
+
1,
|
|
43127
|
+
f,
|
|
43128
|
+
proto.zaber.motion.protobufs.Measurement.serializeBinaryToWriter
|
|
43129
|
+
);
|
|
43130
|
+
}
|
|
43131
|
+
f = message.getAxesMappingList();
|
|
43132
|
+
if (f.length > 0) {
|
|
43133
|
+
writer.writeRepeatedMessage(
|
|
43134
|
+
2,
|
|
43135
|
+
f,
|
|
43136
|
+
proto.zaber.motion.protobufs.TranslatorAxisMapping.serializeBinaryToWriter
|
|
43137
|
+
);
|
|
43138
|
+
}
|
|
43139
|
+
};
|
|
43140
|
+
|
|
43141
|
+
|
|
43142
|
+
/**
|
|
43143
|
+
* optional Measurement traverse_rate = 1;
|
|
43144
|
+
* @return {?proto.zaber.motion.protobufs.Measurement}
|
|
43145
|
+
*/
|
|
43146
|
+
proto.zaber.motion.protobufs.TranslatorConfig.prototype.getTraverseRate = function() {
|
|
43147
|
+
return /** @type{?proto.zaber.motion.protobufs.Measurement} */ (
|
|
43148
|
+
jspb.Message.getWrapperField(this, proto.zaber.motion.protobufs.Measurement, 1));
|
|
43149
|
+
};
|
|
43150
|
+
|
|
43151
|
+
|
|
43152
|
+
/**
|
|
43153
|
+
* @param {?proto.zaber.motion.protobufs.Measurement|undefined} value
|
|
43154
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorConfig} returns this
|
|
43155
|
+
*/
|
|
43156
|
+
proto.zaber.motion.protobufs.TranslatorConfig.prototype.setTraverseRate = function(value) {
|
|
43157
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
43158
|
+
};
|
|
43159
|
+
|
|
43160
|
+
|
|
43161
|
+
/**
|
|
43162
|
+
* Clears the message field making it undefined.
|
|
43163
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorConfig} returns this
|
|
43164
|
+
*/
|
|
43165
|
+
proto.zaber.motion.protobufs.TranslatorConfig.prototype.clearTraverseRate = function() {
|
|
43166
|
+
return this.setTraverseRate(undefined);
|
|
43167
|
+
};
|
|
43168
|
+
|
|
43169
|
+
|
|
43170
|
+
/**
|
|
43171
|
+
* Returns whether this field is set.
|
|
43172
|
+
* @return {boolean}
|
|
43173
|
+
*/
|
|
43174
|
+
proto.zaber.motion.protobufs.TranslatorConfig.prototype.hasTraverseRate = function() {
|
|
43175
|
+
return jspb.Message.getField(this, 1) != null;
|
|
43176
|
+
};
|
|
43177
|
+
|
|
43178
|
+
|
|
43179
|
+
/**
|
|
43180
|
+
* repeated TranslatorAxisMapping axes_mapping = 2;
|
|
43181
|
+
* @return {!Array<!proto.zaber.motion.protobufs.TranslatorAxisMapping>}
|
|
43182
|
+
*/
|
|
43183
|
+
proto.zaber.motion.protobufs.TranslatorConfig.prototype.getAxesMappingList = function() {
|
|
43184
|
+
return /** @type{!Array<!proto.zaber.motion.protobufs.TranslatorAxisMapping>} */ (
|
|
43185
|
+
jspb.Message.getRepeatedWrapperField(this, proto.zaber.motion.protobufs.TranslatorAxisMapping, 2));
|
|
43186
|
+
};
|
|
43187
|
+
|
|
43188
|
+
|
|
43189
|
+
/**
|
|
43190
|
+
* @param {!Array<!proto.zaber.motion.protobufs.TranslatorAxisMapping>} value
|
|
43191
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorConfig} returns this
|
|
43192
|
+
*/
|
|
43193
|
+
proto.zaber.motion.protobufs.TranslatorConfig.prototype.setAxesMappingList = function(value) {
|
|
43194
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
43195
|
+
};
|
|
43196
|
+
|
|
43197
|
+
|
|
43198
|
+
/**
|
|
43199
|
+
* @param {!proto.zaber.motion.protobufs.TranslatorAxisMapping=} opt_value
|
|
43200
|
+
* @param {number=} opt_index
|
|
43201
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorAxisMapping}
|
|
43202
|
+
*/
|
|
43203
|
+
proto.zaber.motion.protobufs.TranslatorConfig.prototype.addAxesMapping = function(opt_value, opt_index) {
|
|
43204
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.zaber.motion.protobufs.TranslatorAxisMapping, opt_index);
|
|
43205
|
+
};
|
|
43206
|
+
|
|
43207
|
+
|
|
43208
|
+
/**
|
|
43209
|
+
* Clears the list making it empty but non-null.
|
|
43210
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorConfig} returns this
|
|
43211
|
+
*/
|
|
43212
|
+
proto.zaber.motion.protobufs.TranslatorConfig.prototype.clearAxesMappingList = function() {
|
|
43213
|
+
return this.setAxesMappingList([]);
|
|
43214
|
+
};
|
|
43215
|
+
|
|
43216
|
+
|
|
43217
|
+
|
|
43218
|
+
|
|
43219
|
+
|
|
43220
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
43221
|
+
/**
|
|
43222
|
+
* Creates an object representation of this proto.
|
|
43223
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
43224
|
+
* Optional fields that are not set will be set to undefined.
|
|
43225
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
43226
|
+
* For the list of reserved names please see:
|
|
43227
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
43228
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
43229
|
+
* JSPB instance for transitional soy proto support:
|
|
43230
|
+
* http://goto/soy-param-migration
|
|
43231
|
+
* @return {!Object}
|
|
43232
|
+
*/
|
|
43233
|
+
proto.zaber.motion.protobufs.TranslatorAxisMapping.prototype.toObject = function(opt_includeInstance) {
|
|
43234
|
+
return proto.zaber.motion.protobufs.TranslatorAxisMapping.toObject(opt_includeInstance, this);
|
|
43235
|
+
};
|
|
43236
|
+
|
|
43237
|
+
|
|
43238
|
+
/**
|
|
43239
|
+
* Static version of the {@see toObject} method.
|
|
43240
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
43241
|
+
* the JSPB instance for transitional soy proto support:
|
|
43242
|
+
* http://goto/soy-param-migration
|
|
43243
|
+
* @param {!proto.zaber.motion.protobufs.TranslatorAxisMapping} msg The msg instance to transform.
|
|
43244
|
+
* @return {!Object}
|
|
43245
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
43246
|
+
*/
|
|
43247
|
+
proto.zaber.motion.protobufs.TranslatorAxisMapping.toObject = function(includeInstance, msg) {
|
|
43248
|
+
var f, obj = {
|
|
43249
|
+
axisLetter: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
43250
|
+
axisIndex: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
43251
|
+
};
|
|
43252
|
+
|
|
43253
|
+
if (includeInstance) {
|
|
43254
|
+
obj.$jspbMessageInstance = msg;
|
|
43255
|
+
}
|
|
43256
|
+
return obj;
|
|
43257
|
+
};
|
|
43258
|
+
}
|
|
43259
|
+
|
|
43260
|
+
|
|
43261
|
+
/**
|
|
43262
|
+
* Deserializes binary data (in protobuf wire format).
|
|
43263
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
43264
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorAxisMapping}
|
|
43265
|
+
*/
|
|
43266
|
+
proto.zaber.motion.protobufs.TranslatorAxisMapping.deserializeBinary = function(bytes) {
|
|
43267
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
43268
|
+
var msg = new proto.zaber.motion.protobufs.TranslatorAxisMapping;
|
|
43269
|
+
return proto.zaber.motion.protobufs.TranslatorAxisMapping.deserializeBinaryFromReader(msg, reader);
|
|
43270
|
+
};
|
|
43271
|
+
|
|
43272
|
+
|
|
43273
|
+
/**
|
|
43274
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
43275
|
+
* given reader into the given message object.
|
|
43276
|
+
* @param {!proto.zaber.motion.protobufs.TranslatorAxisMapping} msg The message object to deserialize into.
|
|
43277
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
43278
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorAxisMapping}
|
|
43279
|
+
*/
|
|
43280
|
+
proto.zaber.motion.protobufs.TranslatorAxisMapping.deserializeBinaryFromReader = function(msg, reader) {
|
|
43281
|
+
while (reader.nextField()) {
|
|
43282
|
+
if (reader.isEndGroup()) {
|
|
43283
|
+
break;
|
|
43284
|
+
}
|
|
43285
|
+
var field = reader.getFieldNumber();
|
|
43286
|
+
switch (field) {
|
|
43287
|
+
case 1:
|
|
43288
|
+
var value = /** @type {string} */ (reader.readString());
|
|
43289
|
+
msg.setAxisLetter(value);
|
|
43290
|
+
break;
|
|
43291
|
+
case 2:
|
|
43292
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
43293
|
+
msg.setAxisIndex(value);
|
|
43294
|
+
break;
|
|
43295
|
+
default:
|
|
43296
|
+
reader.skipField();
|
|
43297
|
+
break;
|
|
43298
|
+
}
|
|
43299
|
+
}
|
|
43300
|
+
return msg;
|
|
43301
|
+
};
|
|
43302
|
+
|
|
43303
|
+
|
|
43304
|
+
/**
|
|
43305
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
43306
|
+
* @return {!Uint8Array}
|
|
43307
|
+
*/
|
|
43308
|
+
proto.zaber.motion.protobufs.TranslatorAxisMapping.prototype.serializeBinary = function() {
|
|
43309
|
+
var writer = new jspb.BinaryWriter();
|
|
43310
|
+
proto.zaber.motion.protobufs.TranslatorAxisMapping.serializeBinaryToWriter(this, writer);
|
|
43311
|
+
return writer.getResultBuffer();
|
|
43312
|
+
};
|
|
43313
|
+
|
|
43314
|
+
|
|
43315
|
+
/**
|
|
43316
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
43317
|
+
* format), writing to the given BinaryWriter.
|
|
43318
|
+
* @param {!proto.zaber.motion.protobufs.TranslatorAxisMapping} message
|
|
43319
|
+
* @param {!jspb.BinaryWriter} writer
|
|
43320
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
43321
|
+
*/
|
|
43322
|
+
proto.zaber.motion.protobufs.TranslatorAxisMapping.serializeBinaryToWriter = function(message, writer) {
|
|
43323
|
+
var f = undefined;
|
|
43324
|
+
f = message.getAxisLetter();
|
|
43325
|
+
if (f.length > 0) {
|
|
43326
|
+
writer.writeString(
|
|
43327
|
+
1,
|
|
43328
|
+
f
|
|
43329
|
+
);
|
|
43330
|
+
}
|
|
43331
|
+
f = message.getAxisIndex();
|
|
43332
|
+
if (f !== 0) {
|
|
43333
|
+
writer.writeInt32(
|
|
43334
|
+
2,
|
|
43335
|
+
f
|
|
43336
|
+
);
|
|
43337
|
+
}
|
|
43338
|
+
};
|
|
43339
|
+
|
|
43340
|
+
|
|
43341
|
+
/**
|
|
43342
|
+
* optional string axis_letter = 1;
|
|
43343
|
+
* @return {string}
|
|
43344
|
+
*/
|
|
43345
|
+
proto.zaber.motion.protobufs.TranslatorAxisMapping.prototype.getAxisLetter = function() {
|
|
43346
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
43347
|
+
};
|
|
43348
|
+
|
|
43349
|
+
|
|
43350
|
+
/**
|
|
43351
|
+
* @param {string} value
|
|
43352
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorAxisMapping} returns this
|
|
43353
|
+
*/
|
|
43354
|
+
proto.zaber.motion.protobufs.TranslatorAxisMapping.prototype.setAxisLetter = function(value) {
|
|
43355
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
43356
|
+
};
|
|
43357
|
+
|
|
43358
|
+
|
|
43359
|
+
/**
|
|
43360
|
+
* optional int32 axis_index = 2;
|
|
43361
|
+
* @return {number}
|
|
43362
|
+
*/
|
|
43363
|
+
proto.zaber.motion.protobufs.TranslatorAxisMapping.prototype.getAxisIndex = function() {
|
|
43364
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
43365
|
+
};
|
|
43366
|
+
|
|
43367
|
+
|
|
43368
|
+
/**
|
|
43369
|
+
* @param {number} value
|
|
43370
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorAxisMapping} returns this
|
|
43371
|
+
*/
|
|
43372
|
+
proto.zaber.motion.protobufs.TranslatorAxisMapping.prototype.setAxisIndex = function(value) {
|
|
43373
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
43374
|
+
};
|
|
43375
|
+
|
|
43376
|
+
|
|
43377
|
+
|
|
43378
|
+
|
|
43379
|
+
|
|
43380
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
43381
|
+
/**
|
|
43382
|
+
* Creates an object representation of this proto.
|
|
43383
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
43384
|
+
* Optional fields that are not set will be set to undefined.
|
|
43385
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
43386
|
+
* For the list of reserved names please see:
|
|
43387
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
43388
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
43389
|
+
* JSPB instance for transitional soy proto support:
|
|
43390
|
+
* http://goto/soy-param-migration
|
|
43391
|
+
* @return {!Object}
|
|
43392
|
+
*/
|
|
43393
|
+
proto.zaber.motion.protobufs.TranslatorTranslateRequest.prototype.toObject = function(opt_includeInstance) {
|
|
43394
|
+
return proto.zaber.motion.protobufs.TranslatorTranslateRequest.toObject(opt_includeInstance, this);
|
|
43395
|
+
};
|
|
43396
|
+
|
|
43397
|
+
|
|
43398
|
+
/**
|
|
43399
|
+
* Static version of the {@see toObject} method.
|
|
43400
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
43401
|
+
* the JSPB instance for transitional soy proto support:
|
|
43402
|
+
* http://goto/soy-param-migration
|
|
43403
|
+
* @param {!proto.zaber.motion.protobufs.TranslatorTranslateRequest} msg The msg instance to transform.
|
|
43404
|
+
* @return {!Object}
|
|
43405
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
43406
|
+
*/
|
|
43407
|
+
proto.zaber.motion.protobufs.TranslatorTranslateRequest.toObject = function(includeInstance, msg) {
|
|
43408
|
+
var f, obj = {
|
|
43409
|
+
translatorId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
43410
|
+
block: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
43411
|
+
};
|
|
43412
|
+
|
|
43413
|
+
if (includeInstance) {
|
|
43414
|
+
obj.$jspbMessageInstance = msg;
|
|
43415
|
+
}
|
|
43416
|
+
return obj;
|
|
43417
|
+
};
|
|
43418
|
+
}
|
|
43419
|
+
|
|
43420
|
+
|
|
43421
|
+
/**
|
|
43422
|
+
* Deserializes binary data (in protobuf wire format).
|
|
43423
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
43424
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorTranslateRequest}
|
|
43425
|
+
*/
|
|
43426
|
+
proto.zaber.motion.protobufs.TranslatorTranslateRequest.deserializeBinary = function(bytes) {
|
|
43427
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
43428
|
+
var msg = new proto.zaber.motion.protobufs.TranslatorTranslateRequest;
|
|
43429
|
+
return proto.zaber.motion.protobufs.TranslatorTranslateRequest.deserializeBinaryFromReader(msg, reader);
|
|
43430
|
+
};
|
|
43431
|
+
|
|
43432
|
+
|
|
43433
|
+
/**
|
|
43434
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
43435
|
+
* given reader into the given message object.
|
|
43436
|
+
* @param {!proto.zaber.motion.protobufs.TranslatorTranslateRequest} msg The message object to deserialize into.
|
|
43437
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
43438
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorTranslateRequest}
|
|
43439
|
+
*/
|
|
43440
|
+
proto.zaber.motion.protobufs.TranslatorTranslateRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
43441
|
+
while (reader.nextField()) {
|
|
43442
|
+
if (reader.isEndGroup()) {
|
|
43443
|
+
break;
|
|
43444
|
+
}
|
|
43445
|
+
var field = reader.getFieldNumber();
|
|
43446
|
+
switch (field) {
|
|
43447
|
+
case 1:
|
|
43448
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
43449
|
+
msg.setTranslatorId(value);
|
|
43450
|
+
break;
|
|
43451
|
+
case 2:
|
|
43452
|
+
var value = /** @type {string} */ (reader.readString());
|
|
43453
|
+
msg.setBlock(value);
|
|
43454
|
+
break;
|
|
43455
|
+
default:
|
|
43456
|
+
reader.skipField();
|
|
43457
|
+
break;
|
|
43458
|
+
}
|
|
43459
|
+
}
|
|
43460
|
+
return msg;
|
|
43461
|
+
};
|
|
43462
|
+
|
|
43463
|
+
|
|
43464
|
+
/**
|
|
43465
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
43466
|
+
* @return {!Uint8Array}
|
|
43467
|
+
*/
|
|
43468
|
+
proto.zaber.motion.protobufs.TranslatorTranslateRequest.prototype.serializeBinary = function() {
|
|
43469
|
+
var writer = new jspb.BinaryWriter();
|
|
43470
|
+
proto.zaber.motion.protobufs.TranslatorTranslateRequest.serializeBinaryToWriter(this, writer);
|
|
43471
|
+
return writer.getResultBuffer();
|
|
43472
|
+
};
|
|
43473
|
+
|
|
43474
|
+
|
|
43475
|
+
/**
|
|
43476
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
43477
|
+
* format), writing to the given BinaryWriter.
|
|
43478
|
+
* @param {!proto.zaber.motion.protobufs.TranslatorTranslateRequest} message
|
|
43479
|
+
* @param {!jspb.BinaryWriter} writer
|
|
43480
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
43481
|
+
*/
|
|
43482
|
+
proto.zaber.motion.protobufs.TranslatorTranslateRequest.serializeBinaryToWriter = function(message, writer) {
|
|
43483
|
+
var f = undefined;
|
|
43484
|
+
f = message.getTranslatorId();
|
|
43485
|
+
if (f !== 0) {
|
|
43486
|
+
writer.writeInt32(
|
|
43487
|
+
1,
|
|
43488
|
+
f
|
|
43489
|
+
);
|
|
43490
|
+
}
|
|
43491
|
+
f = message.getBlock();
|
|
43492
|
+
if (f.length > 0) {
|
|
43493
|
+
writer.writeString(
|
|
43494
|
+
2,
|
|
43495
|
+
f
|
|
43496
|
+
);
|
|
43497
|
+
}
|
|
43498
|
+
};
|
|
43499
|
+
|
|
43500
|
+
|
|
43501
|
+
/**
|
|
43502
|
+
* optional int32 translator_id = 1;
|
|
43503
|
+
* @return {number}
|
|
43504
|
+
*/
|
|
43505
|
+
proto.zaber.motion.protobufs.TranslatorTranslateRequest.prototype.getTranslatorId = function() {
|
|
43506
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
43507
|
+
};
|
|
43508
|
+
|
|
43509
|
+
|
|
43510
|
+
/**
|
|
43511
|
+
* @param {number} value
|
|
43512
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorTranslateRequest} returns this
|
|
43513
|
+
*/
|
|
43514
|
+
proto.zaber.motion.protobufs.TranslatorTranslateRequest.prototype.setTranslatorId = function(value) {
|
|
43515
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
43516
|
+
};
|
|
43517
|
+
|
|
43518
|
+
|
|
43519
|
+
/**
|
|
43520
|
+
* optional string block = 2;
|
|
43521
|
+
* @return {string}
|
|
43522
|
+
*/
|
|
43523
|
+
proto.zaber.motion.protobufs.TranslatorTranslateRequest.prototype.getBlock = function() {
|
|
43524
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
43525
|
+
};
|
|
43526
|
+
|
|
43527
|
+
|
|
43528
|
+
/**
|
|
43529
|
+
* @param {string} value
|
|
43530
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorTranslateRequest} returns this
|
|
43531
|
+
*/
|
|
43532
|
+
proto.zaber.motion.protobufs.TranslatorTranslateRequest.prototype.setBlock = function(value) {
|
|
43533
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
43534
|
+
};
|
|
43535
|
+
|
|
43536
|
+
|
|
43537
|
+
|
|
43538
|
+
|
|
43539
|
+
|
|
43540
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
43541
|
+
/**
|
|
43542
|
+
* Creates an object representation of this proto.
|
|
43543
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
43544
|
+
* Optional fields that are not set will be set to undefined.
|
|
43545
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
43546
|
+
* For the list of reserved names please see:
|
|
43547
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
43548
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
43549
|
+
* JSPB instance for transitional soy proto support:
|
|
43550
|
+
* http://goto/soy-param-migration
|
|
43551
|
+
* @return {!Object}
|
|
43552
|
+
*/
|
|
43553
|
+
proto.zaber.motion.protobufs.TranslateMessage.prototype.toObject = function(opt_includeInstance) {
|
|
43554
|
+
return proto.zaber.motion.protobufs.TranslateMessage.toObject(opt_includeInstance, this);
|
|
43555
|
+
};
|
|
43556
|
+
|
|
43557
|
+
|
|
43558
|
+
/**
|
|
43559
|
+
* Static version of the {@see toObject} method.
|
|
43560
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
43561
|
+
* the JSPB instance for transitional soy proto support:
|
|
43562
|
+
* http://goto/soy-param-migration
|
|
43563
|
+
* @param {!proto.zaber.motion.protobufs.TranslateMessage} msg The msg instance to transform.
|
|
43564
|
+
* @return {!Object}
|
|
43565
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
43566
|
+
*/
|
|
43567
|
+
proto.zaber.motion.protobufs.TranslateMessage.toObject = function(includeInstance, msg) {
|
|
43568
|
+
var f, obj = {
|
|
43569
|
+
message: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
43570
|
+
fromBlock: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
43571
|
+
toBlock: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
43572
|
+
};
|
|
43573
|
+
|
|
43574
|
+
if (includeInstance) {
|
|
43575
|
+
obj.$jspbMessageInstance = msg;
|
|
43576
|
+
}
|
|
43577
|
+
return obj;
|
|
43578
|
+
};
|
|
43579
|
+
}
|
|
43580
|
+
|
|
43581
|
+
|
|
43582
|
+
/**
|
|
43583
|
+
* Deserializes binary data (in protobuf wire format).
|
|
43584
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
43585
|
+
* @return {!proto.zaber.motion.protobufs.TranslateMessage}
|
|
43586
|
+
*/
|
|
43587
|
+
proto.zaber.motion.protobufs.TranslateMessage.deserializeBinary = function(bytes) {
|
|
43588
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
43589
|
+
var msg = new proto.zaber.motion.protobufs.TranslateMessage;
|
|
43590
|
+
return proto.zaber.motion.protobufs.TranslateMessage.deserializeBinaryFromReader(msg, reader);
|
|
43591
|
+
};
|
|
43592
|
+
|
|
43593
|
+
|
|
43594
|
+
/**
|
|
43595
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
43596
|
+
* given reader into the given message object.
|
|
43597
|
+
* @param {!proto.zaber.motion.protobufs.TranslateMessage} msg The message object to deserialize into.
|
|
43598
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
43599
|
+
* @return {!proto.zaber.motion.protobufs.TranslateMessage}
|
|
43600
|
+
*/
|
|
43601
|
+
proto.zaber.motion.protobufs.TranslateMessage.deserializeBinaryFromReader = function(msg, reader) {
|
|
43602
|
+
while (reader.nextField()) {
|
|
43603
|
+
if (reader.isEndGroup()) {
|
|
43604
|
+
break;
|
|
43605
|
+
}
|
|
43606
|
+
var field = reader.getFieldNumber();
|
|
43607
|
+
switch (field) {
|
|
43608
|
+
case 1:
|
|
43609
|
+
var value = /** @type {string} */ (reader.readString());
|
|
43610
|
+
msg.setMessage(value);
|
|
43611
|
+
break;
|
|
43612
|
+
case 2:
|
|
43613
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
43614
|
+
msg.setFromBlock(value);
|
|
43615
|
+
break;
|
|
43616
|
+
case 3:
|
|
43617
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
43618
|
+
msg.setToBlock(value);
|
|
43619
|
+
break;
|
|
43620
|
+
default:
|
|
43621
|
+
reader.skipField();
|
|
43622
|
+
break;
|
|
43623
|
+
}
|
|
43624
|
+
}
|
|
43625
|
+
return msg;
|
|
43626
|
+
};
|
|
43627
|
+
|
|
43628
|
+
|
|
43629
|
+
/**
|
|
43630
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
43631
|
+
* @return {!Uint8Array}
|
|
43632
|
+
*/
|
|
43633
|
+
proto.zaber.motion.protobufs.TranslateMessage.prototype.serializeBinary = function() {
|
|
43634
|
+
var writer = new jspb.BinaryWriter();
|
|
43635
|
+
proto.zaber.motion.protobufs.TranslateMessage.serializeBinaryToWriter(this, writer);
|
|
43636
|
+
return writer.getResultBuffer();
|
|
43637
|
+
};
|
|
43638
|
+
|
|
43639
|
+
|
|
43640
|
+
/**
|
|
43641
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
43642
|
+
* format), writing to the given BinaryWriter.
|
|
43643
|
+
* @param {!proto.zaber.motion.protobufs.TranslateMessage} message
|
|
43644
|
+
* @param {!jspb.BinaryWriter} writer
|
|
43645
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
43646
|
+
*/
|
|
43647
|
+
proto.zaber.motion.protobufs.TranslateMessage.serializeBinaryToWriter = function(message, writer) {
|
|
43648
|
+
var f = undefined;
|
|
43649
|
+
f = message.getMessage();
|
|
43650
|
+
if (f.length > 0) {
|
|
43651
|
+
writer.writeString(
|
|
43652
|
+
1,
|
|
43653
|
+
f
|
|
43654
|
+
);
|
|
43655
|
+
}
|
|
43656
|
+
f = message.getFromBlock();
|
|
43657
|
+
if (f !== 0) {
|
|
43658
|
+
writer.writeInt32(
|
|
43659
|
+
2,
|
|
43660
|
+
f
|
|
43661
|
+
);
|
|
43662
|
+
}
|
|
43663
|
+
f = message.getToBlock();
|
|
43664
|
+
if (f !== 0) {
|
|
43665
|
+
writer.writeInt32(
|
|
43666
|
+
3,
|
|
43667
|
+
f
|
|
43668
|
+
);
|
|
43669
|
+
}
|
|
43670
|
+
};
|
|
43671
|
+
|
|
43672
|
+
|
|
43673
|
+
/**
|
|
43674
|
+
* optional string message = 1;
|
|
43675
|
+
* @return {string}
|
|
43676
|
+
*/
|
|
43677
|
+
proto.zaber.motion.protobufs.TranslateMessage.prototype.getMessage = function() {
|
|
43678
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
43679
|
+
};
|
|
43680
|
+
|
|
43681
|
+
|
|
43682
|
+
/**
|
|
43683
|
+
* @param {string} value
|
|
43684
|
+
* @return {!proto.zaber.motion.protobufs.TranslateMessage} returns this
|
|
43685
|
+
*/
|
|
43686
|
+
proto.zaber.motion.protobufs.TranslateMessage.prototype.setMessage = function(value) {
|
|
43687
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
43688
|
+
};
|
|
43689
|
+
|
|
43690
|
+
|
|
43691
|
+
/**
|
|
43692
|
+
* optional int32 from_block = 2;
|
|
43693
|
+
* @return {number}
|
|
43694
|
+
*/
|
|
43695
|
+
proto.zaber.motion.protobufs.TranslateMessage.prototype.getFromBlock = function() {
|
|
43696
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
43697
|
+
};
|
|
43698
|
+
|
|
43699
|
+
|
|
43700
|
+
/**
|
|
43701
|
+
* @param {number} value
|
|
43702
|
+
* @return {!proto.zaber.motion.protobufs.TranslateMessage} returns this
|
|
43703
|
+
*/
|
|
43704
|
+
proto.zaber.motion.protobufs.TranslateMessage.prototype.setFromBlock = function(value) {
|
|
43705
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
43706
|
+
};
|
|
43707
|
+
|
|
43708
|
+
|
|
43709
|
+
/**
|
|
43710
|
+
* optional int32 to_block = 3;
|
|
43711
|
+
* @return {number}
|
|
43712
|
+
*/
|
|
43713
|
+
proto.zaber.motion.protobufs.TranslateMessage.prototype.getToBlock = function() {
|
|
43714
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
43715
|
+
};
|
|
43716
|
+
|
|
43717
|
+
|
|
43718
|
+
/**
|
|
43719
|
+
* @param {number} value
|
|
43720
|
+
* @return {!proto.zaber.motion.protobufs.TranslateMessage} returns this
|
|
43721
|
+
*/
|
|
43722
|
+
proto.zaber.motion.protobufs.TranslateMessage.prototype.setToBlock = function(value) {
|
|
43723
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
43724
|
+
};
|
|
43725
|
+
|
|
43726
|
+
|
|
43727
|
+
|
|
43728
|
+
/**
|
|
43729
|
+
* List of repeated fields within this message type.
|
|
43730
|
+
* @private {!Array<number>}
|
|
43731
|
+
* @const
|
|
43732
|
+
*/
|
|
43733
|
+
proto.zaber.motion.protobufs.TranslatorTranslateResponse.repeatedFields_ = [1,2];
|
|
43734
|
+
|
|
43735
|
+
|
|
43736
|
+
|
|
43737
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
43738
|
+
/**
|
|
43739
|
+
* Creates an object representation of this proto.
|
|
43740
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
43741
|
+
* Optional fields that are not set will be set to undefined.
|
|
43742
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
43743
|
+
* For the list of reserved names please see:
|
|
43744
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
43745
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
43746
|
+
* JSPB instance for transitional soy proto support:
|
|
43747
|
+
* http://goto/soy-param-migration
|
|
43748
|
+
* @return {!Object}
|
|
43749
|
+
*/
|
|
43750
|
+
proto.zaber.motion.protobufs.TranslatorTranslateResponse.prototype.toObject = function(opt_includeInstance) {
|
|
43751
|
+
return proto.zaber.motion.protobufs.TranslatorTranslateResponse.toObject(opt_includeInstance, this);
|
|
43752
|
+
};
|
|
43753
|
+
|
|
43754
|
+
|
|
43755
|
+
/**
|
|
43756
|
+
* Static version of the {@see toObject} method.
|
|
43757
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
43758
|
+
* the JSPB instance for transitional soy proto support:
|
|
43759
|
+
* http://goto/soy-param-migration
|
|
43760
|
+
* @param {!proto.zaber.motion.protobufs.TranslatorTranslateResponse} msg The msg instance to transform.
|
|
43761
|
+
* @return {!Object}
|
|
43762
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
43763
|
+
*/
|
|
43764
|
+
proto.zaber.motion.protobufs.TranslatorTranslateResponse.toObject = function(includeInstance, msg) {
|
|
43765
|
+
var f, obj = {
|
|
43766
|
+
commandsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
|
|
43767
|
+
warningsList: jspb.Message.toObjectList(msg.getWarningsList(),
|
|
43768
|
+
proto.zaber.motion.protobufs.TranslateMessage.toObject, includeInstance)
|
|
43769
|
+
};
|
|
43770
|
+
|
|
43771
|
+
if (includeInstance) {
|
|
43772
|
+
obj.$jspbMessageInstance = msg;
|
|
43773
|
+
}
|
|
43774
|
+
return obj;
|
|
43775
|
+
};
|
|
43776
|
+
}
|
|
43777
|
+
|
|
43778
|
+
|
|
43779
|
+
/**
|
|
43780
|
+
* Deserializes binary data (in protobuf wire format).
|
|
43781
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
43782
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorTranslateResponse}
|
|
43783
|
+
*/
|
|
43784
|
+
proto.zaber.motion.protobufs.TranslatorTranslateResponse.deserializeBinary = function(bytes) {
|
|
43785
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
43786
|
+
var msg = new proto.zaber.motion.protobufs.TranslatorTranslateResponse;
|
|
43787
|
+
return proto.zaber.motion.protobufs.TranslatorTranslateResponse.deserializeBinaryFromReader(msg, reader);
|
|
43788
|
+
};
|
|
43789
|
+
|
|
43790
|
+
|
|
43791
|
+
/**
|
|
43792
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
43793
|
+
* given reader into the given message object.
|
|
43794
|
+
* @param {!proto.zaber.motion.protobufs.TranslatorTranslateResponse} msg The message object to deserialize into.
|
|
43795
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
43796
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorTranslateResponse}
|
|
43797
|
+
*/
|
|
43798
|
+
proto.zaber.motion.protobufs.TranslatorTranslateResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
43799
|
+
while (reader.nextField()) {
|
|
43800
|
+
if (reader.isEndGroup()) {
|
|
43801
|
+
break;
|
|
43802
|
+
}
|
|
43803
|
+
var field = reader.getFieldNumber();
|
|
43804
|
+
switch (field) {
|
|
43805
|
+
case 1:
|
|
43806
|
+
var value = /** @type {string} */ (reader.readString());
|
|
43807
|
+
msg.addCommands(value);
|
|
43808
|
+
break;
|
|
43809
|
+
case 2:
|
|
43810
|
+
var value = new proto.zaber.motion.protobufs.TranslateMessage;
|
|
43811
|
+
reader.readMessage(value,proto.zaber.motion.protobufs.TranslateMessage.deserializeBinaryFromReader);
|
|
43812
|
+
msg.addWarnings(value);
|
|
43813
|
+
break;
|
|
43814
|
+
default:
|
|
43815
|
+
reader.skipField();
|
|
43816
|
+
break;
|
|
43817
|
+
}
|
|
43818
|
+
}
|
|
43819
|
+
return msg;
|
|
43820
|
+
};
|
|
43821
|
+
|
|
43822
|
+
|
|
43823
|
+
/**
|
|
43824
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
43825
|
+
* @return {!Uint8Array}
|
|
43826
|
+
*/
|
|
43827
|
+
proto.zaber.motion.protobufs.TranslatorTranslateResponse.prototype.serializeBinary = function() {
|
|
43828
|
+
var writer = new jspb.BinaryWriter();
|
|
43829
|
+
proto.zaber.motion.protobufs.TranslatorTranslateResponse.serializeBinaryToWriter(this, writer);
|
|
43830
|
+
return writer.getResultBuffer();
|
|
43831
|
+
};
|
|
43832
|
+
|
|
43833
|
+
|
|
43834
|
+
/**
|
|
43835
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
43836
|
+
* format), writing to the given BinaryWriter.
|
|
43837
|
+
* @param {!proto.zaber.motion.protobufs.TranslatorTranslateResponse} message
|
|
43838
|
+
* @param {!jspb.BinaryWriter} writer
|
|
43839
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
43840
|
+
*/
|
|
43841
|
+
proto.zaber.motion.protobufs.TranslatorTranslateResponse.serializeBinaryToWriter = function(message, writer) {
|
|
43842
|
+
var f = undefined;
|
|
43843
|
+
f = message.getCommandsList();
|
|
43844
|
+
if (f.length > 0) {
|
|
43845
|
+
writer.writeRepeatedString(
|
|
43846
|
+
1,
|
|
43847
|
+
f
|
|
43848
|
+
);
|
|
43849
|
+
}
|
|
43850
|
+
f = message.getWarningsList();
|
|
43851
|
+
if (f.length > 0) {
|
|
43852
|
+
writer.writeRepeatedMessage(
|
|
43853
|
+
2,
|
|
43854
|
+
f,
|
|
43855
|
+
proto.zaber.motion.protobufs.TranslateMessage.serializeBinaryToWriter
|
|
43856
|
+
);
|
|
43857
|
+
}
|
|
43858
|
+
};
|
|
43859
|
+
|
|
43860
|
+
|
|
43861
|
+
/**
|
|
43862
|
+
* repeated string commands = 1;
|
|
43863
|
+
* @return {!Array<string>}
|
|
43864
|
+
*/
|
|
43865
|
+
proto.zaber.motion.protobufs.TranslatorTranslateResponse.prototype.getCommandsList = function() {
|
|
43866
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
43867
|
+
};
|
|
43868
|
+
|
|
43869
|
+
|
|
43870
|
+
/**
|
|
43871
|
+
* @param {!Array<string>} value
|
|
43872
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorTranslateResponse} returns this
|
|
43873
|
+
*/
|
|
43874
|
+
proto.zaber.motion.protobufs.TranslatorTranslateResponse.prototype.setCommandsList = function(value) {
|
|
43875
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
43876
|
+
};
|
|
43877
|
+
|
|
43878
|
+
|
|
43879
|
+
/**
|
|
43880
|
+
* @param {string} value
|
|
43881
|
+
* @param {number=} opt_index
|
|
43882
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorTranslateResponse} returns this
|
|
43883
|
+
*/
|
|
43884
|
+
proto.zaber.motion.protobufs.TranslatorTranslateResponse.prototype.addCommands = function(value, opt_index) {
|
|
43885
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
43886
|
+
};
|
|
43887
|
+
|
|
43888
|
+
|
|
43889
|
+
/**
|
|
43890
|
+
* Clears the list making it empty but non-null.
|
|
43891
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorTranslateResponse} returns this
|
|
43892
|
+
*/
|
|
43893
|
+
proto.zaber.motion.protobufs.TranslatorTranslateResponse.prototype.clearCommandsList = function() {
|
|
43894
|
+
return this.setCommandsList([]);
|
|
43895
|
+
};
|
|
43896
|
+
|
|
43897
|
+
|
|
43898
|
+
/**
|
|
43899
|
+
* repeated TranslateMessage warnings = 2;
|
|
43900
|
+
* @return {!Array<!proto.zaber.motion.protobufs.TranslateMessage>}
|
|
43901
|
+
*/
|
|
43902
|
+
proto.zaber.motion.protobufs.TranslatorTranslateResponse.prototype.getWarningsList = function() {
|
|
43903
|
+
return /** @type{!Array<!proto.zaber.motion.protobufs.TranslateMessage>} */ (
|
|
43904
|
+
jspb.Message.getRepeatedWrapperField(this, proto.zaber.motion.protobufs.TranslateMessage, 2));
|
|
43905
|
+
};
|
|
43906
|
+
|
|
43907
|
+
|
|
43908
|
+
/**
|
|
43909
|
+
* @param {!Array<!proto.zaber.motion.protobufs.TranslateMessage>} value
|
|
43910
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorTranslateResponse} returns this
|
|
43911
|
+
*/
|
|
43912
|
+
proto.zaber.motion.protobufs.TranslatorTranslateResponse.prototype.setWarningsList = function(value) {
|
|
43913
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
43914
|
+
};
|
|
43915
|
+
|
|
43916
|
+
|
|
43917
|
+
/**
|
|
43918
|
+
* @param {!proto.zaber.motion.protobufs.TranslateMessage=} opt_value
|
|
43919
|
+
* @param {number=} opt_index
|
|
43920
|
+
* @return {!proto.zaber.motion.protobufs.TranslateMessage}
|
|
43921
|
+
*/
|
|
43922
|
+
proto.zaber.motion.protobufs.TranslatorTranslateResponse.prototype.addWarnings = function(opt_value, opt_index) {
|
|
43923
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.zaber.motion.protobufs.TranslateMessage, opt_index);
|
|
43924
|
+
};
|
|
43925
|
+
|
|
43926
|
+
|
|
43927
|
+
/**
|
|
43928
|
+
* Clears the list making it empty but non-null.
|
|
43929
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorTranslateResponse} returns this
|
|
43930
|
+
*/
|
|
43931
|
+
proto.zaber.motion.protobufs.TranslatorTranslateResponse.prototype.clearWarningsList = function() {
|
|
43932
|
+
return this.setWarningsList([]);
|
|
43933
|
+
};
|
|
43934
|
+
|
|
43935
|
+
|
|
43936
|
+
|
|
43937
|
+
|
|
43938
|
+
|
|
43939
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
43940
|
+
/**
|
|
43941
|
+
* Creates an object representation of this proto.
|
|
43942
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
43943
|
+
* Optional fields that are not set will be set to undefined.
|
|
43944
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
43945
|
+
* For the list of reserved names please see:
|
|
43946
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
43947
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
43948
|
+
* JSPB instance for transitional soy proto support:
|
|
43949
|
+
* http://goto/soy-param-migration
|
|
43950
|
+
* @return {!Object}
|
|
43951
|
+
*/
|
|
43952
|
+
proto.zaber.motion.protobufs.GCodeSyntaxExceptionData.prototype.toObject = function(opt_includeInstance) {
|
|
43953
|
+
return proto.zaber.motion.protobufs.GCodeSyntaxExceptionData.toObject(opt_includeInstance, this);
|
|
43954
|
+
};
|
|
43955
|
+
|
|
43956
|
+
|
|
43957
|
+
/**
|
|
43958
|
+
* Static version of the {@see toObject} method.
|
|
43959
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
43960
|
+
* the JSPB instance for transitional soy proto support:
|
|
43961
|
+
* http://goto/soy-param-migration
|
|
43962
|
+
* @param {!proto.zaber.motion.protobufs.GCodeSyntaxExceptionData} msg The msg instance to transform.
|
|
43963
|
+
* @return {!Object}
|
|
43964
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
43965
|
+
*/
|
|
43966
|
+
proto.zaber.motion.protobufs.GCodeSyntaxExceptionData.toObject = function(includeInstance, msg) {
|
|
43967
|
+
var f, obj = {
|
|
43968
|
+
fromBlock: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
43969
|
+
toBlock: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
43970
|
+
};
|
|
43971
|
+
|
|
43972
|
+
if (includeInstance) {
|
|
43973
|
+
obj.$jspbMessageInstance = msg;
|
|
43974
|
+
}
|
|
43975
|
+
return obj;
|
|
43976
|
+
};
|
|
43977
|
+
}
|
|
43978
|
+
|
|
43979
|
+
|
|
43980
|
+
/**
|
|
43981
|
+
* Deserializes binary data (in protobuf wire format).
|
|
43982
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
43983
|
+
* @return {!proto.zaber.motion.protobufs.GCodeSyntaxExceptionData}
|
|
43984
|
+
*/
|
|
43985
|
+
proto.zaber.motion.protobufs.GCodeSyntaxExceptionData.deserializeBinary = function(bytes) {
|
|
43986
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
43987
|
+
var msg = new proto.zaber.motion.protobufs.GCodeSyntaxExceptionData;
|
|
43988
|
+
return proto.zaber.motion.protobufs.GCodeSyntaxExceptionData.deserializeBinaryFromReader(msg, reader);
|
|
43989
|
+
};
|
|
43990
|
+
|
|
43991
|
+
|
|
43992
|
+
/**
|
|
43993
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
43994
|
+
* given reader into the given message object.
|
|
43995
|
+
* @param {!proto.zaber.motion.protobufs.GCodeSyntaxExceptionData} msg The message object to deserialize into.
|
|
43996
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
43997
|
+
* @return {!proto.zaber.motion.protobufs.GCodeSyntaxExceptionData}
|
|
43998
|
+
*/
|
|
43999
|
+
proto.zaber.motion.protobufs.GCodeSyntaxExceptionData.deserializeBinaryFromReader = function(msg, reader) {
|
|
44000
|
+
while (reader.nextField()) {
|
|
44001
|
+
if (reader.isEndGroup()) {
|
|
44002
|
+
break;
|
|
44003
|
+
}
|
|
44004
|
+
var field = reader.getFieldNumber();
|
|
44005
|
+
switch (field) {
|
|
44006
|
+
case 1:
|
|
44007
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
44008
|
+
msg.setFromBlock(value);
|
|
44009
|
+
break;
|
|
44010
|
+
case 2:
|
|
44011
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
44012
|
+
msg.setToBlock(value);
|
|
44013
|
+
break;
|
|
44014
|
+
default:
|
|
44015
|
+
reader.skipField();
|
|
44016
|
+
break;
|
|
44017
|
+
}
|
|
44018
|
+
}
|
|
44019
|
+
return msg;
|
|
44020
|
+
};
|
|
44021
|
+
|
|
44022
|
+
|
|
44023
|
+
/**
|
|
44024
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
44025
|
+
* @return {!Uint8Array}
|
|
44026
|
+
*/
|
|
44027
|
+
proto.zaber.motion.protobufs.GCodeSyntaxExceptionData.prototype.serializeBinary = function() {
|
|
44028
|
+
var writer = new jspb.BinaryWriter();
|
|
44029
|
+
proto.zaber.motion.protobufs.GCodeSyntaxExceptionData.serializeBinaryToWriter(this, writer);
|
|
44030
|
+
return writer.getResultBuffer();
|
|
44031
|
+
};
|
|
44032
|
+
|
|
44033
|
+
|
|
44034
|
+
/**
|
|
44035
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
44036
|
+
* format), writing to the given BinaryWriter.
|
|
44037
|
+
* @param {!proto.zaber.motion.protobufs.GCodeSyntaxExceptionData} message
|
|
44038
|
+
* @param {!jspb.BinaryWriter} writer
|
|
44039
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
44040
|
+
*/
|
|
44041
|
+
proto.zaber.motion.protobufs.GCodeSyntaxExceptionData.serializeBinaryToWriter = function(message, writer) {
|
|
44042
|
+
var f = undefined;
|
|
44043
|
+
f = message.getFromBlock();
|
|
44044
|
+
if (f !== 0) {
|
|
44045
|
+
writer.writeInt32(
|
|
44046
|
+
1,
|
|
44047
|
+
f
|
|
44048
|
+
);
|
|
44049
|
+
}
|
|
44050
|
+
f = message.getToBlock();
|
|
44051
|
+
if (f !== 0) {
|
|
44052
|
+
writer.writeInt32(
|
|
44053
|
+
2,
|
|
44054
|
+
f
|
|
44055
|
+
);
|
|
44056
|
+
}
|
|
44057
|
+
};
|
|
44058
|
+
|
|
44059
|
+
|
|
44060
|
+
/**
|
|
44061
|
+
* optional int32 from_block = 1;
|
|
44062
|
+
* @return {number}
|
|
44063
|
+
*/
|
|
44064
|
+
proto.zaber.motion.protobufs.GCodeSyntaxExceptionData.prototype.getFromBlock = function() {
|
|
44065
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
44066
|
+
};
|
|
44067
|
+
|
|
44068
|
+
|
|
44069
|
+
/**
|
|
44070
|
+
* @param {number} value
|
|
44071
|
+
* @return {!proto.zaber.motion.protobufs.GCodeSyntaxExceptionData} returns this
|
|
44072
|
+
*/
|
|
44073
|
+
proto.zaber.motion.protobufs.GCodeSyntaxExceptionData.prototype.setFromBlock = function(value) {
|
|
44074
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
44075
|
+
};
|
|
44076
|
+
|
|
44077
|
+
|
|
44078
|
+
/**
|
|
44079
|
+
* optional int32 to_block = 2;
|
|
44080
|
+
* @return {number}
|
|
44081
|
+
*/
|
|
44082
|
+
proto.zaber.motion.protobufs.GCodeSyntaxExceptionData.prototype.getToBlock = function() {
|
|
44083
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
44084
|
+
};
|
|
44085
|
+
|
|
44086
|
+
|
|
44087
|
+
/**
|
|
44088
|
+
* @param {number} value
|
|
44089
|
+
* @return {!proto.zaber.motion.protobufs.GCodeSyntaxExceptionData} returns this
|
|
44090
|
+
*/
|
|
44091
|
+
proto.zaber.motion.protobufs.GCodeSyntaxExceptionData.prototype.setToBlock = function(value) {
|
|
44092
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
44093
|
+
};
|
|
44094
|
+
|
|
44095
|
+
|
|
44096
|
+
|
|
44097
|
+
|
|
44098
|
+
|
|
44099
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
44100
|
+
/**
|
|
44101
|
+
* Creates an object representation of this proto.
|
|
44102
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
44103
|
+
* Optional fields that are not set will be set to undefined.
|
|
44104
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
44105
|
+
* For the list of reserved names please see:
|
|
44106
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
44107
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
44108
|
+
* JSPB instance for transitional soy proto support:
|
|
44109
|
+
* http://goto/soy-param-migration
|
|
44110
|
+
* @return {!Object}
|
|
44111
|
+
*/
|
|
44112
|
+
proto.zaber.motion.protobufs.GCodeExecutionExceptionData.prototype.toObject = function(opt_includeInstance) {
|
|
44113
|
+
return proto.zaber.motion.protobufs.GCodeExecutionExceptionData.toObject(opt_includeInstance, this);
|
|
44114
|
+
};
|
|
44115
|
+
|
|
44116
|
+
|
|
44117
|
+
/**
|
|
44118
|
+
* Static version of the {@see toObject} method.
|
|
44119
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
44120
|
+
* the JSPB instance for transitional soy proto support:
|
|
44121
|
+
* http://goto/soy-param-migration
|
|
44122
|
+
* @param {!proto.zaber.motion.protobufs.GCodeExecutionExceptionData} msg The msg instance to transform.
|
|
44123
|
+
* @return {!Object}
|
|
44124
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
44125
|
+
*/
|
|
44126
|
+
proto.zaber.motion.protobufs.GCodeExecutionExceptionData.toObject = function(includeInstance, msg) {
|
|
44127
|
+
var f, obj = {
|
|
44128
|
+
fromBlock: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
44129
|
+
toBlock: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
44130
|
+
};
|
|
44131
|
+
|
|
44132
|
+
if (includeInstance) {
|
|
44133
|
+
obj.$jspbMessageInstance = msg;
|
|
44134
|
+
}
|
|
44135
|
+
return obj;
|
|
44136
|
+
};
|
|
44137
|
+
}
|
|
44138
|
+
|
|
44139
|
+
|
|
44140
|
+
/**
|
|
44141
|
+
* Deserializes binary data (in protobuf wire format).
|
|
44142
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
44143
|
+
* @return {!proto.zaber.motion.protobufs.GCodeExecutionExceptionData}
|
|
44144
|
+
*/
|
|
44145
|
+
proto.zaber.motion.protobufs.GCodeExecutionExceptionData.deserializeBinary = function(bytes) {
|
|
44146
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
44147
|
+
var msg = new proto.zaber.motion.protobufs.GCodeExecutionExceptionData;
|
|
44148
|
+
return proto.zaber.motion.protobufs.GCodeExecutionExceptionData.deserializeBinaryFromReader(msg, reader);
|
|
44149
|
+
};
|
|
44150
|
+
|
|
44151
|
+
|
|
44152
|
+
/**
|
|
44153
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
44154
|
+
* given reader into the given message object.
|
|
44155
|
+
* @param {!proto.zaber.motion.protobufs.GCodeExecutionExceptionData} msg The message object to deserialize into.
|
|
44156
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
44157
|
+
* @return {!proto.zaber.motion.protobufs.GCodeExecutionExceptionData}
|
|
44158
|
+
*/
|
|
44159
|
+
proto.zaber.motion.protobufs.GCodeExecutionExceptionData.deserializeBinaryFromReader = function(msg, reader) {
|
|
44160
|
+
while (reader.nextField()) {
|
|
44161
|
+
if (reader.isEndGroup()) {
|
|
44162
|
+
break;
|
|
44163
|
+
}
|
|
44164
|
+
var field = reader.getFieldNumber();
|
|
44165
|
+
switch (field) {
|
|
44166
|
+
case 1:
|
|
44167
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
44168
|
+
msg.setFromBlock(value);
|
|
44169
|
+
break;
|
|
44170
|
+
case 2:
|
|
44171
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
44172
|
+
msg.setToBlock(value);
|
|
44173
|
+
break;
|
|
44174
|
+
default:
|
|
44175
|
+
reader.skipField();
|
|
44176
|
+
break;
|
|
44177
|
+
}
|
|
44178
|
+
}
|
|
44179
|
+
return msg;
|
|
44180
|
+
};
|
|
44181
|
+
|
|
44182
|
+
|
|
44183
|
+
/**
|
|
44184
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
44185
|
+
* @return {!Uint8Array}
|
|
44186
|
+
*/
|
|
44187
|
+
proto.zaber.motion.protobufs.GCodeExecutionExceptionData.prototype.serializeBinary = function() {
|
|
44188
|
+
var writer = new jspb.BinaryWriter();
|
|
44189
|
+
proto.zaber.motion.protobufs.GCodeExecutionExceptionData.serializeBinaryToWriter(this, writer);
|
|
44190
|
+
return writer.getResultBuffer();
|
|
44191
|
+
};
|
|
44192
|
+
|
|
44193
|
+
|
|
44194
|
+
/**
|
|
44195
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
44196
|
+
* format), writing to the given BinaryWriter.
|
|
44197
|
+
* @param {!proto.zaber.motion.protobufs.GCodeExecutionExceptionData} message
|
|
44198
|
+
* @param {!jspb.BinaryWriter} writer
|
|
44199
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
44200
|
+
*/
|
|
44201
|
+
proto.zaber.motion.protobufs.GCodeExecutionExceptionData.serializeBinaryToWriter = function(message, writer) {
|
|
44202
|
+
var f = undefined;
|
|
44203
|
+
f = message.getFromBlock();
|
|
44204
|
+
if (f !== 0) {
|
|
44205
|
+
writer.writeInt32(
|
|
44206
|
+
1,
|
|
44207
|
+
f
|
|
44208
|
+
);
|
|
44209
|
+
}
|
|
44210
|
+
f = message.getToBlock();
|
|
44211
|
+
if (f !== 0) {
|
|
44212
|
+
writer.writeInt32(
|
|
44213
|
+
2,
|
|
44214
|
+
f
|
|
44215
|
+
);
|
|
44216
|
+
}
|
|
44217
|
+
};
|
|
44218
|
+
|
|
44219
|
+
|
|
44220
|
+
/**
|
|
44221
|
+
* optional int32 from_block = 1;
|
|
44222
|
+
* @return {number}
|
|
44223
|
+
*/
|
|
44224
|
+
proto.zaber.motion.protobufs.GCodeExecutionExceptionData.prototype.getFromBlock = function() {
|
|
44225
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
44226
|
+
};
|
|
44227
|
+
|
|
44228
|
+
|
|
44229
|
+
/**
|
|
44230
|
+
* @param {number} value
|
|
44231
|
+
* @return {!proto.zaber.motion.protobufs.GCodeExecutionExceptionData} returns this
|
|
44232
|
+
*/
|
|
44233
|
+
proto.zaber.motion.protobufs.GCodeExecutionExceptionData.prototype.setFromBlock = function(value) {
|
|
44234
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
44235
|
+
};
|
|
44236
|
+
|
|
44237
|
+
|
|
44238
|
+
/**
|
|
44239
|
+
* optional int32 to_block = 2;
|
|
44240
|
+
* @return {number}
|
|
44241
|
+
*/
|
|
44242
|
+
proto.zaber.motion.protobufs.GCodeExecutionExceptionData.prototype.getToBlock = function() {
|
|
44243
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
44244
|
+
};
|
|
44245
|
+
|
|
44246
|
+
|
|
44247
|
+
/**
|
|
44248
|
+
* @param {number} value
|
|
44249
|
+
* @return {!proto.zaber.motion.protobufs.GCodeExecutionExceptionData} returns this
|
|
44250
|
+
*/
|
|
44251
|
+
proto.zaber.motion.protobufs.GCodeExecutionExceptionData.prototype.setToBlock = function(value) {
|
|
44252
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
44253
|
+
};
|
|
44254
|
+
|
|
44255
|
+
|
|
44256
|
+
|
|
44257
|
+
|
|
44258
|
+
|
|
44259
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
44260
|
+
/**
|
|
44261
|
+
* Creates an object representation of this proto.
|
|
44262
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
44263
|
+
* Optional fields that are not set will be set to undefined.
|
|
44264
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
44265
|
+
* For the list of reserved names please see:
|
|
44266
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
44267
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
44268
|
+
* JSPB instance for transitional soy proto support:
|
|
44269
|
+
* http://goto/soy-param-migration
|
|
44270
|
+
* @return {!Object}
|
|
44271
|
+
*/
|
|
44272
|
+
proto.zaber.motion.protobufs.TranslatorCreateLiveRequest.prototype.toObject = function(opt_includeInstance) {
|
|
44273
|
+
return proto.zaber.motion.protobufs.TranslatorCreateLiveRequest.toObject(opt_includeInstance, this);
|
|
44274
|
+
};
|
|
44275
|
+
|
|
44276
|
+
|
|
44277
|
+
/**
|
|
44278
|
+
* Static version of the {@see toObject} method.
|
|
44279
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
44280
|
+
* the JSPB instance for transitional soy proto support:
|
|
44281
|
+
* http://goto/soy-param-migration
|
|
44282
|
+
* @param {!proto.zaber.motion.protobufs.TranslatorCreateLiveRequest} msg The msg instance to transform.
|
|
44283
|
+
* @return {!Object}
|
|
44284
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
44285
|
+
*/
|
|
44286
|
+
proto.zaber.motion.protobufs.TranslatorCreateLiveRequest.toObject = function(includeInstance, msg) {
|
|
44287
|
+
var f, obj = {
|
|
44288
|
+
interfaceId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
44289
|
+
device: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
44290
|
+
streamId: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
44291
|
+
config: (f = msg.getConfig()) && proto.zaber.motion.protobufs.TranslatorConfig.toObject(includeInstance, f)
|
|
44292
|
+
};
|
|
44293
|
+
|
|
44294
|
+
if (includeInstance) {
|
|
44295
|
+
obj.$jspbMessageInstance = msg;
|
|
44296
|
+
}
|
|
44297
|
+
return obj;
|
|
44298
|
+
};
|
|
44299
|
+
}
|
|
44300
|
+
|
|
44301
|
+
|
|
44302
|
+
/**
|
|
44303
|
+
* Deserializes binary data (in protobuf wire format).
|
|
44304
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
44305
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorCreateLiveRequest}
|
|
44306
|
+
*/
|
|
44307
|
+
proto.zaber.motion.protobufs.TranslatorCreateLiveRequest.deserializeBinary = function(bytes) {
|
|
44308
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
44309
|
+
var msg = new proto.zaber.motion.protobufs.TranslatorCreateLiveRequest;
|
|
44310
|
+
return proto.zaber.motion.protobufs.TranslatorCreateLiveRequest.deserializeBinaryFromReader(msg, reader);
|
|
44311
|
+
};
|
|
44312
|
+
|
|
44313
|
+
|
|
44314
|
+
/**
|
|
44315
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
44316
|
+
* given reader into the given message object.
|
|
44317
|
+
* @param {!proto.zaber.motion.protobufs.TranslatorCreateLiveRequest} msg The message object to deserialize into.
|
|
44318
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
44319
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorCreateLiveRequest}
|
|
44320
|
+
*/
|
|
44321
|
+
proto.zaber.motion.protobufs.TranslatorCreateLiveRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
44322
|
+
while (reader.nextField()) {
|
|
44323
|
+
if (reader.isEndGroup()) {
|
|
44324
|
+
break;
|
|
44325
|
+
}
|
|
44326
|
+
var field = reader.getFieldNumber();
|
|
44327
|
+
switch (field) {
|
|
44328
|
+
case 1:
|
|
44329
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
44330
|
+
msg.setInterfaceId(value);
|
|
44331
|
+
break;
|
|
44332
|
+
case 2:
|
|
44333
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
44334
|
+
msg.setDevice(value);
|
|
44335
|
+
break;
|
|
44336
|
+
case 3:
|
|
44337
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
44338
|
+
msg.setStreamId(value);
|
|
44339
|
+
break;
|
|
44340
|
+
case 4:
|
|
44341
|
+
var value = new proto.zaber.motion.protobufs.TranslatorConfig;
|
|
44342
|
+
reader.readMessage(value,proto.zaber.motion.protobufs.TranslatorConfig.deserializeBinaryFromReader);
|
|
44343
|
+
msg.setConfig(value);
|
|
44344
|
+
break;
|
|
44345
|
+
default:
|
|
44346
|
+
reader.skipField();
|
|
44347
|
+
break;
|
|
44348
|
+
}
|
|
44349
|
+
}
|
|
44350
|
+
return msg;
|
|
44351
|
+
};
|
|
44352
|
+
|
|
44353
|
+
|
|
44354
|
+
/**
|
|
44355
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
44356
|
+
* @return {!Uint8Array}
|
|
44357
|
+
*/
|
|
44358
|
+
proto.zaber.motion.protobufs.TranslatorCreateLiveRequest.prototype.serializeBinary = function() {
|
|
44359
|
+
var writer = new jspb.BinaryWriter();
|
|
44360
|
+
proto.zaber.motion.protobufs.TranslatorCreateLiveRequest.serializeBinaryToWriter(this, writer);
|
|
44361
|
+
return writer.getResultBuffer();
|
|
44362
|
+
};
|
|
44363
|
+
|
|
44364
|
+
|
|
44365
|
+
/**
|
|
44366
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
44367
|
+
* format), writing to the given BinaryWriter.
|
|
44368
|
+
* @param {!proto.zaber.motion.protobufs.TranslatorCreateLiveRequest} message
|
|
44369
|
+
* @param {!jspb.BinaryWriter} writer
|
|
44370
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
44371
|
+
*/
|
|
44372
|
+
proto.zaber.motion.protobufs.TranslatorCreateLiveRequest.serializeBinaryToWriter = function(message, writer) {
|
|
44373
|
+
var f = undefined;
|
|
44374
|
+
f = message.getInterfaceId();
|
|
44375
|
+
if (f !== 0) {
|
|
44376
|
+
writer.writeInt32(
|
|
44377
|
+
1,
|
|
44378
|
+
f
|
|
44379
|
+
);
|
|
44380
|
+
}
|
|
44381
|
+
f = message.getDevice();
|
|
44382
|
+
if (f !== 0) {
|
|
44383
|
+
writer.writeInt32(
|
|
44384
|
+
2,
|
|
44385
|
+
f
|
|
44386
|
+
);
|
|
44387
|
+
}
|
|
44388
|
+
f = message.getStreamId();
|
|
44389
|
+
if (f !== 0) {
|
|
44390
|
+
writer.writeInt32(
|
|
44391
|
+
3,
|
|
44392
|
+
f
|
|
44393
|
+
);
|
|
44394
|
+
}
|
|
44395
|
+
f = message.getConfig();
|
|
44396
|
+
if (f != null) {
|
|
44397
|
+
writer.writeMessage(
|
|
44398
|
+
4,
|
|
44399
|
+
f,
|
|
44400
|
+
proto.zaber.motion.protobufs.TranslatorConfig.serializeBinaryToWriter
|
|
44401
|
+
);
|
|
44402
|
+
}
|
|
44403
|
+
};
|
|
44404
|
+
|
|
44405
|
+
|
|
44406
|
+
/**
|
|
44407
|
+
* optional int32 interface_id = 1;
|
|
44408
|
+
* @return {number}
|
|
44409
|
+
*/
|
|
44410
|
+
proto.zaber.motion.protobufs.TranslatorCreateLiveRequest.prototype.getInterfaceId = function() {
|
|
44411
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
44412
|
+
};
|
|
44413
|
+
|
|
44414
|
+
|
|
44415
|
+
/**
|
|
44416
|
+
* @param {number} value
|
|
44417
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorCreateLiveRequest} returns this
|
|
44418
|
+
*/
|
|
44419
|
+
proto.zaber.motion.protobufs.TranslatorCreateLiveRequest.prototype.setInterfaceId = function(value) {
|
|
44420
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
44421
|
+
};
|
|
44422
|
+
|
|
44423
|
+
|
|
44424
|
+
/**
|
|
44425
|
+
* optional int32 device = 2;
|
|
44426
|
+
* @return {number}
|
|
44427
|
+
*/
|
|
44428
|
+
proto.zaber.motion.protobufs.TranslatorCreateLiveRequest.prototype.getDevice = function() {
|
|
44429
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
44430
|
+
};
|
|
44431
|
+
|
|
44432
|
+
|
|
44433
|
+
/**
|
|
44434
|
+
* @param {number} value
|
|
44435
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorCreateLiveRequest} returns this
|
|
44436
|
+
*/
|
|
44437
|
+
proto.zaber.motion.protobufs.TranslatorCreateLiveRequest.prototype.setDevice = function(value) {
|
|
44438
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
44439
|
+
};
|
|
44440
|
+
|
|
44441
|
+
|
|
44442
|
+
/**
|
|
44443
|
+
* optional int32 stream_id = 3;
|
|
44444
|
+
* @return {number}
|
|
44445
|
+
*/
|
|
44446
|
+
proto.zaber.motion.protobufs.TranslatorCreateLiveRequest.prototype.getStreamId = function() {
|
|
44447
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
44448
|
+
};
|
|
44449
|
+
|
|
44450
|
+
|
|
44451
|
+
/**
|
|
44452
|
+
* @param {number} value
|
|
44453
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorCreateLiveRequest} returns this
|
|
44454
|
+
*/
|
|
44455
|
+
proto.zaber.motion.protobufs.TranslatorCreateLiveRequest.prototype.setStreamId = function(value) {
|
|
44456
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
44457
|
+
};
|
|
44458
|
+
|
|
44459
|
+
|
|
44460
|
+
/**
|
|
44461
|
+
* optional TranslatorConfig config = 4;
|
|
44462
|
+
* @return {?proto.zaber.motion.protobufs.TranslatorConfig}
|
|
44463
|
+
*/
|
|
44464
|
+
proto.zaber.motion.protobufs.TranslatorCreateLiveRequest.prototype.getConfig = function() {
|
|
44465
|
+
return /** @type{?proto.zaber.motion.protobufs.TranslatorConfig} */ (
|
|
44466
|
+
jspb.Message.getWrapperField(this, proto.zaber.motion.protobufs.TranslatorConfig, 4));
|
|
44467
|
+
};
|
|
44468
|
+
|
|
44469
|
+
|
|
44470
|
+
/**
|
|
44471
|
+
* @param {?proto.zaber.motion.protobufs.TranslatorConfig|undefined} value
|
|
44472
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorCreateLiveRequest} returns this
|
|
44473
|
+
*/
|
|
44474
|
+
proto.zaber.motion.protobufs.TranslatorCreateLiveRequest.prototype.setConfig = function(value) {
|
|
44475
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
44476
|
+
};
|
|
44477
|
+
|
|
44478
|
+
|
|
44479
|
+
/**
|
|
44480
|
+
* Clears the message field making it undefined.
|
|
44481
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorCreateLiveRequest} returns this
|
|
44482
|
+
*/
|
|
44483
|
+
proto.zaber.motion.protobufs.TranslatorCreateLiveRequest.prototype.clearConfig = function() {
|
|
44484
|
+
return this.setConfig(undefined);
|
|
44485
|
+
};
|
|
44486
|
+
|
|
44487
|
+
|
|
44488
|
+
/**
|
|
44489
|
+
* Returns whether this field is set.
|
|
44490
|
+
* @return {boolean}
|
|
44491
|
+
*/
|
|
44492
|
+
proto.zaber.motion.protobufs.TranslatorCreateLiveRequest.prototype.hasConfig = function() {
|
|
44493
|
+
return jspb.Message.getField(this, 4) != null;
|
|
44494
|
+
};
|
|
44495
|
+
|
|
44496
|
+
|
|
44497
|
+
|
|
44498
|
+
|
|
44499
|
+
|
|
44500
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
44501
|
+
/**
|
|
44502
|
+
* Creates an object representation of this proto.
|
|
44503
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
44504
|
+
* Optional fields that are not set will be set to undefined.
|
|
44505
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
44506
|
+
* For the list of reserved names please see:
|
|
44507
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
44508
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
44509
|
+
* JSPB instance for transitional soy proto support:
|
|
44510
|
+
* http://goto/soy-param-migration
|
|
44511
|
+
* @return {!Object}
|
|
44512
|
+
*/
|
|
44513
|
+
proto.zaber.motion.protobufs.TranslatorEmptyRequest.prototype.toObject = function(opt_includeInstance) {
|
|
44514
|
+
return proto.zaber.motion.protobufs.TranslatorEmptyRequest.toObject(opt_includeInstance, this);
|
|
44515
|
+
};
|
|
44516
|
+
|
|
44517
|
+
|
|
44518
|
+
/**
|
|
44519
|
+
* Static version of the {@see toObject} method.
|
|
44520
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
44521
|
+
* the JSPB instance for transitional soy proto support:
|
|
44522
|
+
* http://goto/soy-param-migration
|
|
44523
|
+
* @param {!proto.zaber.motion.protobufs.TranslatorEmptyRequest} msg The msg instance to transform.
|
|
44524
|
+
* @return {!Object}
|
|
44525
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
44526
|
+
*/
|
|
44527
|
+
proto.zaber.motion.protobufs.TranslatorEmptyRequest.toObject = function(includeInstance, msg) {
|
|
44528
|
+
var f, obj = {
|
|
44529
|
+
translatorId: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
44530
|
+
};
|
|
44531
|
+
|
|
44532
|
+
if (includeInstance) {
|
|
44533
|
+
obj.$jspbMessageInstance = msg;
|
|
44534
|
+
}
|
|
44535
|
+
return obj;
|
|
44536
|
+
};
|
|
44537
|
+
}
|
|
44538
|
+
|
|
44539
|
+
|
|
44540
|
+
/**
|
|
44541
|
+
* Deserializes binary data (in protobuf wire format).
|
|
44542
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
44543
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorEmptyRequest}
|
|
44544
|
+
*/
|
|
44545
|
+
proto.zaber.motion.protobufs.TranslatorEmptyRequest.deserializeBinary = function(bytes) {
|
|
44546
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
44547
|
+
var msg = new proto.zaber.motion.protobufs.TranslatorEmptyRequest;
|
|
44548
|
+
return proto.zaber.motion.protobufs.TranslatorEmptyRequest.deserializeBinaryFromReader(msg, reader);
|
|
44549
|
+
};
|
|
44550
|
+
|
|
44551
|
+
|
|
44552
|
+
/**
|
|
44553
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
44554
|
+
* given reader into the given message object.
|
|
44555
|
+
* @param {!proto.zaber.motion.protobufs.TranslatorEmptyRequest} msg The message object to deserialize into.
|
|
44556
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
44557
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorEmptyRequest}
|
|
44558
|
+
*/
|
|
44559
|
+
proto.zaber.motion.protobufs.TranslatorEmptyRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
44560
|
+
while (reader.nextField()) {
|
|
44561
|
+
if (reader.isEndGroup()) {
|
|
44562
|
+
break;
|
|
44563
|
+
}
|
|
44564
|
+
var field = reader.getFieldNumber();
|
|
44565
|
+
switch (field) {
|
|
44566
|
+
case 1:
|
|
44567
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
44568
|
+
msg.setTranslatorId(value);
|
|
44569
|
+
break;
|
|
44570
|
+
default:
|
|
44571
|
+
reader.skipField();
|
|
44572
|
+
break;
|
|
44573
|
+
}
|
|
44574
|
+
}
|
|
44575
|
+
return msg;
|
|
44576
|
+
};
|
|
44577
|
+
|
|
44578
|
+
|
|
44579
|
+
/**
|
|
44580
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
44581
|
+
* @return {!Uint8Array}
|
|
44582
|
+
*/
|
|
44583
|
+
proto.zaber.motion.protobufs.TranslatorEmptyRequest.prototype.serializeBinary = function() {
|
|
44584
|
+
var writer = new jspb.BinaryWriter();
|
|
44585
|
+
proto.zaber.motion.protobufs.TranslatorEmptyRequest.serializeBinaryToWriter(this, writer);
|
|
44586
|
+
return writer.getResultBuffer();
|
|
44587
|
+
};
|
|
44588
|
+
|
|
44589
|
+
|
|
44590
|
+
/**
|
|
44591
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
44592
|
+
* format), writing to the given BinaryWriter.
|
|
44593
|
+
* @param {!proto.zaber.motion.protobufs.TranslatorEmptyRequest} message
|
|
44594
|
+
* @param {!jspb.BinaryWriter} writer
|
|
44595
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
44596
|
+
*/
|
|
44597
|
+
proto.zaber.motion.protobufs.TranslatorEmptyRequest.serializeBinaryToWriter = function(message, writer) {
|
|
44598
|
+
var f = undefined;
|
|
44599
|
+
f = message.getTranslatorId();
|
|
44600
|
+
if (f !== 0) {
|
|
44601
|
+
writer.writeInt32(
|
|
44602
|
+
1,
|
|
44603
|
+
f
|
|
44604
|
+
);
|
|
44605
|
+
}
|
|
44606
|
+
};
|
|
44607
|
+
|
|
44608
|
+
|
|
44609
|
+
/**
|
|
44610
|
+
* optional int32 translator_id = 1;
|
|
44611
|
+
* @return {number}
|
|
44612
|
+
*/
|
|
44613
|
+
proto.zaber.motion.protobufs.TranslatorEmptyRequest.prototype.getTranslatorId = function() {
|
|
44614
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
44615
|
+
};
|
|
44616
|
+
|
|
44617
|
+
|
|
44618
|
+
/**
|
|
44619
|
+
* @param {number} value
|
|
44620
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorEmptyRequest} returns this
|
|
44621
|
+
*/
|
|
44622
|
+
proto.zaber.motion.protobufs.TranslatorEmptyRequest.prototype.setTranslatorId = function(value) {
|
|
44623
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
44624
|
+
};
|
|
44625
|
+
|
|
44626
|
+
|
|
44627
|
+
|
|
44628
|
+
|
|
44629
|
+
|
|
44630
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
44631
|
+
/**
|
|
44632
|
+
* Creates an object representation of this proto.
|
|
44633
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
44634
|
+
* Optional fields that are not set will be set to undefined.
|
|
44635
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
44636
|
+
* For the list of reserved names please see:
|
|
44637
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
44638
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
44639
|
+
* JSPB instance for transitional soy proto support:
|
|
44640
|
+
* http://goto/soy-param-migration
|
|
44641
|
+
* @return {!Object}
|
|
44642
|
+
*/
|
|
44643
|
+
proto.zaber.motion.protobufs.TranslatorSetTraverseRateRequest.prototype.toObject = function(opt_includeInstance) {
|
|
44644
|
+
return proto.zaber.motion.protobufs.TranslatorSetTraverseRateRequest.toObject(opt_includeInstance, this);
|
|
44645
|
+
};
|
|
44646
|
+
|
|
44647
|
+
|
|
44648
|
+
/**
|
|
44649
|
+
* Static version of the {@see toObject} method.
|
|
44650
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
44651
|
+
* the JSPB instance for transitional soy proto support:
|
|
44652
|
+
* http://goto/soy-param-migration
|
|
44653
|
+
* @param {!proto.zaber.motion.protobufs.TranslatorSetTraverseRateRequest} msg The msg instance to transform.
|
|
44654
|
+
* @return {!Object}
|
|
44655
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
44656
|
+
*/
|
|
44657
|
+
proto.zaber.motion.protobufs.TranslatorSetTraverseRateRequest.toObject = function(includeInstance, msg) {
|
|
44658
|
+
var f, obj = {
|
|
44659
|
+
translatorId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
44660
|
+
traverseRate: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
|
|
44661
|
+
unit: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
44662
|
+
};
|
|
44663
|
+
|
|
44664
|
+
if (includeInstance) {
|
|
44665
|
+
obj.$jspbMessageInstance = msg;
|
|
44666
|
+
}
|
|
44667
|
+
return obj;
|
|
44668
|
+
};
|
|
44669
|
+
}
|
|
44670
|
+
|
|
44671
|
+
|
|
44672
|
+
/**
|
|
44673
|
+
* Deserializes binary data (in protobuf wire format).
|
|
44674
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
44675
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorSetTraverseRateRequest}
|
|
44676
|
+
*/
|
|
44677
|
+
proto.zaber.motion.protobufs.TranslatorSetTraverseRateRequest.deserializeBinary = function(bytes) {
|
|
44678
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
44679
|
+
var msg = new proto.zaber.motion.protobufs.TranslatorSetTraverseRateRequest;
|
|
44680
|
+
return proto.zaber.motion.protobufs.TranslatorSetTraverseRateRequest.deserializeBinaryFromReader(msg, reader);
|
|
44681
|
+
};
|
|
44682
|
+
|
|
44683
|
+
|
|
44684
|
+
/**
|
|
44685
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
44686
|
+
* given reader into the given message object.
|
|
44687
|
+
* @param {!proto.zaber.motion.protobufs.TranslatorSetTraverseRateRequest} msg The message object to deserialize into.
|
|
44688
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
44689
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorSetTraverseRateRequest}
|
|
44690
|
+
*/
|
|
44691
|
+
proto.zaber.motion.protobufs.TranslatorSetTraverseRateRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
44692
|
+
while (reader.nextField()) {
|
|
44693
|
+
if (reader.isEndGroup()) {
|
|
44694
|
+
break;
|
|
44695
|
+
}
|
|
44696
|
+
var field = reader.getFieldNumber();
|
|
44697
|
+
switch (field) {
|
|
44698
|
+
case 1:
|
|
44699
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
44700
|
+
msg.setTranslatorId(value);
|
|
44701
|
+
break;
|
|
44702
|
+
case 2:
|
|
44703
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
44704
|
+
msg.setTraverseRate(value);
|
|
44705
|
+
break;
|
|
44706
|
+
case 3:
|
|
44707
|
+
var value = /** @type {string} */ (reader.readString());
|
|
44708
|
+
msg.setUnit(value);
|
|
44709
|
+
break;
|
|
44710
|
+
default:
|
|
44711
|
+
reader.skipField();
|
|
44712
|
+
break;
|
|
44713
|
+
}
|
|
44714
|
+
}
|
|
44715
|
+
return msg;
|
|
44716
|
+
};
|
|
44717
|
+
|
|
44718
|
+
|
|
44719
|
+
/**
|
|
44720
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
44721
|
+
* @return {!Uint8Array}
|
|
44722
|
+
*/
|
|
44723
|
+
proto.zaber.motion.protobufs.TranslatorSetTraverseRateRequest.prototype.serializeBinary = function() {
|
|
44724
|
+
var writer = new jspb.BinaryWriter();
|
|
44725
|
+
proto.zaber.motion.protobufs.TranslatorSetTraverseRateRequest.serializeBinaryToWriter(this, writer);
|
|
44726
|
+
return writer.getResultBuffer();
|
|
44727
|
+
};
|
|
44728
|
+
|
|
44729
|
+
|
|
44730
|
+
/**
|
|
44731
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
44732
|
+
* format), writing to the given BinaryWriter.
|
|
44733
|
+
* @param {!proto.zaber.motion.protobufs.TranslatorSetTraverseRateRequest} message
|
|
44734
|
+
* @param {!jspb.BinaryWriter} writer
|
|
44735
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
44736
|
+
*/
|
|
44737
|
+
proto.zaber.motion.protobufs.TranslatorSetTraverseRateRequest.serializeBinaryToWriter = function(message, writer) {
|
|
44738
|
+
var f = undefined;
|
|
44739
|
+
f = message.getTranslatorId();
|
|
44740
|
+
if (f !== 0) {
|
|
44741
|
+
writer.writeInt32(
|
|
44742
|
+
1,
|
|
44743
|
+
f
|
|
44744
|
+
);
|
|
44745
|
+
}
|
|
44746
|
+
f = message.getTraverseRate();
|
|
44747
|
+
if (f !== 0.0) {
|
|
44748
|
+
writer.writeDouble(
|
|
44749
|
+
2,
|
|
44750
|
+
f
|
|
44751
|
+
);
|
|
44752
|
+
}
|
|
44753
|
+
f = message.getUnit();
|
|
44754
|
+
if (f.length > 0) {
|
|
44755
|
+
writer.writeString(
|
|
44756
|
+
3,
|
|
44757
|
+
f
|
|
44758
|
+
);
|
|
44759
|
+
}
|
|
44760
|
+
};
|
|
44761
|
+
|
|
44762
|
+
|
|
44763
|
+
/**
|
|
44764
|
+
* optional int32 translator_id = 1;
|
|
44765
|
+
* @return {number}
|
|
44766
|
+
*/
|
|
44767
|
+
proto.zaber.motion.protobufs.TranslatorSetTraverseRateRequest.prototype.getTranslatorId = function() {
|
|
44768
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
44769
|
+
};
|
|
44770
|
+
|
|
44771
|
+
|
|
44772
|
+
/**
|
|
44773
|
+
* @param {number} value
|
|
44774
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorSetTraverseRateRequest} returns this
|
|
44775
|
+
*/
|
|
44776
|
+
proto.zaber.motion.protobufs.TranslatorSetTraverseRateRequest.prototype.setTranslatorId = function(value) {
|
|
44777
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
44778
|
+
};
|
|
44779
|
+
|
|
44780
|
+
|
|
44781
|
+
/**
|
|
44782
|
+
* optional double traverse_rate = 2;
|
|
44783
|
+
* @return {number}
|
|
44784
|
+
*/
|
|
44785
|
+
proto.zaber.motion.protobufs.TranslatorSetTraverseRateRequest.prototype.getTraverseRate = function() {
|
|
44786
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
|
|
44787
|
+
};
|
|
44788
|
+
|
|
44789
|
+
|
|
44790
|
+
/**
|
|
44791
|
+
* @param {number} value
|
|
44792
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorSetTraverseRateRequest} returns this
|
|
44793
|
+
*/
|
|
44794
|
+
proto.zaber.motion.protobufs.TranslatorSetTraverseRateRequest.prototype.setTraverseRate = function(value) {
|
|
44795
|
+
return jspb.Message.setProto3FloatField(this, 2, value);
|
|
44796
|
+
};
|
|
44797
|
+
|
|
44798
|
+
|
|
44799
|
+
/**
|
|
44800
|
+
* optional string unit = 3;
|
|
44801
|
+
* @return {string}
|
|
44802
|
+
*/
|
|
44803
|
+
proto.zaber.motion.protobufs.TranslatorSetTraverseRateRequest.prototype.getUnit = function() {
|
|
44804
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
44805
|
+
};
|
|
44806
|
+
|
|
44807
|
+
|
|
44808
|
+
/**
|
|
44809
|
+
* @param {string} value
|
|
44810
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorSetTraverseRateRequest} returns this
|
|
44811
|
+
*/
|
|
44812
|
+
proto.zaber.motion.protobufs.TranslatorSetTraverseRateRequest.prototype.setUnit = function(value) {
|
|
44813
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
44814
|
+
};
|
|
44815
|
+
|
|
44816
|
+
|
|
44817
|
+
|
|
44818
|
+
|
|
44819
|
+
|
|
44820
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
44821
|
+
/**
|
|
44822
|
+
* Creates an object representation of this proto.
|
|
44823
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
44824
|
+
* Optional fields that are not set will be set to undefined.
|
|
44825
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
44826
|
+
* For the list of reserved names please see:
|
|
44827
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
44828
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
44829
|
+
* JSPB instance for transitional soy proto support:
|
|
44830
|
+
* http://goto/soy-param-migration
|
|
44831
|
+
* @return {!Object}
|
|
44832
|
+
*/
|
|
44833
|
+
proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest.prototype.toObject = function(opt_includeInstance) {
|
|
44834
|
+
return proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest.toObject(opt_includeInstance, this);
|
|
44835
|
+
};
|
|
44836
|
+
|
|
44837
|
+
|
|
44838
|
+
/**
|
|
44839
|
+
* Static version of the {@see toObject} method.
|
|
44840
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
44841
|
+
* the JSPB instance for transitional soy proto support:
|
|
44842
|
+
* http://goto/soy-param-migration
|
|
44843
|
+
* @param {!proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest} msg The msg instance to transform.
|
|
44844
|
+
* @return {!Object}
|
|
44845
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
44846
|
+
*/
|
|
44847
|
+
proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest.toObject = function(includeInstance, msg) {
|
|
44848
|
+
var f, obj = {
|
|
44849
|
+
translatorId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
44850
|
+
axis: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
44851
|
+
position: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
|
|
44852
|
+
unit: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
44853
|
+
};
|
|
44854
|
+
|
|
44855
|
+
if (includeInstance) {
|
|
44856
|
+
obj.$jspbMessageInstance = msg;
|
|
44857
|
+
}
|
|
44858
|
+
return obj;
|
|
44859
|
+
};
|
|
44860
|
+
}
|
|
44861
|
+
|
|
44862
|
+
|
|
44863
|
+
/**
|
|
44864
|
+
* Deserializes binary data (in protobuf wire format).
|
|
44865
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
44866
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest}
|
|
44867
|
+
*/
|
|
44868
|
+
proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest.deserializeBinary = function(bytes) {
|
|
44869
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
44870
|
+
var msg = new proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest;
|
|
44871
|
+
return proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest.deserializeBinaryFromReader(msg, reader);
|
|
44872
|
+
};
|
|
44873
|
+
|
|
44874
|
+
|
|
44875
|
+
/**
|
|
44876
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
44877
|
+
* given reader into the given message object.
|
|
44878
|
+
* @param {!proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest} msg The message object to deserialize into.
|
|
44879
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
44880
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest}
|
|
44881
|
+
*/
|
|
44882
|
+
proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
44883
|
+
while (reader.nextField()) {
|
|
44884
|
+
if (reader.isEndGroup()) {
|
|
44885
|
+
break;
|
|
44886
|
+
}
|
|
44887
|
+
var field = reader.getFieldNumber();
|
|
44888
|
+
switch (field) {
|
|
44889
|
+
case 1:
|
|
44890
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
44891
|
+
msg.setTranslatorId(value);
|
|
44892
|
+
break;
|
|
44893
|
+
case 2:
|
|
44894
|
+
var value = /** @type {string} */ (reader.readString());
|
|
44895
|
+
msg.setAxis(value);
|
|
44896
|
+
break;
|
|
44897
|
+
case 3:
|
|
44898
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
44899
|
+
msg.setPosition(value);
|
|
44900
|
+
break;
|
|
44901
|
+
case 4:
|
|
44902
|
+
var value = /** @type {string} */ (reader.readString());
|
|
44903
|
+
msg.setUnit(value);
|
|
44904
|
+
break;
|
|
44905
|
+
default:
|
|
44906
|
+
reader.skipField();
|
|
44907
|
+
break;
|
|
44908
|
+
}
|
|
44909
|
+
}
|
|
44910
|
+
return msg;
|
|
44911
|
+
};
|
|
44912
|
+
|
|
44913
|
+
|
|
44914
|
+
/**
|
|
44915
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
44916
|
+
* @return {!Uint8Array}
|
|
44917
|
+
*/
|
|
44918
|
+
proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest.prototype.serializeBinary = function() {
|
|
44919
|
+
var writer = new jspb.BinaryWriter();
|
|
44920
|
+
proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest.serializeBinaryToWriter(this, writer);
|
|
44921
|
+
return writer.getResultBuffer();
|
|
44922
|
+
};
|
|
44923
|
+
|
|
44924
|
+
|
|
44925
|
+
/**
|
|
44926
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
44927
|
+
* format), writing to the given BinaryWriter.
|
|
44928
|
+
* @param {!proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest} message
|
|
44929
|
+
* @param {!jspb.BinaryWriter} writer
|
|
44930
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
44931
|
+
*/
|
|
44932
|
+
proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest.serializeBinaryToWriter = function(message, writer) {
|
|
44933
|
+
var f = undefined;
|
|
44934
|
+
f = message.getTranslatorId();
|
|
44935
|
+
if (f !== 0) {
|
|
44936
|
+
writer.writeInt32(
|
|
44937
|
+
1,
|
|
44938
|
+
f
|
|
44939
|
+
);
|
|
44940
|
+
}
|
|
44941
|
+
f = message.getAxis();
|
|
44942
|
+
if (f.length > 0) {
|
|
44943
|
+
writer.writeString(
|
|
44944
|
+
2,
|
|
44945
|
+
f
|
|
44946
|
+
);
|
|
44947
|
+
}
|
|
44948
|
+
f = message.getPosition();
|
|
44949
|
+
if (f !== 0.0) {
|
|
44950
|
+
writer.writeDouble(
|
|
44951
|
+
3,
|
|
44952
|
+
f
|
|
44953
|
+
);
|
|
44954
|
+
}
|
|
44955
|
+
f = message.getUnit();
|
|
44956
|
+
if (f.length > 0) {
|
|
44957
|
+
writer.writeString(
|
|
44958
|
+
4,
|
|
44959
|
+
f
|
|
44960
|
+
);
|
|
44961
|
+
}
|
|
44962
|
+
};
|
|
44963
|
+
|
|
44964
|
+
|
|
44965
|
+
/**
|
|
44966
|
+
* optional int32 translator_id = 1;
|
|
44967
|
+
* @return {number}
|
|
44968
|
+
*/
|
|
44969
|
+
proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest.prototype.getTranslatorId = function() {
|
|
44970
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
44971
|
+
};
|
|
44972
|
+
|
|
44973
|
+
|
|
44974
|
+
/**
|
|
44975
|
+
* @param {number} value
|
|
44976
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest} returns this
|
|
44977
|
+
*/
|
|
44978
|
+
proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest.prototype.setTranslatorId = function(value) {
|
|
44979
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
44980
|
+
};
|
|
44981
|
+
|
|
44982
|
+
|
|
44983
|
+
/**
|
|
44984
|
+
* optional string axis = 2;
|
|
44985
|
+
* @return {string}
|
|
44986
|
+
*/
|
|
44987
|
+
proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest.prototype.getAxis = function() {
|
|
44988
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
44989
|
+
};
|
|
44990
|
+
|
|
44991
|
+
|
|
44992
|
+
/**
|
|
44993
|
+
* @param {string} value
|
|
44994
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest} returns this
|
|
44995
|
+
*/
|
|
44996
|
+
proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest.prototype.setAxis = function(value) {
|
|
44997
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
44998
|
+
};
|
|
44999
|
+
|
|
45000
|
+
|
|
45001
|
+
/**
|
|
45002
|
+
* optional double position = 3;
|
|
45003
|
+
* @return {number}
|
|
45004
|
+
*/
|
|
45005
|
+
proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest.prototype.getPosition = function() {
|
|
45006
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
|
|
45007
|
+
};
|
|
45008
|
+
|
|
45009
|
+
|
|
45010
|
+
/**
|
|
45011
|
+
* @param {number} value
|
|
45012
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest} returns this
|
|
45013
|
+
*/
|
|
45014
|
+
proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest.prototype.setPosition = function(value) {
|
|
45015
|
+
return jspb.Message.setProto3FloatField(this, 3, value);
|
|
45016
|
+
};
|
|
45017
|
+
|
|
45018
|
+
|
|
45019
|
+
/**
|
|
45020
|
+
* optional string unit = 4;
|
|
45021
|
+
* @return {string}
|
|
45022
|
+
*/
|
|
45023
|
+
proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest.prototype.getUnit = function() {
|
|
45024
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
45025
|
+
};
|
|
45026
|
+
|
|
45027
|
+
|
|
45028
|
+
/**
|
|
45029
|
+
* @param {string} value
|
|
45030
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest} returns this
|
|
45031
|
+
*/
|
|
45032
|
+
proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest.prototype.setUnit = function(value) {
|
|
45033
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
45034
|
+
};
|
|
45035
|
+
|
|
45036
|
+
|
|
45037
|
+
|
|
45038
|
+
|
|
45039
|
+
|
|
45040
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
45041
|
+
/**
|
|
45042
|
+
* Creates an object representation of this proto.
|
|
45043
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
45044
|
+
* Optional fields that are not set will be set to undefined.
|
|
45045
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
45046
|
+
* For the list of reserved names please see:
|
|
45047
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
45048
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
45049
|
+
* JSPB instance for transitional soy proto support:
|
|
45050
|
+
* http://goto/soy-param-migration
|
|
45051
|
+
* @return {!Object}
|
|
45052
|
+
*/
|
|
45053
|
+
proto.zaber.motion.protobufs.TranslatorGetAxisPositionRequest.prototype.toObject = function(opt_includeInstance) {
|
|
45054
|
+
return proto.zaber.motion.protobufs.TranslatorGetAxisPositionRequest.toObject(opt_includeInstance, this);
|
|
45055
|
+
};
|
|
45056
|
+
|
|
45057
|
+
|
|
45058
|
+
/**
|
|
45059
|
+
* Static version of the {@see toObject} method.
|
|
45060
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
45061
|
+
* the JSPB instance for transitional soy proto support:
|
|
45062
|
+
* http://goto/soy-param-migration
|
|
45063
|
+
* @param {!proto.zaber.motion.protobufs.TranslatorGetAxisPositionRequest} msg The msg instance to transform.
|
|
45064
|
+
* @return {!Object}
|
|
45065
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
45066
|
+
*/
|
|
45067
|
+
proto.zaber.motion.protobufs.TranslatorGetAxisPositionRequest.toObject = function(includeInstance, msg) {
|
|
45068
|
+
var f, obj = {
|
|
45069
|
+
translatorId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
45070
|
+
axis: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
45071
|
+
unit: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
45072
|
+
};
|
|
45073
|
+
|
|
45074
|
+
if (includeInstance) {
|
|
45075
|
+
obj.$jspbMessageInstance = msg;
|
|
45076
|
+
}
|
|
45077
|
+
return obj;
|
|
45078
|
+
};
|
|
45079
|
+
}
|
|
45080
|
+
|
|
45081
|
+
|
|
45082
|
+
/**
|
|
45083
|
+
* Deserializes binary data (in protobuf wire format).
|
|
45084
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
45085
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorGetAxisPositionRequest}
|
|
45086
|
+
*/
|
|
45087
|
+
proto.zaber.motion.protobufs.TranslatorGetAxisPositionRequest.deserializeBinary = function(bytes) {
|
|
45088
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
45089
|
+
var msg = new proto.zaber.motion.protobufs.TranslatorGetAxisPositionRequest;
|
|
45090
|
+
return proto.zaber.motion.protobufs.TranslatorGetAxisPositionRequest.deserializeBinaryFromReader(msg, reader);
|
|
45091
|
+
};
|
|
45092
|
+
|
|
45093
|
+
|
|
45094
|
+
/**
|
|
45095
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
45096
|
+
* given reader into the given message object.
|
|
45097
|
+
* @param {!proto.zaber.motion.protobufs.TranslatorGetAxisPositionRequest} msg The message object to deserialize into.
|
|
45098
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
45099
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorGetAxisPositionRequest}
|
|
45100
|
+
*/
|
|
45101
|
+
proto.zaber.motion.protobufs.TranslatorGetAxisPositionRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
45102
|
+
while (reader.nextField()) {
|
|
45103
|
+
if (reader.isEndGroup()) {
|
|
45104
|
+
break;
|
|
45105
|
+
}
|
|
45106
|
+
var field = reader.getFieldNumber();
|
|
45107
|
+
switch (field) {
|
|
45108
|
+
case 1:
|
|
45109
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
45110
|
+
msg.setTranslatorId(value);
|
|
45111
|
+
break;
|
|
45112
|
+
case 2:
|
|
45113
|
+
var value = /** @type {string} */ (reader.readString());
|
|
45114
|
+
msg.setAxis(value);
|
|
45115
|
+
break;
|
|
45116
|
+
case 3:
|
|
45117
|
+
var value = /** @type {string} */ (reader.readString());
|
|
45118
|
+
msg.setUnit(value);
|
|
45119
|
+
break;
|
|
45120
|
+
default:
|
|
45121
|
+
reader.skipField();
|
|
45122
|
+
break;
|
|
45123
|
+
}
|
|
45124
|
+
}
|
|
45125
|
+
return msg;
|
|
45126
|
+
};
|
|
45127
|
+
|
|
45128
|
+
|
|
45129
|
+
/**
|
|
45130
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
45131
|
+
* @return {!Uint8Array}
|
|
45132
|
+
*/
|
|
45133
|
+
proto.zaber.motion.protobufs.TranslatorGetAxisPositionRequest.prototype.serializeBinary = function() {
|
|
45134
|
+
var writer = new jspb.BinaryWriter();
|
|
45135
|
+
proto.zaber.motion.protobufs.TranslatorGetAxisPositionRequest.serializeBinaryToWriter(this, writer);
|
|
45136
|
+
return writer.getResultBuffer();
|
|
45137
|
+
};
|
|
45138
|
+
|
|
45139
|
+
|
|
45140
|
+
/**
|
|
45141
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
45142
|
+
* format), writing to the given BinaryWriter.
|
|
45143
|
+
* @param {!proto.zaber.motion.protobufs.TranslatorGetAxisPositionRequest} message
|
|
45144
|
+
* @param {!jspb.BinaryWriter} writer
|
|
45145
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
45146
|
+
*/
|
|
45147
|
+
proto.zaber.motion.protobufs.TranslatorGetAxisPositionRequest.serializeBinaryToWriter = function(message, writer) {
|
|
45148
|
+
var f = undefined;
|
|
45149
|
+
f = message.getTranslatorId();
|
|
45150
|
+
if (f !== 0) {
|
|
45151
|
+
writer.writeInt32(
|
|
45152
|
+
1,
|
|
45153
|
+
f
|
|
45154
|
+
);
|
|
45155
|
+
}
|
|
45156
|
+
f = message.getAxis();
|
|
45157
|
+
if (f.length > 0) {
|
|
45158
|
+
writer.writeString(
|
|
45159
|
+
2,
|
|
45160
|
+
f
|
|
45161
|
+
);
|
|
45162
|
+
}
|
|
45163
|
+
f = message.getUnit();
|
|
45164
|
+
if (f.length > 0) {
|
|
45165
|
+
writer.writeString(
|
|
45166
|
+
3,
|
|
45167
|
+
f
|
|
45168
|
+
);
|
|
45169
|
+
}
|
|
45170
|
+
};
|
|
45171
|
+
|
|
45172
|
+
|
|
45173
|
+
/**
|
|
45174
|
+
* optional int32 translator_id = 1;
|
|
45175
|
+
* @return {number}
|
|
45176
|
+
*/
|
|
45177
|
+
proto.zaber.motion.protobufs.TranslatorGetAxisPositionRequest.prototype.getTranslatorId = function() {
|
|
45178
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
45179
|
+
};
|
|
45180
|
+
|
|
45181
|
+
|
|
45182
|
+
/**
|
|
45183
|
+
* @param {number} value
|
|
45184
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorGetAxisPositionRequest} returns this
|
|
45185
|
+
*/
|
|
45186
|
+
proto.zaber.motion.protobufs.TranslatorGetAxisPositionRequest.prototype.setTranslatorId = function(value) {
|
|
45187
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
45188
|
+
};
|
|
45189
|
+
|
|
45190
|
+
|
|
45191
|
+
/**
|
|
45192
|
+
* optional string axis = 2;
|
|
45193
|
+
* @return {string}
|
|
45194
|
+
*/
|
|
45195
|
+
proto.zaber.motion.protobufs.TranslatorGetAxisPositionRequest.prototype.getAxis = function() {
|
|
45196
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
45197
|
+
};
|
|
45198
|
+
|
|
45199
|
+
|
|
45200
|
+
/**
|
|
45201
|
+
* @param {string} value
|
|
45202
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorGetAxisPositionRequest} returns this
|
|
45203
|
+
*/
|
|
45204
|
+
proto.zaber.motion.protobufs.TranslatorGetAxisPositionRequest.prototype.setAxis = function(value) {
|
|
45205
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
45206
|
+
};
|
|
45207
|
+
|
|
45208
|
+
|
|
45209
|
+
/**
|
|
45210
|
+
* optional string unit = 3;
|
|
45211
|
+
* @return {string}
|
|
45212
|
+
*/
|
|
45213
|
+
proto.zaber.motion.protobufs.TranslatorGetAxisPositionRequest.prototype.getUnit = function() {
|
|
45214
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
45215
|
+
};
|
|
45216
|
+
|
|
45217
|
+
|
|
45218
|
+
/**
|
|
45219
|
+
* @param {string} value
|
|
45220
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorGetAxisPositionRequest} returns this
|
|
45221
|
+
*/
|
|
45222
|
+
proto.zaber.motion.protobufs.TranslatorGetAxisPositionRequest.prototype.setUnit = function(value) {
|
|
45223
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
45224
|
+
};
|
|
45225
|
+
|
|
45226
|
+
|
|
45227
|
+
|
|
45228
|
+
|
|
45229
|
+
|
|
45230
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
45231
|
+
/**
|
|
45232
|
+
* Creates an object representation of this proto.
|
|
45233
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
45234
|
+
* Optional fields that are not set will be set to undefined.
|
|
45235
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
45236
|
+
* For the list of reserved names please see:
|
|
45237
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
45238
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
45239
|
+
* JSPB instance for transitional soy proto support:
|
|
45240
|
+
* http://goto/soy-param-migration
|
|
45241
|
+
* @return {!Object}
|
|
45242
|
+
*/
|
|
45243
|
+
proto.zaber.motion.protobufs.TranslatorGetAxisPositionResponse.prototype.toObject = function(opt_includeInstance) {
|
|
45244
|
+
return proto.zaber.motion.protobufs.TranslatorGetAxisPositionResponse.toObject(opt_includeInstance, this);
|
|
45245
|
+
};
|
|
45246
|
+
|
|
45247
|
+
|
|
45248
|
+
/**
|
|
45249
|
+
* Static version of the {@see toObject} method.
|
|
45250
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
45251
|
+
* the JSPB instance for transitional soy proto support:
|
|
45252
|
+
* http://goto/soy-param-migration
|
|
45253
|
+
* @param {!proto.zaber.motion.protobufs.TranslatorGetAxisPositionResponse} msg The msg instance to transform.
|
|
45254
|
+
* @return {!Object}
|
|
45255
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
45256
|
+
*/
|
|
45257
|
+
proto.zaber.motion.protobufs.TranslatorGetAxisPositionResponse.toObject = function(includeInstance, msg) {
|
|
45258
|
+
var f, obj = {
|
|
45259
|
+
value: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0)
|
|
45260
|
+
};
|
|
45261
|
+
|
|
45262
|
+
if (includeInstance) {
|
|
45263
|
+
obj.$jspbMessageInstance = msg;
|
|
45264
|
+
}
|
|
45265
|
+
return obj;
|
|
45266
|
+
};
|
|
45267
|
+
}
|
|
45268
|
+
|
|
45269
|
+
|
|
45270
|
+
/**
|
|
45271
|
+
* Deserializes binary data (in protobuf wire format).
|
|
45272
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
45273
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorGetAxisPositionResponse}
|
|
45274
|
+
*/
|
|
45275
|
+
proto.zaber.motion.protobufs.TranslatorGetAxisPositionResponse.deserializeBinary = function(bytes) {
|
|
45276
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
45277
|
+
var msg = new proto.zaber.motion.protobufs.TranslatorGetAxisPositionResponse;
|
|
45278
|
+
return proto.zaber.motion.protobufs.TranslatorGetAxisPositionResponse.deserializeBinaryFromReader(msg, reader);
|
|
45279
|
+
};
|
|
45280
|
+
|
|
45281
|
+
|
|
45282
|
+
/**
|
|
45283
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
45284
|
+
* given reader into the given message object.
|
|
45285
|
+
* @param {!proto.zaber.motion.protobufs.TranslatorGetAxisPositionResponse} msg The message object to deserialize into.
|
|
45286
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
45287
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorGetAxisPositionResponse}
|
|
45288
|
+
*/
|
|
45289
|
+
proto.zaber.motion.protobufs.TranslatorGetAxisPositionResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
45290
|
+
while (reader.nextField()) {
|
|
45291
|
+
if (reader.isEndGroup()) {
|
|
45292
|
+
break;
|
|
45293
|
+
}
|
|
45294
|
+
var field = reader.getFieldNumber();
|
|
45295
|
+
switch (field) {
|
|
45296
|
+
case 1:
|
|
45297
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
45298
|
+
msg.setValue(value);
|
|
45299
|
+
break;
|
|
45300
|
+
default:
|
|
45301
|
+
reader.skipField();
|
|
45302
|
+
break;
|
|
45303
|
+
}
|
|
45304
|
+
}
|
|
45305
|
+
return msg;
|
|
45306
|
+
};
|
|
45307
|
+
|
|
45308
|
+
|
|
45309
|
+
/**
|
|
45310
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
45311
|
+
* @return {!Uint8Array}
|
|
45312
|
+
*/
|
|
45313
|
+
proto.zaber.motion.protobufs.TranslatorGetAxisPositionResponse.prototype.serializeBinary = function() {
|
|
45314
|
+
var writer = new jspb.BinaryWriter();
|
|
45315
|
+
proto.zaber.motion.protobufs.TranslatorGetAxisPositionResponse.serializeBinaryToWriter(this, writer);
|
|
45316
|
+
return writer.getResultBuffer();
|
|
45317
|
+
};
|
|
45318
|
+
|
|
45319
|
+
|
|
45320
|
+
/**
|
|
45321
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
45322
|
+
* format), writing to the given BinaryWriter.
|
|
45323
|
+
* @param {!proto.zaber.motion.protobufs.TranslatorGetAxisPositionResponse} message
|
|
45324
|
+
* @param {!jspb.BinaryWriter} writer
|
|
45325
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
45326
|
+
*/
|
|
45327
|
+
proto.zaber.motion.protobufs.TranslatorGetAxisPositionResponse.serializeBinaryToWriter = function(message, writer) {
|
|
45328
|
+
var f = undefined;
|
|
45329
|
+
f = message.getValue();
|
|
45330
|
+
if (f !== 0.0) {
|
|
45331
|
+
writer.writeDouble(
|
|
45332
|
+
1,
|
|
45333
|
+
f
|
|
45334
|
+
);
|
|
45335
|
+
}
|
|
45336
|
+
};
|
|
45337
|
+
|
|
45338
|
+
|
|
45339
|
+
/**
|
|
45340
|
+
* optional double value = 1;
|
|
45341
|
+
* @return {number}
|
|
45342
|
+
*/
|
|
45343
|
+
proto.zaber.motion.protobufs.TranslatorGetAxisPositionResponse.prototype.getValue = function() {
|
|
45344
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
|
|
45345
|
+
};
|
|
45346
|
+
|
|
45347
|
+
|
|
45348
|
+
/**
|
|
45349
|
+
* @param {number} value
|
|
45350
|
+
* @return {!proto.zaber.motion.protobufs.TranslatorGetAxisPositionResponse} returns this
|
|
45351
|
+
*/
|
|
45352
|
+
proto.zaber.motion.protobufs.TranslatorGetAxisPositionResponse.prototype.setValue = function(value) {
|
|
45353
|
+
return jspb.Message.setProto3FloatField(this, 1, value);
|
|
45354
|
+
};
|
|
45355
|
+
|
|
45356
|
+
|
|
41678
45357
|
/**
|
|
41679
45358
|
* @enum {number}
|
|
41680
45359
|
*/
|
|
@@ -41726,7 +45405,9 @@ proto.zaber.motion.protobufs.Errors = {
|
|
|
41726
45405
|
SERIAL_PORT_BUSY: 37,
|
|
41727
45406
|
TRANSPORT_ALREADY_USED: 38,
|
|
41728
45407
|
SET_PERIPHERAL_STATE_FAILED: 39,
|
|
41729
|
-
SET_DEVICE_STATE_FAILED: 40
|
|
45408
|
+
SET_DEVICE_STATE_FAILED: 40,
|
|
45409
|
+
G_CODE_SYNTAX: 41,
|
|
45410
|
+
G_CODE_EXECUTION: 42
|
|
41730
45411
|
};
|
|
41731
45412
|
|
|
41732
45413
|
/**
|