@zaber/motion 2.7.0-zl1 → 2.8.1-alpha-1

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.
Files changed (92) hide show
  1. package/dist/binding/wasm/zaber-motion-lib.wasm +0 -0
  2. package/dist/lib/ascii/axis.d.ts +8 -0
  3. package/dist/lib/ascii/axis.js +17 -1
  4. package/dist/lib/ascii/axis.js.map +1 -1
  5. package/dist/lib/ascii/connection.js +3 -3
  6. package/dist/lib/ascii/connection.js.map +1 -1
  7. package/dist/lib/ascii/device.d.ts +9 -0
  8. package/dist/lib/ascii/device.js +17 -1
  9. package/dist/lib/ascii/device.js.map +1 -1
  10. package/dist/lib/ascii/stream.d.ts +0 -6
  11. package/dist/lib/ascii/stream.js +0 -13
  12. package/dist/lib/ascii/stream.js.map +1 -1
  13. package/dist/lib/ascii/stream_axis_definition.d.ts +1 -1
  14. package/dist/lib/ascii/stream_axis_definition.js.map +1 -1
  15. package/dist/lib/ascii/stream_buffer.d.ts +0 -1
  16. package/dist/lib/ascii/stream_buffer.js +0 -1
  17. package/dist/lib/ascii/stream_buffer.js.map +1 -1
  18. package/dist/lib/binary/connection.js +3 -3
  19. package/dist/lib/binary/connection.js.map +1 -1
  20. package/dist/lib/can_set_state_axis_response.d.ts +16 -0
  21. package/dist/lib/can_set_state_axis_response.js +18 -0
  22. package/dist/lib/can_set_state_axis_response.js.map +1 -0
  23. package/dist/lib/can_set_state_device_response.d.ts +17 -0
  24. package/dist/lib/can_set_state_device_response.js +19 -0
  25. package/dist/lib/can_set_state_device_response.js.map +1 -0
  26. package/dist/lib/exceptions/index.d.ts +0 -4
  27. package/dist/lib/exceptions/index.js +2 -10
  28. package/dist/lib/exceptions/index.js.map +1 -1
  29. package/dist/lib/gateway/call.js +7 -7
  30. package/dist/lib/gateway/call.js.map +1 -1
  31. package/dist/lib/gateway/convert_exceptions.js +0 -2
  32. package/dist/lib/gateway/convert_exceptions.js.map +1 -1
  33. package/dist/lib/gateway/events.js +5 -5
  34. package/dist/lib/gateway/events.js.map +1 -1
  35. package/dist/lib/gateway/wasm.js +1 -1
  36. package/dist/lib/gateway/wasm.js.map +1 -1
  37. package/dist/lib/index.d.ts +2 -1
  38. package/dist/lib/index.js +5 -2
  39. package/dist/lib/index.js.map +1 -1
  40. package/dist/lib/measurement.d.ts +1 -1
  41. package/dist/lib/measurement.js.map +1 -1
  42. package/dist/lib/protobufs/main_pb.d.ts +55 -447
  43. package/dist/lib/protobufs/main_pb.js +234 -3249
  44. package/dist/lib/protobufs/main_pb.js.map +1 -1
  45. package/dist/lib/wasm.js +3 -3
  46. package/dist/lib/wasm.js.map +1 -1
  47. package/package.json +3 -3
  48. package/dist/lib/exceptions/g_code_execution_exception.d.ts +0 -14
  49. package/dist/lib/exceptions/g_code_execution_exception.js +0 -32
  50. package/dist/lib/exceptions/g_code_execution_exception.js.map +0 -1
  51. package/dist/lib/exceptions/g_code_execution_exception_data.d.ts +0 -17
  52. package/dist/lib/exceptions/g_code_execution_exception_data.js +0 -18
  53. package/dist/lib/exceptions/g_code_execution_exception_data.js.map +0 -1
  54. package/dist/lib/exceptions/g_code_syntax_exception.d.ts +0 -14
  55. package/dist/lib/exceptions/g_code_syntax_exception.js +0 -32
  56. package/dist/lib/exceptions/g_code_syntax_exception.js.map +0 -1
  57. package/dist/lib/exceptions/g_code_syntax_exception_data.d.ts +0 -17
  58. package/dist/lib/exceptions/g_code_syntax_exception_data.js +0 -18
  59. package/dist/lib/exceptions/g_code_syntax_exception_data.js.map +0 -1
  60. package/dist/lib/finalizer.d.ts +0 -5
  61. package/dist/lib/finalizer.js +0 -21
  62. package/dist/lib/finalizer.js.map +0 -1
  63. package/dist/lib/gcode/axis_mapping.d.ts +0 -16
  64. package/dist/lib/gcode/axis_mapping.js +0 -38
  65. package/dist/lib/gcode/axis_mapping.js.map +0 -1
  66. package/dist/lib/gcode/index.d.ts +0 -8
  67. package/dist/lib/gcode/index.js +0 -20
  68. package/dist/lib/gcode/index.js.map +0 -1
  69. package/dist/lib/gcode/translate_message.d.ts +0 -21
  70. package/dist/lib/gcode/translate_message.js +0 -19
  71. package/dist/lib/gcode/translate_message.js.map +0 -1
  72. package/dist/lib/gcode/translate_result.d.ts +0 -17
  73. package/dist/lib/gcode/translate_result.js +0 -19
  74. package/dist/lib/gcode/translate_result.js.map +0 -1
  75. package/dist/lib/gcode/translator.d.ts +0 -68
  76. package/dist/lib/gcode/translator.js +0 -144
  77. package/dist/lib/gcode/translator.js.map +0 -1
  78. package/dist/lib/gcode/translator_axis_definition.d.ts +0 -20
  79. package/dist/lib/gcode/translator_axis_definition.js +0 -48
  80. package/dist/lib/gcode/translator_axis_definition.js.map +0 -1
  81. package/dist/lib/gcode/translator_config.d.ts +0 -18
  82. package/dist/lib/gcode/translator_config.js +0 -41
  83. package/dist/lib/gcode/translator_config.js.map +0 -1
  84. package/dist/lib/gcode/translator_definition.d.ts +0 -18
  85. package/dist/lib/gcode/translator_definition.js +0 -39
  86. package/dist/lib/gcode/translator_definition.js.map +0 -1
  87. package/dist/lib/gcode/translator_live.d.ts +0 -70
  88. package/dist/lib/gcode/translator_live.js +0 -147
  89. package/dist/lib/gcode/translator_live.js.map +0 -1
  90. package/dist/lib/gcode_ns.d.ts +0 -19
  91. package/dist/lib/gcode_ns.js +0 -35
  92. package/dist/lib/gcode_ns.js.map +0 -1
