@zaber/motion 3.2.0 → 3.2.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.
@@ -10,6 +10,14 @@ export interface MovementFailedExceptionData {
10
10
  * The reason for the Exception.
11
11
  */
12
12
  reason: string;
13
+ /**
14
+ * The address of the device that performed the failed movement.
15
+ */
16
+ device: number;
17
+ /**
18
+ * The number of the axis that performed the failed movement.
19
+ */
20
+ axis: number;
13
21
  }
14
22
  export declare namespace MovementFailedExceptionData {
15
23
  const __type = "MovementFailedExceptionData";
@@ -11,6 +11,8 @@ var MovementFailedExceptionData;
11
11
  return {
12
12
  warnings: pbData.warningsList,
13
13
  reason: pbData.reason,
14
+ device: pbData.device,
15
+ axis: pbData.axis,
14
16
  };
15
17
  }
16
18
  MovementFailedExceptionData.fromProtobuf = fromProtobuf;
@@ -1 +1 @@
1
- {"version":3,"file":"movement_failed_exception_data.js","sourceRoot":"","sources":["../../../src/exceptions/movement_failed_exception_data.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAoBtD,IAAiB,2BAA2B,CAU3C;AAVD,WAAiB,2BAA2B;IAC7B,kCAAM,GAAG,6BAA6B,CAAC;IAEpD,gBAAgB;IAChB,SAAgB,YAAY,CAAC,MAAoD;QAC/E,OAAO;YACL,QAAQ,EAAE,MAAM,CAAC,YAAY;YAC7B,MAAM,EAAE,MAAM,CAAC,MAAM;SACtB,CAAC;IACJ,CAAC;IALe,wCAAY,eAK3B,CAAA;AACH,CAAC,EAVgB,2BAA2B,GAA3B,mCAA2B,KAA3B,mCAA2B,QAU3C","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from '../gateway';\n\n/**\n * Contains additional data for MovementFailedException.\n */\nexport interface MovementFailedExceptionData {\n /**\n * The full list of warnings.\n */\n warnings: string[];\n\n /**\n * The reason for the Exception.\n */\n reason: string;\n\n}\n\nexport namespace MovementFailedExceptionData {\n export const __type = 'MovementFailedExceptionData';\n\n /** @internal */\n export function fromProtobuf(pbData: gateway.MovementFailedExceptionData.AsObject): MovementFailedExceptionData {\n return {\n warnings: pbData.warningsList,\n reason: pbData.reason,\n };\n }\n}\n"]}
1
+ {"version":3,"file":"movement_failed_exception_data.js","sourceRoot":"","sources":["../../../src/exceptions/movement_failed_exception_data.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AA8BtD,IAAiB,2BAA2B,CAY3C;AAZD,WAAiB,2BAA2B;IAC7B,kCAAM,GAAG,6BAA6B,CAAC;IAEpD,gBAAgB;IAChB,SAAgB,YAAY,CAAC,MAAoD;QAC/E,OAAO;YACL,QAAQ,EAAE,MAAM,CAAC,YAAY;YAC7B,MAAM,EAAE,MAAM,CAAC,MAAM;YACrB,MAAM,EAAE,MAAM,CAAC,MAAM;YACrB,IAAI,EAAE,MAAM,CAAC,IAAI;SAClB,CAAC;IACJ,CAAC;IAPe,wCAAY,eAO3B,CAAA;AACH,CAAC,EAZgB,2BAA2B,GAA3B,mCAA2B,KAA3B,mCAA2B,QAY3C","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from '../gateway';\n\n/**\n * Contains additional data for MovementFailedException.\n */\nexport interface MovementFailedExceptionData {\n /**\n * The full list of warnings.\n */\n warnings: string[];\n\n /**\n * The reason for the Exception.\n */\n reason: string;\n\n /**\n * The address of the device that performed the failed movement.\n */\n device: number;\n\n /**\n * The number of the axis that performed the failed movement.\n */\n axis: number;\n\n}\n\nexport namespace MovementFailedExceptionData {\n export const __type = 'MovementFailedExceptionData';\n\n /** @internal */\n export function fromProtobuf(pbData: gateway.MovementFailedExceptionData.AsObject): MovementFailedExceptionData {\n return {\n warnings: pbData.warningsList,\n reason: pbData.reason,\n device: pbData.device,\n axis: pbData.axis,\n };\n }\n}\n"]}
@@ -10,6 +10,14 @@ export interface MovementInterruptedExceptionData {
10
10
  * The reason for the Exception.
11
11
  */
12
12
  reason: string;
13
+ /**
14
+ * The address of the device that caused the interruption.
15
+ */
16
+ device: number;
17
+ /**
18
+ * The number of the axis that caused the interruption.
19
+ */
20
+ axis: number;
13
21
  }
