@zaber/motion 4.2.4 → 4.3.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.
@@ -99,6 +99,7 @@ goog.exportSymbol('zaber.motion.protobufs.GenericCommandRequest', null, proto);
99
99
  goog.exportSymbol('zaber.motion.protobufs.GenericCommandResponse', null, proto);
100
100
  goog.exportSymbol('zaber.motion.protobufs.GenericCommandResponseCollection', null, proto);
101
101
  goog.exportSymbol('zaber.motion.protobufs.GetSimpleTuningParamDefinitionResponse', null, proto);
102
+ goog.exportSymbol('zaber.motion.protobufs.IntRequest', null, proto);
102
103
  goog.exportSymbol('zaber.motion.protobufs.IntResponse', null, proto);
103
104
  goog.exportSymbol('zaber.motion.protobufs.InterfaceEmptyRequest', null, proto);
104
105
  goog.exportSymbol('zaber.motion.protobufs.InterfaceType', null, proto);
@@ -320,6 +321,27 @@ if (goog.DEBUG && !COMPILED) {
320
321
  */
321
322
  proto.zaber.motion.protobufs.EmptyRequest.displayName = 'proto.zaber.motion.protobufs.EmptyRequest';
322
323
  }
324
+ /**
325
+ * Generated by JsPbCodeGenerator.
326
+ * @param {Array=} opt_data Optional initial data array, typically from a
327
+ * server response, or constructed directly in Javascript. The array is used
328
+ * in place and becomes part of the constructed object. It is not cloned.
329
+ * If no data is provided, the constructed object will be empty, but still
330
+ * valid.
331
+ * @extends {jspb.Message}
332
+ * @constructor
333
+ */
334
+ proto.zaber.motion.protobufs.IntRequest = function(opt_data) {
335
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
336
+ };
337
+ goog.inherits(proto.zaber.motion.protobufs.IntRequest, jspb.Message);
338
+ if (goog.DEBUG && !COMPILED) {
339
+ /**
340
+ * @public
341
+ * @override
342
+ */
343
+ proto.zaber.motion.protobufs.IntRequest.displayName = 'proto.zaber.motion.protobufs.IntRequest';
344
+ }
323
345
  /**
324
346
  * Generated by JsPbCodeGenerator.
325
347
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -5145,6 +5167,136 @@ proto.zaber.motion.protobufs.EmptyRequest.serializeBinaryToWriter = function(mes
5145
5167
 
5146
5168
 
5147
5169
 
5170
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5171
+ /**
5172
+ * Creates an object representation of this proto.
5173
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
5174
+ * Optional fields that are not set will be set to undefined.
5175
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5176
+ * For the list of reserved names please see:
5177
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5178
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5179
+ * JSPB instance for transitional soy proto support:
5180
+ * http://goto/soy-param-migration
5181
+ * @return {!Object}
5182
+ */
5183
+ proto.zaber.motion.protobufs.IntRequest.prototype.toObject = function(opt_includeInstance) {
5184
+ return proto.zaber.motion.protobufs.IntRequest.toObject(opt_includeInstance, this);
5185
+ };
5186
+
5187
+
5188
+ /**
5189
+ * Static version of the {@see toObject} method.
5190
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5191
+ * the JSPB instance for transitional soy proto support:
5192
+ * http://goto/soy-param-migration
5193
+ * @param {!proto.zaber.motion.protobufs.IntRequest} msg The msg instance to transform.
5194
+ * @return {!Object}
5195
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5196
+ */
5197
+ proto.zaber.motion.protobufs.IntRequest.toObject = function(includeInstance, msg) {
5198
+ var f, obj = {
5199
+ value: jspb.Message.getFieldWithDefault(msg, 1, 0)
5200
+ };
5201
+
5202
+ if (includeInstance) {
5203
+ obj.$jspbMessageInstance = msg;
5204
+ }
5205
+ return obj;
5206
+ };
5207
+ }
5208
+
5209
+
5210
+ /**
5211
+ * Deserializes binary data (in protobuf wire format).
5212
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
5213
+ * @return {!proto.zaber.motion.protobufs.IntRequest}
5214
+ */
5215
+ proto.zaber.motion.protobufs.IntRequest.deserializeBinary = function(bytes) {
5216
+ var reader = new jspb.BinaryReader(bytes);
5217
+ var msg = new proto.zaber.motion.protobufs.IntRequest;
5218
+ return proto.zaber.motion.protobufs.IntRequest.deserializeBinaryFromReader(msg, reader);
5219
+ };
5220
+
5221
+
5222
+ /**
5223
+ * Deserializes binary data (in protobuf wire format) from the
5224
+ * given reader into the given message object.
5225
+ * @param {!proto.zaber.motion.protobufs.IntRequest} msg The message object to deserialize into.
5226
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5227
+ * @return {!proto.zaber.motion.protobufs.IntRequest}
5228
+ */
5229
+ proto.zaber.motion.protobufs.IntRequest.deserializeBinaryFromReader = function(msg, reader) {
5230
+ while (reader.nextField()) {
5231
+ if (reader.isEndGroup()) {
5232
+ break;
5233
+ }
5234
+ var field = reader.getFieldNumber();
5235
+ switch (field) {
5236
+ case 1:
5237
+ var value = /** @type {number} */ (reader.readInt32());
5238
+ msg.setValue(value);
5239
+ break;
5240
+ default:
5241
+ reader.skipField();
5242
+ break;
5243
+ }
5244
+ }
5245
+ return msg;
5246
+ };
5247
+
5248
+
5249
+ /**
5250
+ * Serializes the message to binary data (in protobuf wire format).
5251
+ * @return {!Uint8Array}
5252
+ */
5253
+ proto.zaber.motion.protobufs.IntRequest.prototype.serializeBinary = function() {
5254
+ var writer = new jspb.BinaryWriter();
5255
+ proto.zaber.motion.protobufs.IntRequest.serializeBinaryToWriter(this, writer);
5256
+ return writer.getResultBuffer();
5257
+ };
5258
+
5259
+
5260
+ /**
5261
+ * Serializes the given message to binary data (in protobuf wire
5262
+ * format), writing to the given BinaryWriter.
5263
+ * @param {!proto.zaber.motion.protobufs.IntRequest} message
5264
+ * @param {!jspb.BinaryWriter} writer
5265
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5266
+ */
5267
+ proto.zaber.motion.protobufs.IntRequest.serializeBinaryToWriter = function(message, writer) {
5268
+ var f = undefined;
5269
+ f = message.getValue();
5270
+ if (f !== 0) {
5271
+ writer.writeInt32(
5272
+ 1,
5273
+ f
5274
+ );
5275
+ }
5276
+ };
5277
+
5278
+
5279
+ /**
5280
+ * optional int32 value = 1;
5281
+ * @return {number}
5282
+ */
5283
+ proto.zaber.motion.protobufs.IntRequest.prototype.getValue = function() {
5284
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
5285
+ };
5286
+
5287
+
5288
+ /**
5289
+ * @param {number} value
5290
+ * @return {!proto.zaber.motion.protobufs.IntRequest} returns this
5291
+ */
5292
+ proto.zaber.motion.protobufs.IntRequest.prototype.setValue = function(value) {
5293
+ return jspb.Message.setProto3IntField(this, 1, value);
5294
+ };
5295
+
5296
+
5297
+
5298
+
5299
+
5148
5300
  if (jspb.Message.GENERATE_TO_OBJECT) {
5149
5301
  /**
5150
5302
  * Creates an object representation of this proto.