@zaber/motion 4.2.3 → 4.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/binding/wasm/zaber-motion-lib.wasm +0 -0
- package/dist/lib/microscopy/objective_changer.d.ts +6 -0
- package/dist/lib/microscopy/objective_changer.js +13 -0
- package/dist/lib/microscopy/objective_changer.js.map +1 -1
- package/dist/lib/protobufs/main_pb.d.ts +20 -0
- package/dist/lib/protobufs/main_pb.js +152 -0
- package/dist/lib/protobufs/main_pb.js.map +1 -1
- package/package.json +1 -1
|
Binary file
|
|
@@ -50,6 +50,12 @@ export declare class ObjectiveChanger {
|
|
|
50
50
|
* Moves the focus stage out of the turret releasing the current objective.
|
|
51
51
|
*/
|
|
52
52
|
release(): Promise<void>;
|
|
53
|
+
/**
|
|
54
|
+
* Returns current objective number starting from 1.
|
|
55
|
+
* The value of 0 indicates that the position is either unknown or between two objectives.
|
|
56
|
+
* @returns Current objective number starting from 1 or 0 if not applicable.
|
|
57
|
+
*/
|
|
58
|
+
getCurrentObjective(): Promise<number>;
|
|
53
59
|
}
|
|
54
60
|
declare namespace ObjectiveChanger {
|
|
55
61
|
interface FindOptions {
|
|
@@ -111,6 +111,19 @@ class ObjectiveChanger {
|
|
|
111
111
|
request.setFocusAddress(this.focusAddress);
|
|
112
112
|
await gateway.callAsync('objective_changer/release', request);
|
|
113
113
|
}
|
|
114
|
+
/**
|
|
115
|
+
* Returns current objective number starting from 1.
|
|
116
|
+
* The value of 0 indicates that the position is either unknown or between two objectives.
|
|
117
|
+
* @returns Current objective number starting from 1 or 0 if not applicable.
|
|
118
|
+
*/
|
|
119
|
+
async getCurrentObjective() {
|
|
120
|
+
const request = new gateway.ObjectiveChangerRequest();
|
|
121
|
+
request.setInterfaceId(this.connection.interfaceId);
|
|
122
|
+
request.setTurretAddress(this.turretAddress);
|
|
123
|
+
request.setFocusAddress(this.focusAddress);
|
|
124
|
+
const response = await gateway.callAsync('objective_changer/get_current_objective', request, gateway.ObjectiveChangerGetCurrentResponse);
|
|
125
|
+
return response.getValue();
|
|
126
|
+
}
|
|
114
127
|
}
|
|
115
128
|
exports.ObjectiveChanger = ObjectiveChanger;
|
|
116
129
|
//# sourceMappingURL=objective_changer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"objective_changer.js","sourceRoot":"","sources":["../../../src/microscopy/objective_changer.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtD,oDAAsC;AAEtC,4CAAyC;AACzC,wCAAqC;AACrC,gDAA6C;AAE7C;;;;GAIG;AACH,MAAa,gBAAgB;IAC3B;;OAEG;IACH,IAAW,UAAU;QACnB,OAAO,IAAI,CAAC,WAAW,CAAC;IAC1B,CAAC;IAGD;;OAEG;IACH,IAAW,aAAa;QACtB,OAAO,IAAI,CAAC,cAAc,CAAC;IAC7B,CAAC;IAGD;;OAEG;IACH,IAAW,YAAY;QACrB,OAAO,IAAI,CAAC,aAAa,CAAC;IAC5B,CAAC;IAGD;;OAEG;IACH,IAAW,SAAS;QAClB,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAGD,YAAY,UAAsB,EAAE,aAAqB,EAAE,YAAoB;QAC7E,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;QAC9B,IAAI,CAAC,cAAc,GAAG,aAAa,CAAC;QACpC,IAAI,CAAC,aAAa,GAAG,YAAY,CAAC;QAClC,IAAI,CAAC,UAAU,GAAG,IAAI,WAAI,CAAC,IAAI,eAAM,CAAC,UAAU,EAAE,YAAY,CAAC,EAAE,CAAC,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;OAQG;IACI,MAAM,CAAC,KAAK,CAAC,IAAI,CACtB,UAAsB,EACtB,UAAwC,EAAE;QAE1C,MAAM,EACJ,aAAa,GAAG,CAAC,EACjB,YAAY,GAAG,CAAC,GACjB,GAAG,OAAO,CAAC;QACZ,MA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CAAC,gBAAgB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAC7C,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAE3C,MAAM,OAAO,CAAC,SAAS,CAAC,2BAA2B,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;CACF;
|
|
1
|
+
{"version":3,"file":"objective_changer.js","sourceRoot":"","sources":["../../../src/microscopy/objective_changer.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtD,oDAAsC;AAEtC,4CAAyC;AACzC,wCAAqC;AACrC,gDAA6C;AAE7C;;;;GAIG;AACH,MAAa,gBAAgB;IAC3B;;OAEG;IACH,IAAW,UAAU;QACnB,OAAO,IAAI,CAAC,WAAW,CAAC;IAC1B,CAAC;IAGD;;OAEG;IACH,IAAW,aAAa;QACtB,OAAO,IAAI,CAAC,cAAc,CAAC;IAC7B,CAAC;IAGD;;OAEG;IACH,IAAW,YAAY;QACrB,OAAO,IAAI,CAAC,aAAa,CAAC;IAC5B,CAAC;IAGD;;OAEG;IACH,IAAW,SAAS;QAClB,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAGD,YAAY,UAAsB,EAAE,aAAqB,EAAE,YAAoB;QAC7E,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;QAC9B,IAAI,CAAC,cAAc,GAAG,aAAa,CAAC;QACpC,IAAI,CAAC,aAAa,GAAG,YAAY,CAAC;QAClC,IAAI,CAAC,UAAU,GAAG,IAAI,WAAI,CAAC,IAAI,eAAM,CAAC,UAAU,EAAE,YAAY,CAAC,EAAE,CAAC,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;OAQG;IACI,MAAM,CAAC,KAAK,CAAC,IAAI,CACtB,UAAsB,EACtB,UAAwC,EAAE;QAE1C,MAAM,EACJ,aAAa,GAAG,CAAC,EACjB,YAAY,GAAG,CAAC,GACjB,GAAG,OAAO,CAAC;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D,OAAO,CAAC,gBAAgB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAC7C,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAE3C,MAAM,OAAO,CAAC,SAAS,CAAC,2BAA2B,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,mBAAmB;QAC9B,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,uBAAuB,EAAE,CAAC;QACtD,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;QACpD,OAAO,CAAC,gBAAgB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAC7C,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAE3C,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,SAAS,CACtC,yCAAyC,EACzC,OAAO,EACP,OAAO,CAAC,kCAAkC,CAAC,CAAC;QAC9C,OAAO,QAAQ,CAAC,QAAQ,EAAE,CAAC;IAC7B,CAAC;CACF;AA1HD,4CA0HC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from '../gateway';\nimport { Connection } from '../ascii/connection';\nimport { Device } from '../ascii/device';\nimport { Axis } from '../ascii/axis';\nimport { Measurement } from '../measurement';\n\n/**\n * Represents an objective changer of a microscope.\n * Unstable. Expect breaking changes in future releases.\n * Requires at least Firmware 7.32.\n */\nexport class ObjectiveChanger {\n /**\n * Connection of this device.\n */\n public get connection(): Connection {\n return this._connection;\n }\n private _connection: Connection;\n\n /**\n * Device address of the turret.\n */\n public get turretAddress(): number {\n return this._turretAddress;\n }\n private _turretAddress: number;\n\n /**\n * Device address of the focus.\n */\n public get focusAddress(): number {\n return this._focusAddress;\n }\n private _focusAddress: number;\n\n /**\n * The focus axis.\n */\n public get focusAxis(): Axis {\n return this._focusAxis;\n }\n private _focusAxis: Axis;\n\n constructor(connection: Connection, turretAddress: number, focusAddress: number) {\n this._connection = connection;\n this._turretAddress = turretAddress;\n this._focusAddress = focusAddress;\n this._focusAxis = new Axis(new Device(connection, focusAddress), 1);\n }\n\n /**\n * Finds an objective changer on a connection.\n * In case of conflict, specify the optional device addresses.\n * Devices on the connection must be identified.\n * @param connection Connection on which to detect the objective changer.\n * @param [options.turretAddress=0] Optional device address of the turret device (X-MOR).\n * @param [options.focusAddress=0] Optional device address of the focus device (X-LDA).\n * @returns New instance of objective changer.\n */\n public static async find(\n connection: Connection,\n options: ObjectiveChanger.FindOptions = {}\n ): Promise<ObjectiveChanger> {\n const {\n turretAddress = 0,\n focusAddress = 0,\n } = options;\n const request = new gateway.ObjectiveChangerRequest();\n request.setInterfaceId(connection.interfaceId);\n request.setTurretAddress(turretAddress);\n request.setFocusAddress(focusAddress);\n\n const response = await gateway.callAsync<gateway.ObjectiveChangerCreateResponse>(\n 'objective_changer/detect',\n request,\n gateway.ObjectiveChangerCreateResponse);\n return new ObjectiveChanger(connection, response.getTurret(), response.getFocus());\n }\n\n /**\n * Changes the objective.\n * Runs a sequence of movements switching from the current objective to the new one.\n * @param objective Objective number starting from one.\n * @param options.focusOffset Optional focus offset from the datum.\n * If specified, the focus stage will move to the designated offset.\n */\n public async change(\n objective: number,\n options: ObjectiveChanger.ChangeOptions = {}\n ): Promise<void> {\n const {\n focusOffset,\n } = options;\n const request = new gateway.ObjectiveChangerChangeRequest();\n request.setInterfaceId(this.connection.interfaceId);\n request.setTurretAddress(this.turretAddress);\n request.setFocusAddress(this.focusAddress);\n request.setObjective(objective);\n request.setFocusOffset(Measurement.toProtobuf(focusOffset));\n\n await gateway.callAsync('objective_changer/change', request);\n }\n\n /**\n * Moves the focus stage out of the turret releasing the current objective.\n */\n public async release(): Promise<void> {\n const request = new gateway.ObjectiveChangerRequest();\n request.setInterfaceId(this.connection.interfaceId);\n request.setTurretAddress(this.turretAddress);\n request.setFocusAddress(this.focusAddress);\n\n await gateway.callAsync('objective_changer/release', request);\n }\n\n /**\n * Returns current objective number starting from 1.\n * The value of 0 indicates that the position is either unknown or between two objectives.\n * @returns Current objective number starting from 1 or 0 if not applicable.\n */\n public async getCurrentObjective(): Promise<number> {\n const request = new gateway.ObjectiveChangerRequest();\n request.setInterfaceId(this.connection.interfaceId);\n request.setTurretAddress(this.turretAddress);\n request.setFocusAddress(this.focusAddress);\n\n const response = await gateway.callAsync<gateway.ObjectiveChangerGetCurrentResponse>(\n 'objective_changer/get_current_objective',\n request,\n gateway.ObjectiveChangerGetCurrentResponse);\n return response.getValue();\n }\n}\n\nnamespace ObjectiveChanger {\n export interface FindOptions {\n turretAddress?: number;\n focusAddress?: number;\n }\n export interface ChangeOptions {\n focusOffset?: Measurement;\n }\n}\n"]}
|
|
@@ -6475,6 +6475,26 @@ export namespace ObjectiveChangerChangeRequest {
|
|
|
6475
6475
|
}
|
|
6476
6476
|
}
|
|
6477
6477
|
|
|
6478
|
+
export class ObjectiveChangerGetCurrentResponse extends jspb.Message {
|
|
6479
|
+
getValue(): number;
|
|
6480
|
+
setValue(value: number): void;
|
|
6481
|
+
|
|
6482
|
+
serializeBinary(): Uint8Array;
|
|
6483
|
+
toObject(includeInstance?: boolean): ObjectiveChangerGetCurrentResponse.AsObject;
|
|
6484
|
+
static toObject(includeInstance: boolean, msg: ObjectiveChangerGetCurrentResponse): ObjectiveChangerGetCurrentResponse.AsObject;
|
|
6485
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
6486
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
6487
|
+
static serializeBinaryToWriter(message: ObjectiveChangerGetCurrentResponse, writer: jspb.BinaryWriter): void;
|
|
6488
|
+
static deserializeBinary(bytes: Uint8Array): ObjectiveChangerGetCurrentResponse;
|
|
6489
|
+
static deserializeBinaryFromReader(message: ObjectiveChangerGetCurrentResponse, reader: jspb.BinaryReader): ObjectiveChangerGetCurrentResponse;
|
|
6490
|
+
}
|
|
6491
|
+
|
|
6492
|
+
export namespace ObjectiveChangerGetCurrentResponse {
|
|
6493
|
+
export type AsObject = {
|
|
6494
|
+
value: number,
|
|
6495
|
+
}
|
|
6496
|
+
}
|
|
6497
|
+
|
|
6478
6498
|
export class ProcessOn extends jspb.Message {
|
|
6479
6499
|
getInterfaceId(): number;
|
|
6480
6500
|
setInterfaceId(value: number): void;
|
|
@@ -124,6 +124,7 @@ goog.exportSymbol('zaber.motion.protobufs.MovementFailedExceptionData', null, pr
|
|
|
124
124
|
goog.exportSymbol('zaber.motion.protobufs.MovementInterruptedExceptionData', null, proto);
|
|
125
125
|
goog.exportSymbol('zaber.motion.protobufs.ObjectiveChangerChangeRequest', null, proto);
|
|
126
126
|
goog.exportSymbol('zaber.motion.protobufs.ObjectiveChangerCreateResponse', null, proto);
|
|
127
|
+
goog.exportSymbol('zaber.motion.protobufs.ObjectiveChangerGetCurrentResponse', null, proto);
|
|
127
128
|
goog.exportSymbol('zaber.motion.protobufs.ObjectiveChangerRequest', null, proto);
|
|
128
129
|
goog.exportSymbol('zaber.motion.protobufs.OpenBinaryInterfaceRequest', null, proto);
|
|
129
130
|
goog.exportSymbol('zaber.motion.protobufs.OpenInterfaceRequest', null, proto);
|
|
@@ -4498,6 +4499,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
4498
4499
|
*/
|
|
4499
4500
|
proto.zaber.motion.protobufs.ObjectiveChangerChangeRequest.displayName = 'proto.zaber.motion.protobufs.ObjectiveChangerChangeRequest';
|
|
4500
4501
|
}
|
|
4502
|
+
/**
|
|
4503
|
+
* Generated by JsPbCodeGenerator.
|
|
4504
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4505
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4506
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4507
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4508
|
+
* valid.
|
|
4509
|
+
* @extends {jspb.Message}
|
|
4510
|
+
* @constructor
|
|
4511
|
+
*/
|
|
4512
|
+
proto.zaber.motion.protobufs.ObjectiveChangerGetCurrentResponse = function(opt_data) {
|
|
4513
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
4514
|
+
};
|
|
4515
|
+
goog.inherits(proto.zaber.motion.protobufs.ObjectiveChangerGetCurrentResponse, jspb.Message);
|
|
4516
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4517
|
+
/**
|
|
4518
|
+
* @public
|
|
4519
|
+
* @override
|
|
4520
|
+
*/
|
|
4521
|
+
proto.zaber.motion.protobufs.ObjectiveChangerGetCurrentResponse.displayName = 'proto.zaber.motion.protobufs.ObjectiveChangerGetCurrentResponse';
|
|
4522
|
+
}
|
|
4501
4523
|
/**
|
|
4502
4524
|
* Generated by JsPbCodeGenerator.
|
|
4503
4525
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -49540,6 +49562,136 @@ proto.zaber.motion.protobufs.ObjectiveChangerChangeRequest.prototype.hasFocusOff
|
|
|
49540
49562
|
|
|
49541
49563
|
|
|
49542
49564
|
|
|
49565
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
49566
|
+
/**
|
|
49567
|
+
* Creates an object representation of this proto.
|
|
49568
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
49569
|
+
* Optional fields that are not set will be set to undefined.
|
|
49570
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
49571
|
+
* For the list of reserved names please see:
|
|
49572
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
49573
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
49574
|
+
* JSPB instance for transitional soy proto support:
|
|
49575
|
+
* http://goto/soy-param-migration
|
|
49576
|
+
* @return {!Object}
|
|
49577
|
+
*/
|
|
49578
|
+
proto.zaber.motion.protobufs.ObjectiveChangerGetCurrentResponse.prototype.toObject = function(opt_includeInstance) {
|
|
49579
|
+
return proto.zaber.motion.protobufs.ObjectiveChangerGetCurrentResponse.toObject(opt_includeInstance, this);
|
|
49580
|
+
};
|
|
49581
|
+
|
|
49582
|
+
|
|
49583
|
+
/**
|
|
49584
|
+
* Static version of the {@see toObject} method.
|
|
49585
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
49586
|
+
* the JSPB instance for transitional soy proto support:
|
|
49587
|
+
* http://goto/soy-param-migration
|
|
49588
|
+
* @param {!proto.zaber.motion.protobufs.ObjectiveChangerGetCurrentResponse} msg The msg instance to transform.
|
|
49589
|
+
* @return {!Object}
|
|
49590
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
49591
|
+
*/
|
|
49592
|
+
proto.zaber.motion.protobufs.ObjectiveChangerGetCurrentResponse.toObject = function(includeInstance, msg) {
|
|
49593
|
+
var f, obj = {
|
|
49594
|
+
value: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
49595
|
+
};
|
|
49596
|
+
|
|
49597
|
+
if (includeInstance) {
|
|
49598
|
+
obj.$jspbMessageInstance = msg;
|
|
49599
|
+
}
|
|
49600
|
+
return obj;
|
|
49601
|
+
};
|
|
49602
|
+
}
|
|
49603
|
+
|
|
49604
|
+
|
|
49605
|
+
/**
|
|
49606
|
+
* Deserializes binary data (in protobuf wire format).
|
|
49607
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
49608
|
+
* @return {!proto.zaber.motion.protobufs.ObjectiveChangerGetCurrentResponse}
|
|
49609
|
+
*/
|
|
49610
|
+
proto.zaber.motion.protobufs.ObjectiveChangerGetCurrentResponse.deserializeBinary = function(bytes) {
|
|
49611
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
49612
|
+
var msg = new proto.zaber.motion.protobufs.ObjectiveChangerGetCurrentResponse;
|
|
49613
|
+
return proto.zaber.motion.protobufs.ObjectiveChangerGetCurrentResponse.deserializeBinaryFromReader(msg, reader);
|
|
49614
|
+
};
|
|
49615
|
+
|
|
49616
|
+
|
|
49617
|
+
/**
|
|
49618
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
49619
|
+
* given reader into the given message object.
|
|
49620
|
+
* @param {!proto.zaber.motion.protobufs.ObjectiveChangerGetCurrentResponse} msg The message object to deserialize into.
|
|
49621
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
49622
|
+
* @return {!proto.zaber.motion.protobufs.ObjectiveChangerGetCurrentResponse}
|
|
49623
|
+
*/
|
|
49624
|
+
proto.zaber.motion.protobufs.ObjectiveChangerGetCurrentResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
49625
|
+
while (reader.nextField()) {
|
|
49626
|
+
if (reader.isEndGroup()) {
|
|
49627
|
+
break;
|
|
49628
|
+
}
|
|
49629
|
+
var field = reader.getFieldNumber();
|
|
49630
|
+
switch (field) {
|
|
49631
|
+
case 1:
|
|
49632
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
49633
|
+
msg.setValue(value);
|
|
49634
|
+
break;
|
|
49635
|
+
default:
|
|
49636
|
+
reader.skipField();
|
|
49637
|
+
break;
|
|
49638
|
+
}
|
|
49639
|
+
}
|
|
49640
|
+
return msg;
|
|
49641
|
+
};
|
|
49642
|
+
|
|
49643
|
+
|
|
49644
|
+
/**
|
|
49645
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
49646
|
+
* @return {!Uint8Array}
|
|
49647
|
+
*/
|
|
49648
|
+
proto.zaber.motion.protobufs.ObjectiveChangerGetCurrentResponse.prototype.serializeBinary = function() {
|
|
49649
|
+
var writer = new jspb.BinaryWriter();
|
|
49650
|
+
proto.zaber.motion.protobufs.ObjectiveChangerGetCurrentResponse.serializeBinaryToWriter(this, writer);
|
|
49651
|
+
return writer.getResultBuffer();
|
|
49652
|
+
};
|
|
49653
|
+
|
|
49654
|
+
|
|
49655
|
+
/**
|
|
49656
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
49657
|
+
* format), writing to the given BinaryWriter.
|
|
49658
|
+
* @param {!proto.zaber.motion.protobufs.ObjectiveChangerGetCurrentResponse} message
|
|
49659
|
+
* @param {!jspb.BinaryWriter} writer
|
|
49660
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
49661
|
+
*/
|
|
49662
|
+
proto.zaber.motion.protobufs.ObjectiveChangerGetCurrentResponse.serializeBinaryToWriter = function(message, writer) {
|
|
49663
|
+
var f = undefined;
|
|
49664
|
+
f = message.getValue();
|
|
49665
|
+
if (f !== 0) {
|
|
49666
|
+
writer.writeInt32(
|
|
49667
|
+
1,
|
|
49668
|
+
f
|
|
49669
|
+
);
|
|
49670
|
+
}
|
|
49671
|
+
};
|
|
49672
|
+
|
|
49673
|
+
|
|
49674
|
+
/**
|
|
49675
|
+
* optional int32 value = 1;
|
|
49676
|
+
* @return {number}
|
|
49677
|
+
*/
|
|
49678
|
+
proto.zaber.motion.protobufs.ObjectiveChangerGetCurrentResponse.prototype.getValue = function() {
|
|
49679
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
49680
|
+
};
|
|
49681
|
+
|
|
49682
|
+
|
|
49683
|
+
/**
|
|
49684
|
+
* @param {number} value
|
|
49685
|
+
* @return {!proto.zaber.motion.protobufs.ObjectiveChangerGetCurrentResponse} returns this
|
|
49686
|
+
*/
|
|
49687
|
+
proto.zaber.motion.protobufs.ObjectiveChangerGetCurrentResponse.prototype.setValue = function(value) {
|
|
49688
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
49689
|
+
};
|
|
49690
|
+
|
|
49691
|
+
|
|
49692
|
+
|
|
49693
|
+
|
|
49694
|
+
|
|
49543
49695
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
49544
49696
|
/**
|
|
49545
49697
|
* Creates an object representation of this proto.
|