14
22
  export declare namespace MovementInterruptedExceptionData {
15
23
  const __type = "MovementInterruptedExceptionData";
@@ -11,6 +11,8 @@ var MovementInterruptedExceptionData;
11
11
  return {
12
12
  warnings: pbData.warningsList,
13
13
  reason: pbData.reason,
14
+ device: pbData.device,
15
+ axis: pbData.axis,
14
16
  };
15
17
  }
16
18
  MovementInterruptedExceptionData.fromProtobuf = fromProtobuf;
@@ -1 +1 @@
1
- {"version":3,"file":"movement_interrupted_exception_data.js","sourceRoot":"","sources":["../../../src/exceptions/movement_interrupted_exception_data.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAoBtD,IAAiB,gCAAgC,CAUhD;AAVD,WAAiB,gCAAgC;IAClC,uCAAM,GAAG,kCAAkC,CAAC;IAEzD,gBAAgB;IAChB,SAAgB,YAAY,CAAC,MAAyD;QACpF,OAAO;YACL,QAAQ,EAAE,MAAM,CAAC,YAAY;YAC7B,MAAM,EAAE,MAAM,CAAC,MAAM;SACtB,CAAC;IACJ,CAAC;IALe,6CAAY,eAK3B,CAAA;AACH,CAAC,EAVgB,gCAAgC,GAAhC,wCAAgC,KAAhC,wCAAgC,QAUhD","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from '../gateway';\n\n/**\n * Contains additional data for MovementInterruptedException.\n */\nexport interface MovementInterruptedExceptionData {\n /**\n * The full list of warnings.\n */\n warnings: string[];\n\n /**\n * The reason for the Exception.\n */\n reason: string;\n\n}\n\nexport namespace MovementInterruptedExceptionData {\n export const __type = 'MovementInterruptedExceptionData';\n\n /** @internal */\n export function fromProtobuf(pbData: gateway.MovementInterruptedExceptionData.AsObject): MovementInterruptedExceptionData {\n return {\n warnings: pbData.warningsList,\n reason: pbData.reason,\n };\n }\n}\n"]}
1
+ {"version":3,"file":"movement_interrupted_exception_data.js","sourceRoot":"","sources":["../../../src/exceptions/movement_interrupted_exception_data.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AA8BtD,IAAiB,gCAAgC,CAYhD;AAZD,WAAiB,gCAAgC;IAClC,uCAAM,GAAG,kCAAkC,CAAC;IAEzD,gBAAgB;IAChB,SAAgB,YAAY,CAAC,MAAyD;QACpF,OAAO;YACL,QAAQ,EAAE,MAAM,CAAC,YAAY;YAC7B,MAAM,EAAE,MAAM,CAAC,MAAM;YACrB,MAAM,EAAE,MAAM,CAAC,MAAM;YACrB,IAAI,EAAE,MAAM,CAAC,IAAI;SAClB,CAAC;IACJ,CAAC;IAPe,6CAAY,eAO3B,CAAA;AACH,CAAC,EAZgB,gCAAgC,GAAhC,wCAAgC,KAAhC,wCAAgC,QAYhD","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from '../gateway';\n\n/**\n * Contains additional data for MovementInterruptedException.\n */\nexport interface MovementInterruptedExceptionData {\n /**\n * The full list of warnings.\n */\n warnings: string[];\n\n /**\n * The reason for the Exception.\n */\n reason: string;\n\n /**\n * The address of the device that caused the interruption.\n */\n device: number;\n\n /**\n * The number of the axis that caused the interruption.\n */\n axis: number;\n\n}\n\nexport namespace MovementInterruptedExceptionData {\n export const __type = 'MovementInterruptedExceptionData';\n\n /** @internal */\n export function fromProtobuf(pbData: gateway.MovementInterruptedExceptionData.AsObject): MovementInterruptedExceptionData {\n return {\n warnings: pbData.warningsList,\n reason: pbData.reason,\n device: pbData.device,\n axis: pbData.axis,\n };\n }\n}\n"]}
@@ -445,6 +445,12 @@ export class MovementInterruptedExceptionData extends jspb.Message {
445
445
  getReason(): string;
446
446
  setReason(value: string): void;
447
447
 
448
+ getDevice(): number;
449
+ setDevice(value: number): void;
450
+
451
+ getAxis(): number;
452
+ setAxis(value: number): void;
453
+
448
454
  serializeBinary(): Uint8Array;
449
455
  toObject(includeInstance?: boolean): MovementInterruptedExceptionData.AsObject;
450
456
  static toObject(includeInstance: boolean, msg: MovementInterruptedExceptionData): MovementInterruptedExceptionData.AsObject;
@@ -459,6 +465,8 @@ export namespace MovementInterruptedExceptionData {
459
465
  export type AsObject = {
460
466
  warningsList: Array<string>,
461
467
  reason: string,
468
+ device: number,
469
+ axis: number,
462
470
  }
463
471
  }
464
472
 
@@ -497,6 +505,12 @@ export class MovementFailedExceptionData extends jspb.Message {
497
505
  getReason(): string;
498
506
  setReason(value: string): void;
499
507
 
508
+ getDevice(): number;
509
+ setDevice(value: number): void;
510
+
511
+ getAxis(): number;
512
+ setAxis(value: number): void;
513
+
500
514
  serializeBinary(): Uint8Array;
501
515
  toObject(includeInstance?: boolean): MovementFailedExceptionData.AsObject;
502
516
  static toObject(includeInstance: boolean, msg: MovementFailedExceptionData): MovementFailedExceptionData.AsObject;
@@ -511,6 +525,8 @@ export namespace MovementFailedExceptionData {
511
525
  export type AsObject = {
512
526
  warningsList: Array<string>,
513
527
  reason: string,
528
+ device: number,
529
+ axis: number,
514
530
  }
515
531
  }
516
532
 
@@ -7230,7 +7230,9 @@ proto.zaber.motion.protobufs.MovementInterruptedExceptionData.prototype.toObject
7230
7230
  proto.zaber.motion.protobufs.MovementInterruptedExceptionData.toObject = function(includeInstance, msg) {
7231
7231
  var f, obj = {
7232
7232
  warningsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
7233
- reason: jspb.Message.getFieldWithDefault(msg, 2, "")
7233
+ reason: jspb.Message.getFieldWithDefault(msg, 2, ""),
7234
+ device: jspb.Message.getFieldWithDefault(msg, 3, 0),
7235
+ axis: jspb.Message.getFieldWithDefault(msg, 4, 0)
7234
7236
  };
7235
7237
 
7236
7238
  if (includeInstance) {
@@ -7275,6 +7277,14 @@ proto.zaber.motion.protobufs.MovementInterruptedExceptionData.deserializeBinaryF
7275
7277
  var value = /** @type {string} */ (reader.readString());
7276
7278
  msg.setReason(value);
7277
7279
  break;
7280
+ case 3:
7281
+ var value = /** @type {number} */ (reader.readInt32());
7282
+ msg.setDevice(value);
7283
+ break;
7284
+ case 4:
7285
+ var value = /** @type {number} */ (reader.readInt32());
7286
+ msg.setAxis(value);
7287
+ break;
7278
7288
  default:
7279
7289
  reader.skipField();
7280
7290
  break;
@@ -7318,6 +7328,20 @@ proto.zaber.motion.protobufs.MovementInterruptedExceptionData.serializeBinaryToW
7318
7328
  f
7319
7329
  );
7320
7330
  }
7331
+ f = message.getDevice();
7332
+ if (f !== 0) {
7333
+ writer.writeInt32(
7334
+ 3,
7335
+ f
7336
+ );
7337
+ }
7338
+ f = message.getAxis();
7339
+ if (f !== 0) {
7340
+ writer.writeInt32(
7341
+ 4,
7342
+ f
7343
+ );
7344
+ }
7321
7345
  };
7322
7346
 
7323
7347
 
@@ -7376,6 +7400,42 @@ proto.zaber.motion.protobufs.MovementInterruptedExceptionData.prototype.setReaso
7376
7400
  };