@@ -48,6 +48,9 @@ goog.exportSymbol('zaber.motion.protobufs.BinaryGenericWithUnitsResponse', null,
48
48
  goog.exportSymbol('zaber.motion.protobufs.BinaryMessage', null, proto);
49
49
  goog.exportSymbol('zaber.motion.protobufs.BinaryMessageCollection', null, proto);
50
50
  goog.exportSymbol('zaber.motion.protobufs.BinaryReplyOnlyEvent', null, proto);
51
+ goog.exportSymbol('zaber.motion.protobufs.CanSetStateAxisResponse', null, proto);
52
+ goog.exportSymbol('zaber.motion.protobufs.CanSetStateDeviceResponse', null, proto);
53
+ goog.exportSymbol('zaber.motion.protobufs.CanSetStateRequest', null, proto);
51
54
  goog.exportSymbol('zaber.motion.protobufs.CloseInterfaceRequest', null, proto);
52
55
  goog.exportSymbol('zaber.motion.protobufs.CommandFailedExceptionData', null, proto);
53
56
  goog.exportSymbol('zaber.motion.protobufs.CustomInterfaceCloseRequest', null, proto);
@@ -108,8 +111,6 @@ goog.exportSymbol('zaber.motion.protobufs.EmptyRequest', null, proto);
108
111
  goog.exportSymbol('zaber.motion.protobufs.Errors', null, proto);
109
112
  goog.exportSymbol('zaber.motion.protobufs.Event', null, proto);
110
113
  goog.exportSymbol('zaber.motion.protobufs.FirmwareVersion', null, proto);
111
- goog.exportSymbol('zaber.motion.protobufs.GCodeExecutionExceptionData', null, proto);
112
- goog.exportSymbol('zaber.motion.protobufs.GCodeSyntaxExceptionData', null, proto);
113
114
  goog.exportSymbol('zaber.motion.protobufs.GenericBinaryRequest', null, proto);
114
115
  goog.exportSymbol('zaber.motion.protobufs.GenericCommandRequest', null, proto);
115
116
  goog.exportSymbol('zaber.motion.protobufs.GenericCommandResponse', null, proto);
@@ -174,7 +175,6 @@ goog.exportSymbol('zaber.motion.protobufs.StreamCircleRequest.Type', null, proto
174
175
  goog.exportSymbol('zaber.motion.protobufs.StreamCorkRequest', null, proto);
175
176
  goog.exportSymbol('zaber.motion.protobufs.StreamDisableRequest', null, proto);
176
177
  goog.exportSymbol('zaber.motion.protobufs.StreamExecutionExceptionData', null, proto);
177
- goog.exportSymbol('zaber.motion.protobufs.StreamGenericCommandRequest', null, proto);
178
178
  goog.exportSymbol('zaber.motion.protobufs.StreamGetAxesRequest', null, proto);
179
179
  goog.exportSymbol('zaber.motion.protobufs.StreamGetAxesResponse', null, proto);
180
180
  goog.exportSymbol('zaber.motion.protobufs.StreamGetMaxCentripetalAccelerationRequest', null, proto);
@@ -217,21 +217,6 @@ goog.exportSymbol('zaber.motion.protobufs.ToStringRequest', null, proto);
217
217
  goog.exportSymbol('zaber.motion.protobufs.ToStringResponse', null, proto);
218
218
  goog.exportSymbol('zaber.motion.protobufs.ToggleDeviceDbStoreRequest', null, proto);
219
219
  goog.exportSymbol('zaber.motion.protobufs.ToolsListSerialPortsResponse', null, proto);
220
- goog.exportSymbol('zaber.motion.protobufs.TranslateMessage', null, proto);
221
- goog.exportSymbol('zaber.motion.protobufs.TranslatorAxisDefinition', null, proto);
222
- goog.exportSymbol('zaber.motion.protobufs.TranslatorAxisMapping', null, proto);
223
- goog.exportSymbol('zaber.motion.protobufs.TranslatorConfig', null, proto);
224
- goog.exportSymbol('zaber.motion.protobufs.TranslatorCreateLiveRequest', null, proto);
225
- goog.exportSymbol('zaber.motion.protobufs.TranslatorCreateRequest', null, proto);
226
- goog.exportSymbol('zaber.motion.protobufs.TranslatorCreateResponse', null, proto);
227
- goog.exportSymbol('zaber.motion.protobufs.TranslatorDefinition', null, proto);
228
- goog.exportSymbol('zaber.motion.protobufs.TranslatorEmptyRequest', null, proto);
229
- goog.exportSymbol('zaber.motion.protobufs.TranslatorGetAxisPositionRequest', null, proto);
230
- goog.exportSymbol('zaber.motion.protobufs.TranslatorGetAxisPositionResponse', null, proto);
231
- goog.exportSymbol('zaber.motion.protobufs.TranslatorSetAxisPositionRequest', null, proto);
232
- goog.exportSymbol('zaber.motion.protobufs.TranslatorSetTraverseRateRequest', null, proto);
233
- goog.exportSymbol('zaber.motion.protobufs.TranslatorTranslateRequest', null, proto);
234
- goog.exportSymbol('zaber.motion.protobufs.TranslatorTranslateResponse', null, proto);
235
220
  goog.exportSymbol('zaber.motion.protobufs.UnknownBinaryResponseEvent', null, proto);
236
221
  goog.exportSymbol('zaber.motion.protobufs.UnknownResponseEvent', null, proto);
237
222
  /**
@@ -3405,27 +3390,6 @@ if (goog.DEBUG && !COMPILED) {
3405
3390
  */
3406
3391
  proto.zaber.motion.protobufs.StreamBufferEraseRequest.displayName = 'proto.zaber.motion.protobufs.StreamBufferEraseRequest';
3407
3392
  }
3408
- /**
3409
- * Generated by JsPbCodeGenerator.
3410
- * @param {Array=} opt_data Optional initial data array, typically from a
3411
- * server response, or constructed directly in Javascript. The array is used
3412
- * in place and becomes part of the constructed object. It is not cloned.
3413
- * If no data is provided, the constructed object will be empty, but still
3414
- * valid.
3415
- * @extends {jspb.Message}
3416
- * @constructor
3417
- */
3418
- proto.zaber.motion.protobufs.StreamGenericCommandRequest = function(opt_data) {
3419
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3420
- };
3421
- goog.inherits(proto.zaber.motion.protobufs.StreamGenericCommandRequest, jspb.Message);
3422
- if (goog.DEBUG && !COMPILED) {
3423
- /**
3424
- * @public
3425
- * @override
3426
- */
3427
- proto.zaber.motion.protobufs.StreamGenericCommandRequest.displayName = 'proto.zaber.motion.protobufs.StreamGenericCommandRequest';
3428
- }
3429
3393
  /**
3430
3394
  * Generated by JsPbCodeGenerator.
3431
3395
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -4213,163 +4177,16 @@ if (goog.DEBUG && !COMPILED) {
4213
4177
  * @extends {jspb.Message}
4214
4178
  * @constructor
4215
4179
  */
4216
- proto.zaber.motion.protobufs.SetStateRequest = function(opt_data) {
4217
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4218
- };
4219
- goog.inherits(proto.zaber.motion.protobufs.SetStateRequest, jspb.Message);
4220
- if (goog.DEBUG && !COMPILED) {
4221
- /**
4222
- * @public
4223
- * @override
4224
- */
4225
- proto.zaber.motion.protobufs.SetStateRequest.displayName = 'proto.zaber.motion.protobufs.SetStateRequest';
4226
- }
4227
- /**
4228
- * Generated by JsPbCodeGenerator.
4229
- * @param {Array=} opt_data Optional initial data array, typically from a
4230
- * server response, or constructed directly in Javascript. The array is used
4231
- * in place and becomes part of the constructed object. It is not cloned.
4232
- * If no data is provided, the constructed object will be empty, but still
4233
- * valid.
4234
- * @extends {jspb.Message}
4235
- * @constructor
4236
- */
4237
- proto.zaber.motion.protobufs.TranslatorCreateRequest = function(opt_data) {
4238
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4239
- };
4240
- goog.inherits(proto.zaber.motion.protobufs.TranslatorCreateRequest, jspb.Message);
4241
- if (goog.DEBUG && !COMPILED) {
4242
- /**
4243
- * @public
4244
- * @override
4245
- */
4246
- proto.zaber.motion.protobufs.TranslatorCreateRequest.displayName = 'proto.zaber.motion.protobufs.TranslatorCreateRequest';
4247
- }
4248
- /**
4249
- * Generated by JsPbCodeGenerator.
4250
- * @param {Array=} opt_data Optional initial data array, typically from a
4251
- * server response, or constructed directly in Javascript. The array is used
4252
- * in place and becomes part of the constructed object. It is not cloned.
4253
- * If no data is provided, the constructed object will be empty, but still
4254
- * valid.
4255
- * @extends {jspb.Message}
4256
- * @constructor
4257
- */
4258
- proto.zaber.motion.protobufs.TranslatorCreateResponse = function(opt_data) {
4259
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4260
- };
4261
- goog.inherits(proto.zaber.motion.protobufs.TranslatorCreateResponse, jspb.Message);
4262
- if (goog.DEBUG && !COMPILED) {
4263
- /**
4264
- * @public
4265
- * @override
4266
- */
4267
- proto.zaber.motion.protobufs.TranslatorCreateResponse.displayName = 'proto.zaber.motion.protobufs.TranslatorCreateResponse';
4268
- }
4269
- /**
4270
- * Generated by JsPbCodeGenerator.
4271
- * @param {Array=} opt_data Optional initial data array, typically from a
4272
- * server response, or constructed directly in Javascript. The array is used
4273
- * in place and becomes part of the constructed object. It is not cloned.
4274
- * If no data is provided, the constructed object will be empty, but still
4275
- * valid.
4276
- * @extends {jspb.Message}
4277
- * @constructor
4278
- */
4279
- proto.zaber.motion.protobufs.TranslatorAxisDefinition = function(opt_data) {
4280
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4281
- };
4282
- goog.inherits(proto.zaber.motion.protobufs.TranslatorAxisDefinition, jspb.Message);
4283
- if (goog.DEBUG && !COMPILED) {
4284
- /**
4285
- * @public
4286
- * @override
4287
- */
4288
- proto.zaber.motion.protobufs.TranslatorAxisDefinition.displayName = 'proto.zaber.motion.protobufs.TranslatorAxisDefinition';
4289
- }
4290
- /**
4291
- * Generated by JsPbCodeGenerator.
4292
- * @param {Array=} opt_data Optional initial data array, typically from a
4293
- * server response, or constructed directly in Javascript. The array is used
4294
- * in place and becomes part of the constructed object. It is not cloned.
4295
- * If no data is provided, the constructed object will be empty, but still
4296
- * valid.
4297
- * @extends {jspb.Message}
4298
- * @constructor
4299
- */
4300
- proto.zaber.motion.protobufs.TranslatorDefinition = function(opt_data) {
4301
- jspb.Message.initialize(this, opt_data, 0, -1, proto.zaber.motion.protobufs.TranslatorDefinition.repeatedFields_, null);
4302
- };
4303
- goog.inherits(proto.zaber.motion.protobufs.TranslatorDefinition, jspb.Message);
4304
- if (goog.DEBUG && !COMPILED) {
4305
- /**
4306
- * @public
4307
- * @override
4308
- */
4309
- proto.zaber.motion.protobufs.TranslatorDefinition.displayName = 'proto.zaber.motion.protobufs.TranslatorDefinition';
4310
- }
4311
- /**
4312
- * Generated by JsPbCodeGenerator.
4313
- * @param {Array=} opt_data Optional initial data array, typically from a
4314
- * server response, or constructed directly in Javascript. The array is used
4315
- * in place and becomes part of the constructed object. It is not cloned.
4316
- * If no data is provided, the constructed object will be empty, but still
4317
- * valid.
4318
- * @extends {jspb.Message}
4319
- * @constructor
4320
- */
4321
- proto.zaber.motion.protobufs.TranslatorConfig = function(opt_data) {
4322
- jspb.Message.initialize(this, opt_data, 0, -1, proto.zaber.motion.protobufs.TranslatorConfig.repeatedFields_, null);
4323
- };
4324
- goog.inherits(proto.zaber.motion.protobufs.TranslatorConfig, jspb.Message);
4325
- if (goog.DEBUG && !COMPILED) {
4326
- /**
4327
- * @public
4328
- * @override
4329
- */
4330
- proto.zaber.motion.protobufs.TranslatorConfig.displayName = 'proto.zaber.motion.protobufs.TranslatorConfig';
4331
- }
4332
- /**
4333
- * Generated by JsPbCodeGenerator.
4334
- * @param {Array=} opt_data Optional initial data array, typically from a
4335
- * server response, or constructed directly in Javascript. The array is used
4336
- * in place and becomes part of the constructed object. It is not cloned.
4337
- * If no data is provided, the constructed object will be empty, but still
4338
- * valid.
4339
- * @extends {jspb.Message}
4340
- * @constructor
4341
- */
4342
- proto.zaber.motion.protobufs.TranslatorAxisMapping = function(opt_data) {
4343
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4344
- };
4345
- goog.inherits(proto.zaber.motion.protobufs.TranslatorAxisMapping, jspb.Message);
4346
- if (goog.DEBUG && !COMPILED) {
4347
- /**
4348
- * @public
4349
- * @override
4350
- */
4351
- proto.zaber.motion.protobufs.TranslatorAxisMapping.displayName = 'proto.zaber.motion.protobufs.TranslatorAxisMapping';
4352
- }
4353
- /**
4354
- * Generated by JsPbCodeGenerator.
4355
- * @param {Array=} opt_data Optional initial data array, typically from a
4356
- * server response, or constructed directly in Javascript. The array is used
4357
- * in place and becomes part of the constructed object. It is not cloned.
4358
- * If no data is provided, the constructed object will be empty, but still
4359
- * valid.
4360
- * @extends {jspb.Message}
4361
- * @constructor
4362
- */
4363
- proto.zaber.motion.protobufs.TranslatorTranslateRequest = function(opt_data) {
4180
+ proto.zaber.motion.protobufs.CanSetStateRequest = function(opt_data) {
4364
4181
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4365
4182
  };
4366
- goog.inherits(proto.zaber.motion.protobufs.TranslatorTranslateRequest, jspb.Message);
4183
+ goog.inherits(proto.zaber.motion.protobufs.CanSetStateRequest, jspb.Message);
4367
4184
  if (goog.DEBUG && !COMPILED) {
4368
4185
  /**
4369
4186
  * @public
4370
4187
  * @override
4371
4188
  */
4372
- proto.zaber.motion.protobufs.TranslatorTranslateRequest.displayName = 'proto.zaber.motion.protobufs.TranslatorTranslateRequest';
4189
+ proto.zaber.motion.protobufs.CanSetStateRequest.displayName = 'proto.zaber.motion.protobufs.CanSetStateRequest';
4373
4190
  }
4374
4191
  /**
4375
4192
  * Generated by JsPbCodeGenerator.
@@ -4381,16 +4198,16 @@ if (goog.DEBUG && !COMPILED) {
4381
4198
  * @extends {jspb.Message}
4382
4199
  * @constructor
4383
4200
  */
4384
- proto.zaber.motion.protobufs.TranslateMessage = function(opt_data) {
4201
+ proto.zaber.motion.protobufs.CanSetStateAxisResponse = function(opt_data) {
4385
4202
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4386
4203
  };
4387
- goog.inherits(proto.zaber.motion.protobufs.TranslateMessage, jspb.Message);
4204
+ goog.inherits(proto.zaber.motion.protobufs.CanSetStateAxisResponse, jspb.Message);
4388
4205
  if (goog.DEBUG && !COMPILED) {
4389
4206
  /**
4390
4207
  * @public
4391
4208
  * @override
4392
4209
  */
4393
- proto.zaber.motion.protobufs.TranslateMessage.displayName = 'proto.zaber.motion.protobufs.TranslateMessage';
4210
+ proto.zaber.motion.protobufs.CanSetStateAxisResponse.displayName = 'proto.zaber.motion.protobufs.CanSetStateAxisResponse';
4394
4211
  }
4395
4212
  /**
4396
4213
  * Generated by JsPbCodeGenerator.
@@ -4402,16 +4219,16 @@ if (goog.DEBUG && !COMPILED) {
4402
4219
  * @extends {jspb.Message}
4403
4220
  * @constructor
4404
4221
  */
4405
- proto.zaber.motion.protobufs.TranslatorTranslateResponse = function(opt_data) {
4406
- jspb.Message.initialize(this, opt_data, 0, -1, proto.zaber.motion.protobufs.TranslatorTranslateResponse.repeatedFields_, null);
4222
+ proto.zaber.motion.protobufs.CanSetStateDeviceResponse = function(opt_data) {
4223
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.zaber.motion.protobufs.CanSetStateDeviceResponse.repeatedFields_, null);
4407
4224
  };
4408
- goog.inherits(proto.zaber.motion.protobufs.TranslatorTranslateResponse, jspb.Message);
4225
+ goog.inherits(proto.zaber.motion.protobufs.CanSetStateDeviceResponse, jspb.Message);
4409
4226
  if (goog.DEBUG && !COMPILED) {
4410
4227
  /**
4411
4228
  * @public
4412
4229
  * @override
4413
4230
  */
4414
- proto.zaber.motion.protobufs.TranslatorTranslateResponse.displayName = 'proto.zaber.motion.protobufs.TranslatorTranslateResponse';
4231
+ proto.zaber.motion.protobufs.CanSetStateDeviceResponse.displayName = 'proto.zaber.motion.protobufs.CanSetStateDeviceResponse';
4415
4232
  }
4416
4233
  /**
4417
4234
  * Generated by JsPbCodeGenerator.
@@ -4423,163 +4240,16 @@ if (goog.DEBUG && !COMPILED) {
4423
4240
  * @extends {jspb.Message}
4424
4241
  * @constructor
4425
4242
  */
4426
- proto.zaber.motion.protobufs.GCodeSyntaxExceptionData = function(opt_data) {
4427
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4428
- };
4429
- goog.inherits(proto.zaber.motion.protobufs.GCodeSyntaxExceptionData, jspb.Message);
4430
- if (goog.DEBUG && !COMPILED) {
4431
- /**
4432
- * @public
4433
- * @override
4434
- */
4435
- proto.zaber.motion.protobufs.GCodeSyntaxExceptionData.displayName = 'proto.zaber.motion.protobufs.GCodeSyntaxExceptionData';
4436
- }
4437
- /**
4438
- * Generated by JsPbCodeGenerator.
4439
- * @param {Array=} opt_data Optional initial data array, typically from a
4440
- * server response, or constructed directly in Javascript. The array is used
4441
- * in place and becomes part of the constructed object. It is not cloned.
4442
- * If no data is provided, the constructed object will be empty, but still
4443
- * valid.
4444
- * @extends {jspb.Message}
4445
- * @constructor
4446
- */
4447
- proto.zaber.motion.protobufs.GCodeExecutionExceptionData = function(opt_data) {
4448
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4449
- };
4450
- goog.inherits(proto.zaber.motion.protobufs.GCodeExecutionExceptionData, jspb.Message);
4451
- if (goog.DEBUG && !COMPILED) {
4452
- /**
4453
- * @public
4454
- * @override
4455
- */
4456
- proto.zaber.motion.protobufs.GCodeExecutionExceptionData.displayName = 'proto.zaber.motion.protobufs.GCodeExecutionExceptionData';
4457
- }
4458
- /**
4459
- * Generated by JsPbCodeGenerator.
4460
- * @param {Array=} opt_data Optional initial data array, typically from a
4461
- * server response, or constructed directly in Javascript. The array is used
4462
- * in place and becomes part of the constructed object. It is not cloned.
4463
- * If no data is provided, the constructed object will be empty, but still
4464
- * valid.
4465
- * @extends {jspb.Message}
4466
- * @constructor
4467
- */
4468
- proto.zaber.motion.protobufs.TranslatorCreateLiveRequest = function(opt_data) {
4469
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4470
- };
4471
- goog.inherits(proto.zaber.motion.protobufs.TranslatorCreateLiveRequest, jspb.Message);
4472
- if (goog.DEBUG && !COMPILED) {
4473
- /**
4474
- * @public
4475
- * @override
4476
- */
4477
- proto.zaber.motion.protobufs.TranslatorCreateLiveRequest.displayName = 'proto.zaber.motion.protobufs.TranslatorCreateLiveRequest';
4478
- }
4479
- /**
4480
- * Generated by JsPbCodeGenerator.
4481
- * @param {Array=} opt_data Optional initial data array, typically from a
4482
- * server response, or constructed directly in Javascript. The array is used
4483
- * in place and becomes part of the constructed object. It is not cloned.
4484
- * If no data is provided, the constructed object will be empty, but still
4485
- * valid.
4486
- * @extends {jspb.Message}
4487
- * @constructor
4488
- */
4489
- proto.zaber.motion.protobufs.TranslatorEmptyRequest = function(opt_data) {
4490
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4491
- };
4492
- goog.inherits(proto.zaber.motion.protobufs.TranslatorEmptyRequest, jspb.Message);
4493
- if (goog.DEBUG && !COMPILED) {
4494
- /**
4495
- * @public
4496
- * @override
4497
- */
4498
- proto.zaber.motion.protobufs.TranslatorEmptyRequest.displayName = 'proto.zaber.motion.protobufs.TranslatorEmptyRequest';
4499
- }
4500
- /**
4501
- * Generated by JsPbCodeGenerator.
4502
- * @param {Array=} opt_data Optional initial data array, typically from a
4503
- * server response, or constructed directly in Javascript. The array is used
4504
- * in place and becomes part of the constructed object. It is not cloned.
4505
- * If no data is provided, the constructed object will be empty, but still
4506
- * valid.
4507
- * @extends {jspb.Message}
4508
- * @constructor
4509
- */
4510
- proto.zaber.motion.protobufs.TranslatorSetTraverseRateRequest = function(opt_data) {
4511
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4512
- };
4513
- goog.inherits(proto.zaber.motion.protobufs.TranslatorSetTraverseRateRequest, jspb.Message);
4514
- if (goog.DEBUG && !COMPILED) {
4515
- /**
4516
- * @public
4517
- * @override
4518
- */
4519
- proto.zaber.motion.protobufs.TranslatorSetTraverseRateRequest.displayName = 'proto.zaber.motion.protobufs.TranslatorSetTraverseRateRequest';
4520
- }
4521
- /**
4522
- * Generated by JsPbCodeGenerator.
4523
- * @param {Array=} opt_data Optional initial data array, typically from a
4524
- * server response, or constructed directly in Javascript. The array is used
4525
- * in place and becomes part of the constructed object. It is not cloned.
4526
- * If no data is provided, the constructed object will be empty, but still
4527
- * valid.
4528
- * @extends {jspb.Message}
4529
- * @constructor
4530
- */
4531
- proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest = function(opt_data) {
4532
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4533
- };
4534
- goog.inherits(proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest, jspb.Message);
4535
- if (goog.DEBUG && !COMPILED) {
4536
- /**
4537
- * @public
4538
- * @override
4539
- */
4540
- proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest.displayName = 'proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest';
4541
- }
4542
- /**
4543
- * Generated by JsPbCodeGenerator.
4544
- * @param {Array=} opt_data Optional initial data array, typically from a
4545
- * server response, or constructed directly in Javascript. The array is used
4546
- * in place and becomes part of the constructed object. It is not cloned.
4547
- * If no data is provided, the constructed object will be empty, but still
4548
- * valid.
4549
- * @extends {jspb.Message}
4550
- * @constructor
4551
- */
4552
- proto.zaber.motion.protobufs.TranslatorGetAxisPositionRequest = function(opt_data) {
4553
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4554
- };
4555
- goog.inherits(proto.zaber.motion.protobufs.TranslatorGetAxisPositionRequest, jspb.Message);
4556
- if (goog.DEBUG && !COMPILED) {
4557
- /**
4558
- * @public
4559
- * @override
4560
- */
4561
- proto.zaber.motion.protobufs.TranslatorGetAxisPositionRequest.displayName = 'proto.zaber.motion.protobufs.TranslatorGetAxisPositionRequest';
4562
- }
4563
- /**
4564
- * Generated by JsPbCodeGenerator.
4565
- * @param {Array=} opt_data Optional initial data array, typically from a
4566
- * server response, or constructed directly in Javascript. The array is used
4567
- * in place and becomes part of the constructed object. It is not cloned.
4568
- * If no data is provided, the constructed object will be empty, but still
4569
- * valid.
4570
- * @extends {jspb.Message}
4571
- * @constructor
4572
- */
4573
- proto.zaber.motion.protobufs.TranslatorGetAxisPositionResponse = function(opt_data) {
4243
+ proto.zaber.motion.protobufs.SetStateRequest = function(opt_data) {
4574
4244
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4575
4245
  };
4576
- goog.inherits(proto.zaber.motion.protobufs.TranslatorGetAxisPositionResponse, jspb.Message);
4246
+ goog.inherits(proto.zaber.motion.protobufs.SetStateRequest, jspb.Message);
4577
4247
  if (goog.DEBUG && !COMPILED) {
4578
4248
  /**
4579
4249
  * @public
4580
4250
  * @override
4581
4251
  */
4582
- proto.zaber.motion.protobufs.TranslatorGetAxisPositionResponse.displayName = 'proto.zaber.motion.protobufs.TranslatorGetAxisPositionResponse';
4252
+ proto.zaber.motion.protobufs.SetStateRequest.displayName = 'proto.zaber.motion.protobufs.SetStateRequest';
4583
4253
  }
4584
4254
 
4585
4255
 
@@ -34430,226 +34100,6 @@ proto.zaber.motion.protobufs.StreamBufferEraseRequest.prototype.setBufferId = fu
34430
34100
 
34431
34101
 
34432
34102
 
34433
- if (jspb.Message.GENERATE_TO_OBJECT) {
34434
- /**
34435
- * Creates an object representation of this proto.
34436
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
34437
- * Optional fields that are not set will be set to undefined.
34438
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
34439
- * For the list of reserved names please see:
34440
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
34441
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
34442
- * JSPB instance for transitional soy proto support:
34443
- * http://goto/soy-param-migration
34444
- * @return {!Object}
34445
- */
34446
- proto.zaber.motion.protobufs.StreamGenericCommandRequest.prototype.toObject = function(opt_includeInstance) {
34447
- return proto.zaber.motion.protobufs.StreamGenericCommandRequest.toObject(opt_includeInstance, this);
34448
- };
34449
-
34450
-
34451
- /**
34452
- * Static version of the {@see toObject} method.
34453
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
34454
- * the JSPB instance for transitional soy proto support:
34455
- * http://goto/soy-param-migration
34456
- * @param {!proto.zaber.motion.protobufs.StreamGenericCommandRequest} msg The msg instance to transform.
34457
- * @return {!Object}
34458
- * @suppress {unusedLocalVariables} f is only used for nested messages
34459
- */
34460
- proto.zaber.motion.protobufs.StreamGenericCommandRequest.toObject = function(includeInstance, msg) {
34461
- var f, obj = {
34462
- interfaceId: jspb.Message.getFieldWithDefault(msg, 1, 0),
34463
- device: jspb.Message.getFieldWithDefault(msg, 2, 0),
34464
- streamId: jspb.Message.getFieldWithDefault(msg, 3, 0),
34465
- command: jspb.Message.getFieldWithDefault(msg, 4, "")
34466
- };
34467
-
34468
- if (includeInstance) {
34469
- obj.$jspbMessageInstance = msg;
34470
- }
34471
- return obj;
34472
- };
34473
- }
34474
-
34475
-
34476
- /**
34477
- * Deserializes binary data (in protobuf wire format).
34478
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
34479
- * @return {!proto.zaber.motion.protobufs.StreamGenericCommandRequest}
34480
- */
34481
- proto.zaber.motion.protobufs.StreamGenericCommandRequest.deserializeBinary = function(bytes) {
34482
- var reader = new jspb.BinaryReader(bytes);
34483
- var msg = new proto.zaber.motion.protobufs.StreamGenericCommandRequest;
34484
- return proto.zaber.motion.protobufs.StreamGenericCommandRequest.deserializeBinaryFromReader(msg, reader);
34485
- };
34486
-
34487
-
34488
- /**
34489
- * Deserializes binary data (in protobuf wire format) from the
34490
- * given reader into the given message object.
34491
- * @param {!proto.zaber.motion.protobufs.StreamGenericCommandRequest} msg The message object to deserialize into.
34492
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
34493
- * @return {!proto.zaber.motion.protobufs.StreamGenericCommandRequest}
34494
- */
34495
- proto.zaber.motion.protobufs.StreamGenericCommandRequest.deserializeBinaryFromReader = function(msg, reader) {
34496
- while (reader.nextField()) {
34497
- if (reader.isEndGroup()) {
34498
- break;
34499
- }
34500
- var field = reader.getFieldNumber();
34501
- switch (field) {
34502
- case 1:
34503
- var value = /** @type {number} */ (reader.readInt32());
34504
- msg.setInterfaceId(value);
34505
- break;
34506
- case 2:
34507
- var value = /** @type {number} */ (reader.readInt32());
34508
- msg.setDevice(value);
34509
- break;
34510
- case 3:
34511
- var value = /** @type {number} */ (reader.readInt32());
34512
- msg.setStreamId(value);
34513
- break;
34514
- case 4:
34515
- var value = /** @type {string} */ (reader.readString());
34516
- msg.setCommand(value);
34517
- break;
34518
- default:
34519
- reader.skipField();
34520
- break;
34521
- }
34522
- }
34523
- return msg;
34524
- };
34525
-
34526
-
34527
- /**
34528
- * Serializes the message to binary data (in protobuf wire format).
34529
- * @return {!Uint8Array}
34530
- */
34531
- proto.zaber.motion.protobufs.StreamGenericCommandRequest.prototype.serializeBinary = function() {
34532
- var writer = new jspb.BinaryWriter();
34533
- proto.zaber.motion.protobufs.StreamGenericCommandRequest.serializeBinaryToWriter(this, writer);
34534
- return writer.getResultBuffer();
34535
- };
34536
-
34537
-
34538
- /**
34539
- * Serializes the given message to binary data (in protobuf wire
34540
- * format), writing to the given BinaryWriter.
34541
- * @param {!proto.zaber.motion.protobufs.StreamGenericCommandRequest} message
34542
- * @param {!jspb.BinaryWriter} writer
34543
- * @suppress {unusedLocalVariables} f is only used for nested messages
34544
- */
34545
- proto.zaber.motion.protobufs.StreamGenericCommandRequest.serializeBinaryToWriter = function(message, writer) {
34546
- var f = undefined;
34547
- f = message.getInterfaceId();
34548
- if (f !== 0) {
34549
- writer.writeInt32(
34550
- 1,
34551
- f
34552
- );
34553
- }
34554
- f = message.getDevice();
34555
- if (f !== 0) {
34556
- writer.writeInt32(
34557
- 2,
34558
- f
34559
- );
34560
- }
34561
- f = message.getStreamId();
34562
- if (f !== 0) {
34563
- writer.writeInt32(
34564
- 3,
34565
- f
34566
- );
34567
- }
34568
- f = message.getCommand();
34569
- if (f.length > 0) {
34570
- writer.writeString(
34571
- 4,
34572
- f
34573
- );
34574
- }
34575
- };
34576
-
34577
-
34578
- /**
34579
- * optional int32 interface_id = 1;
34580
- * @return {number}
34581
- */
34582
- proto.zaber.motion.protobufs.StreamGenericCommandRequest.prototype.getInterfaceId = function() {
34583
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
34584
- };
34585
-
34586
-
34587
- /**
34588
- * @param {number} value
34589
- * @return {!proto.zaber.motion.protobufs.StreamGenericCommandRequest} returns this
34590
- */
34591
- proto.zaber.motion.protobufs.StreamGenericCommandRequest.prototype.setInterfaceId = function(value) {
34592
- return jspb.Message.setProto3IntField(this, 1, value);
34593
- };
34594
-
34595
-
34596
- /**
34597
- * optional int32 device = 2;
34598
- * @return {number}
34599
- */
34600
- proto.zaber.motion.protobufs.StreamGenericCommandRequest.prototype.getDevice = function() {
34601
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
34602
- };
34603
-
34604
-
34605
- /**
34606
- * @param {number} value
34607
- * @return {!proto.zaber.motion.protobufs.StreamGenericCommandRequest} returns this
34608
- */
34609
- proto.zaber.motion.protobufs.StreamGenericCommandRequest.prototype.setDevice = function(value) {
34610
- return jspb.Message.setProto3IntField(this, 2, value);
34611
- };
34612
-
34613
-
34614
- /**
34615
- * optional int32 stream_id = 3;
34616
- * @return {number}
34617
- */
34618
- proto.zaber.motion.protobufs.StreamGenericCommandRequest.prototype.getStreamId = function() {
34619
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
34620
- };
34621
-
34622
-
34623
- /**
34624
- * @param {number} value
34625
- * @return {!proto.zaber.motion.protobufs.StreamGenericCommandRequest} returns this
34626
- */
34627
- proto.zaber.motion.protobufs.StreamGenericCommandRequest.prototype.setStreamId = function(value) {
34628
- return jspb.Message.setProto3IntField(this, 3, value);
34629
- };
34630
-
34631
-
34632
- /**
34633
- * optional string command = 4;
34634
- * @return {string}
34635
- */
34636
- proto.zaber.motion.protobufs.StreamGenericCommandRequest.prototype.getCommand = function() {
34637
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
34638
- };
34639
-
34640
-
34641
- /**
34642
- * @param {string} value
34643
- * @return {!proto.zaber.motion.protobufs.StreamGenericCommandRequest} returns this
34644
- */
34645
- proto.zaber.motion.protobufs.StreamGenericCommandRequest.prototype.setCommand = function(value) {
34646
- return jspb.Message.setProto3StringField(this, 4, value);
34647
- };
34648
-
34649
-
34650
-
34651
-
34652
-
34653
34103
  if (jspb.Message.GENERATE_TO_OBJECT) {
34654
34104
  /**
34655
34105
  * Creates an object representation of this proto.
@@ -41277,7 +40727,7 @@ proto.zaber.motion.protobufs.GetStateResponse.prototype.toObject = function(opt_
41277
40727
  */
41278
40728
  proto.zaber.motion.protobufs.GetStateResponse.toObject = function(includeInstance, msg) {
41279
40729
  var f, obj = {
41280
- serialization: jspb.Message.getFieldWithDefault(msg, 1, "")
40730
+ state: jspb.Message.getFieldWithDefault(msg, 1, "")
41281
40731
  };
41282
40732
 
41283
40733
  if (includeInstance) {
@@ -41316,7 +40766,7 @@ proto.zaber.motion.protobufs.GetStateResponse.deserializeBinaryFromReader = func
41316
40766
  switch (field) {
41317
40767
  case 1:
41318
40768
  var value = /** @type {string} */ (reader.readString());
41319
- msg.setSerialization(value);
40769
+ msg.setState(value);
41320
40770
  break;
41321
40771
  default:
41322
40772
  reader.skipField();
@@ -41347,7 +40797,7 @@ proto.zaber.motion.protobufs.GetStateResponse.prototype.serializeBinary = functi
41347
40797
  */
41348
40798
  proto.zaber.motion.protobufs.GetStateResponse.serializeBinaryToWriter = function(message, writer) {
41349
40799
  var f = undefined;
41350
- f = message.getSerialization();
40800
+ f = message.getState();
41351
40801
  if (f.length > 0) {
41352
40802
  writer.writeString(
41353
40803
  1,
@@ -41358,10 +40808,10 @@ proto.zaber.motion.protobufs.GetStateResponse.serializeBinaryToWriter = function
41358
40808
 
41359
40809
 
41360
40810
  /**
41361
- * optional string serialization = 1;
40811
+ * optional string state = 1;
41362
40812
  * @return {string}
41363
40813
  */
41364
- proto.zaber.motion.protobufs.GetStateResponse.prototype.getSerialization = function() {
40814
+ proto.zaber.motion.protobufs.GetStateResponse.prototype.getState = function() {
41365
40815
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
41366
40816
  };
41367
40817
 
@@ -41370,7 +40820,7 @@ proto.zaber.motion.protobufs.GetStateResponse.prototype.getSerialization = funct
41370
40820
  * @param {string} value
41371
40821
  * @return {!proto.zaber.motion.protobufs.GetStateResponse} returns this
41372
40822
  */
41373
- proto.zaber.motion.protobufs.GetStateResponse.prototype.setSerialization = function(value) {
40823
+ proto.zaber.motion.protobufs.GetStateResponse.prototype.setState = function(value) {
41374
40824
  return jspb.Message.setProto3StringField(this, 1, value);
41375
40825
  };
41376
40826
 
@@ -41391,8 +40841,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
41391
40841
  * http://goto/soy-param-migration
41392
40842
  * @return {!Object}
41393
40843
  */
41394
- proto.zaber.motion.protobufs.SetStateRequest.prototype.toObject = function(opt_includeInstance) {
41395
- return proto.zaber.motion.protobufs.SetStateRequest.toObject(opt_includeInstance, this);
40844
+ proto.zaber.motion.protobufs.CanSetStateRequest.prototype.toObject = function(opt_includeInstance) {
40845
+ return proto.zaber.motion.protobufs.CanSetStateRequest.toObject(opt_includeInstance, this);
41396
40846
  };
41397
40847
 
41398
40848
 
@@ -41401,11 +40851,11 @@ proto.zaber.motion.protobufs.SetStateRequest.prototype.toObject = function(opt_i
41401
40851
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
41402
40852
  * the JSPB instance for transitional soy proto support:
41403
40853
  * http://goto/soy-param-migration
41404
- * @param {!proto.zaber.motion.protobufs.SetStateRequest} msg The msg instance to transform.
40854
+ * @param {!proto.zaber.motion.protobufs.CanSetStateRequest} msg The msg instance to transform.
41405
40855
  * @return {!Object}
41406
40856
  * @suppress {unusedLocalVariables} f is only used for nested messages
41407
40857
  */
41408
- proto.zaber.motion.protobufs.SetStateRequest.toObject = function(includeInstance, msg) {
40858
+ proto.zaber.motion.protobufs.CanSetStateRequest.toObject = function(includeInstance, msg) {
41409
40859
  var f, obj = {
41410
40860
  interfaceId: jspb.Message.getFieldWithDefault(msg, 1, 0),
41411
40861
  device: jspb.Message.getFieldWithDefault(msg, 2, 0),
@@ -41425,23 +40875,23 @@ proto.zaber.motion.protobufs.SetStateRequest.toObject = function(includeInstance
41425
40875
  /**
41426
40876
  * Deserializes binary data (in protobuf wire format).
41427
40877
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
41428
- * @return {!proto.zaber.motion.protobufs.SetStateRequest}
40878
+ * @return {!proto.zaber.motion.protobufs.CanSetStateRequest}
41429
40879
  */
41430
- proto.zaber.motion.protobufs.SetStateRequest.deserializeBinary = function(bytes) {
40880
+ proto.zaber.motion.protobufs.CanSetStateRequest.deserializeBinary = function(bytes) {
41431
40881
  var reader = new jspb.BinaryReader(bytes);
41432
- var msg = new proto.zaber.motion.protobufs.SetStateRequest;
41433
- return proto.zaber.motion.protobufs.SetStateRequest.deserializeBinaryFromReader(msg, reader);
40882
+ var msg = new proto.zaber.motion.protobufs.CanSetStateRequest;
40883
+ return proto.zaber.motion.protobufs.CanSetStateRequest.deserializeBinaryFromReader(msg, reader);
41434
40884
  };
41435
40885
 
41436
40886
 
41437
40887
  /**
41438
40888
  * Deserializes binary data (in protobuf wire format) from the
41439
40889
  * given reader into the given message object.
41440
- * @param {!proto.zaber.motion.protobufs.SetStateRequest} msg The message object to deserialize into.
40890
+ * @param {!proto.zaber.motion.protobufs.CanSetStateRequest} msg The message object to deserialize into.
41441
40891
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
41442
- * @return {!proto.zaber.motion.protobufs.SetStateRequest}
40892
+ * @return {!proto.zaber.motion.protobufs.CanSetStateRequest}
41443
40893
  */
41444
- proto.zaber.motion.protobufs.SetStateRequest.deserializeBinaryFromReader = function(msg, reader) {
40894
+ proto.zaber.motion.protobufs.CanSetStateRequest.deserializeBinaryFromReader = function(msg, reader) {
41445
40895
  while (reader.nextField()) {
41446
40896
  if (reader.isEndGroup()) {
41447
40897
  break;
@@ -41481,9 +40931,9 @@ proto.zaber.motion.protobufs.SetStateRequest.deserializeBinaryFromReader = funct
41481
40931
  * Serializes the message to binary data (in protobuf wire format).
41482
40932
  * @return {!Uint8Array}
41483
40933
  */
41484
- proto.zaber.motion.protobufs.SetStateRequest.prototype.serializeBinary = function() {
40934
+ proto.zaber.motion.protobufs.CanSetStateRequest.prototype.serializeBinary = function() {
41485
40935
  var writer = new jspb.BinaryWriter();
41486
- proto.zaber.motion.protobufs.SetStateRequest.serializeBinaryToWriter(this, writer);
40936
+ proto.zaber.motion.protobufs.CanSetStateRequest.serializeBinaryToWriter(this, writer);
41487
40937
  return writer.getResultBuffer();
41488
40938
  };
41489
40939
 
@@ -41491,11 +40941,11 @@ proto.zaber.motion.protobufs.SetStateRequest.prototype.serializeBinary = functio
41491
40941
  /**
41492
40942
  * Serializes the given message to binary data (in protobuf wire
41493
40943
  * format), writing to the given BinaryWriter.
41494
- * @param {!proto.zaber.motion.protobufs.SetStateRequest} message
40944
+ * @param {!proto.zaber.motion.protobufs.CanSetStateRequest} message
41495
40945
  * @param {!jspb.BinaryWriter} writer
41496
40946
  * @suppress {unusedLocalVariables} f is only used for nested messages
41497
40947
  */
41498
- proto.zaber.motion.protobufs.SetStateRequest.serializeBinaryToWriter = function(message, writer) {
40948
+ proto.zaber.motion.protobufs.CanSetStateRequest.serializeBinaryToWriter = function(message, writer) {
41499
40949
  var f = undefined;
41500
40950
  f = message.getInterfaceId();
41501
40951
  if (f !== 0) {
@@ -41539,16 +40989,16 @@ proto.zaber.motion.protobufs.SetStateRequest.serializeBinaryToWriter = function(
41539
40989
  * optional int32 interface_id = 1;
41540
40990
  * @return {number}
41541
40991
  */
41542
- proto.zaber.motion.protobufs.SetStateRequest.prototype.getInterfaceId = function() {
40992
+ proto.zaber.motion.protobufs.CanSetStateRequest.prototype.getInterfaceId = function() {
41543
40993
  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
41544
40994
  };
41545
40995
 
41546
40996
 
41547
40997
  /**
41548
40998
  * @param {number} value
41549
- * @return {!proto.zaber.motion.protobufs.SetStateRequest} returns this
40999
+ * @return {!proto.zaber.motion.protobufs.CanSetStateRequest} returns this
41550
41000
  */
41551
- proto.zaber.motion.protobufs.SetStateRequest.prototype.setInterfaceId = function(value) {
41001
+ proto.zaber.motion.protobufs.CanSetStateRequest.prototype.setInterfaceId = function(value) {
41552
41002
  return jspb.Message.setProto3IntField(this, 1, value);
41553
41003
  };
41554
41004
 
@@ -41557,16 +41007,16 @@ proto.zaber.motion.protobufs.SetStateRequest.prototype.setInterfaceId = function
41557
41007
  * optional int32 device = 2;
41558
41008
  * @return {number}
41559
41009
  */
41560
- proto.zaber.motion.protobufs.SetStateRequest.prototype.getDevice = function() {
41010
+ proto.zaber.motion.protobufs.CanSetStateRequest.prototype.getDevice = function() {
41561
41011
  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
41562
41012
  };
41563
41013
 
41564
41014
 
41565
41015
  /**
41566
41016
  * @param {number} value
41567
- * @return {!proto.zaber.motion.protobufs.SetStateRequest} returns this
41017
+ * @return {!proto.zaber.motion.protobufs.CanSetStateRequest} returns this
41568
41018
  */
41569
- proto.zaber.motion.protobufs.SetStateRequest.prototype.setDevice = function(value) {
41019
+ proto.zaber.motion.protobufs.CanSetStateRequest.prototype.setDevice = function(value) {
41570
41020
  return jspb.Message.setProto3IntField(this, 2, value);
41571
41021
  };
41572
41022
 
@@ -41575,16 +41025,16 @@ proto.zaber.motion.protobufs.SetStateRequest.prototype.setDevice = function(valu
41575
41025
  * optional int32 axis = 3;
41576
41026
  * @return {number}
41577
41027
  */
41578
- proto.zaber.motion.protobufs.SetStateRequest.prototype.getAxis = function() {
41028
+ proto.zaber.motion.protobufs.CanSetStateRequest.prototype.getAxis = function() {
41579
41029
  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
41580
41030
  };
41581
41031
 
41582
41032
 
41583
41033
  /**
41584
41034
  * @param {number} value
41585
- * @return {!proto.zaber.motion.protobufs.SetStateRequest} returns this
41035
+ * @return {!proto.zaber.motion.protobufs.CanSetStateRequest} returns this
41586
41036
  */
41587
- proto.zaber.motion.protobufs.SetStateRequest.prototype.setAxis = function(value) {
41037
+ proto.zaber.motion.protobufs.CanSetStateRequest.prototype.setAxis = function(value) {
41588
41038
  return jspb.Message.setProto3IntField(this, 3, value);
41589
41039
  };
41590
41040
 
@@ -41593,16 +41043,16 @@ proto.zaber.motion.protobufs.SetStateRequest.prototype.setAxis = function(value)
41593
41043
  * optional string state = 4;
41594
41044
  * @return {string}
41595
41045
  */
41596
- proto.zaber.motion.protobufs.SetStateRequest.prototype.getState = function() {
41046
+ proto.zaber.motion.protobufs.CanSetStateRequest.prototype.getState = function() {
41597
41047
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
41598
41048
  };
41599
41049
 
41600
41050
 
41601
41051
  /**
41602
41052
  * @param {string} value
41603
- * @return {!proto.zaber.motion.protobufs.SetStateRequest} returns this
41053
+ * @return {!proto.zaber.motion.protobufs.CanSetStateRequest} returns this
41604
41054
  */
41605
- proto.zaber.motion.protobufs.SetStateRequest.prototype.setState = function(value) {
41055
+ proto.zaber.motion.protobufs.CanSetStateRequest.prototype.setState = function(value) {
41606
41056
  return jspb.Message.setProto3StringField(this, 4, value);
41607
41057
  };
41608
41058
 
@@ -41611,16 +41061,16 @@ proto.zaber.motion.protobufs.SetStateRequest.prototype.setState = function(value
41611
41061
  * optional bool device_only = 5;
41612
41062
  * @return {boolean}
41613
41063
  */
41614
- proto.zaber.motion.protobufs.SetStateRequest.prototype.getDeviceOnly = function() {
41064
+ proto.zaber.motion.protobufs.CanSetStateRequest.prototype.getDeviceOnly = function() {
41615
41065
  return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
41616
41066
  };
41617
41067
 
41618
41068
 
41619
41069
  /**
41620
41070
  * @param {boolean} value
41621
- * @return {!proto.zaber.motion.protobufs.SetStateRequest} returns this
41071
+ * @return {!proto.zaber.motion.protobufs.CanSetStateRequest} returns this
41622
41072
  */
41623
- proto.zaber.motion.protobufs.SetStateRequest.prototype.setDeviceOnly = function(value) {
41073
+ proto.zaber.motion.protobufs.CanSetStateRequest.prototype.setDeviceOnly = function(value) {
41624
41074
  return jspb.Message.setProto3BooleanField(this, 5, value);
41625
41075
  };
41626
41076
 
@@ -41641,8 +41091,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
41641
41091
  * http://goto/soy-param-migration
41642
41092
  * @return {!Object}
41643
41093
  */
41644
- proto.zaber.motion.protobufs.TranslatorCreateRequest.prototype.toObject = function(opt_includeInstance) {
41645
- return proto.zaber.motion.protobufs.TranslatorCreateRequest.toObject(opt_includeInstance, this);
41094
+ proto.zaber.motion.protobufs.CanSetStateAxisResponse.prototype.toObject = function(opt_includeInstance) {
41095
+ return proto.zaber.motion.protobufs.CanSetStateAxisResponse.toObject(opt_includeInstance, this);
41646
41096
  };
41647
41097
 
41648
41098
 
@@ -41651,14 +41101,14 @@ proto.zaber.motion.protobufs.TranslatorCreateRequest.prototype.toObject = functi
41651
41101
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
41652
41102
  * the JSPB instance for transitional soy proto support:
41653
41103
  * http://goto/soy-param-migration
41654
- * @param {!proto.zaber.motion.protobufs.TranslatorCreateRequest} msg The msg instance to transform.
41104
+ * @param {!proto.zaber.motion.protobufs.CanSetStateAxisResponse} msg The msg instance to transform.
41655
41105
  * @return {!Object}
41656
41106
  * @suppress {unusedLocalVariables} f is only used for nested messages
41657
41107
  */
41658
- proto.zaber.motion.protobufs.TranslatorCreateRequest.toObject = function(includeInstance, msg) {
41108
+ proto.zaber.motion.protobufs.CanSetStateAxisResponse.toObject = function(includeInstance, msg) {
41659
41109
  var f, obj = {
41660
- definition: (f = msg.getDefinition()) && proto.zaber.motion.protobufs.TranslatorDefinition.toObject(includeInstance, f),
41661
- config: (f = msg.getConfig()) && proto.zaber.motion.protobufs.TranslatorConfig.toObject(includeInstance, f)
41110
+ axisNumber: jspb.Message.getFieldWithDefault(msg, 1, 0),
41111
+ error: jspb.Message.getFieldWithDefault(msg, 2, "")
41662
41112
  };
41663
41113
 
41664
41114
  if (includeInstance) {
@@ -41672,23 +41122,23 @@ proto.zaber.motion.protobufs.TranslatorCreateRequest.toObject = function(include
41672
41122
  /**
41673
41123
  * Deserializes binary data (in protobuf wire format).
41674
41124
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
41675
- * @return {!proto.zaber.motion.protobufs.TranslatorCreateRequest}
41125
+ * @return {!proto.zaber.motion.protobufs.CanSetStateAxisResponse}
41676
41126
  */
41677
- proto.zaber.motion.protobufs.TranslatorCreateRequest.deserializeBinary = function(bytes) {
41127
+ proto.zaber.motion.protobufs.CanSetStateAxisResponse.deserializeBinary = function(bytes) {
41678
41128
  var reader = new jspb.BinaryReader(bytes);
41679
- var msg = new proto.zaber.motion.protobufs.TranslatorCreateRequest;
41680
- return proto.zaber.motion.protobufs.TranslatorCreateRequest.deserializeBinaryFromReader(msg, reader);
41129
+ var msg = new proto.zaber.motion.protobufs.CanSetStateAxisResponse;
41130
+ return proto.zaber.motion.protobufs.CanSetStateAxisResponse.deserializeBinaryFromReader(msg, reader);
41681
41131
  };
41682
41132
 
41683
41133
 
41684
41134
  /**
41685
41135
  * Deserializes binary data (in protobuf wire format) from the
41686
41136
  * given reader into the given message object.
41687
- * @param {!proto.zaber.motion.protobufs.TranslatorCreateRequest} msg The message object to deserialize into.
41137
+ * @param {!proto.zaber.motion.protobufs.CanSetStateAxisResponse} msg The message object to deserialize into.
41688
41138
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
41689
- * @return {!proto.zaber.motion.protobufs.TranslatorCreateRequest}
41139
+ * @return {!proto.zaber.motion.protobufs.CanSetStateAxisResponse}
41690
41140
  */
41691
- proto.zaber.motion.protobufs.TranslatorCreateRequest.deserializeBinaryFromReader = function(msg, reader) {
41141
+ proto.zaber.motion.protobufs.CanSetStateAxisResponse.deserializeBinaryFromReader = function(msg, reader) {
41692
41142
  while (reader.nextField()) {
41693
41143
  if (reader.isEndGroup()) {
41694
41144
  break;
@@ -41696,14 +41146,12 @@ proto.zaber.motion.protobufs.TranslatorCreateRequest.deserializeBinaryFromReader
41696
41146
  var field = reader.getFieldNumber();
41697
41147
  switch (field) {
41698
41148
  case 1:
41699
- var value = new proto.zaber.motion.protobufs.TranslatorDefinition;
41700
- reader.readMessage(value,proto.zaber.motion.protobufs.TranslatorDefinition.deserializeBinaryFromReader);
41701
- msg.setDefinition(value);
41149
+ var value = /** @type {number} */ (reader.readInt32());
41150
+ msg.setAxisNumber(value);
41702
41151
  break;
41703
41152
  case 2:
41704
- var value = new proto.zaber.motion.protobufs.TranslatorConfig;
41705
- reader.readMessage(value,proto.zaber.motion.protobufs.TranslatorConfig.deserializeBinaryFromReader);
41706
- msg.setConfig(value);
41153
+ var value = /** @type {string} */ (reader.readString());
41154
+ msg.setError(value);
41707
41155
  break;
41708
41156
  default:
41709
41157
  reader.skipField();
@@ -41718,9 +41166,9 @@ proto.zaber.motion.protobufs.TranslatorCreateRequest.deserializeBinaryFromReader
41718
41166
  * Serializes the message to binary data (in protobuf wire format).
41719
41167
  * @return {!Uint8Array}
41720
41168
  */
41721
- proto.zaber.motion.protobufs.TranslatorCreateRequest.prototype.serializeBinary = function() {
41169
+ proto.zaber.motion.protobufs.CanSetStateAxisResponse.prototype.serializeBinary = function() {
41722
41170
  var writer = new jspb.BinaryWriter();
41723
- proto.zaber.motion.protobufs.TranslatorCreateRequest.serializeBinaryToWriter(this, writer);
41171
+ proto.zaber.motion.protobufs.CanSetStateAxisResponse.serializeBinaryToWriter(this, writer);
41724
41172
  return writer.getResultBuffer();
41725
41173
  };
41726
41174
 
@@ -41728,105 +41176,72 @@ proto.zaber.motion.protobufs.TranslatorCreateRequest.prototype.serializeBinary =
41728
41176
  /**
41729
41177
  * Serializes the given message to binary data (in protobuf wire
41730
41178
  * format), writing to the given BinaryWriter.
41731
- * @param {!proto.zaber.motion.protobufs.TranslatorCreateRequest} message
41179
+ * @param {!proto.zaber.motion.protobufs.CanSetStateAxisResponse} message
41732
41180
  * @param {!jspb.BinaryWriter} writer
41733
41181
  * @suppress {unusedLocalVariables} f is only used for nested messages
41734
41182
  */
41735
- proto.zaber.motion.protobufs.TranslatorCreateRequest.serializeBinaryToWriter = function(message, writer) {
41183
+ proto.zaber.motion.protobufs.CanSetStateAxisResponse.serializeBinaryToWriter = function(message, writer) {
41736
41184
  var f = undefined;
41737
- f = message.getDefinition();
41738
- if (f != null) {
41739
- writer.writeMessage(
41185
+ f = message.getAxisNumber();
41186
+ if (f !== 0) {
41187
+ writer.writeInt32(
41740
41188
  1,
41741
- f,
41742
- proto.zaber.motion.protobufs.TranslatorDefinition.serializeBinaryToWriter
41189
+ f
41743
41190
  );
41744
41191
  }
41745
- f = message.getConfig();
41746
- if (f != null) {
41747
- writer.writeMessage(
41192
+ f = message.getError();
41193
+ if (f.length > 0) {
41194
+ writer.writeString(
41748
41195
  2,
41749
- f,
41750
- proto.zaber.motion.protobufs.TranslatorConfig.serializeBinaryToWriter
41196
+ f
41751
41197
  );
41752
41198
  }
41753
41199
  };
41754
41200
 
41755
41201
 
41756
41202
  /**
41757
- * optional TranslatorDefinition definition = 1;
41758
- * @return {?proto.zaber.motion.protobufs.TranslatorDefinition}
41203
+ * optional int32 axis_number = 1;
41204
+ * @return {number}
41759
41205
  */
41760
- proto.zaber.motion.protobufs.TranslatorCreateRequest.prototype.getDefinition = function() {
41761
- return /** @type{?proto.zaber.motion.protobufs.TranslatorDefinition} */ (
41762
- jspb.Message.getWrapperField(this, proto.zaber.motion.protobufs.TranslatorDefinition, 1));
41763
- };
41764
-
41765
-
41766
- /**
41767
- * @param {?proto.zaber.motion.protobufs.TranslatorDefinition|undefined} value
41768
- * @return {!proto.zaber.motion.protobufs.TranslatorCreateRequest} returns this
41769
- */
41770
- proto.zaber.motion.protobufs.TranslatorCreateRequest.prototype.setDefinition = function(value) {
41771
- return jspb.Message.setWrapperField(this, 1, value);
41206
+ proto.zaber.motion.protobufs.CanSetStateAxisResponse.prototype.getAxisNumber = function() {
41207
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
41772
41208
  };
41773
41209
 
41774
41210
 
41775
41211
  /**
41776
- * Clears the message field making it undefined.
41777
- * @return {!proto.zaber.motion.protobufs.TranslatorCreateRequest} returns this
41212
+ * @param {number} value
41213
+ * @return {!proto.zaber.motion.protobufs.CanSetStateAxisResponse} returns this
41778
41214
  */
41779
- proto.zaber.motion.protobufs.TranslatorCreateRequest.prototype.clearDefinition = function() {
41780
- return this.setDefinition(undefined);
41215
+ proto.zaber.motion.protobufs.CanSetStateAxisResponse.prototype.setAxisNumber = function(value) {
41216
+ return jspb.Message.setProto3IntField(this, 1, value);
41781
41217
  };
41782
41218
 
41783
41219
 
41784
41220
  /**
41785
- * Returns whether this field is set.
41786
- * @return {boolean}
41221
+ * optional string error = 2;
41222
+ * @return {string}
41787
41223
  */
41788
- proto.zaber.motion.protobufs.TranslatorCreateRequest.prototype.hasDefinition = function() {
41789
- return jspb.Message.getField(this, 1) != null;
41224
+ proto.zaber.motion.protobufs.CanSetStateAxisResponse.prototype.getError = function() {
41225
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
41790
41226
  };
41791
41227
 
41792
41228
 
41793
41229
  /**
41794
- * optional TranslatorConfig config = 2;
41795
- * @return {?proto.zaber.motion.protobufs.TranslatorConfig}
41230
+ * @param {string} value
41231
+ * @return {!proto.zaber.motion.protobufs.CanSetStateAxisResponse} returns this
41796
41232
  */
41797
- proto.zaber.motion.protobufs.TranslatorCreateRequest.prototype.getConfig = function() {
41798
- return /** @type{?proto.zaber.motion.protobufs.TranslatorConfig} */ (
41799
- jspb.Message.getWrapperField(this, proto.zaber.motion.protobufs.TranslatorConfig, 2));
41800
- };
41801
-
41802
-
41803
- /**
41804
- * @param {?proto.zaber.motion.protobufs.TranslatorConfig|undefined} value
41805
- * @return {!proto.zaber.motion.protobufs.TranslatorCreateRequest} returns this
41806
- */
41807
- proto.zaber.motion.protobufs.TranslatorCreateRequest.prototype.setConfig = function(value) {
41808
- return jspb.Message.setWrapperField(this, 2, value);
41233
+ proto.zaber.motion.protobufs.CanSetStateAxisResponse.prototype.setError = function(value) {
41234
+ return jspb.Message.setProto3StringField(this, 2, value);
41809
41235
  };
41810
41236
 
41811
41237
 
41812
- /**
41813
- * Clears the message field making it undefined.
41814
- * @return {!proto.zaber.motion.protobufs.TranslatorCreateRequest} returns this
41815
- */
41816
- proto.zaber.motion.protobufs.TranslatorCreateRequest.prototype.clearConfig = function() {
41817
- return this.setConfig(undefined);
41818
- };
41819
-
41820
41238
 
41821
41239
  /**
41822
- * Returns whether this field is set.
41823
- * @return {boolean}
41240
+ * List of repeated fields within this message type.
41241
+ * @private {!Array<number>}
41242
+ * @const
41824
41243
  */
41825
- proto.zaber.motion.protobufs.TranslatorCreateRequest.prototype.hasConfig = function() {
41826
- return jspb.Message.getField(this, 2) != null;
41827
- };
41828
-
41829
-
41244
+ proto.zaber.motion.protobufs.CanSetStateDeviceResponse.repeatedFields_ = [3];
41830
41245
 
41831
41246
 
41832
41247
 
@@ -41843,8 +41258,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
41843
41258
  * http://goto/soy-param-migration
41844
41259
  * @return {!Object}
41845
41260
  */
41846
- proto.zaber.motion.protobufs.TranslatorCreateResponse.prototype.toObject = function(opt_includeInstance) {
41847
- return proto.zaber.motion.protobufs.TranslatorCreateResponse.toObject(opt_includeInstance, this);
41261
+ proto.zaber.motion.protobufs.CanSetStateDeviceResponse.prototype.toObject = function(opt_includeInstance) {
41262
+ return proto.zaber.motion.protobufs.CanSetStateDeviceResponse.toObject(opt_includeInstance, this);
41848
41263
  };
41849
41264
 
41850
41265
 
@@ -41853,13 +41268,15 @@ proto.zaber.motion.protobufs.TranslatorCreateResponse.prototype.toObject = funct
41853
41268
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
41854
41269
  * the JSPB instance for transitional soy proto support:
41855
41270
  * http://goto/soy-param-migration
41856
- * @param {!proto.zaber.motion.protobufs.TranslatorCreateResponse} msg The msg instance to transform.
41271
+ * @param {!proto.zaber.motion.protobufs.CanSetStateDeviceResponse} msg The msg instance to transform.
41857
41272
  * @return {!Object}
41858
41273
  * @suppress {unusedLocalVariables} f is only used for nested messages
41859
41274
  */
41860
- proto.zaber.motion.protobufs.TranslatorCreateResponse.toObject = function(includeInstance, msg) {
41275
+ proto.zaber.motion.protobufs.CanSetStateDeviceResponse.toObject = function(includeInstance, msg) {
41861
41276
  var f, obj = {
41862
- translatorId: jspb.Message.getFieldWithDefault(msg, 1, 0)
41277
+ error: jspb.Message.getFieldWithDefault(msg, 2, ""),
41278
+ peripheralErrorsList: jspb.Message.toObjectList(msg.getPeripheralErrorsList(),
41279
+ proto.zaber.motion.protobufs.CanSetStateAxisResponse.toObject, includeInstance)
41863
41280
  };
41864
41281
 
41865
41282
  if (includeInstance) {
@@ -41873,2173 +41290,37 @@ proto.zaber.motion.protobufs.TranslatorCreateResponse.toObject = function(includ
41873
41290
  /**
41874
41291
  * Deserializes binary data (in protobuf wire format).
41875
41292
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
41876
- * @return {!proto.zaber.motion.protobufs.TranslatorCreateResponse}
41293
+ * @return {!proto.zaber.motion.protobufs.CanSetStateDeviceResponse}
41877
41294
  */
41878
- proto.zaber.motion.protobufs.TranslatorCreateResponse.deserializeBinary = function(bytes) {
41295
+ proto.zaber.motion.protobufs.CanSetStateDeviceResponse.deserializeBinary = function(bytes) {
41879
41296
  var reader = new jspb.BinaryReader(bytes);
41880
- var msg = new proto.zaber.motion.protobufs.TranslatorCreateResponse;
41881
- return proto.zaber.motion.protobufs.TranslatorCreateResponse.deserializeBinaryFromReader(msg, reader);
41297
+ var msg = new proto.zaber.motion.protobufs.CanSetStateDeviceResponse;
41298
+ return proto.zaber.motion.protobufs.CanSetStateDeviceResponse.deserializeBinaryFromReader(msg, reader);
41882
41299
  };
41883
41300
 
41884
41301
 
41885
41302
  /**
41886
41303
  * Deserializes binary data (in protobuf wire format) from the
41887
41304
  * given reader into the given message object.
41888
- * @param {!proto.zaber.motion.protobufs.TranslatorCreateResponse} msg The message object to deserialize into.
41305
+ * @param {!proto.zaber.motion.protobufs.CanSetStateDeviceResponse} msg The message object to deserialize into.
41889
41306
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
41890
- * @return {!proto.zaber.motion.protobufs.TranslatorCreateResponse}
41307
+ * @return {!proto.zaber.motion.protobufs.CanSetStateDeviceResponse}
41891
41308
  */
41892
- proto.zaber.motion.protobufs.TranslatorCreateResponse.deserializeBinaryFromReader = function(msg, reader) {
41309
+ proto.zaber.motion.protobufs.CanSetStateDeviceResponse.deserializeBinaryFromReader = function(msg, reader) {
41893
41310
  while (reader.nextField()) {
41894
41311
  if (reader.isEndGroup()) {
41895
41312
  break;
41896
41313
  }
41897
41314
  var field = reader.getFieldNumber();
41898
41315
  switch (field) {
41899
- case 1:
41900
- var value = /** @type {number} */ (reader.readInt32());
41901
- msg.setTranslatorId(value);
41902
- break;
41903
- default:
41904
- reader.skipField();
41905
- break;
41906
- }
41907
- }
41908
- return msg;
41909
- };
41910
-
41911
-
41912
- /**
41913
- * Serializes the message to binary data (in protobuf wire format).
41914
- * @return {!Uint8Array}
41915
- */
41916
- proto.zaber.motion.protobufs.TranslatorCreateResponse.prototype.serializeBinary = function() {
41917
- var writer = new jspb.BinaryWriter();
41918
- proto.zaber.motion.protobufs.TranslatorCreateResponse.serializeBinaryToWriter(this, writer);
41919
- return writer.getResultBuffer();
41920
- };
41921
-
41922
-
41923
- /**
41924
- * Serializes the given message to binary data (in protobuf wire
41925
- * format), writing to the given BinaryWriter.
41926
- * @param {!proto.zaber.motion.protobufs.TranslatorCreateResponse} message
41927
- * @param {!jspb.BinaryWriter} writer
41928
- * @suppress {unusedLocalVariables} f is only used for nested messages
41929
- */
41930
- proto.zaber.motion.protobufs.TranslatorCreateResponse.serializeBinaryToWriter = function(message, writer) {
41931
- var f = undefined;
41932
- f = message.getTranslatorId();
41933
- if (f !== 0) {
41934
- writer.writeInt32(
41935
- 1,
41936
- f
41937
- );
41938
- }
41939
- };
41940
-
41941
-
41942
- /**
41943
- * optional int32 translator_id = 1;
41944
- * @return {number}
41945
- */
41946
- proto.zaber.motion.protobufs.TranslatorCreateResponse.prototype.getTranslatorId = function() {
41947
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
41948
- };
41949
-
41950
-
41951
- /**
41952
- * @param {number} value
41953
- * @return {!proto.zaber.motion.protobufs.TranslatorCreateResponse} returns this
41954
- */
41955
- proto.zaber.motion.protobufs.TranslatorCreateResponse.prototype.setTranslatorId = function(value) {
41956
- return jspb.Message.setProto3IntField(this, 1, value);
41957
- };
41958
-
41959
-
41960
-
41961
-
41962
-
41963
- if (jspb.Message.GENERATE_TO_OBJECT) {
41964
- /**
41965
- * Creates an object representation of this proto.
41966
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
41967
- * Optional fields that are not set will be set to undefined.
41968
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
41969
- * For the list of reserved names please see:
41970
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
41971
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
41972
- * JSPB instance for transitional soy proto support:
41973
- * http://goto/soy-param-migration
41974
- * @return {!Object}
41975
- */
41976
- proto.zaber.motion.protobufs.TranslatorAxisDefinition.prototype.toObject = function(opt_includeInstance) {
41977
- return proto.zaber.motion.protobufs.TranslatorAxisDefinition.toObject(opt_includeInstance, this);
41978
- };
41979
-
41980
-
41981
- /**
41982
- * Static version of the {@see toObject} method.
41983
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
41984
- * the JSPB instance for transitional soy proto support:
41985
- * http://goto/soy-param-migration
41986
- * @param {!proto.zaber.motion.protobufs.TranslatorAxisDefinition} msg The msg instance to transform.
41987
- * @return {!Object}
41988
- * @suppress {unusedLocalVariables} f is only used for nested messages
41989
- */
41990
- proto.zaber.motion.protobufs.TranslatorAxisDefinition.toObject = function(includeInstance, msg) {
41991
- var f, obj = {
41992
- axisLetter: jspb.Message.getFieldWithDefault(msg, 1, ""),
41993
- peripheralId: jspb.Message.getFieldWithDefault(msg, 2, 0),
41994
- microstepResolution: jspb.Message.getFieldWithDefault(msg, 3, 0)
41995
- };
41996
-
41997
- if (includeInstance) {
41998
- obj.$jspbMessageInstance = msg;
41999
- }
42000
- return obj;
42001
- };
42002
- }
42003
-
42004
-
42005
- /**
42006
- * Deserializes binary data (in protobuf wire format).
42007
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
42008
- * @return {!proto.zaber.motion.protobufs.TranslatorAxisDefinition}
42009
- */
42010
- proto.zaber.motion.protobufs.TranslatorAxisDefinition.deserializeBinary = function(bytes) {
42011
- var reader = new jspb.BinaryReader(bytes);
42012
- var msg = new proto.zaber.motion.protobufs.TranslatorAxisDefinition;
42013
- return proto.zaber.motion.protobufs.TranslatorAxisDefinition.deserializeBinaryFromReader(msg, reader);
42014
- };
42015
-
42016
-
42017
- /**
42018
- * Deserializes binary data (in protobuf wire format) from the
42019
- * given reader into the given message object.
42020
- * @param {!proto.zaber.motion.protobufs.TranslatorAxisDefinition} msg The message object to deserialize into.
42021
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
42022
- * @return {!proto.zaber.motion.protobufs.TranslatorAxisDefinition}
42023
- */
42024
- proto.zaber.motion.protobufs.TranslatorAxisDefinition.deserializeBinaryFromReader = function(msg, reader) {
42025
- while (reader.nextField()) {
42026
- if (reader.isEndGroup()) {
42027
- break;
42028
- }
42029
- var field = reader.getFieldNumber();
42030
- switch (field) {
42031
- case 1:
42032
- var value = /** @type {string} */ (reader.readString());
42033
- msg.setAxisLetter(value);
42034
- break;
42035
- case 2:
42036
- var value = /** @type {number} */ (reader.readInt32());
42037
- msg.setPeripheralId(value);
42038
- break;
42039
- case 3:
42040
- var value = /** @type {number} */ (reader.readInt32());
42041
- msg.setMicrostepResolution(value);
42042
- break;
42043
- default:
42044
- reader.skipField();
42045
- break;
42046
- }
42047
- }
42048
- return msg;
42049
- };
42050
-
42051
-
42052
- /**
42053
- * Serializes the message to binary data (in protobuf wire format).
42054
- * @return {!Uint8Array}
42055
- */
42056
- proto.zaber.motion.protobufs.TranslatorAxisDefinition.prototype.serializeBinary = function() {
42057
- var writer = new jspb.BinaryWriter();
42058
- proto.zaber.motion.protobufs.TranslatorAxisDefinition.serializeBinaryToWriter(this, writer);
42059
- return writer.getResultBuffer();
42060
- };
42061
-
42062
-
42063
- /**
42064
- * Serializes the given message to binary data (in protobuf wire
42065
- * format), writing to the given BinaryWriter.
42066
- * @param {!proto.zaber.motion.protobufs.TranslatorAxisDefinition} message
42067
- * @param {!jspb.BinaryWriter} writer
42068
- * @suppress {unusedLocalVariables} f is only used for nested messages
42069
- */
42070
- proto.zaber.motion.protobufs.TranslatorAxisDefinition.serializeBinaryToWriter = function(message, writer) {
42071
- var f = undefined;
42072
- f = message.getAxisLetter();
42073
- if (f.length > 0) {
42074
- writer.writeString(
42075
- 1,
42076
- f
42077
- );
42078
- }
42079
- f = message.getPeripheralId();
42080
- if (f !== 0) {
42081
- writer.writeInt32(
42082
- 2,
42083
- f
42084
- );
42085
- }
42086
- f = message.getMicrostepResolution();
42087
- if (f !== 0) {
42088
- writer.writeInt32(
42089
- 3,
42090
- f
42091
- );
42092
- }
42093
- };
42094
-
42095
-
42096
- /**
42097
- * optional string axis_letter = 1;
42098
- * @return {string}
42099
- */
42100
- proto.zaber.motion.protobufs.TranslatorAxisDefinition.prototype.getAxisLetter = function() {
42101
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
42102
- };
42103
-
42104
-
42105
- /**
42106
- * @param {string} value
42107
- * @return {!proto.zaber.motion.protobufs.TranslatorAxisDefinition} returns this
42108
- */
42109
- proto.zaber.motion.protobufs.TranslatorAxisDefinition.prototype.setAxisLetter = function(value) {
42110
- return jspb.Message.setProto3StringField(this, 1, value);
42111
- };
42112
-
42113
-
42114
- /**
42115
- * optional int32 peripheral_id = 2;
42116
- * @return {number}
42117
- */
42118
- proto.zaber.motion.protobufs.TranslatorAxisDefinition.prototype.getPeripheralId = function() {
42119
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
42120
- };
42121
-
42122
-
42123
- /**
42124
- * @param {number} value
42125
- * @return {!proto.zaber.motion.protobufs.TranslatorAxisDefinition} returns this
42126
- */
42127
- proto.zaber.motion.protobufs.TranslatorAxisDefinition.prototype.setPeripheralId = function(value) {
42128
- return jspb.Message.setProto3IntField(this, 2, value);
42129
- };
42130
-
42131
-
42132
- /**
42133
- * optional int32 microstep_resolution = 3;
42134
- * @return {number}
42135
- */
42136
- proto.zaber.motion.protobufs.TranslatorAxisDefinition.prototype.getMicrostepResolution = function() {
42137
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
42138
- };
42139
-
42140
-
42141
- /**
42142
- * @param {number} value
42143
- * @return {!proto.zaber.motion.protobufs.TranslatorAxisDefinition} returns this
42144
- */
42145
- proto.zaber.motion.protobufs.TranslatorAxisDefinition.prototype.setMicrostepResolution = function(value) {
42146
- return jspb.Message.setProto3IntField(this, 3, value);
42147
- };
42148
-
42149
-
42150
-
42151
- /**
42152
- * List of repeated fields within this message type.
42153
- * @private {!Array<number>}
42154
- * @const
42155
- */
42156
- proto.zaber.motion.protobufs.TranslatorDefinition.repeatedFields_ = [2];
42157
-
42158
-
42159
-
42160
- if (jspb.Message.GENERATE_TO_OBJECT) {
42161
- /**
42162
- * Creates an object representation of this proto.
42163
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
42164
- * Optional fields that are not set will be set to undefined.
42165
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
42166
- * For the list of reserved names please see:
42167
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
42168
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
42169
- * JSPB instance for transitional soy proto support:
42170
- * http://goto/soy-param-migration
42171
- * @return {!Object}
42172
- */
42173
- proto.zaber.motion.protobufs.TranslatorDefinition.prototype.toObject = function(opt_includeInstance) {
42174
- return proto.zaber.motion.protobufs.TranslatorDefinition.toObject(opt_includeInstance, this);
42175
- };
42176
-
42177
-
42178
- /**
42179
- * Static version of the {@see toObject} method.
42180
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
42181
- * the JSPB instance for transitional soy proto support:
42182
- * http://goto/soy-param-migration
42183
- * @param {!proto.zaber.motion.protobufs.TranslatorDefinition} msg The msg instance to transform.
42184
- * @return {!Object}
42185
- * @suppress {unusedLocalVariables} f is only used for nested messages
42186
- */
42187
- proto.zaber.motion.protobufs.TranslatorDefinition.toObject = function(includeInstance, msg) {
42188
- var f, obj = {
42189
- deviceId: jspb.Message.getFieldWithDefault(msg, 1, 0),
42190
- axesList: jspb.Message.toObjectList(msg.getAxesList(),
42191
- proto.zaber.motion.protobufs.TranslatorAxisDefinition.toObject, includeInstance)
42192
- };
42193
-
42194
- if (includeInstance) {
42195
- obj.$jspbMessageInstance = msg;
42196
- }
42197
- return obj;
42198
- };
42199
- }
42200
-
42201
-
42202
- /**
42203
- * Deserializes binary data (in protobuf wire format).
42204
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
42205
- * @return {!proto.zaber.motion.protobufs.TranslatorDefinition}
42206
- */
42207
- proto.zaber.motion.protobufs.TranslatorDefinition.deserializeBinary = function(bytes) {
42208
- var reader = new jspb.BinaryReader(bytes);
42209
- var msg = new proto.zaber.motion.protobufs.TranslatorDefinition;
42210
- return proto.zaber.motion.protobufs.TranslatorDefinition.deserializeBinaryFromReader(msg, reader);
42211
- };
42212
-
42213
-
42214
- /**
42215
- * Deserializes binary data (in protobuf wire format) from the
42216
- * given reader into the given message object.
42217
- * @param {!proto.zaber.motion.protobufs.TranslatorDefinition} msg The message object to deserialize into.
42218
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
42219
- * @return {!proto.zaber.motion.protobufs.TranslatorDefinition}
42220
- */
42221
- proto.zaber.motion.protobufs.TranslatorDefinition.deserializeBinaryFromReader = function(msg, reader) {
42222
- while (reader.nextField()) {
42223
- if (reader.isEndGroup()) {
42224
- break;
42225
- }
42226
- var field = reader.getFieldNumber();
42227
- switch (field) {
42228
- case 1:
42229
- var value = /** @type {number} */ (reader.readInt32());
42230
- msg.setDeviceId(value);
42231
- break;
42232
- case 2:
42233
- var value = new proto.zaber.motion.protobufs.TranslatorAxisDefinition;
42234
- reader.readMessage(value,proto.zaber.motion.protobufs.TranslatorAxisDefinition.deserializeBinaryFromReader);
42235
- msg.addAxes(value);
42236
- break;
42237
- default:
42238
- reader.skipField();
42239
- break;
42240
- }
42241
- }
42242
- return msg;
42243
- };
42244
-
42245
-
42246
- /**
42247
- * Serializes the message to binary data (in protobuf wire format).
42248
- * @return {!Uint8Array}
42249
- */
42250
- proto.zaber.motion.protobufs.TranslatorDefinition.prototype.serializeBinary = function() {
42251
- var writer = new jspb.BinaryWriter();
42252
- proto.zaber.motion.protobufs.TranslatorDefinition.serializeBinaryToWriter(this, writer);
42253
- return writer.getResultBuffer();
42254
- };
42255
-
42256
-
42257
- /**
42258
- * Serializes the given message to binary data (in protobuf wire
42259
- * format), writing to the given BinaryWriter.
42260
- * @param {!proto.zaber.motion.protobufs.TranslatorDefinition} message
42261
- * @param {!jspb.BinaryWriter} writer
42262
- * @suppress {unusedLocalVariables} f is only used for nested messages
42263
- */
42264
- proto.zaber.motion.protobufs.TranslatorDefinition.serializeBinaryToWriter = function(message, writer) {
42265
- var f = undefined;
42266
- f = message.getDeviceId();
42267
- if (f !== 0) {
42268
- writer.writeInt32(
42269
- 1,
42270
- f
42271
- );
42272
- }
42273
- f = message.getAxesList();
42274
- if (f.length > 0) {
42275
- writer.writeRepeatedMessage(
42276
- 2,
42277
- f,
42278
- proto.zaber.motion.protobufs.TranslatorAxisDefinition.serializeBinaryToWriter
42279
- );
42280
- }
42281
- };
42282
-
42283
-
42284
- /**
42285
- * optional int32 device_id = 1;
42286
- * @return {number}
42287
- */
42288
- proto.zaber.motion.protobufs.TranslatorDefinition.prototype.getDeviceId = function() {
42289
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
42290
- };
42291
-
42292
-
42293
- /**
42294
- * @param {number} value
42295
- * @return {!proto.zaber.motion.protobufs.TranslatorDefinition} returns this
42296
- */
42297
- proto.zaber.motion.protobufs.TranslatorDefinition.prototype.setDeviceId = function(value) {
42298
- return jspb.Message.setProto3IntField(this, 1, value);
42299
- };
42300
-
42301
-
42302
- /**
42303
- * repeated TranslatorAxisDefinition axes = 2;
42304
- * @return {!Array<!proto.zaber.motion.protobufs.TranslatorAxisDefinition>}
42305
- */
42306
- proto.zaber.motion.protobufs.TranslatorDefinition.prototype.getAxesList = function() {
42307
- return /** @type{!Array<!proto.zaber.motion.protobufs.TranslatorAxisDefinition>} */ (
42308
- jspb.Message.getRepeatedWrapperField(this, proto.zaber.motion.protobufs.TranslatorAxisDefinition, 2));
42309
- };
42310
-
42311
-
42312
- /**
42313
- * @param {!Array<!proto.zaber.motion.protobufs.TranslatorAxisDefinition>} value
42314
- * @return {!proto.zaber.motion.protobufs.TranslatorDefinition} returns this
42315
- */
42316
- proto.zaber.motion.protobufs.TranslatorDefinition.prototype.setAxesList = function(value) {
42317
- return jspb.Message.setRepeatedWrapperField(this, 2, value);
42318
- };
42319
-
42320
-
42321
- /**
42322
- * @param {!proto.zaber.motion.protobufs.TranslatorAxisDefinition=} opt_value
42323
- * @param {number=} opt_index
42324
- * @return {!proto.zaber.motion.protobufs.TranslatorAxisDefinition}
42325
- */
42326
- proto.zaber.motion.protobufs.TranslatorDefinition.prototype.addAxes = function(opt_value, opt_index) {
42327
- return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.zaber.motion.protobufs.TranslatorAxisDefinition, opt_index);
42328
- };
42329
-
42330
-
42331
- /**
42332
- * Clears the list making it empty but non-null.
42333
- * @return {!proto.zaber.motion.protobufs.TranslatorDefinition} returns this
42334
- */
42335
- proto.zaber.motion.protobufs.TranslatorDefinition.prototype.clearAxesList = function() {
42336
- return this.setAxesList([]);
42337
- };
42338
-
42339
-
42340
-
42341
- /**
42342
- * List of repeated fields within this message type.
42343
- * @private {!Array<number>}
42344
- * @const
42345
- */
42346
- proto.zaber.motion.protobufs.TranslatorConfig.repeatedFields_ = [2];
42347
-
42348
-
42349
-
42350
- if (jspb.Message.GENERATE_TO_OBJECT) {
42351
- /**
42352
- * Creates an object representation of this proto.
42353
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
42354
- * Optional fields that are not set will be set to undefined.
42355
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
42356
- * For the list of reserved names please see:
42357
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
42358
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
42359
- * JSPB instance for transitional soy proto support:
42360
- * http://goto/soy-param-migration
42361
- * @return {!Object}
42362
- */
42363
- proto.zaber.motion.protobufs.TranslatorConfig.prototype.toObject = function(opt_includeInstance) {
42364
- return proto.zaber.motion.protobufs.TranslatorConfig.toObject(opt_includeInstance, this);
42365
- };
42366
-
42367
-
42368
- /**
42369
- * Static version of the {@see toObject} method.
42370
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
42371
- * the JSPB instance for transitional soy proto support:
42372
- * http://goto/soy-param-migration
42373
- * @param {!proto.zaber.motion.protobufs.TranslatorConfig} msg The msg instance to transform.
42374
- * @return {!Object}
42375
- * @suppress {unusedLocalVariables} f is only used for nested messages
42376
- */
42377
- proto.zaber.motion.protobufs.TranslatorConfig.toObject = function(includeInstance, msg) {
42378
- var f, obj = {
42379
- traverseRate: (f = msg.getTraverseRate()) && proto.zaber.motion.protobufs.Measurement.toObject(includeInstance, f),
42380
- axesMappingList: jspb.Message.toObjectList(msg.getAxesMappingList(),
42381
- proto.zaber.motion.protobufs.TranslatorAxisMapping.toObject, includeInstance)
42382
- };
42383
-
42384
- if (includeInstance) {
42385
- obj.$jspbMessageInstance = msg;
42386
- }
42387
- return obj;
42388
- };
42389
- }
42390
-
42391
-
42392
- /**
42393
- * Deserializes binary data (in protobuf wire format).
42394
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
42395
- * @return {!proto.zaber.motion.protobufs.TranslatorConfig}
42396
- */
42397
- proto.zaber.motion.protobufs.TranslatorConfig.deserializeBinary = function(bytes) {
42398
- var reader = new jspb.BinaryReader(bytes);
42399
- var msg = new proto.zaber.motion.protobufs.TranslatorConfig;
42400
- return proto.zaber.motion.protobufs.TranslatorConfig.deserializeBinaryFromReader(msg, reader);
42401
- };
42402
-
42403
-
42404
- /**
42405
- * Deserializes binary data (in protobuf wire format) from the
42406
- * given reader into the given message object.
42407
- * @param {!proto.zaber.motion.protobufs.TranslatorConfig} msg The message object to deserialize into.
42408
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
42409
- * @return {!proto.zaber.motion.protobufs.TranslatorConfig}
42410
- */
42411
- proto.zaber.motion.protobufs.TranslatorConfig.deserializeBinaryFromReader = function(msg, reader) {
42412
- while (reader.nextField()) {
42413
- if (reader.isEndGroup()) {
42414
- break;
42415
- }
42416
- var field = reader.getFieldNumber();
42417
- switch (field) {
42418
- case 1:
42419
- var value = new proto.zaber.motion.protobufs.Measurement;
42420
- reader.readMessage(value,proto.zaber.motion.protobufs.Measurement.deserializeBinaryFromReader);
42421
- msg.setTraverseRate(value);
42422
- break;
42423
- case 2:
42424
- var value = new proto.zaber.motion.protobufs.TranslatorAxisMapping;
42425
- reader.readMessage(value,proto.zaber.motion.protobufs.TranslatorAxisMapping.deserializeBinaryFromReader);
42426
- msg.addAxesMapping(value);
42427
- break;
42428
- default:
42429
- reader.skipField();
42430
- break;
42431
- }
42432
- }
42433
- return msg;
42434
- };
42435
-
42436
-
42437
- /**
42438
- * Serializes the message to binary data (in protobuf wire format).
42439
- * @return {!Uint8Array}
42440
- */
42441
- proto.zaber.motion.protobufs.TranslatorConfig.prototype.serializeBinary = function() {
42442
- var writer = new jspb.BinaryWriter();
42443
- proto.zaber.motion.protobufs.TranslatorConfig.serializeBinaryToWriter(this, writer);
42444
- return writer.getResultBuffer();
42445
- };
42446
-
42447
-
42448
- /**
42449
- * Serializes the given message to binary data (in protobuf wire
42450
- * format), writing to the given BinaryWriter.
42451
- * @param {!proto.zaber.motion.protobufs.TranslatorConfig} message
42452
- * @param {!jspb.BinaryWriter} writer
42453
- * @suppress {unusedLocalVariables} f is only used for nested messages
42454
- */
42455
- proto.zaber.motion.protobufs.TranslatorConfig.serializeBinaryToWriter = function(message, writer) {
42456
- var f = undefined;
42457
- f = message.getTraverseRate();
42458
- if (f != null) {
42459
- writer.writeMessage(
42460
- 1,
42461
- f,
42462
- proto.zaber.motion.protobufs.Measurement.serializeBinaryToWriter
42463
- );
42464
- }
42465
- f = message.getAxesMappingList();
42466
- if (f.length > 0) {
42467
- writer.writeRepeatedMessage(
42468
- 2,
42469
- f,
42470
- proto.zaber.motion.protobufs.TranslatorAxisMapping.serializeBinaryToWriter
42471
- );
42472
- }
42473
- };
42474
-
42475
-
42476
- /**
42477
- * optional Measurement traverse_rate = 1;
42478
- * @return {?proto.zaber.motion.protobufs.Measurement}
42479
- */
42480
- proto.zaber.motion.protobufs.TranslatorConfig.prototype.getTraverseRate = function() {
42481
- return /** @type{?proto.zaber.motion.protobufs.Measurement} */ (
42482
- jspb.Message.getWrapperField(this, proto.zaber.motion.protobufs.Measurement, 1));
42483
- };
42484
-
42485
-
42486
- /**
42487
- * @param {?proto.zaber.motion.protobufs.Measurement|undefined} value
42488
- * @return {!proto.zaber.motion.protobufs.TranslatorConfig} returns this
42489
- */
42490
- proto.zaber.motion.protobufs.TranslatorConfig.prototype.setTraverseRate = function(value) {
42491
- return jspb.Message.setWrapperField(this, 1, value);
42492
- };
42493
-
42494
-
42495
- /**
42496
- * Clears the message field making it undefined.
42497
- * @return {!proto.zaber.motion.protobufs.TranslatorConfig} returns this
42498
- */
42499
- proto.zaber.motion.protobufs.TranslatorConfig.prototype.clearTraverseRate = function() {
42500
- return this.setTraverseRate(undefined);
42501
- };
42502
-
42503
-
42504
- /**
42505
- * Returns whether this field is set.
42506
- * @return {boolean}
42507
- */
42508
- proto.zaber.motion.protobufs.TranslatorConfig.prototype.hasTraverseRate = function() {
42509
- return jspb.Message.getField(this, 1) != null;
42510
- };
42511
-
42512
-
42513
- /**
42514
- * repeated TranslatorAxisMapping axes_mapping = 2;
42515
- * @return {!Array<!proto.zaber.motion.protobufs.TranslatorAxisMapping>}
42516
- */
42517
- proto.zaber.motion.protobufs.TranslatorConfig.prototype.getAxesMappingList = function() {
42518
- return /** @type{!Array<!proto.zaber.motion.protobufs.TranslatorAxisMapping>} */ (
42519
- jspb.Message.getRepeatedWrapperField(this, proto.zaber.motion.protobufs.TranslatorAxisMapping, 2));
42520
- };
42521
-
42522
-
42523
- /**
42524
- * @param {!Array<!proto.zaber.motion.protobufs.TranslatorAxisMapping>} value
42525
- * @return {!proto.zaber.motion.protobufs.TranslatorConfig} returns this
42526
- */
42527
- proto.zaber.motion.protobufs.TranslatorConfig.prototype.setAxesMappingList = function(value) {
42528
- return jspb.Message.setRepeatedWrapperField(this, 2, value);
42529
- };
42530
-
42531
-
42532
- /**
42533
- * @param {!proto.zaber.motion.protobufs.TranslatorAxisMapping=} opt_value
42534
- * @param {number=} opt_index
42535
- * @return {!proto.zaber.motion.protobufs.TranslatorAxisMapping}
42536
- */
42537
- proto.zaber.motion.protobufs.TranslatorConfig.prototype.addAxesMapping = function(opt_value, opt_index) {
42538
- return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.zaber.motion.protobufs.TranslatorAxisMapping, opt_index);
42539
- };
42540
-
42541
-
42542
- /**
42543
- * Clears the list making it empty but non-null.
42544
- * @return {!proto.zaber.motion.protobufs.TranslatorConfig} returns this
42545
- */
42546
- proto.zaber.motion.protobufs.TranslatorConfig.prototype.clearAxesMappingList = function() {
42547
- return this.setAxesMappingList([]);
42548
- };
42549
-
42550
-
42551
-
42552
-
42553
-
42554
- if (jspb.Message.GENERATE_TO_OBJECT) {
42555
- /**
42556
- * Creates an object representation of this proto.
42557
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
42558
- * Optional fields that are not set will be set to undefined.
42559
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
42560
- * For the list of reserved names please see:
42561
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
42562
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
42563
- * JSPB instance for transitional soy proto support:
42564
- * http://goto/soy-param-migration
42565
- * @return {!Object}
42566
- */
42567
- proto.zaber.motion.protobufs.TranslatorAxisMapping.prototype.toObject = function(opt_includeInstance) {
42568
- return proto.zaber.motion.protobufs.TranslatorAxisMapping.toObject(opt_includeInstance, this);
42569
- };
42570
-
42571
-
42572
- /**
42573
- * Static version of the {@see toObject} method.
42574
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
42575
- * the JSPB instance for transitional soy proto support:
42576
- * http://goto/soy-param-migration
42577
- * @param {!proto.zaber.motion.protobufs.TranslatorAxisMapping} msg The msg instance to transform.
42578
- * @return {!Object}
42579
- * @suppress {unusedLocalVariables} f is only used for nested messages
42580
- */
42581
- proto.zaber.motion.protobufs.TranslatorAxisMapping.toObject = function(includeInstance, msg) {
42582
- var f, obj = {
42583
- axisLetter: jspb.Message.getFieldWithDefault(msg, 1, ""),
42584
- axisIndex: jspb.Message.getFieldWithDefault(msg, 2, 0)
42585
- };
42586
-
42587
- if (includeInstance) {
42588
- obj.$jspbMessageInstance = msg;
42589
- }
42590
- return obj;
42591
- };
42592
- }
42593
-
42594
-
42595
- /**
42596
- * Deserializes binary data (in protobuf wire format).
42597
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
42598
- * @return {!proto.zaber.motion.protobufs.TranslatorAxisMapping}
42599
- */
42600
- proto.zaber.motion.protobufs.TranslatorAxisMapping.deserializeBinary = function(bytes) {
42601
- var reader = new jspb.BinaryReader(bytes);
42602
- var msg = new proto.zaber.motion.protobufs.TranslatorAxisMapping;
42603
- return proto.zaber.motion.protobufs.TranslatorAxisMapping.deserializeBinaryFromReader(msg, reader);
42604
- };
42605
-
42606
-
42607
- /**
42608
- * Deserializes binary data (in protobuf wire format) from the
42609
- * given reader into the given message object.
42610
- * @param {!proto.zaber.motion.protobufs.TranslatorAxisMapping} msg The message object to deserialize into.
42611
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
42612
- * @return {!proto.zaber.motion.protobufs.TranslatorAxisMapping}
42613
- */
42614
- proto.zaber.motion.protobufs.TranslatorAxisMapping.deserializeBinaryFromReader = function(msg, reader) {
42615
- while (reader.nextField()) {
42616
- if (reader.isEndGroup()) {
42617
- break;
42618
- }
42619
- var field = reader.getFieldNumber();
42620
- switch (field) {
42621
- case 1:
42622
- var value = /** @type {string} */ (reader.readString());
42623
- msg.setAxisLetter(value);
42624
- break;
42625
- case 2:
42626
- var value = /** @type {number} */ (reader.readInt32());
42627
- msg.setAxisIndex(value);
42628
- break;
42629
- default:
42630
- reader.skipField();
42631
- break;
42632
- }
42633
- }
42634
- return msg;
42635
- };
42636
-
42637
-
42638
- /**
42639
- * Serializes the message to binary data (in protobuf wire format).
42640
- * @return {!Uint8Array}
42641
- */
42642
- proto.zaber.motion.protobufs.TranslatorAxisMapping.prototype.serializeBinary = function() {
42643
- var writer = new jspb.BinaryWriter();
42644
- proto.zaber.motion.protobufs.TranslatorAxisMapping.serializeBinaryToWriter(this, writer);
42645
- return writer.getResultBuffer();
42646
- };
42647
-
42648
-
42649
- /**
42650
- * Serializes the given message to binary data (in protobuf wire
42651
- * format), writing to the given BinaryWriter.
42652
- * @param {!proto.zaber.motion.protobufs.TranslatorAxisMapping} message
42653
- * @param {!jspb.BinaryWriter} writer
42654
- * @suppress {unusedLocalVariables} f is only used for nested messages
42655
- */
42656
- proto.zaber.motion.protobufs.TranslatorAxisMapping.serializeBinaryToWriter = function(message, writer) {
42657
- var f = undefined;
42658
- f = message.getAxisLetter();
42659
- if (f.length > 0) {
42660
- writer.writeString(
42661
- 1,
42662
- f
42663
- );
42664
- }
42665
- f = message.getAxisIndex();
42666
- if (f !== 0) {
42667
- writer.writeInt32(
42668
- 2,
42669
- f
42670
- );
42671
- }
42672
- };
42673
-
42674
-
42675
- /**
42676
- * optional string axis_letter = 1;
42677
- * @return {string}
42678
- */
42679
- proto.zaber.motion.protobufs.TranslatorAxisMapping.prototype.getAxisLetter = function() {
42680
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
42681
- };
42682
-
42683
-
42684
- /**
42685
- * @param {string} value
42686
- * @return {!proto.zaber.motion.protobufs.TranslatorAxisMapping} returns this
42687
- */
42688
- proto.zaber.motion.protobufs.TranslatorAxisMapping.prototype.setAxisLetter = function(value) {
42689
- return jspb.Message.setProto3StringField(this, 1, value);
42690
- };
42691
-
42692
-
42693
- /**
42694
- * optional int32 axis_index = 2;
42695
- * @return {number}
42696
- */
42697
- proto.zaber.motion.protobufs.TranslatorAxisMapping.prototype.getAxisIndex = function() {
42698
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
42699
- };
42700
-
42701
-
42702
- /**
42703
- * @param {number} value
42704
- * @return {!proto.zaber.motion.protobufs.TranslatorAxisMapping} returns this
42705
- */
42706
- proto.zaber.motion.protobufs.TranslatorAxisMapping.prototype.setAxisIndex = function(value) {
42707
- return jspb.Message.setProto3IntField(this, 2, value);
42708
- };
42709
-
42710
-
42711
-
42712
-
42713
-
42714
- if (jspb.Message.GENERATE_TO_OBJECT) {
42715
- /**
42716
- * Creates an object representation of this proto.
42717
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
42718
- * Optional fields that are not set will be set to undefined.
42719
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
42720
- * For the list of reserved names please see:
42721
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
42722
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
42723
- * JSPB instance for transitional soy proto support:
42724
- * http://goto/soy-param-migration
42725
- * @return {!Object}
42726
- */
42727
- proto.zaber.motion.protobufs.TranslatorTranslateRequest.prototype.toObject = function(opt_includeInstance) {
42728
- return proto.zaber.motion.protobufs.TranslatorTranslateRequest.toObject(opt_includeInstance, this);
42729
- };
42730
-
42731
-
42732
- /**
42733
- * Static version of the {@see toObject} method.
42734
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
42735
- * the JSPB instance for transitional soy proto support:
42736
- * http://goto/soy-param-migration
42737
- * @param {!proto.zaber.motion.protobufs.TranslatorTranslateRequest} msg The msg instance to transform.
42738
- * @return {!Object}
42739
- * @suppress {unusedLocalVariables} f is only used for nested messages
42740
- */
42741
- proto.zaber.motion.protobufs.TranslatorTranslateRequest.toObject = function(includeInstance, msg) {
42742
- var f, obj = {
42743
- translatorId: jspb.Message.getFieldWithDefault(msg, 1, 0),
42744
- block: jspb.Message.getFieldWithDefault(msg, 2, "")
42745
- };
42746
-
42747
- if (includeInstance) {
42748
- obj.$jspbMessageInstance = msg;
42749
- }
42750
- return obj;
42751
- };
42752
- }
42753
-
42754
-
42755
- /**
42756
- * Deserializes binary data (in protobuf wire format).
42757
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
42758
- * @return {!proto.zaber.motion.protobufs.TranslatorTranslateRequest}
42759
- */
42760
- proto.zaber.motion.protobufs.TranslatorTranslateRequest.deserializeBinary = function(bytes) {
42761
- var reader = new jspb.BinaryReader(bytes);
42762
- var msg = new proto.zaber.motion.protobufs.TranslatorTranslateRequest;
42763
- return proto.zaber.motion.protobufs.TranslatorTranslateRequest.deserializeBinaryFromReader(msg, reader);
42764
- };
42765
-
42766
-
42767
- /**
42768
- * Deserializes binary data (in protobuf wire format) from the
42769
- * given reader into the given message object.
42770
- * @param {!proto.zaber.motion.protobufs.TranslatorTranslateRequest} msg The message object to deserialize into.
42771
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
42772
- * @return {!proto.zaber.motion.protobufs.TranslatorTranslateRequest}
42773
- */
42774
- proto.zaber.motion.protobufs.TranslatorTranslateRequest.deserializeBinaryFromReader = function(msg, reader) {
42775
- while (reader.nextField()) {
42776
- if (reader.isEndGroup()) {
42777
- break;
42778
- }
42779
- var field = reader.getFieldNumber();
42780
- switch (field) {
42781
- case 1:
42782
- var value = /** @type {number} */ (reader.readInt32());
42783
- msg.setTranslatorId(value);
42784
- break;
42785
- case 2:
42786
- var value = /** @type {string} */ (reader.readString());
42787
- msg.setBlock(value);
42788
- break;
42789
- default:
42790
- reader.skipField();
42791
- break;
42792
- }
42793
- }
42794
- return msg;
42795
- };
42796
-
42797
-
42798
- /**
42799
- * Serializes the message to binary data (in protobuf wire format).
42800
- * @return {!Uint8Array}
42801
- */
42802
- proto.zaber.motion.protobufs.TranslatorTranslateRequest.prototype.serializeBinary = function() {
42803
- var writer = new jspb.BinaryWriter();
42804
- proto.zaber.motion.protobufs.TranslatorTranslateRequest.serializeBinaryToWriter(this, writer);
42805
- return writer.getResultBuffer();
42806
- };
42807
-
42808
-
42809
- /**
42810
- * Serializes the given message to binary data (in protobuf wire
42811
- * format), writing to the given BinaryWriter.
42812
- * @param {!proto.zaber.motion.protobufs.TranslatorTranslateRequest} message
42813
- * @param {!jspb.BinaryWriter} writer
42814
- * @suppress {unusedLocalVariables} f is only used for nested messages
42815
- */
42816
- proto.zaber.motion.protobufs.TranslatorTranslateRequest.serializeBinaryToWriter = function(message, writer) {
42817
- var f = undefined;
42818
- f = message.getTranslatorId();
42819
- if (f !== 0) {
42820
- writer.writeInt32(
42821
- 1,
42822
- f
42823
- );
42824
- }
42825
- f = message.getBlock();
42826
- if (f.length > 0) {
42827
- writer.writeString(
42828
- 2,
42829
- f
42830
- );
42831
- }
42832
- };
42833
-
42834
-
42835
- /**
42836
- * optional int32 translator_id = 1;
42837
- * @return {number}
42838
- */
42839
- proto.zaber.motion.protobufs.TranslatorTranslateRequest.prototype.getTranslatorId = function() {
42840
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
42841
- };
42842
-
42843
-
42844
- /**
42845
- * @param {number} value
42846
- * @return {!proto.zaber.motion.protobufs.TranslatorTranslateRequest} returns this
42847
- */
42848
- proto.zaber.motion.protobufs.TranslatorTranslateRequest.prototype.setTranslatorId = function(value) {
42849
- return jspb.Message.setProto3IntField(this, 1, value);
42850
- };
42851
-
42852
-
42853
- /**
42854
- * optional string block = 2;
42855
- * @return {string}
42856
- */
42857
- proto.zaber.motion.protobufs.TranslatorTranslateRequest.prototype.getBlock = function() {
42858
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
42859
- };
42860
-
42861
-
42862
- /**
42863
- * @param {string} value
42864
- * @return {!proto.zaber.motion.protobufs.TranslatorTranslateRequest} returns this
42865
- */
42866
- proto.zaber.motion.protobufs.TranslatorTranslateRequest.prototype.setBlock = function(value) {
42867
- return jspb.Message.setProto3StringField(this, 2, value);
42868
- };
42869
-
42870
-
42871
-
42872
-
42873
-
42874
- if (jspb.Message.GENERATE_TO_OBJECT) {
42875
- /**
42876
- * Creates an object representation of this proto.
42877
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
42878
- * Optional fields that are not set will be set to undefined.
42879
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
42880
- * For the list of reserved names please see:
42881
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
42882
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
42883
- * JSPB instance for transitional soy proto support:
42884
- * http://goto/soy-param-migration
42885
- * @return {!Object}
42886
- */
42887
- proto.zaber.motion.protobufs.TranslateMessage.prototype.toObject = function(opt_includeInstance) {
42888
- return proto.zaber.motion.protobufs.TranslateMessage.toObject(opt_includeInstance, this);
42889
- };
42890
-
42891
-
42892
- /**
42893
- * Static version of the {@see toObject} method.
42894
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
42895
- * the JSPB instance for transitional soy proto support:
42896
- * http://goto/soy-param-migration
42897
- * @param {!proto.zaber.motion.protobufs.TranslateMessage} msg The msg instance to transform.
42898
- * @return {!Object}
42899
- * @suppress {unusedLocalVariables} f is only used for nested messages
42900
- */
42901
- proto.zaber.motion.protobufs.TranslateMessage.toObject = function(includeInstance, msg) {
42902
- var f, obj = {
42903
- message: jspb.Message.getFieldWithDefault(msg, 1, ""),
42904
- fromBlock: jspb.Message.getFieldWithDefault(msg, 2, 0),
42905
- toBlock: jspb.Message.getFieldWithDefault(msg, 3, 0)
42906
- };
42907
-
42908
- if (includeInstance) {
42909
- obj.$jspbMessageInstance = msg;
42910
- }
42911
- return obj;
42912
- };
42913
- }
42914
-
42915
-
42916
- /**
42917
- * Deserializes binary data (in protobuf wire format).
42918
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
42919
- * @return {!proto.zaber.motion.protobufs.TranslateMessage}
42920
- */
42921
- proto.zaber.motion.protobufs.TranslateMessage.deserializeBinary = function(bytes) {
42922
- var reader = new jspb.BinaryReader(bytes);
42923
- var msg = new proto.zaber.motion.protobufs.TranslateMessage;
42924
- return proto.zaber.motion.protobufs.TranslateMessage.deserializeBinaryFromReader(msg, reader);
42925
- };
42926
-
42927
-
42928
- /**
42929
- * Deserializes binary data (in protobuf wire format) from the
42930
- * given reader into the given message object.
42931
- * @param {!proto.zaber.motion.protobufs.TranslateMessage} msg The message object to deserialize into.
42932
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
42933
- * @return {!proto.zaber.motion.protobufs.TranslateMessage}
42934
- */
42935
- proto.zaber.motion.protobufs.TranslateMessage.deserializeBinaryFromReader = function(msg, reader) {
42936
- while (reader.nextField()) {
42937
- if (reader.isEndGroup()) {
42938
- break;
42939
- }
42940
- var field = reader.getFieldNumber();
42941
- switch (field) {
42942
- case 1:
42943
- var value = /** @type {string} */ (reader.readString());
42944
- msg.setMessage(value);
42945
- break;
42946
- case 2:
42947
- var value = /** @type {number} */ (reader.readInt32());
42948
- msg.setFromBlock(value);
42949
- break;
42950
- case 3:
42951
- var value = /** @type {number} */ (reader.readInt32());
42952
- msg.setToBlock(value);
42953
- break;
42954
- default:
42955
- reader.skipField();
42956
- break;
42957
- }
42958
- }
42959
- return msg;
42960
- };
42961
-
42962
-
42963
- /**
42964
- * Serializes the message to binary data (in protobuf wire format).
42965
- * @return {!Uint8Array}
42966
- */
42967
- proto.zaber.motion.protobufs.TranslateMessage.prototype.serializeBinary = function() {
42968
- var writer = new jspb.BinaryWriter();
42969
- proto.zaber.motion.protobufs.TranslateMessage.serializeBinaryToWriter(this, writer);
42970
- return writer.getResultBuffer();
42971
- };
42972
-
42973
-
42974
- /**
42975
- * Serializes the given message to binary data (in protobuf wire
42976
- * format), writing to the given BinaryWriter.
42977
- * @param {!proto.zaber.motion.protobufs.TranslateMessage} message
42978
- * @param {!jspb.BinaryWriter} writer
42979
- * @suppress {unusedLocalVariables} f is only used for nested messages
42980
- */
42981
- proto.zaber.motion.protobufs.TranslateMessage.serializeBinaryToWriter = function(message, writer) {
42982
- var f = undefined;
42983
- f = message.getMessage();
42984
- if (f.length > 0) {
42985
- writer.writeString(
42986
- 1,
42987
- f
42988
- );
42989
- }
42990
- f = message.getFromBlock();
42991
- if (f !== 0) {
42992
- writer.writeInt32(
42993
- 2,
42994
- f
42995
- );
42996
- }
42997
- f = message.getToBlock();
42998
- if (f !== 0) {
42999
- writer.writeInt32(
43000
- 3,
43001
- f
43002
- );
43003
- }
43004
- };
43005
-
43006
-
43007
- /**
43008
- * optional string message = 1;
43009
- * @return {string}
43010
- */
43011
- proto.zaber.motion.protobufs.TranslateMessage.prototype.getMessage = function() {
43012
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
43013
- };
43014
-
43015
-
43016
- /**
43017
- * @param {string} value
43018
- * @return {!proto.zaber.motion.protobufs.TranslateMessage} returns this
43019
- */
43020
- proto.zaber.motion.protobufs.TranslateMessage.prototype.setMessage = function(value) {
43021
- return jspb.Message.setProto3StringField(this, 1, value);
43022
- };
43023
-
43024
-
43025
- /**
43026
- * optional int32 from_block = 2;
43027
- * @return {number}
43028
- */
43029
- proto.zaber.motion.protobufs.TranslateMessage.prototype.getFromBlock = function() {
43030
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
43031
- };
43032
-
43033
-
43034
- /**
43035
- * @param {number} value
43036
- * @return {!proto.zaber.motion.protobufs.TranslateMessage} returns this
43037
- */
43038
- proto.zaber.motion.protobufs.TranslateMessage.prototype.setFromBlock = function(value) {
43039
- return jspb.Message.setProto3IntField(this, 2, value);
43040
- };
43041
-
43042
-
43043
- /**
43044
- * optional int32 to_block = 3;
43045
- * @return {number}
43046
- */
43047
- proto.zaber.motion.protobufs.TranslateMessage.prototype.getToBlock = function() {
43048
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
43049
- };
43050
-
43051
-
43052
- /**
43053
- * @param {number} value
43054
- * @return {!proto.zaber.motion.protobufs.TranslateMessage} returns this
43055
- */
43056
- proto.zaber.motion.protobufs.TranslateMessage.prototype.setToBlock = function(value) {
43057
- return jspb.Message.setProto3IntField(this, 3, value);
43058
- };
43059
-
43060
-
43061
-
43062
- /**
43063
- * List of repeated fields within this message type.
43064
- * @private {!Array<number>}
43065
- * @const
43066
- */
43067
- proto.zaber.motion.protobufs.TranslatorTranslateResponse.repeatedFields_ = [1,2];
43068
-
43069
-
43070
-
43071
- if (jspb.Message.GENERATE_TO_OBJECT) {
43072
- /**
43073
- * Creates an object representation of this proto.
43074
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
43075
- * Optional fields that are not set will be set to undefined.
43076
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
43077
- * For the list of reserved names please see:
43078
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
43079
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
43080
- * JSPB instance for transitional soy proto support:
43081
- * http://goto/soy-param-migration
43082
- * @return {!Object}
43083
- */
43084
- proto.zaber.motion.protobufs.TranslatorTranslateResponse.prototype.toObject = function(opt_includeInstance) {
43085
- return proto.zaber.motion.protobufs.TranslatorTranslateResponse.toObject(opt_includeInstance, this);
43086
- };
43087
-
43088
-
43089
- /**
43090
- * Static version of the {@see toObject} method.
43091
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
43092
- * the JSPB instance for transitional soy proto support:
43093
- * http://goto/soy-param-migration
43094
- * @param {!proto.zaber.motion.protobufs.TranslatorTranslateResponse} msg The msg instance to transform.
43095
- * @return {!Object}
43096
- * @suppress {unusedLocalVariables} f is only used for nested messages
43097
- */
43098
- proto.zaber.motion.protobufs.TranslatorTranslateResponse.toObject = function(includeInstance, msg) {
43099
- var f, obj = {
43100
- commandsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
43101
- warningsList: jspb.Message.toObjectList(msg.getWarningsList(),
43102
- proto.zaber.motion.protobufs.TranslateMessage.toObject, includeInstance)
43103
- };
43104
-
43105
- if (includeInstance) {
43106
- obj.$jspbMessageInstance = msg;
43107
- }
43108
- return obj;
43109
- };
43110
- }
43111
-
43112
-
43113
- /**
43114
- * Deserializes binary data (in protobuf wire format).
43115
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
43116
- * @return {!proto.zaber.motion.protobufs.TranslatorTranslateResponse}
43117
- */
43118
- proto.zaber.motion.protobufs.TranslatorTranslateResponse.deserializeBinary = function(bytes) {
43119
- var reader = new jspb.BinaryReader(bytes);
43120
- var msg = new proto.zaber.motion.protobufs.TranslatorTranslateResponse;
43121
- return proto.zaber.motion.protobufs.TranslatorTranslateResponse.deserializeBinaryFromReader(msg, reader);
43122
- };
43123
-
43124
-
43125
- /**
43126
- * Deserializes binary data (in protobuf wire format) from the
43127
- * given reader into the given message object.
43128
- * @param {!proto.zaber.motion.protobufs.TranslatorTranslateResponse} msg The message object to deserialize into.
43129
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
43130
- * @return {!proto.zaber.motion.protobufs.TranslatorTranslateResponse}
43131
- */
43132
- proto.zaber.motion.protobufs.TranslatorTranslateResponse.deserializeBinaryFromReader = function(msg, reader) {
43133
- while (reader.nextField()) {
43134
- if (reader.isEndGroup()) {
43135
- break;
43136
- }
43137
- var field = reader.getFieldNumber();
43138
- switch (field) {
43139
- case 1:
43140
- var value = /** @type {string} */ (reader.readString());
43141
- msg.addCommands(value);
43142
- break;
43143
- case 2:
43144
- var value = new proto.zaber.motion.protobufs.TranslateMessage;
43145
- reader.readMessage(value,proto.zaber.motion.protobufs.TranslateMessage.deserializeBinaryFromReader);
43146
- msg.addWarnings(value);
43147
- break;
43148
- default:
43149
- reader.skipField();
43150
- break;
43151
- }
43152
- }
43153
- return msg;
43154
- };
43155
-
43156
-
43157
- /**
43158
- * Serializes the message to binary data (in protobuf wire format).
43159
- * @return {!Uint8Array}
43160
- */
43161
- proto.zaber.motion.protobufs.TranslatorTranslateResponse.prototype.serializeBinary = function() {
43162
- var writer = new jspb.BinaryWriter();
43163
- proto.zaber.motion.protobufs.TranslatorTranslateResponse.serializeBinaryToWriter(this, writer);
43164
- return writer.getResultBuffer();
43165
- };
43166
-
43167
-
43168
- /**
43169
- * Serializes the given message to binary data (in protobuf wire
43170
- * format), writing to the given BinaryWriter.
43171
- * @param {!proto.zaber.motion.protobufs.TranslatorTranslateResponse} message
43172
- * @param {!jspb.BinaryWriter} writer
43173
- * @suppress {unusedLocalVariables} f is only used for nested messages
43174
- */
43175
- proto.zaber.motion.protobufs.TranslatorTranslateResponse.serializeBinaryToWriter = function(message, writer) {
43176
- var f = undefined;
43177
- f = message.getCommandsList();
43178
- if (f.length > 0) {
43179
- writer.writeRepeatedString(
43180
- 1,
43181
- f
43182
- );
43183
- }
43184
- f = message.getWarningsList();
43185
- if (f.length > 0) {
43186
- writer.writeRepeatedMessage(
43187
- 2,
43188
- f,
43189
- proto.zaber.motion.protobufs.TranslateMessage.serializeBinaryToWriter
43190
- );
43191
- }
43192
- };
43193
-
43194
-
43195
- /**
43196
- * repeated string commands = 1;
43197
- * @return {!Array<string>}
43198
- */
43199
- proto.zaber.motion.protobufs.TranslatorTranslateResponse.prototype.getCommandsList = function() {
43200
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
43201
- };
43202
-
43203
-
43204
- /**
43205
- * @param {!Array<string>} value
43206
- * @return {!proto.zaber.motion.protobufs.TranslatorTranslateResponse} returns this
43207
- */
43208
- proto.zaber.motion.protobufs.TranslatorTranslateResponse.prototype.setCommandsList = function(value) {
43209
- return jspb.Message.setField(this, 1, value || []);
43210
- };
43211
-
43212
-
43213
- /**
43214
- * @param {string} value
43215
- * @param {number=} opt_index
43216
- * @return {!proto.zaber.motion.protobufs.TranslatorTranslateResponse} returns this
43217
- */
43218
- proto.zaber.motion.protobufs.TranslatorTranslateResponse.prototype.addCommands = function(value, opt_index) {
43219
- return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
43220
- };
43221
-
43222
-
43223
- /**
43224
- * Clears the list making it empty but non-null.
43225
- * @return {!proto.zaber.motion.protobufs.TranslatorTranslateResponse} returns this
43226
- */
43227
- proto.zaber.motion.protobufs.TranslatorTranslateResponse.prototype.clearCommandsList = function() {
43228
- return this.setCommandsList([]);
43229
- };
43230
-
43231
-
43232
- /**
43233
- * repeated TranslateMessage warnings = 2;
43234
- * @return {!Array<!proto.zaber.motion.protobufs.TranslateMessage>}
43235
- */
43236
- proto.zaber.motion.protobufs.TranslatorTranslateResponse.prototype.getWarningsList = function() {
43237
- return /** @type{!Array<!proto.zaber.motion.protobufs.TranslateMessage>} */ (
43238
- jspb.Message.getRepeatedWrapperField(this, proto.zaber.motion.protobufs.TranslateMessage, 2));
43239
- };
43240
-
43241
-
43242
- /**
43243
- * @param {!Array<!proto.zaber.motion.protobufs.TranslateMessage>} value
43244
- * @return {!proto.zaber.motion.protobufs.TranslatorTranslateResponse} returns this
43245
- */
43246
- proto.zaber.motion.protobufs.TranslatorTranslateResponse.prototype.setWarningsList = function(value) {
43247
- return jspb.Message.setRepeatedWrapperField(this, 2, value);
43248
- };
43249
-
43250
-
43251
- /**
43252
- * @param {!proto.zaber.motion.protobufs.TranslateMessage=} opt_value
43253
- * @param {number=} opt_index
43254
- * @return {!proto.zaber.motion.protobufs.TranslateMessage}
43255
- */
43256
- proto.zaber.motion.protobufs.TranslatorTranslateResponse.prototype.addWarnings = function(opt_value, opt_index) {
43257
- return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.zaber.motion.protobufs.TranslateMessage, opt_index);
43258
- };
43259
-
43260
-
43261
- /**
43262
- * Clears the list making it empty but non-null.
43263
- * @return {!proto.zaber.motion.protobufs.TranslatorTranslateResponse} returns this
43264
- */
43265
- proto.zaber.motion.protobufs.TranslatorTranslateResponse.prototype.clearWarningsList = function() {
43266
- return this.setWarningsList([]);
43267
- };
43268
-
43269
-
43270
-
43271
-
43272
-
43273
- if (jspb.Message.GENERATE_TO_OBJECT) {
43274
- /**
43275
- * Creates an object representation of this proto.
43276
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
43277
- * Optional fields that are not set will be set to undefined.
43278
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
43279
- * For the list of reserved names please see:
43280
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
43281
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
43282
- * JSPB instance for transitional soy proto support:
43283
- * http://goto/soy-param-migration
43284
- * @return {!Object}
43285
- */
43286
- proto.zaber.motion.protobufs.GCodeSyntaxExceptionData.prototype.toObject = function(opt_includeInstance) {
43287
- return proto.zaber.motion.protobufs.GCodeSyntaxExceptionData.toObject(opt_includeInstance, this);
43288
- };
43289
-
43290
-
43291
- /**
43292
- * Static version of the {@see toObject} method.
43293
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
43294
- * the JSPB instance for transitional soy proto support:
43295
- * http://goto/soy-param-migration
43296
- * @param {!proto.zaber.motion.protobufs.GCodeSyntaxExceptionData} msg The msg instance to transform.
43297
- * @return {!Object}
43298
- * @suppress {unusedLocalVariables} f is only used for nested messages
43299
- */
43300
- proto.zaber.motion.protobufs.GCodeSyntaxExceptionData.toObject = function(includeInstance, msg) {
43301
- var f, obj = {
43302
- fromBlock: jspb.Message.getFieldWithDefault(msg, 1, 0),
43303
- toBlock: jspb.Message.getFieldWithDefault(msg, 2, 0)
43304
- };
43305
-
43306
- if (includeInstance) {
43307
- obj.$jspbMessageInstance = msg;
43308
- }
43309
- return obj;
43310
- };
43311
- }
43312
-
43313
-
43314
- /**
43315
- * Deserializes binary data (in protobuf wire format).
43316
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
43317
- * @return {!proto.zaber.motion.protobufs.GCodeSyntaxExceptionData}
43318
- */
43319
- proto.zaber.motion.protobufs.GCodeSyntaxExceptionData.deserializeBinary = function(bytes) {
43320
- var reader = new jspb.BinaryReader(bytes);
43321
- var msg = new proto.zaber.motion.protobufs.GCodeSyntaxExceptionData;
43322
- return proto.zaber.motion.protobufs.GCodeSyntaxExceptionData.deserializeBinaryFromReader(msg, reader);
43323
- };
43324
-
43325
-
43326
- /**
43327
- * Deserializes binary data (in protobuf wire format) from the
43328
- * given reader into the given message object.
43329
- * @param {!proto.zaber.motion.protobufs.GCodeSyntaxExceptionData} msg The message object to deserialize into.
43330
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
43331
- * @return {!proto.zaber.motion.protobufs.GCodeSyntaxExceptionData}
43332
- */
43333
- proto.zaber.motion.protobufs.GCodeSyntaxExceptionData.deserializeBinaryFromReader = function(msg, reader) {
43334
- while (reader.nextField()) {
43335
- if (reader.isEndGroup()) {
43336
- break;
43337
- }
43338
- var field = reader.getFieldNumber();
43339
- switch (field) {
43340
- case 1:
43341
- var value = /** @type {number} */ (reader.readInt32());
43342
- msg.setFromBlock(value);
43343
- break;
43344
- case 2:
43345
- var value = /** @type {number} */ (reader.readInt32());
43346
- msg.setToBlock(value);
43347
- break;
43348
- default:
43349
- reader.skipField();
43350
- break;
43351
- }
43352
- }
43353
- return msg;
43354
- };
43355
-
43356
-
43357
- /**
43358
- * Serializes the message to binary data (in protobuf wire format).
43359
- * @return {!Uint8Array}
43360
- */
43361
- proto.zaber.motion.protobufs.GCodeSyntaxExceptionData.prototype.serializeBinary = function() {
43362
- var writer = new jspb.BinaryWriter();
43363
- proto.zaber.motion.protobufs.GCodeSyntaxExceptionData.serializeBinaryToWriter(this, writer);
43364
- return writer.getResultBuffer();
43365
- };
43366
-
43367
-
43368
- /**
43369
- * Serializes the given message to binary data (in protobuf wire
43370
- * format), writing to the given BinaryWriter.
43371
- * @param {!proto.zaber.motion.protobufs.GCodeSyntaxExceptionData} message
43372
- * @param {!jspb.BinaryWriter} writer
43373
- * @suppress {unusedLocalVariables} f is only used for nested messages
43374
- */
43375
- proto.zaber.motion.protobufs.GCodeSyntaxExceptionData.serializeBinaryToWriter = function(message, writer) {
43376
- var f = undefined;
43377
- f = message.getFromBlock();
43378
- if (f !== 0) {
43379
- writer.writeInt32(
43380
- 1,
43381
- f
43382
- );
43383
- }
43384
- f = message.getToBlock();
43385
- if (f !== 0) {
43386
- writer.writeInt32(
43387
- 2,
43388
- f
43389
- );
43390
- }
43391
- };
43392
-
43393
-
43394
- /**
43395
- * optional int32 from_block = 1;
43396
- * @return {number}
43397
- */
43398
- proto.zaber.motion.protobufs.GCodeSyntaxExceptionData.prototype.getFromBlock = function() {
43399
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
43400
- };
43401
-
43402
-
43403
- /**
43404
- * @param {number} value
43405
- * @return {!proto.zaber.motion.protobufs.GCodeSyntaxExceptionData} returns this
43406
- */
43407
- proto.zaber.motion.protobufs.GCodeSyntaxExceptionData.prototype.setFromBlock = function(value) {
43408
- return jspb.Message.setProto3IntField(this, 1, value);
43409
- };
43410
-
43411
-
43412
- /**
43413
- * optional int32 to_block = 2;
43414
- * @return {number}
43415
- */
43416
- proto.zaber.motion.protobufs.GCodeSyntaxExceptionData.prototype.getToBlock = function() {
43417
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
43418
- };
43419
-
43420
-
43421
- /**
43422
- * @param {number} value
43423
- * @return {!proto.zaber.motion.protobufs.GCodeSyntaxExceptionData} returns this
43424
- */
43425
- proto.zaber.motion.protobufs.GCodeSyntaxExceptionData.prototype.setToBlock = function(value) {
43426
- return jspb.Message.setProto3IntField(this, 2, value);
43427
- };
43428
-
43429
-
43430
-
43431
-
43432
-
43433
- if (jspb.Message.GENERATE_TO_OBJECT) {
43434
- /**
43435
- * Creates an object representation of this proto.
43436
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
43437
- * Optional fields that are not set will be set to undefined.
43438
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
43439
- * For the list of reserved names please see:
43440
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
43441
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
43442
- * JSPB instance for transitional soy proto support:
43443
- * http://goto/soy-param-migration
43444
- * @return {!Object}
43445
- */
43446
- proto.zaber.motion.protobufs.GCodeExecutionExceptionData.prototype.toObject = function(opt_includeInstance) {
43447
- return proto.zaber.motion.protobufs.GCodeExecutionExceptionData.toObject(opt_includeInstance, this);
43448
- };
43449
-
43450
-
43451
- /**
43452
- * Static version of the {@see toObject} method.
43453
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
43454
- * the JSPB instance for transitional soy proto support:
43455
- * http://goto/soy-param-migration
43456
- * @param {!proto.zaber.motion.protobufs.GCodeExecutionExceptionData} msg The msg instance to transform.
43457
- * @return {!Object}
43458
- * @suppress {unusedLocalVariables} f is only used for nested messages
43459
- */
43460
- proto.zaber.motion.protobufs.GCodeExecutionExceptionData.toObject = function(includeInstance, msg) {
43461
- var f, obj = {
43462
- fromBlock: jspb.Message.getFieldWithDefault(msg, 1, 0),
43463
- toBlock: jspb.Message.getFieldWithDefault(msg, 2, 0)
43464
- };
43465
-
43466
- if (includeInstance) {
43467
- obj.$jspbMessageInstance = msg;
43468
- }
43469
- return obj;
43470
- };
43471
- }
43472
-
43473
-
43474
- /**
43475
- * Deserializes binary data (in protobuf wire format).
43476
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
43477
- * @return {!proto.zaber.motion.protobufs.GCodeExecutionExceptionData}
43478
- */
43479
- proto.zaber.motion.protobufs.GCodeExecutionExceptionData.deserializeBinary = function(bytes) {
43480
- var reader = new jspb.BinaryReader(bytes);
43481
- var msg = new proto.zaber.motion.protobufs.GCodeExecutionExceptionData;
43482
- return proto.zaber.motion.protobufs.GCodeExecutionExceptionData.deserializeBinaryFromReader(msg, reader);
43483
- };
43484
-
43485
-
43486
- /**
43487
- * Deserializes binary data (in protobuf wire format) from the
43488
- * given reader into the given message object.
43489
- * @param {!proto.zaber.motion.protobufs.GCodeExecutionExceptionData} msg The message object to deserialize into.
43490
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
43491
- * @return {!proto.zaber.motion.protobufs.GCodeExecutionExceptionData}
43492
- */
43493
- proto.zaber.motion.protobufs.GCodeExecutionExceptionData.deserializeBinaryFromReader = function(msg, reader) {
43494
- while (reader.nextField()) {
43495
- if (reader.isEndGroup()) {
43496
- break;
43497
- }
43498
- var field = reader.getFieldNumber();
43499
- switch (field) {
43500
- case 1:
43501
- var value = /** @type {number} */ (reader.readInt32());
43502
- msg.setFromBlock(value);
43503
- break;
43504
- case 2:
43505
- var value = /** @type {number} */ (reader.readInt32());
43506
- msg.setToBlock(value);
43507
- break;
43508
- default:
43509
- reader.skipField();
43510
- break;
43511
- }
43512
- }
43513
- return msg;
43514
- };
43515
-
43516
-
43517
- /**
43518
- * Serializes the message to binary data (in protobuf wire format).
43519
- * @return {!Uint8Array}
43520
- */
43521
- proto.zaber.motion.protobufs.GCodeExecutionExceptionData.prototype.serializeBinary = function() {
43522
- var writer = new jspb.BinaryWriter();
43523
- proto.zaber.motion.protobufs.GCodeExecutionExceptionData.serializeBinaryToWriter(this, writer);
43524
- return writer.getResultBuffer();
43525
- };
43526
-
43527
-
43528
- /**
43529
- * Serializes the given message to binary data (in protobuf wire
43530
- * format), writing to the given BinaryWriter.
43531
- * @param {!proto.zaber.motion.protobufs.GCodeExecutionExceptionData} message
43532
- * @param {!jspb.BinaryWriter} writer
43533
- * @suppress {unusedLocalVariables} f is only used for nested messages
43534
- */
43535
- proto.zaber.motion.protobufs.GCodeExecutionExceptionData.serializeBinaryToWriter = function(message, writer) {
43536
- var f = undefined;
43537
- f = message.getFromBlock();
43538
- if (f !== 0) {
43539
- writer.writeInt32(
43540
- 1,
43541
- f
43542
- );
43543
- }
43544
- f = message.getToBlock();
43545
- if (f !== 0) {
43546
- writer.writeInt32(
43547
- 2,
43548
- f
43549
- );
43550
- }
43551
- };
43552
-
43553
-
43554
- /**
43555
- * optional int32 from_block = 1;
43556
- * @return {number}
43557
- */
43558
- proto.zaber.motion.protobufs.GCodeExecutionExceptionData.prototype.getFromBlock = function() {
43559
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
43560
- };
43561
-
43562
-
43563
- /**
43564
- * @param {number} value
43565
- * @return {!proto.zaber.motion.protobufs.GCodeExecutionExceptionData} returns this
43566
- */
43567
- proto.zaber.motion.protobufs.GCodeExecutionExceptionData.prototype.setFromBlock = function(value) {
43568
- return jspb.Message.setProto3IntField(this, 1, value);
43569
- };
43570
-
43571
-
43572
- /**
43573
- * optional int32 to_block = 2;
43574
- * @return {number}
43575
- */
43576
- proto.zaber.motion.protobufs.GCodeExecutionExceptionData.prototype.getToBlock = function() {
43577
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
43578
- };
43579
-
43580
-
43581
- /**
43582
- * @param {number} value
43583
- * @return {!proto.zaber.motion.protobufs.GCodeExecutionExceptionData} returns this
43584
- */
43585
- proto.zaber.motion.protobufs.GCodeExecutionExceptionData.prototype.setToBlock = function(value) {
43586
- return jspb.Message.setProto3IntField(this, 2, value);
43587
- };
43588
-
43589
-
43590
-
43591
-
43592
-
43593
- if (jspb.Message.GENERATE_TO_OBJECT) {
43594
- /**
43595
- * Creates an object representation of this proto.
43596
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
43597
- * Optional fields that are not set will be set to undefined.
43598
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
43599
- * For the list of reserved names please see:
43600
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
43601
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
43602
- * JSPB instance for transitional soy proto support:
43603
- * http://goto/soy-param-migration
43604
- * @return {!Object}
43605
- */
43606
- proto.zaber.motion.protobufs.TranslatorCreateLiveRequest.prototype.toObject = function(opt_includeInstance) {
43607
- return proto.zaber.motion.protobufs.TranslatorCreateLiveRequest.toObject(opt_includeInstance, this);
43608
- };
43609
-
43610
-
43611
- /**
43612
- * Static version of the {@see toObject} method.
43613
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
43614
- * the JSPB instance for transitional soy proto support:
43615
- * http://goto/soy-param-migration
43616
- * @param {!proto.zaber.motion.protobufs.TranslatorCreateLiveRequest} msg The msg instance to transform.
43617
- * @return {!Object}
43618
- * @suppress {unusedLocalVariables} f is only used for nested messages
43619
- */
43620
- proto.zaber.motion.protobufs.TranslatorCreateLiveRequest.toObject = function(includeInstance, msg) {
43621
- var f, obj = {
43622
- interfaceId: jspb.Message.getFieldWithDefault(msg, 1, 0),
43623
- device: jspb.Message.getFieldWithDefault(msg, 2, 0),
43624
- streamId: jspb.Message.getFieldWithDefault(msg, 3, 0),
43625
- config: (f = msg.getConfig()) && proto.zaber.motion.protobufs.TranslatorConfig.toObject(includeInstance, f)
43626
- };
43627
-
43628
- if (includeInstance) {
43629
- obj.$jspbMessageInstance = msg;
43630
- }
43631
- return obj;
43632
- };
43633
- }
43634
-
43635
-
43636
- /**
43637
- * Deserializes binary data (in protobuf wire format).
43638
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
43639
- * @return {!proto.zaber.motion.protobufs.TranslatorCreateLiveRequest}
43640
- */
43641
- proto.zaber.motion.protobufs.TranslatorCreateLiveRequest.deserializeBinary = function(bytes) {
43642
- var reader = new jspb.BinaryReader(bytes);
43643
- var msg = new proto.zaber.motion.protobufs.TranslatorCreateLiveRequest;
43644
- return proto.zaber.motion.protobufs.TranslatorCreateLiveRequest.deserializeBinaryFromReader(msg, reader);
43645
- };
43646
-
43647
-
43648
- /**
43649
- * Deserializes binary data (in protobuf wire format) from the
43650
- * given reader into the given message object.
43651
- * @param {!proto.zaber.motion.protobufs.TranslatorCreateLiveRequest} msg The message object to deserialize into.
43652
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
43653
- * @return {!proto.zaber.motion.protobufs.TranslatorCreateLiveRequest}
43654
- */
43655
- proto.zaber.motion.protobufs.TranslatorCreateLiveRequest.deserializeBinaryFromReader = function(msg, reader) {
43656
- while (reader.nextField()) {
43657
- if (reader.isEndGroup()) {
43658
- break;
43659
- }
43660
- var field = reader.getFieldNumber();
43661
- switch (field) {
43662
- case 1:
43663
- var value = /** @type {number} */ (reader.readInt32());
43664
- msg.setInterfaceId(value);
43665
- break;
43666
- case 2:
43667
- var value = /** @type {number} */ (reader.readInt32());
43668
- msg.setDevice(value);
43669
- break;
43670
- case 3:
43671
- var value = /** @type {number} */ (reader.readInt32());
43672
- msg.setStreamId(value);
43673
- break;
43674
- case 4:
43675
- var value = new proto.zaber.motion.protobufs.TranslatorConfig;
43676
- reader.readMessage(value,proto.zaber.motion.protobufs.TranslatorConfig.deserializeBinaryFromReader);
43677
- msg.setConfig(value);
43678
- break;
43679
- default:
43680
- reader.skipField();
43681
- break;
43682
- }
43683
- }
43684
- return msg;
43685
- };
43686
-
43687
-
43688
- /**
43689
- * Serializes the message to binary data (in protobuf wire format).
43690
- * @return {!Uint8Array}
43691
- */
43692
- proto.zaber.motion.protobufs.TranslatorCreateLiveRequest.prototype.serializeBinary = function() {
43693
- var writer = new jspb.BinaryWriter();
43694
- proto.zaber.motion.protobufs.TranslatorCreateLiveRequest.serializeBinaryToWriter(this, writer);
43695
- return writer.getResultBuffer();
43696
- };
43697
-
43698
-
43699
- /**
43700
- * Serializes the given message to binary data (in protobuf wire
43701
- * format), writing to the given BinaryWriter.
43702
- * @param {!proto.zaber.motion.protobufs.TranslatorCreateLiveRequest} message
43703
- * @param {!jspb.BinaryWriter} writer
43704
- * @suppress {unusedLocalVariables} f is only used for nested messages
43705
- */
43706
- proto.zaber.motion.protobufs.TranslatorCreateLiveRequest.serializeBinaryToWriter = function(message, writer) {
43707
- var f = undefined;
43708
- f = message.getInterfaceId();
43709
- if (f !== 0) {
43710
- writer.writeInt32(
43711
- 1,
43712
- f
43713
- );
43714
- }
43715
- f = message.getDevice();
43716
- if (f !== 0) {
43717
- writer.writeInt32(
43718
- 2,
43719
- f
43720
- );
43721
- }
43722
- f = message.getStreamId();
43723
- if (f !== 0) {
43724
- writer.writeInt32(
43725
- 3,
43726
- f
43727
- );
43728
- }
43729
- f = message.getConfig();
43730
- if (f != null) {
43731
- writer.writeMessage(
43732
- 4,
43733
- f,
43734
- proto.zaber.motion.protobufs.TranslatorConfig.serializeBinaryToWriter
43735
- );
43736
- }
43737
- };
43738
-
43739
-
43740
- /**
43741
- * optional int32 interface_id = 1;
43742
- * @return {number}
43743
- */
43744
- proto.zaber.motion.protobufs.TranslatorCreateLiveRequest.prototype.getInterfaceId = function() {
43745
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
43746
- };
43747
-
43748
-
43749
- /**
43750
- * @param {number} value
43751
- * @return {!proto.zaber.motion.protobufs.TranslatorCreateLiveRequest} returns this
43752
- */
43753
- proto.zaber.motion.protobufs.TranslatorCreateLiveRequest.prototype.setInterfaceId = function(value) {
43754
- return jspb.Message.setProto3IntField(this, 1, value);
43755
- };
43756
-
43757
-
43758
- /**
43759
- * optional int32 device = 2;
43760
- * @return {number}
43761
- */
43762
- proto.zaber.motion.protobufs.TranslatorCreateLiveRequest.prototype.getDevice = function() {
43763
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
43764
- };
43765
-
43766
-
43767
- /**
43768
- * @param {number} value
43769
- * @return {!proto.zaber.motion.protobufs.TranslatorCreateLiveRequest} returns this
43770
- */
43771
- proto.zaber.motion.protobufs.TranslatorCreateLiveRequest.prototype.setDevice = function(value) {
43772
- return jspb.Message.setProto3IntField(this, 2, value);
43773
- };
43774
-
43775
-
43776
- /**
43777
- * optional int32 stream_id = 3;
43778
- * @return {number}
43779
- */
43780
- proto.zaber.motion.protobufs.TranslatorCreateLiveRequest.prototype.getStreamId = function() {
43781
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
43782
- };
43783
-
43784
-
43785
- /**
43786
- * @param {number} value
43787
- * @return {!proto.zaber.motion.protobufs.TranslatorCreateLiveRequest} returns this
43788
- */
43789
- proto.zaber.motion.protobufs.TranslatorCreateLiveRequest.prototype.setStreamId = function(value) {
43790
- return jspb.Message.setProto3IntField(this, 3, value);
43791
- };
43792
-
43793
-
43794
- /**
43795
- * optional TranslatorConfig config = 4;
43796
- * @return {?proto.zaber.motion.protobufs.TranslatorConfig}
43797
- */
43798
- proto.zaber.motion.protobufs.TranslatorCreateLiveRequest.prototype.getConfig = function() {
43799
- return /** @type{?proto.zaber.motion.protobufs.TranslatorConfig} */ (
43800
- jspb.Message.getWrapperField(this, proto.zaber.motion.protobufs.TranslatorConfig, 4));
43801
- };
43802
-
43803
-
43804
- /**
43805
- * @param {?proto.zaber.motion.protobufs.TranslatorConfig|undefined} value
43806
- * @return {!proto.zaber.motion.protobufs.TranslatorCreateLiveRequest} returns this
43807
- */
43808
- proto.zaber.motion.protobufs.TranslatorCreateLiveRequest.prototype.setConfig = function(value) {
43809
- return jspb.Message.setWrapperField(this, 4, value);
43810
- };
43811
-
43812
-
43813
- /**
43814
- * Clears the message field making it undefined.
43815
- * @return {!proto.zaber.motion.protobufs.TranslatorCreateLiveRequest} returns this
43816
- */
43817
- proto.zaber.motion.protobufs.TranslatorCreateLiveRequest.prototype.clearConfig = function() {
43818
- return this.setConfig(undefined);
43819
- };
43820
-
43821
-
43822
- /**
43823
- * Returns whether this field is set.
43824
- * @return {boolean}
43825
- */
43826
- proto.zaber.motion.protobufs.TranslatorCreateLiveRequest.prototype.hasConfig = function() {
43827
- return jspb.Message.getField(this, 4) != null;
43828
- };
43829
-
43830
-
43831
-
43832
-
43833
-
43834
- if (jspb.Message.GENERATE_TO_OBJECT) {
43835
- /**
43836
- * Creates an object representation of this proto.
43837
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
43838
- * Optional fields that are not set will be set to undefined.
43839
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
43840
- * For the list of reserved names please see:
43841
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
43842
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
43843
- * JSPB instance for transitional soy proto support:
43844
- * http://goto/soy-param-migration
43845
- * @return {!Object}
43846
- */
43847
- proto.zaber.motion.protobufs.TranslatorEmptyRequest.prototype.toObject = function(opt_includeInstance) {
43848
- return proto.zaber.motion.protobufs.TranslatorEmptyRequest.toObject(opt_includeInstance, this);
43849
- };
43850
-
43851
-
43852
- /**
43853
- * Static version of the {@see toObject} method.
43854
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
43855
- * the JSPB instance for transitional soy proto support:
43856
- * http://goto/soy-param-migration
43857
- * @param {!proto.zaber.motion.protobufs.TranslatorEmptyRequest} msg The msg instance to transform.
43858
- * @return {!Object}
43859
- * @suppress {unusedLocalVariables} f is only used for nested messages
43860
- */
43861
- proto.zaber.motion.protobufs.TranslatorEmptyRequest.toObject = function(includeInstance, msg) {
43862
- var f, obj = {
43863
- translatorId: jspb.Message.getFieldWithDefault(msg, 1, 0)
43864
- };
43865
-
43866
- if (includeInstance) {
43867
- obj.$jspbMessageInstance = msg;
43868
- }
43869
- return obj;
43870
- };
43871
- }
43872
-
43873
-
43874
- /**
43875
- * Deserializes binary data (in protobuf wire format).
43876
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
43877
- * @return {!proto.zaber.motion.protobufs.TranslatorEmptyRequest}
43878
- */
43879
- proto.zaber.motion.protobufs.TranslatorEmptyRequest.deserializeBinary = function(bytes) {
43880
- var reader = new jspb.BinaryReader(bytes);
43881
- var msg = new proto.zaber.motion.protobufs.TranslatorEmptyRequest;
43882
- return proto.zaber.motion.protobufs.TranslatorEmptyRequest.deserializeBinaryFromReader(msg, reader);
43883
- };
43884
-
43885
-
43886
- /**
43887
- * Deserializes binary data (in protobuf wire format) from the
43888
- * given reader into the given message object.
43889
- * @param {!proto.zaber.motion.protobufs.TranslatorEmptyRequest} msg The message object to deserialize into.
43890
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
43891
- * @return {!proto.zaber.motion.protobufs.TranslatorEmptyRequest}
43892
- */
43893
- proto.zaber.motion.protobufs.TranslatorEmptyRequest.deserializeBinaryFromReader = function(msg, reader) {
43894
- while (reader.nextField()) {
43895
- if (reader.isEndGroup()) {
43896
- break;
43897
- }
43898
- var field = reader.getFieldNumber();
43899
- switch (field) {
43900
- case 1:
43901
- var value = /** @type {number} */ (reader.readInt32());
43902
- msg.setTranslatorId(value);
43903
- break;
43904
- default:
43905
- reader.skipField();
43906
- break;
43907
- }
43908
- }
43909
- return msg;
43910
- };
43911
-
43912
-
43913
- /**
43914
- * Serializes the message to binary data (in protobuf wire format).
43915
- * @return {!Uint8Array}
43916
- */
43917
- proto.zaber.motion.protobufs.TranslatorEmptyRequest.prototype.serializeBinary = function() {
43918
- var writer = new jspb.BinaryWriter();
43919
- proto.zaber.motion.protobufs.TranslatorEmptyRequest.serializeBinaryToWriter(this, writer);
43920
- return writer.getResultBuffer();
43921
- };
43922
-
43923
-
43924
- /**
43925
- * Serializes the given message to binary data (in protobuf wire
43926
- * format), writing to the given BinaryWriter.
43927
- * @param {!proto.zaber.motion.protobufs.TranslatorEmptyRequest} message
43928
- * @param {!jspb.BinaryWriter} writer
43929
- * @suppress {unusedLocalVariables} f is only used for nested messages
43930
- */
43931
- proto.zaber.motion.protobufs.TranslatorEmptyRequest.serializeBinaryToWriter = function(message, writer) {
43932
- var f = undefined;
43933
- f = message.getTranslatorId();
43934
- if (f !== 0) {
43935
- writer.writeInt32(
43936
- 1,
43937
- f
43938
- );
43939
- }
43940
- };
43941
-
43942
-
43943
- /**
43944
- * optional int32 translator_id = 1;
43945
- * @return {number}
43946
- */
43947
- proto.zaber.motion.protobufs.TranslatorEmptyRequest.prototype.getTranslatorId = function() {
43948
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
43949
- };
43950
-
43951
-
43952
- /**
43953
- * @param {number} value
43954
- * @return {!proto.zaber.motion.protobufs.TranslatorEmptyRequest} returns this
43955
- */
43956
- proto.zaber.motion.protobufs.TranslatorEmptyRequest.prototype.setTranslatorId = function(value) {
43957
- return jspb.Message.setProto3IntField(this, 1, value);
43958
- };
43959
-
43960
-
43961
-
43962
-
43963
-
43964
- if (jspb.Message.GENERATE_TO_OBJECT) {
43965
- /**
43966
- * Creates an object representation of this proto.
43967
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
43968
- * Optional fields that are not set will be set to undefined.
43969
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
43970
- * For the list of reserved names please see:
43971
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
43972
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
43973
- * JSPB instance for transitional soy proto support:
43974
- * http://goto/soy-param-migration
43975
- * @return {!Object}
43976
- */
43977
- proto.zaber.motion.protobufs.TranslatorSetTraverseRateRequest.prototype.toObject = function(opt_includeInstance) {
43978
- return proto.zaber.motion.protobufs.TranslatorSetTraverseRateRequest.toObject(opt_includeInstance, this);
43979
- };
43980
-
43981
-
43982
- /**
43983
- * Static version of the {@see toObject} method.
43984
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
43985
- * the JSPB instance for transitional soy proto support:
43986
- * http://goto/soy-param-migration
43987
- * @param {!proto.zaber.motion.protobufs.TranslatorSetTraverseRateRequest} msg The msg instance to transform.
43988
- * @return {!Object}
43989
- * @suppress {unusedLocalVariables} f is only used for nested messages
43990
- */
43991
- proto.zaber.motion.protobufs.TranslatorSetTraverseRateRequest.toObject = function(includeInstance, msg) {
43992
- var f, obj = {
43993
- translatorId: jspb.Message.getFieldWithDefault(msg, 1, 0),
43994
- traverseRate: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
43995
- unit: jspb.Message.getFieldWithDefault(msg, 3, "")
43996
- };
43997
-
43998
- if (includeInstance) {
43999
- obj.$jspbMessageInstance = msg;
44000
- }
44001
- return obj;
44002
- };
44003
- }
44004
-
44005
-
44006
- /**
44007
- * Deserializes binary data (in protobuf wire format).
44008
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
44009
- * @return {!proto.zaber.motion.protobufs.TranslatorSetTraverseRateRequest}
44010
- */
44011
- proto.zaber.motion.protobufs.TranslatorSetTraverseRateRequest.deserializeBinary = function(bytes) {
44012
- var reader = new jspb.BinaryReader(bytes);
44013
- var msg = new proto.zaber.motion.protobufs.TranslatorSetTraverseRateRequest;
44014
- return proto.zaber.motion.protobufs.TranslatorSetTraverseRateRequest.deserializeBinaryFromReader(msg, reader);
44015
- };
44016
-
44017
-
44018
- /**
44019
- * Deserializes binary data (in protobuf wire format) from the
44020
- * given reader into the given message object.
44021
- * @param {!proto.zaber.motion.protobufs.TranslatorSetTraverseRateRequest} msg The message object to deserialize into.
44022
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
44023
- * @return {!proto.zaber.motion.protobufs.TranslatorSetTraverseRateRequest}
44024
- */
44025
- proto.zaber.motion.protobufs.TranslatorSetTraverseRateRequest.deserializeBinaryFromReader = function(msg, reader) {
44026
- while (reader.nextField()) {
44027
- if (reader.isEndGroup()) {
44028
- break;
44029
- }
44030
- var field = reader.getFieldNumber();
44031
- switch (field) {
44032
- case 1:
44033
- var value = /** @type {number} */ (reader.readInt32());
44034
- msg.setTranslatorId(value);
44035
- break;
44036
41316
  case 2:
44037
- var value = /** @type {number} */ (reader.readDouble());
44038
- msg.setTraverseRate(value);
41317
+ var value = /** @type {string} */ (reader.readString());
41318
+ msg.setError(value);
44039
41319
  break;
44040
41320
  case 3:
44041
- var value = /** @type {string} */ (reader.readString());
44042
- msg.setUnit(value);
41321
+ var value = new proto.zaber.motion.protobufs.CanSetStateAxisResponse;
41322
+ reader.readMessage(value,proto.zaber.motion.protobufs.CanSetStateAxisResponse.deserializeBinaryFromReader);
41323
+ msg.addPeripheralErrors(value);
44043
41324
  break;
44044
41325
  default:
44045
41326
  reader.skipField();
@@ -44054,9 +41335,9 @@ proto.zaber.motion.protobufs.TranslatorSetTraverseRateRequest.deserializeBinaryF
44054
41335
  * Serializes the message to binary data (in protobuf wire format).
44055
41336
  * @return {!Uint8Array}
44056
41337
  */
44057
- proto.zaber.motion.protobufs.TranslatorSetTraverseRateRequest.prototype.serializeBinary = function() {
41338
+ proto.zaber.motion.protobufs.CanSetStateDeviceResponse.prototype.serializeBinary = function() {
44058
41339
  var writer = new jspb.BinaryWriter();
44059
- proto.zaber.motion.protobufs.TranslatorSetTraverseRateRequest.serializeBinaryToWriter(this, writer);
41340
+ proto.zaber.motion.protobufs.CanSetStateDeviceResponse.serializeBinaryToWriter(this, writer);
44060
41341
  return writer.getResultBuffer();
44061
41342
  };
44062
41343
 
@@ -44064,87 +41345,83 @@ proto.zaber.motion.protobufs.TranslatorSetTraverseRateRequest.prototype.serializ
44064
41345
  /**
44065
41346
  * Serializes the given message to binary data (in protobuf wire
44066
41347
  * format), writing to the given BinaryWriter.
44067
- * @param {!proto.zaber.motion.protobufs.TranslatorSetTraverseRateRequest} message
41348
+ * @param {!proto.zaber.motion.protobufs.CanSetStateDeviceResponse} message
44068
41349
  * @param {!jspb.BinaryWriter} writer
44069
41350
  * @suppress {unusedLocalVariables} f is only used for nested messages
44070
41351
  */
44071
- proto.zaber.motion.protobufs.TranslatorSetTraverseRateRequest.serializeBinaryToWriter = function(message, writer) {
41352
+ proto.zaber.motion.protobufs.CanSetStateDeviceResponse.serializeBinaryToWriter = function(message, writer) {
44072
41353
  var f = undefined;
44073
- f = message.getTranslatorId();
44074
- if (f !== 0) {
44075
- writer.writeInt32(
44076
- 1,
44077
- f
44078
- );
44079
- }
44080
- f = message.getTraverseRate();
44081
- if (f !== 0.0) {
44082
- writer.writeDouble(
41354
+ f = message.getError();
41355
+ if (f.length > 0) {
41356
+ writer.writeString(
44083
41357
  2,
44084
41358
  f
44085
41359
  );
44086
41360
  }
44087
- f = message.getUnit();
41361
+ f = message.getPeripheralErrorsList();
44088
41362
  if (f.length > 0) {
44089
- writer.writeString(
41363
+ writer.writeRepeatedMessage(
44090
41364
  3,
44091
- f
41365
+ f,
41366
+ proto.zaber.motion.protobufs.CanSetStateAxisResponse.serializeBinaryToWriter
44092
41367
  );
44093
41368
  }
44094
41369
  };
44095
41370
 
44096
41371
 
44097
41372
  /**
44098
- * optional int32 translator_id = 1;
44099
- * @return {number}
41373
+ * optional string error = 2;
41374
+ * @return {string}
44100
41375
  */
44101
- proto.zaber.motion.protobufs.TranslatorSetTraverseRateRequest.prototype.getTranslatorId = function() {
44102
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
41376
+ proto.zaber.motion.protobufs.CanSetStateDeviceResponse.prototype.getError = function() {
41377
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
44103
41378
  };
44104
41379
 
44105
41380
 
44106
41381
  /**
44107
- * @param {number} value
44108
- * @return {!proto.zaber.motion.protobufs.TranslatorSetTraverseRateRequest} returns this
41382
+ * @param {string} value
41383
+ * @return {!proto.zaber.motion.protobufs.CanSetStateDeviceResponse} returns this
44109
41384
  */
44110
- proto.zaber.motion.protobufs.TranslatorSetTraverseRateRequest.prototype.setTranslatorId = function(value) {
44111
- return jspb.Message.setProto3IntField(this, 1, value);
41385
+ proto.zaber.motion.protobufs.CanSetStateDeviceResponse.prototype.setError = function(value) {
41386
+ return jspb.Message.setProto3StringField(this, 2, value);
44112
41387
  };
44113
41388
 
44114
41389
 
44115
41390
  /**
44116
- * optional double traverse_rate = 2;
44117
- * @return {number}
41391
+ * repeated CanSetStateAxisResponse peripheral_errors = 3;
41392
+ * @return {!Array<!proto.zaber.motion.protobufs.CanSetStateAxisResponse>}
44118
41393
  */
44119
- proto.zaber.motion.protobufs.TranslatorSetTraverseRateRequest.prototype.getTraverseRate = function() {
44120
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
41394
+ proto.zaber.motion.protobufs.CanSetStateDeviceResponse.prototype.getPeripheralErrorsList = function() {
41395
+ return /** @type{!Array<!proto.zaber.motion.protobufs.CanSetStateAxisResponse>} */ (
41396
+ jspb.Message.getRepeatedWrapperField(this, proto.zaber.motion.protobufs.CanSetStateAxisResponse, 3));
44121
41397
  };
44122
41398
 
44123
41399
 
44124
41400
  /**
44125
- * @param {number} value
44126
- * @return {!proto.zaber.motion.protobufs.TranslatorSetTraverseRateRequest} returns this
44127
- */
44128
- proto.zaber.motion.protobufs.TranslatorSetTraverseRateRequest.prototype.setTraverseRate = function(value) {
44129
- return jspb.Message.setProto3FloatField(this, 2, value);
41401
+ * @param {!Array<!proto.zaber.motion.protobufs.CanSetStateAxisResponse>} value
41402
+ * @return {!proto.zaber.motion.protobufs.CanSetStateDeviceResponse} returns this
41403
+ */
41404
+ proto.zaber.motion.protobufs.CanSetStateDeviceResponse.prototype.setPeripheralErrorsList = function(value) {
41405
+ return jspb.Message.setRepeatedWrapperField(this, 3, value);
44130
41406
  };
44131
41407
 
44132
41408
 
44133
41409
  /**
44134
- * optional string unit = 3;
44135
- * @return {string}
41410
+ * @param {!proto.zaber.motion.protobufs.CanSetStateAxisResponse=} opt_value
41411
+ * @param {number=} opt_index
41412
+ * @return {!proto.zaber.motion.protobufs.CanSetStateAxisResponse}
44136
41413
  */
44137
- proto.zaber.motion.protobufs.TranslatorSetTraverseRateRequest.prototype.getUnit = function() {
44138
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
41414
+ proto.zaber.motion.protobufs.CanSetStateDeviceResponse.prototype.addPeripheralErrors = function(opt_value, opt_index) {
41415
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.zaber.motion.protobufs.CanSetStateAxisResponse, opt_index);
44139
41416
  };
44140
41417
 
44141
41418
 
44142
41419
  /**
44143
- * @param {string} value
44144
- * @return {!proto.zaber.motion.protobufs.TranslatorSetTraverseRateRequest} returns this
41420
+ * Clears the list making it empty but non-null.
41421
+ * @return {!proto.zaber.motion.protobufs.CanSetStateDeviceResponse} returns this
44145
41422
  */
44146
- proto.zaber.motion.protobufs.TranslatorSetTraverseRateRequest.prototype.setUnit = function(value) {
44147
- return jspb.Message.setProto3StringField(this, 3, value);
41423
+ proto.zaber.motion.protobufs.CanSetStateDeviceResponse.prototype.clearPeripheralErrorsList = function() {
41424
+ return this.setPeripheralErrorsList([]);
44148
41425
  };
44149
41426
 
44150
41427
 
@@ -44164,8 +41441,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
44164
41441
  * http://goto/soy-param-migration
44165
41442
  * @return {!Object}
44166
41443
  */
44167
- proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest.prototype.toObject = function(opt_includeInstance) {
44168
- return proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest.toObject(opt_includeInstance, this);
41444
+ proto.zaber.motion.protobufs.SetStateRequest.prototype.toObject = function(opt_includeInstance) {
41445
+ return proto.zaber.motion.protobufs.SetStateRequest.toObject(opt_includeInstance, this);
44169
41446
  };
44170
41447
 
44171
41448
 
@@ -44174,16 +41451,17 @@ proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest.prototype.toObject
44174
41451
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
44175
41452
  * the JSPB instance for transitional soy proto support:
44176
41453
  * http://goto/soy-param-migration
44177
- * @param {!proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest} msg The msg instance to transform.
41454
+ * @param {!proto.zaber.motion.protobufs.SetStateRequest} msg The msg instance to transform.
44178
41455
  * @return {!Object}
44179
41456
  * @suppress {unusedLocalVariables} f is only used for nested messages
44180
41457
  */
44181
- proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest.toObject = function(includeInstance, msg) {
41458
+ proto.zaber.motion.protobufs.SetStateRequest.toObject = function(includeInstance, msg) {
44182
41459
  var f, obj = {
44183
- translatorId: jspb.Message.getFieldWithDefault(msg, 1, 0),
44184
- axis: jspb.Message.getFieldWithDefault(msg, 2, ""),
44185
- position: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
44186
- unit: jspb.Message.getFieldWithDefault(msg, 4, "")
41460
+ interfaceId: jspb.Message.getFieldWithDefault(msg, 1, 0),
41461
+ device: jspb.Message.getFieldWithDefault(msg, 2, 0),
41462
+ axis: jspb.Message.getFieldWithDefault(msg, 3, 0),
41463
+ state: jspb.Message.getFieldWithDefault(msg, 4, ""),
41464
+ deviceOnly: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
44187
41465
  };
44188
41466
 
44189
41467
  if (includeInstance) {
@@ -44197,23 +41475,23 @@ proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest.toObject = functio
44197
41475
  /**
44198
41476
  * Deserializes binary data (in protobuf wire format).
44199
41477
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
44200
- * @return {!proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest}
41478
+ * @return {!proto.zaber.motion.protobufs.SetStateRequest}
44201
41479
  */
44202
- proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest.deserializeBinary = function(bytes) {
41480
+ proto.zaber.motion.protobufs.SetStateRequest.deserializeBinary = function(bytes) {
44203
41481
  var reader = new jspb.BinaryReader(bytes);
44204
- var msg = new proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest;
44205
- return proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest.deserializeBinaryFromReader(msg, reader);
41482
+ var msg = new proto.zaber.motion.protobufs.SetStateRequest;
41483
+ return proto.zaber.motion.protobufs.SetStateRequest.deserializeBinaryFromReader(msg, reader);
44206
41484
  };
44207
41485
 
44208
41486
 
44209
41487
  /**
44210
41488
  * Deserializes binary data (in protobuf wire format) from the
44211
41489
  * given reader into the given message object.
44212
- * @param {!proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest} msg The message object to deserialize into.
41490
+ * @param {!proto.zaber.motion.protobufs.SetStateRequest} msg The message object to deserialize into.
44213
41491
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
44214
- * @return {!proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest}
41492
+ * @return {!proto.zaber.motion.protobufs.SetStateRequest}
44215
41493
  */
44216
- proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest.deserializeBinaryFromReader = function(msg, reader) {
41494
+ proto.zaber.motion.protobufs.SetStateRequest.deserializeBinaryFromReader = function(msg, reader) {
44217
41495
  while (reader.nextField()) {
44218
41496
  if (reader.isEndGroup()) {
44219
41497
  break;
@@ -44222,19 +41500,23 @@ proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest.deserializeBinaryF
44222
41500
  switch (field) {
44223
41501
  case 1:
44224
41502
  var value = /** @type {number} */ (reader.readInt32());
44225
- msg.setTranslatorId(value);
41503
+ msg.setInterfaceId(value);
44226
41504
  break;
44227
41505
  case 2:
44228
- var value = /** @type {string} */ (reader.readString());
44229
- msg.setAxis(value);
41506
+ var value = /** @type {number} */ (reader.readInt32());
41507
+ msg.setDevice(value);
44230
41508
  break;
44231
41509
  case 3:
44232
- var value = /** @type {number} */ (reader.readDouble());
44233
- msg.setPosition(value);
41510
+ var value = /** @type {number} */ (reader.readInt32());
41511
+ msg.setAxis(value);
44234
41512
  break;
44235
41513
  case 4:
44236
41514
  var value = /** @type {string} */ (reader.readString());
44237
- msg.setUnit(value);
41515
+ msg.setState(value);
41516
+ break;
41517
+ case 5:
41518
+ var value = /** @type {boolean} */ (reader.readBool());
41519
+ msg.setDeviceOnly(value);
44238
41520
  break;
44239
41521
  default:
44240
41522
  reader.skipField();
@@ -44249,9 +41531,9 @@ proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest.deserializeBinaryF
44249
41531
  * Serializes the message to binary data (in protobuf wire format).
44250
41532
  * @return {!Uint8Array}
44251
41533
  */
44252
- proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest.prototype.serializeBinary = function() {
41534
+ proto.zaber.motion.protobufs.SetStateRequest.prototype.serializeBinary = function() {
44253
41535
  var writer = new jspb.BinaryWriter();
44254
- proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest.serializeBinaryToWriter(this, writer);
41536
+ proto.zaber.motion.protobufs.SetStateRequest.serializeBinaryToWriter(this, writer);
44255
41537
  return writer.getResultBuffer();
44256
41538
  };
44257
41539
 
@@ -44259,432 +41541,137 @@ proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest.prototype.serializ
44259
41541
  /**
44260
41542
  * Serializes the given message to binary data (in protobuf wire
44261
41543
  * format), writing to the given BinaryWriter.
44262
- * @param {!proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest} message
41544
+ * @param {!proto.zaber.motion.protobufs.SetStateRequest} message
44263
41545
  * @param {!jspb.BinaryWriter} writer
44264
41546
  * @suppress {unusedLocalVariables} f is only used for nested messages
44265
41547
  */
44266
- proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest.serializeBinaryToWriter = function(message, writer) {
41548
+ proto.zaber.motion.protobufs.SetStateRequest.serializeBinaryToWriter = function(message, writer) {
44267
41549
  var f = undefined;
44268
- f = message.getTranslatorId();
41550
+ f = message.getInterfaceId();
44269
41551
  if (f !== 0) {
44270
41552
  writer.writeInt32(
44271
41553
  1,
44272
41554
  f
44273
41555
  );
44274
41556
  }
44275
- f = message.getAxis();
44276
- if (f.length > 0) {
44277
- writer.writeString(
41557
+ f = message.getDevice();
41558
+ if (f !== 0) {
41559
+ writer.writeInt32(
44278
41560
  2,
44279
41561
  f
44280
41562
  );
44281
41563
  }
44282
- f = message.getPosition();
44283
- if (f !== 0.0) {
44284
- writer.writeDouble(
41564
+ f = message.getAxis();
41565
+ if (f !== 0) {
41566
+ writer.writeInt32(
44285
41567
  3,
44286
41568
  f
44287
41569
  );
44288
41570
  }
44289
- f = message.getUnit();
41571
+ f = message.getState();
44290
41572
  if (f.length > 0) {
44291
41573
  writer.writeString(
44292
41574
  4,
44293
41575
  f
44294
41576
  );
44295
41577
  }
41578
+ f = message.getDeviceOnly();
41579
+ if (f) {
41580
+ writer.writeBool(
41581
+ 5,
41582
+ f
41583
+ );
41584
+ }
44296
41585
  };
44297
41586
 
44298
41587
 
44299
41588
  /**
44300
- * optional int32 translator_id = 1;
41589
+ * optional int32 interface_id = 1;
44301
41590
  * @return {number}
44302
41591
  */
44303
- proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest.prototype.getTranslatorId = function() {
41592
+ proto.zaber.motion.protobufs.SetStateRequest.prototype.getInterfaceId = function() {
44304
41593
  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
44305
41594
  };
44306
41595
 
44307
41596
 
44308
41597
  /**
44309
41598
  * @param {number} value
44310
- * @return {!proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest} returns this
41599
+ * @return {!proto.zaber.motion.protobufs.SetStateRequest} returns this
44311
41600
  */
44312
- proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest.prototype.setTranslatorId = function(value) {
41601
+ proto.zaber.motion.protobufs.SetStateRequest.prototype.setInterfaceId = function(value) {
44313
41602
  return jspb.Message.setProto3IntField(this, 1, value);
44314
41603
  };
44315
41604
 
44316
41605
 
44317
41606
  /**
44318
- * optional string axis = 2;
44319
- * @return {string}
44320
- */
44321
- proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest.prototype.getAxis = function() {
44322
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
44323
- };
44324
-
44325
-
44326
- /**
44327
- * @param {string} value
44328
- * @return {!proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest} returns this
44329
- */
44330
- proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest.prototype.setAxis = function(value) {
44331
- return jspb.Message.setProto3StringField(this, 2, value);
44332
- };
44333
-
44334
-
44335
- /**
44336
- * optional double position = 3;
41607
+ * optional int32 device = 2;
44337
41608
  * @return {number}
44338
41609
  */
44339
- proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest.prototype.getPosition = function() {
44340
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
41610
+ proto.zaber.motion.protobufs.SetStateRequest.prototype.getDevice = function() {
41611
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
44341
41612
  };
44342
41613
 
44343
41614
 
44344
41615
  /**
44345
41616
  * @param {number} value
44346
- * @return {!proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest} returns this
44347
- */
44348
- proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest.prototype.setPosition = function(value) {
44349
- return jspb.Message.setProto3FloatField(this, 3, value);
44350
- };
44351
-
44352
-
44353
- /**
44354
- * optional string unit = 4;
44355
- * @return {string}
44356
- */
44357
- proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest.prototype.getUnit = function() {
44358
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
44359
- };
44360
-
44361
-
44362
- /**
44363
- * @param {string} value
44364
- * @return {!proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest} returns this
44365
- */
44366
- proto.zaber.motion.protobufs.TranslatorSetAxisPositionRequest.prototype.setUnit = function(value) {
44367
- return jspb.Message.setProto3StringField(this, 4, value);
44368
- };
44369
-
44370
-
44371
-
44372
-
44373
-
44374
- if (jspb.Message.GENERATE_TO_OBJECT) {
44375
- /**
44376
- * Creates an object representation of this proto.
44377
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
44378
- * Optional fields that are not set will be set to undefined.
44379
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
44380
- * For the list of reserved names please see:
44381
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
44382
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
44383
- * JSPB instance for transitional soy proto support:
44384
- * http://goto/soy-param-migration
44385
- * @return {!Object}
44386
- */
44387
- proto.zaber.motion.protobufs.TranslatorGetAxisPositionRequest.prototype.toObject = function(opt_includeInstance) {
44388
- return proto.zaber.motion.protobufs.TranslatorGetAxisPositionRequest.toObject(opt_includeInstance, this);
44389
- };
44390
-
44391
-
44392
- /**
44393
- * Static version of the {@see toObject} method.
44394
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
44395
- * the JSPB instance for transitional soy proto support:
44396
- * http://goto/soy-param-migration
44397
- * @param {!proto.zaber.motion.protobufs.TranslatorGetAxisPositionRequest} msg The msg instance to transform.
44398
- * @return {!Object}
44399
- * @suppress {unusedLocalVariables} f is only used for nested messages
44400
- */
44401
- proto.zaber.motion.protobufs.TranslatorGetAxisPositionRequest.toObject = function(includeInstance, msg) {
44402
- var f, obj = {
44403
- translatorId: jspb.Message.getFieldWithDefault(msg, 1, 0),
44404
- axis: jspb.Message.getFieldWithDefault(msg, 2, ""),
44405
- unit: jspb.Message.getFieldWithDefault(msg, 3, "")
44406
- };
44407
-
44408
- if (includeInstance) {
44409
- obj.$jspbMessageInstance = msg;
44410
- }
44411
- return obj;
44412
- };
44413
- }
44414
-
44415
-
44416
- /**
44417
- * Deserializes binary data (in protobuf wire format).
44418
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
44419
- * @return {!proto.zaber.motion.protobufs.TranslatorGetAxisPositionRequest}
44420
- */
44421
- proto.zaber.motion.protobufs.TranslatorGetAxisPositionRequest.deserializeBinary = function(bytes) {
44422
- var reader = new jspb.BinaryReader(bytes);
44423
- var msg = new proto.zaber.motion.protobufs.TranslatorGetAxisPositionRequest;
44424
- return proto.zaber.motion.protobufs.TranslatorGetAxisPositionRequest.deserializeBinaryFromReader(msg, reader);
44425
- };
44426
-
44427
-
44428
- /**
44429
- * Deserializes binary data (in protobuf wire format) from the
44430
- * given reader into the given message object.
44431
- * @param {!proto.zaber.motion.protobufs.TranslatorGetAxisPositionRequest} msg The message object to deserialize into.
44432
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
44433
- * @return {!proto.zaber.motion.protobufs.TranslatorGetAxisPositionRequest}
44434
- */
44435
- proto.zaber.motion.protobufs.TranslatorGetAxisPositionRequest.deserializeBinaryFromReader = function(msg, reader) {
44436
- while (reader.nextField()) {
44437
- if (reader.isEndGroup()) {
44438
- break;
44439
- }
44440
- var field = reader.getFieldNumber();
44441
- switch (field) {
44442
- case 1:
44443
- var value = /** @type {number} */ (reader.readInt32());
44444
- msg.setTranslatorId(value);
44445
- break;
44446
- case 2:
44447
- var value = /** @type {string} */ (reader.readString());
44448
- msg.setAxis(value);
44449
- break;
44450
- case 3:
44451
- var value = /** @type {string} */ (reader.readString());
44452
- msg.setUnit(value);
44453
- break;
44454
- default:
44455
- reader.skipField();
44456
- break;
44457
- }
44458
- }
44459
- return msg;
44460
- };
44461
-
44462
-
44463
- /**
44464
- * Serializes the message to binary data (in protobuf wire format).
44465
- * @return {!Uint8Array}
44466
- */
44467
- proto.zaber.motion.protobufs.TranslatorGetAxisPositionRequest.prototype.serializeBinary = function() {
44468
- var writer = new jspb.BinaryWriter();
44469
- proto.zaber.motion.protobufs.TranslatorGetAxisPositionRequest.serializeBinaryToWriter(this, writer);
44470
- return writer.getResultBuffer();
44471
- };
44472
-
44473
-
44474
- /**
44475
- * Serializes the given message to binary data (in protobuf wire
44476
- * format), writing to the given BinaryWriter.
44477
- * @param {!proto.zaber.motion.protobufs.TranslatorGetAxisPositionRequest} message
44478
- * @param {!jspb.BinaryWriter} writer
44479
- * @suppress {unusedLocalVariables} f is only used for nested messages
41617
+ * @return {!proto.zaber.motion.protobufs.SetStateRequest} returns this
44480
41618
  */
44481
- proto.zaber.motion.protobufs.TranslatorGetAxisPositionRequest.serializeBinaryToWriter = function(message, writer) {
44482
- var f = undefined;
44483
- f = message.getTranslatorId();
44484
- if (f !== 0) {
44485
- writer.writeInt32(
44486
- 1,
44487
- f
44488
- );
44489
- }
44490
- f = message.getAxis();
44491
- if (f.length > 0) {
44492
- writer.writeString(
44493
- 2,
44494
- f
44495
- );
44496
- }
44497
- f = message.getUnit();
44498
- if (f.length > 0) {
44499
- writer.writeString(
44500
- 3,
44501
- f
44502
- );
44503
- }
41619
+ proto.zaber.motion.protobufs.SetStateRequest.prototype.setDevice = function(value) {
41620
+ return jspb.Message.setProto3IntField(this, 2, value);
44504
41621
  };
44505
41622
 
44506
41623
 
44507
41624
  /**
44508
- * optional int32 translator_id = 1;
41625
+ * optional int32 axis = 3;
44509
41626
  * @return {number}
44510
41627
  */
44511
- proto.zaber.motion.protobufs.TranslatorGetAxisPositionRequest.prototype.getTranslatorId = function() {
44512
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
41628
+ proto.zaber.motion.protobufs.SetStateRequest.prototype.getAxis = function() {
41629
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
44513
41630
  };
44514
41631
 
44515
41632
 
44516
41633
  /**
44517
41634
  * @param {number} value
44518
- * @return {!proto.zaber.motion.protobufs.TranslatorGetAxisPositionRequest} returns this
44519
- */
44520
- proto.zaber.motion.protobufs.TranslatorGetAxisPositionRequest.prototype.setTranslatorId = function(value) {
44521
- return jspb.Message.setProto3IntField(this, 1, value);
44522
- };
44523
-
44524
-
44525
- /**
44526
- * optional string axis = 2;
44527
- * @return {string}
44528
- */
44529
- proto.zaber.motion.protobufs.TranslatorGetAxisPositionRequest.prototype.getAxis = function() {
44530
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
44531
- };
44532
-
44533
-
44534
- /**
44535
- * @param {string} value
44536
- * @return {!proto.zaber.motion.protobufs.TranslatorGetAxisPositionRequest} returns this
41635
+ * @return {!proto.zaber.motion.protobufs.SetStateRequest} returns this
44537
41636
  */
44538
- proto.zaber.motion.protobufs.TranslatorGetAxisPositionRequest.prototype.setAxis = function(value) {
44539
- return jspb.Message.setProto3StringField(this, 2, value);
41637
+ proto.zaber.motion.protobufs.SetStateRequest.prototype.setAxis = function(value) {
41638
+ return jspb.Message.setProto3IntField(this, 3, value);
44540
41639
  };
44541
41640
 
44542
41641
 
44543
41642
  /**
44544
- * optional string unit = 3;
41643
+ * optional string state = 4;
44545
41644
  * @return {string}
44546
41645
  */
44547
- proto.zaber.motion.protobufs.TranslatorGetAxisPositionRequest.prototype.getUnit = function() {
44548
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
41646
+ proto.zaber.motion.protobufs.SetStateRequest.prototype.getState = function() {
41647
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
44549
41648
  };
44550
41649
 
44551
41650
 
44552
41651
  /**
44553
41652
  * @param {string} value
44554
- * @return {!proto.zaber.motion.protobufs.TranslatorGetAxisPositionRequest} returns this
44555
- */
44556
- proto.zaber.motion.protobufs.TranslatorGetAxisPositionRequest.prototype.setUnit = function(value) {
44557
- return jspb.Message.setProto3StringField(this, 3, value);
44558
- };
44559
-
44560
-
44561
-
44562
-
44563
-
44564
- if (jspb.Message.GENERATE_TO_OBJECT) {
44565
- /**
44566
- * Creates an object representation of this proto.
44567
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
44568
- * Optional fields that are not set will be set to undefined.
44569
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
44570
- * For the list of reserved names please see:
44571
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
44572
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
44573
- * JSPB instance for transitional soy proto support:
44574
- * http://goto/soy-param-migration
44575
- * @return {!Object}
44576
- */
44577
- proto.zaber.motion.protobufs.TranslatorGetAxisPositionResponse.prototype.toObject = function(opt_includeInstance) {
44578
- return proto.zaber.motion.protobufs.TranslatorGetAxisPositionResponse.toObject(opt_includeInstance, this);
44579
- };
44580
-
44581
-
44582
- /**
44583
- * Static version of the {@see toObject} method.
44584
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
44585
- * the JSPB instance for transitional soy proto support:
44586
- * http://goto/soy-param-migration
44587
- * @param {!proto.zaber.motion.protobufs.TranslatorGetAxisPositionResponse} msg The msg instance to transform.
44588
- * @return {!Object}
44589
- * @suppress {unusedLocalVariables} f is only used for nested messages
44590
- */
44591
- proto.zaber.motion.protobufs.TranslatorGetAxisPositionResponse.toObject = function(includeInstance, msg) {
44592
- var f, obj = {
44593
- value: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0)
44594
- };
44595
-
44596
- if (includeInstance) {
44597
- obj.$jspbMessageInstance = msg;
44598
- }
44599
- return obj;
44600
- };
44601
- }
44602
-
44603
-
44604
- /**
44605
- * Deserializes binary data (in protobuf wire format).
44606
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
44607
- * @return {!proto.zaber.motion.protobufs.TranslatorGetAxisPositionResponse}
44608
- */
44609
- proto.zaber.motion.protobufs.TranslatorGetAxisPositionResponse.deserializeBinary = function(bytes) {
44610
- var reader = new jspb.BinaryReader(bytes);
44611
- var msg = new proto.zaber.motion.protobufs.TranslatorGetAxisPositionResponse;
44612
- return proto.zaber.motion.protobufs.TranslatorGetAxisPositionResponse.deserializeBinaryFromReader(msg, reader);
44613
- };
44614
-
44615
-
44616
- /**
44617
- * Deserializes binary data (in protobuf wire format) from the
44618
- * given reader into the given message object.
44619
- * @param {!proto.zaber.motion.protobufs.TranslatorGetAxisPositionResponse} msg The message object to deserialize into.
44620
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
44621
- * @return {!proto.zaber.motion.protobufs.TranslatorGetAxisPositionResponse}
44622
- */
44623
- proto.zaber.motion.protobufs.TranslatorGetAxisPositionResponse.deserializeBinaryFromReader = function(msg, reader) {
44624
- while (reader.nextField()) {
44625
- if (reader.isEndGroup()) {
44626
- break;
44627
- }
44628
- var field = reader.getFieldNumber();
44629
- switch (field) {
44630
- case 1:
44631
- var value = /** @type {number} */ (reader.readDouble());
44632
- msg.setValue(value);
44633
- break;
44634
- default:
44635
- reader.skipField();
44636
- break;
44637
- }
44638
- }
44639
- return msg;
44640
- };
44641
-
44642
-
44643
- /**
44644
- * Serializes the message to binary data (in protobuf wire format).
44645
- * @return {!Uint8Array}
44646
- */
44647
- proto.zaber.motion.protobufs.TranslatorGetAxisPositionResponse.prototype.serializeBinary = function() {
44648
- var writer = new jspb.BinaryWriter();
44649
- proto.zaber.motion.protobufs.TranslatorGetAxisPositionResponse.serializeBinaryToWriter(this, writer);
44650
- return writer.getResultBuffer();
44651
- };
44652
-
44653
-
44654
- /**
44655
- * Serializes the given message to binary data (in protobuf wire
44656
- * format), writing to the given BinaryWriter.
44657
- * @param {!proto.zaber.motion.protobufs.TranslatorGetAxisPositionResponse} message
44658
- * @param {!jspb.BinaryWriter} writer
44659
- * @suppress {unusedLocalVariables} f is only used for nested messages
41653
+ * @return {!proto.zaber.motion.protobufs.SetStateRequest} returns this
44660
41654
  */
44661
- proto.zaber.motion.protobufs.TranslatorGetAxisPositionResponse.serializeBinaryToWriter = function(message, writer) {
44662
- var f = undefined;
44663
- f = message.getValue();
44664
- if (f !== 0.0) {
44665
- writer.writeDouble(
44666
- 1,
44667
- f
44668
- );
44669
- }
41655
+ proto.zaber.motion.protobufs.SetStateRequest.prototype.setState = function(value) {
41656
+ return jspb.Message.setProto3StringField(this, 4, value);
44670
41657
  };
44671
41658
 
44672
41659
 
44673
41660
  /**
44674
- * optional double value = 1;
44675
- * @return {number}
41661
+ * optional bool device_only = 5;
41662
+ * @return {boolean}
44676
41663
  */
44677
- proto.zaber.motion.protobufs.TranslatorGetAxisPositionResponse.prototype.getValue = function() {
44678
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
41664
+ proto.zaber.motion.protobufs.SetStateRequest.prototype.getDeviceOnly = function() {
41665
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
44679
41666
  };
44680
41667
 
44681
41668
 
44682
41669
  /**
44683
- * @param {number} value
44684
- * @return {!proto.zaber.motion.protobufs.TranslatorGetAxisPositionResponse} returns this
41670
+ * @param {boolean} value
41671
+ * @return {!proto.zaber.motion.protobufs.SetStateRequest} returns this
44685
41672
  */
44686
- proto.zaber.motion.protobufs.TranslatorGetAxisPositionResponse.prototype.setValue = function(value) {
44687
- return jspb.Message.setProto3FloatField(this, 1, value);
41673
+ proto.zaber.motion.protobufs.SetStateRequest.prototype.setDeviceOnly = function(value) {
41674
+ return jspb.Message.setProto3BooleanField(this, 5, value);
44688
41675
  };
44689
41676
 
44690
41677
 
@@ -44739,9 +41726,7 @@ proto.zaber.motion.protobufs.Errors = {
44739
41726
  SERIAL_PORT_BUSY: 37,
44740
41727
  TRANSPORT_ALREADY_USED: 38,
44741
41728
  SET_PERIPHERAL_STATE_FAILED: 39,
44742
- SET_DEVICE_STATE_FAILED: 40,
44743
- G_CODE_SYNTAX: 41,
44744
- G_CODE_EXECUTION: 42
41729
+ SET_DEVICE_STATE_FAILED: 40
44745
41730
  };
44746
41731
 
44747
41732
  /**