@zaber/motion 3.4.1 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/binding/wasm/zaber-motion-lib.wasm +0 -0
- package/dist/lib/ascii/index.d.ts +3 -1
- package/dist/lib/ascii/index.js +7 -3
- package/dist/lib/ascii/index.js.map +1 -1
- package/dist/lib/ascii/io_port_type.d.ts +10 -0
- package/dist/lib/ascii/io_port_type.js +17 -0
- package/dist/lib/ascii/io_port_type.js.map +1 -0
- package/dist/lib/ascii/oscilloscope.d.ts +7 -0
- package/dist/lib/ascii/oscilloscope.js +15 -2
- package/dist/lib/ascii/oscilloscope.js.map +1 -1
- package/dist/lib/ascii/oscilloscope_capture_properties.d.ts +14 -0
- package/dist/lib/ascii/oscilloscope_capture_properties.js +3 -0
- package/dist/lib/ascii/oscilloscope_capture_properties.js.map +1 -1
- package/dist/lib/ascii/oscilloscope_data.d.ts +14 -0
- package/dist/lib/ascii/oscilloscope_data.js +18 -0
- package/dist/lib/ascii/oscilloscope_data.js.map +1 -1
- package/dist/lib/ascii/oscilloscope_data_source.d.ts +7 -0
- package/dist/lib/ascii/oscilloscope_data_source.js +14 -0
- package/dist/lib/ascii/oscilloscope_data_source.js.map +1 -0
- package/dist/lib/ascii/pvt_sequence.d.ts +10 -2
- package/dist/lib/ascii/pvt_sequence.js +8 -0
- package/dist/lib/ascii/pvt_sequence.js.map +1 -1
- package/dist/lib/ascii_ns.d.ts +4 -0
- package/dist/lib/ascii_ns.js +2 -0
- package/dist/lib/ascii_ns.js.map +1 -1
- package/dist/lib/measurement.js +1 -0
- package/dist/lib/measurement.js.map +1 -1
- package/dist/lib/protobufs/main_pb.d.ts +55 -7
- package/dist/lib/protobufs/main_pb.js +410 -48
- package/dist/lib/protobufs/main_pb.js.map +1 -1
- package/package.json +1 -1
|
@@ -127,7 +127,8 @@ goog.exportSymbol('zaber.motion.protobufs.ObjectiveChangerRequest', null, proto)
|
|
|
127
127
|
goog.exportSymbol('zaber.motion.protobufs.OpenBinaryInterfaceRequest', null, proto);
|
|
128
128
|
goog.exportSymbol('zaber.motion.protobufs.OpenInterfaceRequest', null, proto);
|
|
129
129
|
goog.exportSymbol('zaber.motion.protobufs.OpenInterfaceResponse', null, proto);
|
|
130
|
-
goog.exportSymbol('zaber.motion.protobufs.
|
|
130
|
+
goog.exportSymbol('zaber.motion.protobufs.OscilloscopeAddIoChannelRequest', null, proto);
|
|
131
|
+
goog.exportSymbol('zaber.motion.protobufs.OscilloscopeAddSettingChannelRequest', null, proto);
|
|
131
132
|
goog.exportSymbol('zaber.motion.protobufs.OscilloscopeCaptureProperties', null, proto);
|
|
132
133
|
goog.exportSymbol('zaber.motion.protobufs.OscilloscopeDataGetRequest', null, proto);
|
|
133
134
|
goog.exportSymbol('zaber.motion.protobufs.OscilloscopeDataGetSampleTimeRequest', null, proto);
|
|
@@ -2235,16 +2236,37 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
2235
2236
|
* @extends {jspb.Message}
|
|
2236
2237
|
* @constructor
|
|
2237
2238
|
*/
|
|
2238
|
-
proto.zaber.motion.protobufs.
|
|
2239
|
+
proto.zaber.motion.protobufs.OscilloscopeAddSettingChannelRequest = function(opt_data) {
|
|
2239
2240
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
2240
2241
|
};
|
|
2241
|
-
goog.inherits(proto.zaber.motion.protobufs.
|
|
2242
|
+
goog.inherits(proto.zaber.motion.protobufs.OscilloscopeAddSettingChannelRequest, jspb.Message);
|
|
2242
2243
|
if (goog.DEBUG && !COMPILED) {
|
|
2243
2244
|
/**
|
|
2244
2245
|
* @public
|
|
2245
2246
|
* @override
|
|
2246
2247
|
*/
|
|
2247
|
-
proto.zaber.motion.protobufs.
|
|
2248
|
+
proto.zaber.motion.protobufs.OscilloscopeAddSettingChannelRequest.displayName = 'proto.zaber.motion.protobufs.OscilloscopeAddSettingChannelRequest';
|
|
2249
|
+
}
|
|
2250
|
+
/**
|
|
2251
|
+
* Generated by JsPbCodeGenerator.
|
|
2252
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
2253
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
2254
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
2255
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
2256
|
+
* valid.
|
|
2257
|
+
* @extends {jspb.Message}
|
|
2258
|
+
* @constructor
|
|
2259
|
+
*/
|
|
2260
|
+
proto.zaber.motion.protobufs.OscilloscopeAddIoChannelRequest = function(opt_data) {
|
|
2261
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
2262
|
+
};
|
|
2263
|
+
goog.inherits(proto.zaber.motion.protobufs.OscilloscopeAddIoChannelRequest, jspb.Message);
|
|
2264
|
+
if (goog.DEBUG && !COMPILED) {
|
|
2265
|
+
/**
|
|
2266
|
+
* @public
|
|
2267
|
+
* @override
|
|
2268
|
+
*/
|
|
2269
|
+
proto.zaber.motion.protobufs.OscilloscopeAddIoChannelRequest.displayName = 'proto.zaber.motion.protobufs.OscilloscopeAddIoChannelRequest';
|
|
2248
2270
|
}
|
|
2249
2271
|
/**
|
|
2250
2272
|
* Generated by JsPbCodeGenerator.
|
|
@@ -6898,7 +6920,8 @@ proto.zaber.motion.protobufs.Measurement.prototype.toObject = function(opt_inclu
|
|
|
6898
6920
|
proto.zaber.motion.protobufs.Measurement.toObject = function(includeInstance, msg) {
|
|
6899
6921
|
var f, obj = {
|
|
6900
6922
|
value: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
|
|
6901
|
-
unit: jspb.Message.getFieldWithDefault(msg,
|
|
6923
|
+
unit: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
6924
|
+
isNull: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
|
|
6902
6925
|
};
|
|
6903
6926
|
|
|
6904
6927
|
if (includeInstance) {
|
|
@@ -6939,10 +6962,14 @@ proto.zaber.motion.protobufs.Measurement.deserializeBinaryFromReader = function(
|
|
|
6939
6962
|
var value = /** @type {number} */ (reader.readDouble());
|
|
6940
6963
|
msg.setValue(value);
|
|
6941
6964
|
break;
|
|
6942
|
-
case
|
|
6965
|
+
case 2:
|
|
6943
6966
|
var value = /** @type {string} */ (reader.readString());
|
|
6944
6967
|
msg.setUnit(value);
|
|
6945
6968
|
break;
|
|
6969
|
+
case 3:
|
|
6970
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
6971
|
+
msg.setIsNull(value);
|
|
6972
|
+
break;
|
|
6946
6973
|
default:
|
|
6947
6974
|
reader.skipField();
|
|
6948
6975
|
break;
|
|
@@ -6982,7 +7009,14 @@ proto.zaber.motion.protobufs.Measurement.serializeBinaryToWriter = function(mess
|
|
|
6982
7009
|
f = message.getUnit();
|
|
6983
7010
|
if (f.length > 0) {
|
|
6984
7011
|
writer.writeString(
|
|
6985
|
-
|
|
7012
|
+
2,
|
|
7013
|
+
f
|
|
7014
|
+
);
|
|
7015
|
+
}
|
|
7016
|
+
f = message.getIsNull();
|
|
7017
|
+
if (f) {
|
|
7018
|
+
writer.writeBool(
|
|
7019
|
+
3,
|
|
6986
7020
|
f
|
|
6987
7021
|
);
|
|
6988
7022
|
}
|
|
@@ -7008,11 +7042,11 @@ proto.zaber.motion.protobufs.Measurement.prototype.setValue = function(value) {
|
|
|
7008
7042
|
|
|
7009
7043
|
|
|
7010
7044
|
/**
|
|
7011
|
-
* optional string unit =
|
|
7045
|
+
* optional string unit = 2;
|
|
7012
7046
|
* @return {string}
|
|
7013
7047
|
*/
|
|
7014
7048
|
proto.zaber.motion.protobufs.Measurement.prototype.getUnit = function() {
|
|
7015
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
7049
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
7016
7050
|
};
|
|
7017
7051
|
|
|
7018
7052
|
|
|
@@ -7021,7 +7055,25 @@ proto.zaber.motion.protobufs.Measurement.prototype.getUnit = function() {
|
|
|
7021
7055
|
* @return {!proto.zaber.motion.protobufs.Measurement} returns this
|
|
7022
7056
|
*/
|
|
7023
7057
|
proto.zaber.motion.protobufs.Measurement.prototype.setUnit = function(value) {
|
|
7024
|
-
return jspb.Message.setProto3StringField(this,
|
|
7058
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
7059
|
+
};
|
|
7060
|
+
|
|
7061
|
+
|
|
7062
|
+
/**
|
|
7063
|
+
* optional bool is_null = 3;
|
|
7064
|
+
* @return {boolean}
|
|
7065
|
+
*/
|
|
7066
|
+
proto.zaber.motion.protobufs.Measurement.prototype.getIsNull = function() {
|
|
7067
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
|
|
7068
|
+
};
|
|
7069
|
+
|
|
7070
|
+
|
|
7071
|
+
/**
|
|
7072
|
+
* @param {boolean} value
|
|
7073
|
+
* @return {!proto.zaber.motion.protobufs.Measurement} returns this
|
|
7074
|
+
*/
|
|
7075
|
+
proto.zaber.motion.protobufs.Measurement.prototype.setIsNull = function(value) {
|
|
7076
|
+
return jspb.Message.setProto3BooleanField(this, 3, value);
|
|
7025
7077
|
};
|
|
7026
7078
|
|
|
7027
7079
|
|
|
@@ -24174,8 +24226,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
24174
24226
|
* http://goto/soy-param-migration
|
|
24175
24227
|
* @return {!Object}
|
|
24176
24228
|
*/
|
|
24177
|
-
proto.zaber.motion.protobufs.
|
|
24178
|
-
return proto.zaber.motion.protobufs.
|
|
24229
|
+
proto.zaber.motion.protobufs.OscilloscopeAddSettingChannelRequest.prototype.toObject = function(opt_includeInstance) {
|
|
24230
|
+
return proto.zaber.motion.protobufs.OscilloscopeAddSettingChannelRequest.toObject(opt_includeInstance, this);
|
|
24179
24231
|
};
|
|
24180
24232
|
|
|
24181
24233
|
|
|
@@ -24184,11 +24236,11 @@ proto.zaber.motion.protobufs.OscilloscopeAddChannelRequest.prototype.toObject =
|
|
|
24184
24236
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
24185
24237
|
* the JSPB instance for transitional soy proto support:
|
|
24186
24238
|
* http://goto/soy-param-migration
|
|
24187
|
-
* @param {!proto.zaber.motion.protobufs.
|
|
24239
|
+
* @param {!proto.zaber.motion.protobufs.OscilloscopeAddSettingChannelRequest} msg The msg instance to transform.
|
|
24188
24240
|
* @return {!Object}
|
|
24189
24241
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
24190
24242
|
*/
|
|
24191
|
-
proto.zaber.motion.protobufs.
|
|
24243
|
+
proto.zaber.motion.protobufs.OscilloscopeAddSettingChannelRequest.toObject = function(includeInstance, msg) {
|
|
24192
24244
|
var f, obj = {
|
|
24193
24245
|
interfaceId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
24194
24246
|
device: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
@@ -24207,23 +24259,23 @@ proto.zaber.motion.protobufs.OscilloscopeAddChannelRequest.toObject = function(i
|
|
|
24207
24259
|
/**
|
|
24208
24260
|
* Deserializes binary data (in protobuf wire format).
|
|
24209
24261
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
24210
|
-
* @return {!proto.zaber.motion.protobufs.
|
|
24262
|
+
* @return {!proto.zaber.motion.protobufs.OscilloscopeAddSettingChannelRequest}
|
|
24211
24263
|
*/
|
|
24212
|
-
proto.zaber.motion.protobufs.
|
|
24264
|
+
proto.zaber.motion.protobufs.OscilloscopeAddSettingChannelRequest.deserializeBinary = function(bytes) {
|
|
24213
24265
|
var reader = new jspb.BinaryReader(bytes);
|
|
24214
|
-
var msg = new proto.zaber.motion.protobufs.
|
|
24215
|
-
return proto.zaber.motion.protobufs.
|
|
24266
|
+
var msg = new proto.zaber.motion.protobufs.OscilloscopeAddSettingChannelRequest;
|
|
24267
|
+
return proto.zaber.motion.protobufs.OscilloscopeAddSettingChannelRequest.deserializeBinaryFromReader(msg, reader);
|
|
24216
24268
|
};
|
|
24217
24269
|
|
|
24218
24270
|
|
|
24219
24271
|
/**
|
|
24220
24272
|
* Deserializes binary data (in protobuf wire format) from the
|
|
24221
24273
|
* given reader into the given message object.
|
|
24222
|
-
* @param {!proto.zaber.motion.protobufs.
|
|
24274
|
+
* @param {!proto.zaber.motion.protobufs.OscilloscopeAddSettingChannelRequest} msg The message object to deserialize into.
|
|
24223
24275
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
24224
|
-
* @return {!proto.zaber.motion.protobufs.
|
|
24276
|
+
* @return {!proto.zaber.motion.protobufs.OscilloscopeAddSettingChannelRequest}
|
|
24225
24277
|
*/
|
|
24226
|
-
proto.zaber.motion.protobufs.
|
|
24278
|
+
proto.zaber.motion.protobufs.OscilloscopeAddSettingChannelRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
24227
24279
|
while (reader.nextField()) {
|
|
24228
24280
|
if (reader.isEndGroup()) {
|
|
24229
24281
|
break;
|
|
@@ -24259,9 +24311,9 @@ proto.zaber.motion.protobufs.OscilloscopeAddChannelRequest.deserializeBinaryFrom
|
|
|
24259
24311
|
* Serializes the message to binary data (in protobuf wire format).
|
|
24260
24312
|
* @return {!Uint8Array}
|
|
24261
24313
|
*/
|
|
24262
|
-
proto.zaber.motion.protobufs.
|
|
24314
|
+
proto.zaber.motion.protobufs.OscilloscopeAddSettingChannelRequest.prototype.serializeBinary = function() {
|
|
24263
24315
|
var writer = new jspb.BinaryWriter();
|
|
24264
|
-
proto.zaber.motion.protobufs.
|
|
24316
|
+
proto.zaber.motion.protobufs.OscilloscopeAddSettingChannelRequest.serializeBinaryToWriter(this, writer);
|
|
24265
24317
|
return writer.getResultBuffer();
|
|
24266
24318
|
};
|
|
24267
24319
|
|
|
@@ -24269,11 +24321,11 @@ proto.zaber.motion.protobufs.OscilloscopeAddChannelRequest.prototype.serializeBi
|
|
|
24269
24321
|
/**
|
|
24270
24322
|
* Serializes the given message to binary data (in protobuf wire
|
|
24271
24323
|
* format), writing to the given BinaryWriter.
|
|
24272
|
-
* @param {!proto.zaber.motion.protobufs.
|
|
24324
|
+
* @param {!proto.zaber.motion.protobufs.OscilloscopeAddSettingChannelRequest} message
|
|
24273
24325
|
* @param {!jspb.BinaryWriter} writer
|
|
24274
24326
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
24275
24327
|
*/
|
|
24276
|
-
proto.zaber.motion.protobufs.
|
|
24328
|
+
proto.zaber.motion.protobufs.OscilloscopeAddSettingChannelRequest.serializeBinaryToWriter = function(message, writer) {
|
|
24277
24329
|
var f = undefined;
|
|
24278
24330
|
f = message.getInterfaceId();
|
|
24279
24331
|
if (f !== 0) {
|
|
@@ -24310,16 +24362,16 @@ proto.zaber.motion.protobufs.OscilloscopeAddChannelRequest.serializeBinaryToWrit
|
|
|
24310
24362
|
* optional int32 interface_id = 1;
|
|
24311
24363
|
* @return {number}
|
|
24312
24364
|
*/
|
|
24313
|
-
proto.zaber.motion.protobufs.
|
|
24365
|
+
proto.zaber.motion.protobufs.OscilloscopeAddSettingChannelRequest.prototype.getInterfaceId = function() {
|
|
24314
24366
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
24315
24367
|
};
|
|
24316
24368
|
|
|
24317
24369
|
|
|
24318
24370
|
/**
|
|
24319
24371
|
* @param {number} value
|
|
24320
|
-
* @return {!proto.zaber.motion.protobufs.
|
|
24372
|
+
* @return {!proto.zaber.motion.protobufs.OscilloscopeAddSettingChannelRequest} returns this
|
|
24321
24373
|
*/
|
|
24322
|
-
proto.zaber.motion.protobufs.
|
|
24374
|
+
proto.zaber.motion.protobufs.OscilloscopeAddSettingChannelRequest.prototype.setInterfaceId = function(value) {
|
|
24323
24375
|
return jspb.Message.setProto3IntField(this, 1, value);
|
|
24324
24376
|
};
|
|
24325
24377
|
|
|
@@ -24328,16 +24380,16 @@ proto.zaber.motion.protobufs.OscilloscopeAddChannelRequest.prototype.setInterfac
|
|
|
24328
24380
|
* optional int32 device = 2;
|
|
24329
24381
|
* @return {number}
|
|
24330
24382
|
*/
|
|
24331
|
-
proto.zaber.motion.protobufs.
|
|
24383
|
+
proto.zaber.motion.protobufs.OscilloscopeAddSettingChannelRequest.prototype.getDevice = function() {
|
|
24332
24384
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
24333
24385
|
};
|
|
24334
24386
|
|
|
24335
24387
|
|
|
24336
24388
|
/**
|
|
24337
24389
|
* @param {number} value
|
|
24338
|
-
* @return {!proto.zaber.motion.protobufs.
|
|
24390
|
+
* @return {!proto.zaber.motion.protobufs.OscilloscopeAddSettingChannelRequest} returns this
|
|
24339
24391
|
*/
|
|
24340
|
-
proto.zaber.motion.protobufs.
|
|
24392
|
+
proto.zaber.motion.protobufs.OscilloscopeAddSettingChannelRequest.prototype.setDevice = function(value) {
|
|
24341
24393
|
return jspb.Message.setProto3IntField(this, 2, value);
|
|
24342
24394
|
};
|
|
24343
24395
|
|
|
@@ -24346,16 +24398,16 @@ proto.zaber.motion.protobufs.OscilloscopeAddChannelRequest.prototype.setDevice =
|
|
|
24346
24398
|
* optional int32 axis = 3;
|
|
24347
24399
|
* @return {number}
|
|
24348
24400
|
*/
|
|
24349
|
-
proto.zaber.motion.protobufs.
|
|
24401
|
+
proto.zaber.motion.protobufs.OscilloscopeAddSettingChannelRequest.prototype.getAxis = function() {
|
|
24350
24402
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
24351
24403
|
};
|
|
24352
24404
|
|
|
24353
24405
|
|
|
24354
24406
|
/**
|
|
24355
24407
|
* @param {number} value
|
|
24356
|
-
* @return {!proto.zaber.motion.protobufs.
|
|
24408
|
+
* @return {!proto.zaber.motion.protobufs.OscilloscopeAddSettingChannelRequest} returns this
|
|
24357
24409
|
*/
|
|
24358
|
-
proto.zaber.motion.protobufs.
|
|
24410
|
+
proto.zaber.motion.protobufs.OscilloscopeAddSettingChannelRequest.prototype.setAxis = function(value) {
|
|
24359
24411
|
return jspb.Message.setProto3IntField(this, 3, value);
|
|
24360
24412
|
};
|
|
24361
24413
|
|
|
@@ -24364,16 +24416,16 @@ proto.zaber.motion.protobufs.OscilloscopeAddChannelRequest.prototype.setAxis = f
|
|
|
24364
24416
|
* optional string setting = 4;
|
|
24365
24417
|
* @return {string}
|
|
24366
24418
|
*/
|
|
24367
|
-
proto.zaber.motion.protobufs.
|
|
24419
|
+
proto.zaber.motion.protobufs.OscilloscopeAddSettingChannelRequest.prototype.getSetting = function() {
|
|
24368
24420
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
24369
24421
|
};
|
|
24370
24422
|
|
|
24371
24423
|
|
|
24372
24424
|
/**
|
|
24373
24425
|
* @param {string} value
|
|
24374
|
-
* @return {!proto.zaber.motion.protobufs.
|
|
24426
|
+
* @return {!proto.zaber.motion.protobufs.OscilloscopeAddSettingChannelRequest} returns this
|
|
24375
24427
|
*/
|
|
24376
|
-
proto.zaber.motion.protobufs.
|
|
24428
|
+
proto.zaber.motion.protobufs.OscilloscopeAddSettingChannelRequest.prototype.setSetting = function(value) {
|
|
24377
24429
|
return jspb.Message.setProto3StringField(this, 4, value);
|
|
24378
24430
|
};
|
|
24379
24431
|
|
|
@@ -24381,6 +24433,226 @@ proto.zaber.motion.protobufs.OscilloscopeAddChannelRequest.prototype.setSetting
|
|
|
24381
24433
|
|
|
24382
24434
|
|
|
24383
24435
|
|
|
24436
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
24437
|
+
/**
|
|
24438
|
+
* Creates an object representation of this proto.
|
|
24439
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
24440
|
+
* Optional fields that are not set will be set to undefined.
|
|
24441
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
24442
|
+
* For the list of reserved names please see:
|
|
24443
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
24444
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
24445
|
+
* JSPB instance for transitional soy proto support:
|
|
24446
|
+
* http://goto/soy-param-migration
|
|
24447
|
+
* @return {!Object}
|
|
24448
|
+
*/
|
|
24449
|
+
proto.zaber.motion.protobufs.OscilloscopeAddIoChannelRequest.prototype.toObject = function(opt_includeInstance) {
|
|
24450
|
+
return proto.zaber.motion.protobufs.OscilloscopeAddIoChannelRequest.toObject(opt_includeInstance, this);
|
|
24451
|
+
};
|
|
24452
|
+
|
|
24453
|
+
|
|
24454
|
+
/**
|
|
24455
|
+
* Static version of the {@see toObject} method.
|
|
24456
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
24457
|
+
* the JSPB instance for transitional soy proto support:
|
|
24458
|
+
* http://goto/soy-param-migration
|
|
24459
|
+
* @param {!proto.zaber.motion.protobufs.OscilloscopeAddIoChannelRequest} msg The msg instance to transform.
|
|
24460
|
+
* @return {!Object}
|
|
24461
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
24462
|
+
*/
|
|
24463
|
+
proto.zaber.motion.protobufs.OscilloscopeAddIoChannelRequest.toObject = function(includeInstance, msg) {
|
|
24464
|
+
var f, obj = {
|
|
24465
|
+
interfaceId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
24466
|
+
device: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
24467
|
+
ioType: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
24468
|
+
ioChannel: jspb.Message.getFieldWithDefault(msg, 4, 0)
|
|
24469
|
+
};
|
|
24470
|
+
|
|
24471
|
+
if (includeInstance) {
|
|
24472
|
+
obj.$jspbMessageInstance = msg;
|
|
24473
|
+
}
|
|
24474
|
+
return obj;
|
|
24475
|
+
};
|
|
24476
|
+
}
|
|
24477
|
+
|
|
24478
|
+
|
|
24479
|
+
/**
|
|
24480
|
+
* Deserializes binary data (in protobuf wire format).
|
|
24481
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
24482
|
+
* @return {!proto.zaber.motion.protobufs.OscilloscopeAddIoChannelRequest}
|
|
24483
|
+
*/
|
|
24484
|
+
proto.zaber.motion.protobufs.OscilloscopeAddIoChannelRequest.deserializeBinary = function(bytes) {
|
|
24485
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
24486
|
+
var msg = new proto.zaber.motion.protobufs.OscilloscopeAddIoChannelRequest;
|
|
24487
|
+
return proto.zaber.motion.protobufs.OscilloscopeAddIoChannelRequest.deserializeBinaryFromReader(msg, reader);
|
|
24488
|
+
};
|
|
24489
|
+
|
|
24490
|
+
|
|
24491
|
+
/**
|
|
24492
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
24493
|
+
* given reader into the given message object.
|
|
24494
|
+
* @param {!proto.zaber.motion.protobufs.OscilloscopeAddIoChannelRequest} msg The message object to deserialize into.
|
|
24495
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
24496
|
+
* @return {!proto.zaber.motion.protobufs.OscilloscopeAddIoChannelRequest}
|
|
24497
|
+
*/
|
|
24498
|
+
proto.zaber.motion.protobufs.OscilloscopeAddIoChannelRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
24499
|
+
while (reader.nextField()) {
|
|
24500
|
+
if (reader.isEndGroup()) {
|
|
24501
|
+
break;
|
|
24502
|
+
}
|
|
24503
|
+
var field = reader.getFieldNumber();
|
|
24504
|
+
switch (field) {
|
|
24505
|
+
case 1:
|
|
24506
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
24507
|
+
msg.setInterfaceId(value);
|
|
24508
|
+
break;
|
|
24509
|
+
case 2:
|
|
24510
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
24511
|
+
msg.setDevice(value);
|
|
24512
|
+
break;
|
|
24513
|
+
case 3:
|
|
24514
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
24515
|
+
msg.setIoType(value);
|
|
24516
|
+
break;
|
|
24517
|
+
case 4:
|
|
24518
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
24519
|
+
msg.setIoChannel(value);
|
|
24520
|
+
break;
|
|
24521
|
+
default:
|
|
24522
|
+
reader.skipField();
|
|
24523
|
+
break;
|
|
24524
|
+
}
|
|
24525
|
+
}
|
|
24526
|
+
return msg;
|
|
24527
|
+
};
|
|
24528
|
+
|
|
24529
|
+
|
|
24530
|
+
/**
|
|
24531
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
24532
|
+
* @return {!Uint8Array}
|
|
24533
|
+
*/
|
|
24534
|
+
proto.zaber.motion.protobufs.OscilloscopeAddIoChannelRequest.prototype.serializeBinary = function() {
|
|
24535
|
+
var writer = new jspb.BinaryWriter();
|
|
24536
|
+
proto.zaber.motion.protobufs.OscilloscopeAddIoChannelRequest.serializeBinaryToWriter(this, writer);
|
|
24537
|
+
return writer.getResultBuffer();
|
|
24538
|
+
};
|
|
24539
|
+
|
|
24540
|
+
|
|
24541
|
+
/**
|
|
24542
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
24543
|
+
* format), writing to the given BinaryWriter.
|
|
24544
|
+
* @param {!proto.zaber.motion.protobufs.OscilloscopeAddIoChannelRequest} message
|
|
24545
|
+
* @param {!jspb.BinaryWriter} writer
|
|
24546
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
24547
|
+
*/
|
|
24548
|
+
proto.zaber.motion.protobufs.OscilloscopeAddIoChannelRequest.serializeBinaryToWriter = function(message, writer) {
|
|
24549
|
+
var f = undefined;
|
|
24550
|
+
f = message.getInterfaceId();
|
|
24551
|
+
if (f !== 0) {
|
|
24552
|
+
writer.writeInt32(
|
|
24553
|
+
1,
|
|
24554
|
+
f
|
|
24555
|
+
);
|
|
24556
|
+
}
|
|
24557
|
+
f = message.getDevice();
|
|
24558
|
+
if (f !== 0) {
|
|
24559
|
+
writer.writeInt32(
|
|
24560
|
+
2,
|
|
24561
|
+
f
|
|
24562
|
+
);
|
|
24563
|
+
}
|
|
24564
|
+
f = message.getIoType();
|
|
24565
|
+
if (f !== 0) {
|
|
24566
|
+
writer.writeInt32(
|
|
24567
|
+
3,
|
|
24568
|
+
f
|
|
24569
|
+
);
|
|
24570
|
+
}
|
|
24571
|
+
f = message.getIoChannel();
|
|
24572
|
+
if (f !== 0) {
|
|
24573
|
+
writer.writeInt32(
|
|
24574
|
+
4,
|
|
24575
|
+
f
|
|
24576
|
+
);
|
|
24577
|
+
}
|
|
24578
|
+
};
|
|
24579
|
+
|
|
24580
|
+
|
|
24581
|
+
/**
|
|
24582
|
+
* optional int32 interface_id = 1;
|
|
24583
|
+
* @return {number}
|
|
24584
|
+
*/
|
|
24585
|
+
proto.zaber.motion.protobufs.OscilloscopeAddIoChannelRequest.prototype.getInterfaceId = function() {
|
|
24586
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
24587
|
+
};
|
|
24588
|
+
|
|
24589
|
+
|
|
24590
|
+
/**
|
|
24591
|
+
* @param {number} value
|
|
24592
|
+
* @return {!proto.zaber.motion.protobufs.OscilloscopeAddIoChannelRequest} returns this
|
|
24593
|
+
*/
|
|
24594
|
+
proto.zaber.motion.protobufs.OscilloscopeAddIoChannelRequest.prototype.setInterfaceId = function(value) {
|
|
24595
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
24596
|
+
};
|
|
24597
|
+
|
|
24598
|
+
|
|
24599
|
+
/**
|
|
24600
|
+
* optional int32 device = 2;
|
|
24601
|
+
* @return {number}
|
|
24602
|
+
*/
|
|
24603
|
+
proto.zaber.motion.protobufs.OscilloscopeAddIoChannelRequest.prototype.getDevice = function() {
|
|
24604
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
24605
|
+
};
|
|
24606
|
+
|
|
24607
|
+
|
|
24608
|
+
/**
|
|
24609
|
+
* @param {number} value
|
|
24610
|
+
* @return {!proto.zaber.motion.protobufs.OscilloscopeAddIoChannelRequest} returns this
|
|
24611
|
+
*/
|
|
24612
|
+
proto.zaber.motion.protobufs.OscilloscopeAddIoChannelRequest.prototype.setDevice = function(value) {
|
|
24613
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
24614
|
+
};
|
|
24615
|
+
|
|
24616
|
+
|
|
24617
|
+
/**
|
|
24618
|
+
* optional int32 io_type = 3;
|
|
24619
|
+
* @return {number}
|
|
24620
|
+
*/
|
|
24621
|
+
proto.zaber.motion.protobufs.OscilloscopeAddIoChannelRequest.prototype.getIoType = function() {
|
|
24622
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
24623
|
+
};
|
|
24624
|
+
|
|
24625
|
+
|
|
24626
|
+
/**
|
|
24627
|
+
* @param {number} value
|
|
24628
|
+
* @return {!proto.zaber.motion.protobufs.OscilloscopeAddIoChannelRequest} returns this
|
|
24629
|
+
*/
|
|
24630
|
+
proto.zaber.motion.protobufs.OscilloscopeAddIoChannelRequest.prototype.setIoType = function(value) {
|
|
24631
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
24632
|
+
};
|
|
24633
|
+
|
|
24634
|
+
|
|
24635
|
+
/**
|
|
24636
|
+
* optional int32 io_channel = 4;
|
|
24637
|
+
* @return {number}
|
|
24638
|
+
*/
|
|
24639
|
+
proto.zaber.motion.protobufs.OscilloscopeAddIoChannelRequest.prototype.getIoChannel = function() {
|
|
24640
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
24641
|
+
};
|
|
24642
|
+
|
|
24643
|
+
|
|
24644
|
+
/**
|
|
24645
|
+
* @param {number} value
|
|
24646
|
+
* @return {!proto.zaber.motion.protobufs.OscilloscopeAddIoChannelRequest} returns this
|
|
24647
|
+
*/
|
|
24648
|
+
proto.zaber.motion.protobufs.OscilloscopeAddIoChannelRequest.prototype.setIoChannel = function(value) {
|
|
24649
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
24650
|
+
};
|
|
24651
|
+
|
|
24652
|
+
|
|
24653
|
+
|
|
24654
|
+
|
|
24655
|
+
|
|
24384
24656
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
24385
24657
|
/**
|
|
24386
24658
|
* Creates an object representation of this proto.
|
|
@@ -24918,8 +25190,11 @@ proto.zaber.motion.protobufs.OscilloscopeCaptureProperties.prototype.toObject =
|
|
|
24918
25190
|
*/
|
|
24919
25191
|
proto.zaber.motion.protobufs.OscilloscopeCaptureProperties.toObject = function(includeInstance, msg) {
|
|
24920
25192
|
var f, obj = {
|
|
24921
|
-
|
|
24922
|
-
|
|
25193
|
+
dataSource: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
25194
|
+
setting: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
25195
|
+
axisNumber: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
25196
|
+
ioType: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
25197
|
+
ioChannel: jspb.Message.getFieldWithDefault(msg, 5, 0)
|
|
24923
25198
|
};
|
|
24924
25199
|
|
|
24925
25200
|
if (includeInstance) {
|
|
@@ -24957,13 +25232,25 @@ proto.zaber.motion.protobufs.OscilloscopeCaptureProperties.deserializeBinaryFrom
|
|
|
24957
25232
|
var field = reader.getFieldNumber();
|
|
24958
25233
|
switch (field) {
|
|
24959
25234
|
case 1:
|
|
25235
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
25236
|
+
msg.setDataSource(value);
|
|
25237
|
+
break;
|
|
25238
|
+
case 2:
|
|
24960
25239
|
var value = /** @type {string} */ (reader.readString());
|
|
24961
25240
|
msg.setSetting(value);
|
|
24962
25241
|
break;
|
|
24963
|
-
case
|
|
25242
|
+
case 3:
|
|
24964
25243
|
var value = /** @type {number} */ (reader.readInt32());
|
|
24965
25244
|
msg.setAxisNumber(value);
|
|
24966
25245
|
break;
|
|
25246
|
+
case 4:
|
|
25247
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
25248
|
+
msg.setIoType(value);
|
|
25249
|
+
break;
|
|
25250
|
+
case 5:
|
|
25251
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
25252
|
+
msg.setIoChannel(value);
|
|
25253
|
+
break;
|
|
24967
25254
|
default:
|
|
24968
25255
|
reader.skipField();
|
|
24969
25256
|
break;
|
|
@@ -24993,17 +25280,38 @@ proto.zaber.motion.protobufs.OscilloscopeCaptureProperties.prototype.serializeBi
|
|
|
24993
25280
|
*/
|
|
24994
25281
|
proto.zaber.motion.protobufs.OscilloscopeCaptureProperties.serializeBinaryToWriter = function(message, writer) {
|
|
24995
25282
|
var f = undefined;
|
|
25283
|
+
f = message.getDataSource();
|
|
25284
|
+
if (f !== 0) {
|
|
25285
|
+
writer.writeInt32(
|
|
25286
|
+
1,
|
|
25287
|
+
f
|
|
25288
|
+
);
|
|
25289
|
+
}
|
|
24996
25290
|
f = message.getSetting();
|
|
24997
25291
|
if (f.length > 0) {
|
|
24998
25292
|
writer.writeString(
|
|
24999
|
-
|
|
25293
|
+
2,
|
|
25000
25294
|
f
|
|
25001
25295
|
);
|
|
25002
25296
|
}
|
|
25003
25297
|
f = message.getAxisNumber();
|
|
25004
25298
|
if (f !== 0) {
|
|
25005
25299
|
writer.writeInt32(
|
|
25006
|
-
|
|
25300
|
+
3,
|
|
25301
|
+
f
|
|
25302
|
+
);
|
|
25303
|
+
}
|
|
25304
|
+
f = message.getIoType();
|
|
25305
|
+
if (f !== 0) {
|
|
25306
|
+
writer.writeInt32(
|
|
25307
|
+
4,
|
|
25308
|
+
f
|
|
25309
|
+
);
|
|
25310
|
+
}
|
|
25311
|
+
f = message.getIoChannel();
|
|
25312
|
+
if (f !== 0) {
|
|
25313
|
+
writer.writeInt32(
|
|
25314
|
+
5,
|
|
25007
25315
|
f
|
|
25008
25316
|
);
|
|
25009
25317
|
}
|
|
@@ -25011,11 +25319,29 @@ proto.zaber.motion.protobufs.OscilloscopeCaptureProperties.serializeBinaryToWrit
|
|
|
25011
25319
|
|
|
25012
25320
|
|
|
25013
25321
|
/**
|
|
25014
|
-
* optional
|
|
25322
|
+
* optional int32 data_source = 1;
|
|
25323
|
+
* @return {number}
|
|
25324
|
+
*/
|
|
25325
|
+
proto.zaber.motion.protobufs.OscilloscopeCaptureProperties.prototype.getDataSource = function() {
|
|
25326
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
25327
|
+
};
|
|
25328
|
+
|
|
25329
|
+
|
|
25330
|
+
/**
|
|
25331
|
+
* @param {number} value
|
|
25332
|
+
* @return {!proto.zaber.motion.protobufs.OscilloscopeCaptureProperties} returns this
|
|
25333
|
+
*/
|
|
25334
|
+
proto.zaber.motion.protobufs.OscilloscopeCaptureProperties.prototype.setDataSource = function(value) {
|
|
25335
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
25336
|
+
};
|
|
25337
|
+
|
|
25338
|
+
|
|
25339
|
+
/**
|
|
25340
|
+
* optional string setting = 2;
|
|
25015
25341
|
* @return {string}
|
|
25016
25342
|
*/
|
|
25017
25343
|
proto.zaber.motion.protobufs.OscilloscopeCaptureProperties.prototype.getSetting = function() {
|
|
25018
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
25344
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
25019
25345
|
};
|
|
25020
25346
|
|
|
25021
25347
|
|
|
@@ -25024,16 +25350,16 @@ proto.zaber.motion.protobufs.OscilloscopeCaptureProperties.prototype.getSetting
|
|
|
25024
25350
|
* @return {!proto.zaber.motion.protobufs.OscilloscopeCaptureProperties} returns this
|
|
25025
25351
|
*/
|
|
25026
25352
|
proto.zaber.motion.protobufs.OscilloscopeCaptureProperties.prototype.setSetting = function(value) {
|
|
25027
|
-
return jspb.Message.setProto3StringField(this,
|
|
25353
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
25028
25354
|
};
|
|
25029
25355
|
|
|
25030
25356
|
|
|
25031
25357
|
/**
|
|
25032
|
-
* optional int32 axis_number =
|
|
25358
|
+
* optional int32 axis_number = 3;
|
|
25033
25359
|
* @return {number}
|
|
25034
25360
|
*/
|
|
25035
25361
|
proto.zaber.motion.protobufs.OscilloscopeCaptureProperties.prototype.getAxisNumber = function() {
|
|
25036
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this,
|
|
25362
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
25037
25363
|
};
|
|
25038
25364
|
|
|
25039
25365
|
|
|
@@ -25042,7 +25368,43 @@ proto.zaber.motion.protobufs.OscilloscopeCaptureProperties.prototype.getAxisNumb
|
|
|
25042
25368
|
* @return {!proto.zaber.motion.protobufs.OscilloscopeCaptureProperties} returns this
|
|
25043
25369
|
*/
|
|
25044
25370
|
proto.zaber.motion.protobufs.OscilloscopeCaptureProperties.prototype.setAxisNumber = function(value) {
|
|
25045
|
-
return jspb.Message.setProto3IntField(this,
|
|
25371
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
25372
|
+
};
|
|
25373
|
+
|
|
25374
|
+
|
|
25375
|
+
/**
|
|
25376
|
+
* optional int32 io_type = 4;
|
|
25377
|
+
* @return {number}
|
|
25378
|
+
*/
|
|
25379
|
+
proto.zaber.motion.protobufs.OscilloscopeCaptureProperties.prototype.getIoType = function() {
|
|
25380
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
25381
|
+
};
|
|
25382
|
+
|
|
25383
|
+
|
|
25384
|
+
/**
|
|
25385
|
+
* @param {number} value
|
|
25386
|
+
* @return {!proto.zaber.motion.protobufs.OscilloscopeCaptureProperties} returns this
|
|
25387
|
+
*/
|
|
25388
|
+
proto.zaber.motion.protobufs.OscilloscopeCaptureProperties.prototype.setIoType = function(value) {
|
|
25389
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
25390
|
+
};
|
|
25391
|
+
|
|
25392
|
+
|
|
25393
|
+
/**
|
|
25394
|
+
* optional int32 io_channel = 5;
|
|
25395
|
+
* @return {number}
|
|
25396
|
+
*/
|
|
25397
|
+
proto.zaber.motion.protobufs.OscilloscopeCaptureProperties.prototype.getIoChannel = function() {
|
|
25398
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
25399
|
+
};
|
|
25400
|
+
|
|
25401
|
+
|
|
25402
|
+
/**
|
|
25403
|
+
* @param {number} value
|
|
25404
|
+
* @return {!proto.zaber.motion.protobufs.OscilloscopeCaptureProperties} returns this
|
|
25405
|
+
*/
|
|
25406
|
+
proto.zaber.motion.protobufs.OscilloscopeCaptureProperties.prototype.setIoChannel = function(value) {
|
|
25407
|
+
return jspb.Message.setProto3IntField(this, 5, value);
|
|
25046
25408
|
};
|
|
25047
25409
|
|
|
25048
25410
|
|