7377
7401
 
7378
7402
 
7403
+ /**
7404
+ * optional int32 device = 3;
7405
+ * @return {number}
7406
+ */
7407
+ proto.zaber.motion.protobufs.MovementInterruptedExceptionData.prototype.getDevice = function() {
7408
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
7409
+ };
7410
+
7411
+
7412
+ /**
7413
+ * @param {number} value
7414
+ * @return {!proto.zaber.motion.protobufs.MovementInterruptedExceptionData} returns this
7415
+ */
7416
+ proto.zaber.motion.protobufs.MovementInterruptedExceptionData.prototype.setDevice = function(value) {
7417
+ return jspb.Message.setProto3IntField(this, 3, value);
7418
+ };
7419
+
7420
+
7421
+ /**
7422
+ * optional int32 axis = 4;
7423
+ * @return {number}
7424
+ */
7425
+ proto.zaber.motion.protobufs.MovementInterruptedExceptionData.prototype.getAxis = function() {
7426
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
7427
+ };
7428
+
7429
+
7430
+ /**
7431
+ * @param {number} value
7432
+ * @return {!proto.zaber.motion.protobufs.MovementInterruptedExceptionData} returns this
7433
+ */
7434
+ proto.zaber.motion.protobufs.MovementInterruptedExceptionData.prototype.setAxis = function(value) {
7435
+ return jspb.Message.setProto3IntField(this, 4, value);
7436
+ };
7437
+
7438
+
7379
7439
 
7380
7440
  /**
7381
7441
  * List of repeated fields within this message type.
@@ -7602,7 +7662,9 @@ proto.zaber.motion.protobufs.MovementFailedExceptionData.prototype.toObject = fu
7602
7662
  proto.zaber.motion.protobufs.MovementFailedExceptionData.toObject = function(includeInstance, msg) {
7603
7663
  var f, obj = {
7604
7664
  warningsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
7605
- reason: jspb.Message.getFieldWithDefault(msg, 2, "")
7665
+ reason: jspb.Message.getFieldWithDefault(msg, 2, ""),
7666
+ device: jspb.Message.getFieldWithDefault(msg, 3, 0),
7667
+ axis: jspb.Message.getFieldWithDefault(msg, 4, 0)
7606
7668
  };
7607
7669
 
7608
7670
  if (includeInstance) {
@@ -7647,6 +7709,14 @@ proto.zaber.motion.protobufs.MovementFailedExceptionData.deserializeBinaryFromRe
7647
7709
  var value = /** @type {string} */ (reader.readString());
7648
7710
  msg.setReason(value);
7649
7711
  break;
7712
+ case 3:
7713
+ var value = /** @type {number} */ (reader.readInt32());
7714
+ msg.setDevice(value);
7715
+ break;
7716
+ case 4:
7717
+ var value = /** @type {number} */ (reader.readInt32());
7718
+ msg.setAxis(value);
7719
+ break;
7650
7720
  default:
7651
7721
  reader.skipField();
7652
7722
  break;
@@ -7690,6 +7760,20 @@ proto.zaber.motion.protobufs.MovementFailedExceptionData.serializeBinaryToWriter
7690
7760
  f
7691
7761
  );
7692
7762
  }
7763
+ f = message.getDevice();
7764
+ if (f !== 0) {
7765
+ writer.writeInt32(
7766
+ 3,
7767
+ f
7768
+ );
7769
+ }
7770
+ f = message.getAxis();
7771
+ if (f !== 0) {
7772
+ writer.writeInt32(
7773
+ 4,
7774
+ f
7775
+ );
7776
+ }
7693
7777
  };
7694
7778
 
7695
7779
 
@@ -7748,6 +7832,42 @@ proto.zaber.motion.protobufs.MovementFailedExceptionData.prototype.setReason = f
7748
7832
  };
7749
7833
 
7750
7834
 
7835
+ /**
7836
+ * optional int32 device = 3;
7837
+ * @return {number}
7838
+ */
7839
+ proto.zaber.motion.protobufs.MovementFailedExceptionData.prototype.getDevice = function() {
7840
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
7841
+ };
7842
+
7843
+
7844
+ /**
7845
+ * @param {number} value
7846
+ * @return {!proto.zaber.motion.protobufs.MovementFailedExceptionData} returns this
7847
+ */
7848
+ proto.zaber.motion.protobufs.MovementFailedExceptionData.prototype.setDevice = function(value) {
7849
+ return jspb.Message.setProto3IntField(this, 3, value);
7850
+ };
7851
+
7852
+
7853
+ /**
7854
+ * optional int32 axis = 4;
7855
+ * @return {number}
7856
+ */
7857
+ proto.zaber.motion.protobufs.MovementFailedExceptionData.prototype.getAxis = function() {
7858
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
7859
+ };
7860
+
7861
+
7862
+ /**
7863
+ * @param {number} value
7864
+ * @return {!proto.zaber.motion.protobufs.MovementFailedExceptionData} returns this
7865
+ */
7866
+ proto.zaber.motion.protobufs.MovementFailedExceptionData.prototype.setAxis = function(value) {
7867
+ return jspb.Message.setProto3IntField(this, 4, value);
7868
+ };
7869
+
7870
+
7751
7871
 
7752
7872
  /**
7753
7873
  * List of repeated fields within this message type.