@zaber/motion 2.10.1 → 2.11.2
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 +6 -0
- package/dist/lib/ascii/index.js +13 -1
- package/dist/lib/ascii/index.js.map +1 -1
- package/dist/lib/ascii/paramset_info.d.ts +17 -0
- package/dist/lib/ascii/paramset_info.js +19 -0
- package/dist/lib/ascii/paramset_info.js.map +1 -0
- package/dist/lib/ascii/pid_tuning.d.ts +32 -0
- package/dist/lib/ascii/pid_tuning.js +22 -0
- package/dist/lib/ascii/pid_tuning.js.map +1 -0
- package/dist/lib/ascii/servo_tuner.d.ts +77 -0
- package/dist/lib/ascii/servo_tuner.js +180 -0
- package/dist/lib/ascii/servo_tuner.js.map +1 -0
- package/dist/lib/ascii/servo_tuning_param.d.ts +16 -0
- package/dist/lib/ascii/servo_tuning_param.js +49 -0
- package/dist/lib/ascii/servo_tuning_param.js.map +1 -0
- package/dist/lib/ascii/servo_tuning_paramset.d.ts +17 -0
- package/dist/lib/ascii/servo_tuning_paramset.js +24 -0
- package/dist/lib/ascii/servo_tuning_paramset.js.map +1 -0
- package/dist/lib/ascii/simple_tuning_param.d.ts +24 -0
- package/dist/lib/ascii/simple_tuning_param.js +20 -0
- package/dist/lib/ascii/simple_tuning_param.js.map +1 -0
- package/dist/lib/ascii_ns.d.ts +12 -0
- package/dist/lib/ascii_ns.js +6 -0
- package/dist/lib/ascii_ns.js.map +1 -1
- package/dist/lib/protobufs/main_pb.d.ts +452 -0
- package/dist/lib/protobufs/main_pb.js +3490 -4
- package/dist/lib/protobufs/main_pb.js.map +1 -1
- package/dist/lib/tools.d.ts +6 -0
- package/dist/lib/tools.js +10 -0
- package/dist/lib/tools.js.map +1 -1
- package/package.json +1 -1
|
@@ -119,11 +119,15 @@ goog.exportSymbol('zaber.motion.protobufs.GenericCommandResponse', null, proto);
|
|
|
119
119
|
goog.exportSymbol('zaber.motion.protobufs.GenericCommandResponseCollection', null, proto);
|
|
120
120
|
goog.exportSymbol('zaber.motion.protobufs.GetInterfaceChecksumEnabledResponse', null, proto);
|
|
121
121
|
goog.exportSymbol('zaber.motion.protobufs.GetInterfaceTimeoutResponse', null, proto);
|
|
122
|
+
goog.exportSymbol('zaber.motion.protobufs.GetMessageRouterPipeResponse', null, proto);
|
|
123
|
+
goog.exportSymbol('zaber.motion.protobufs.GetSimpleTuningParamListRequest', null, proto);
|
|
124
|
+
goog.exportSymbol('zaber.motion.protobufs.GetStartupParamset', null, proto);
|
|
122
125
|
goog.exportSymbol('zaber.motion.protobufs.GetStateRequest', null, proto);
|
|
123
126
|
goog.exportSymbol('zaber.motion.protobufs.GetStateResponse', null, proto);
|
|
124
127
|
goog.exportSymbol('zaber.motion.protobufs.InterfaceType', null, proto);
|
|
125
128
|
goog.exportSymbol('zaber.motion.protobufs.InvalidPacketExceptionData', null, proto);
|
|
126
129
|
goog.exportSymbol('zaber.motion.protobufs.InvalidResponseExceptionData', null, proto);
|
|
130
|
+
goog.exportSymbol('zaber.motion.protobufs.LoadParamset', null, proto);
|
|
127
131
|
goog.exportSymbol('zaber.motion.protobufs.LockstepAxes', null, proto);
|
|
128
132
|
goog.exportSymbol('zaber.motion.protobufs.LockstepDisableRequest', null, proto);
|
|
129
133
|
goog.exportSymbol('zaber.motion.protobufs.LockstepEnableRequest', null, proto);
|
|
@@ -166,18 +170,28 @@ goog.exportSymbol('zaber.motion.protobufs.OscilloscopeDataIdentifier', null, pro
|
|
|
166
170
|
goog.exportSymbol('zaber.motion.protobufs.OscilloscopeReadRequest', null, proto);
|
|
167
171
|
goog.exportSymbol('zaber.motion.protobufs.OscilloscopeReadResponse', null, proto);
|
|
168
172
|
goog.exportSymbol('zaber.motion.protobufs.OscilloscopeStartStopRequest', null, proto);
|
|
173
|
+
goog.exportSymbol('zaber.motion.protobufs.ParamsetInfo', null, proto);
|
|
174
|
+
goog.exportSymbol('zaber.motion.protobufs.PidTuning', null, proto);
|
|
169
175
|
goog.exportSymbol('zaber.motion.protobufs.PrepareCommandRequest', null, proto);
|
|
170
176
|
goog.exportSymbol('zaber.motion.protobufs.PrepareCommandResponse', null, proto);
|
|
171
177
|
goog.exportSymbol('zaber.motion.protobufs.Request', null, proto);
|
|
172
178
|
goog.exportSymbol('zaber.motion.protobufs.Response', null, proto);
|
|
173
179
|
goog.exportSymbol('zaber.motion.protobufs.Response.ResponseType', null, proto);
|
|
180
|
+
goog.exportSymbol('zaber.motion.protobufs.ServoTuningParam', null, proto);
|
|
181
|
+
goog.exportSymbol('zaber.motion.protobufs.ServoTuningRequest', null, proto);
|
|
174
182
|
goog.exportSymbol('zaber.motion.protobufs.SetDeviceDbSourceRequest', null, proto);
|
|
175
183
|
goog.exportSymbol('zaber.motion.protobufs.SetDeviceStateExceptionData', null, proto);
|
|
176
184
|
goog.exportSymbol('zaber.motion.protobufs.SetInterfaceChecksumEnabledRequest', null, proto);
|
|
177
185
|
goog.exportSymbol('zaber.motion.protobufs.SetInterfaceTimeoutRequest', null, proto);
|
|
178
186
|
goog.exportSymbol('zaber.motion.protobufs.SetLogOutputRequest', null, proto);
|
|
179
187
|
goog.exportSymbol('zaber.motion.protobufs.SetPeripheralStateExceptionData', null, proto);
|
|
188
|
+
goog.exportSymbol('zaber.motion.protobufs.SetServoTuningPIDRequest', null, proto);
|
|
189
|
+
goog.exportSymbol('zaber.motion.protobufs.SetServoTuningRequest', null, proto);
|
|
190
|
+
goog.exportSymbol('zaber.motion.protobufs.SetSimpleTuning', null, proto);
|
|
180
191
|
goog.exportSymbol('zaber.motion.protobufs.SetStateRequest', null, proto);
|
|
192
|
+
goog.exportSymbol('zaber.motion.protobufs.SimpleTuningParam', null, proto);
|
|
193
|
+
goog.exportSymbol('zaber.motion.protobufs.SimpleTuningParamList', null, proto);
|
|
194
|
+
goog.exportSymbol('zaber.motion.protobufs.StartupParamset', null, proto);
|
|
181
195
|
goog.exportSymbol('zaber.motion.protobufs.StreamArcRequest', null, proto);
|
|
182
196
|
goog.exportSymbol('zaber.motion.protobufs.StreamArcRequest.Type', null, proto);
|
|
183
197
|
goog.exportSymbol('zaber.motion.protobufs.StreamAxisDefinition', null, proto);
|
|
@@ -826,6 +840,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
826
840
|
*/
|
|
827
841
|
proto.zaber.motion.protobufs.ToolsListSerialPortsResponse.displayName = 'proto.zaber.motion.protobufs.ToolsListSerialPortsResponse';
|
|
828
842
|
}
|
|
843
|
+
/**
|
|
844
|
+
* Generated by JsPbCodeGenerator.
|
|
845
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
846
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
847
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
848
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
849
|
+
* valid.
|
|
850
|
+
* @extends {jspb.Message}
|
|
851
|
+
* @constructor
|
|
852
|
+
*/
|
|
853
|
+
proto.zaber.motion.protobufs.GetMessageRouterPipeResponse = function(opt_data) {
|
|
854
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
855
|
+
};
|
|
856
|
+
goog.inherits(proto.zaber.motion.protobufs.GetMessageRouterPipeResponse, jspb.Message);
|
|
857
|
+
if (goog.DEBUG && !COMPILED) {
|
|
858
|
+
/**
|
|
859
|
+
* @public
|
|
860
|
+
* @override
|
|
861
|
+
*/
|
|
862
|
+
proto.zaber.motion.protobufs.GetMessageRouterPipeResponse.displayName = 'proto.zaber.motion.protobufs.GetMessageRouterPipeResponse';
|
|
863
|
+
}
|
|
829
864
|
/**
|
|
830
865
|
* Generated by JsPbCodeGenerator.
|
|
831
866
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -4648,6 +4683,279 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
4648
4683
|
*/
|
|
4649
4684
|
proto.zaber.motion.protobufs.SetStateRequest.displayName = 'proto.zaber.motion.protobufs.SetStateRequest';
|
|
4650
4685
|
}
|
|
4686
|
+
/**
|
|
4687
|
+
* Generated by JsPbCodeGenerator.
|
|
4688
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4689
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4690
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4691
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4692
|
+
* valid.
|
|
4693
|
+
* @extends {jspb.Message}
|
|
4694
|
+
* @constructor
|
|
4695
|
+
*/
|
|
4696
|
+
proto.zaber.motion.protobufs.ServoTuningRequest = function(opt_data) {
|
|
4697
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
4698
|
+
};
|
|
4699
|
+
goog.inherits(proto.zaber.motion.protobufs.ServoTuningRequest, jspb.Message);
|
|
4700
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4701
|
+
/**
|
|
4702
|
+
* @public
|
|
4703
|
+
* @override
|
|
4704
|
+
*/
|
|
4705
|
+
proto.zaber.motion.protobufs.ServoTuningRequest.displayName = 'proto.zaber.motion.protobufs.ServoTuningRequest';
|
|
4706
|
+
}
|
|
4707
|
+
/**
|
|
4708
|
+
* Generated by JsPbCodeGenerator.
|
|
4709
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4710
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4711
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4712
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4713
|
+
* valid.
|
|
4714
|
+
* @extends {jspb.Message}
|
|
4715
|
+
* @constructor
|
|
4716
|
+
*/
|
|
4717
|
+
proto.zaber.motion.protobufs.ServoTuningParam = function(opt_data) {
|
|
4718
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
4719
|
+
};
|
|
4720
|
+
goog.inherits(proto.zaber.motion.protobufs.ServoTuningParam, jspb.Message);
|
|
4721
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4722
|
+
/**
|
|
4723
|
+
* @public
|
|
4724
|
+
* @override
|
|
4725
|
+
*/
|
|
4726
|
+
proto.zaber.motion.protobufs.ServoTuningParam.displayName = 'proto.zaber.motion.protobufs.ServoTuningParam';
|
|
4727
|
+
}
|
|
4728
|
+
/**
|
|
4729
|
+
* Generated by JsPbCodeGenerator.
|
|
4730
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4731
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4732
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4733
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4734
|
+
* valid.
|
|
4735
|
+
* @extends {jspb.Message}
|
|
4736
|
+
* @constructor
|
|
4737
|
+
*/
|
|
4738
|
+
proto.zaber.motion.protobufs.ParamsetInfo = function(opt_data) {
|
|
4739
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.zaber.motion.protobufs.ParamsetInfo.repeatedFields_, null);
|
|
4740
|
+
};
|
|
4741
|
+
goog.inherits(proto.zaber.motion.protobufs.ParamsetInfo, jspb.Message);
|
|
4742
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4743
|
+
/**
|
|
4744
|
+
* @public
|
|
4745
|
+
* @override
|
|
4746
|
+
*/
|
|
4747
|
+
proto.zaber.motion.protobufs.ParamsetInfo.displayName = 'proto.zaber.motion.protobufs.ParamsetInfo';
|
|
4748
|
+
}
|
|
4749
|
+
/**
|
|
4750
|
+
* Generated by JsPbCodeGenerator.
|
|
4751
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4752
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4753
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4754
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4755
|
+
* valid.
|
|
4756
|
+
* @extends {jspb.Message}
|
|
4757
|
+
* @constructor
|
|
4758
|
+
*/
|
|
4759
|
+
proto.zaber.motion.protobufs.SetServoTuningRequest = function(opt_data) {
|
|
4760
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.zaber.motion.protobufs.SetServoTuningRequest.repeatedFields_, null);
|
|
4761
|
+
};
|
|
4762
|
+
goog.inherits(proto.zaber.motion.protobufs.SetServoTuningRequest, jspb.Message);
|
|
4763
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4764
|
+
/**
|
|
4765
|
+
* @public
|
|
4766
|
+
* @override
|
|
4767
|
+
*/
|
|
4768
|
+
proto.zaber.motion.protobufs.SetServoTuningRequest.displayName = 'proto.zaber.motion.protobufs.SetServoTuningRequest';
|
|
4769
|
+
}
|
|
4770
|
+
/**
|
|
4771
|
+
* Generated by JsPbCodeGenerator.
|
|
4772
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4773
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4774
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4775
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4776
|
+
* valid.
|
|
4777
|
+
* @extends {jspb.Message}
|
|
4778
|
+
* @constructor
|
|
4779
|
+
*/
|
|
4780
|
+
proto.zaber.motion.protobufs.GetStartupParamset = function(opt_data) {
|
|
4781
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
4782
|
+
};
|
|
4783
|
+
goog.inherits(proto.zaber.motion.protobufs.GetStartupParamset, jspb.Message);
|
|
4784
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4785
|
+
/**
|
|
4786
|
+
* @public
|
|
4787
|
+
* @override
|
|
4788
|
+
*/
|
|
4789
|
+
proto.zaber.motion.protobufs.GetStartupParamset.displayName = 'proto.zaber.motion.protobufs.GetStartupParamset';
|
|
4790
|
+
}
|
|
4791
|
+
/**
|
|
4792
|
+
* Generated by JsPbCodeGenerator.
|
|
4793
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4794
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4795
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4796
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4797
|
+
* valid.
|
|
4798
|
+
* @extends {jspb.Message}
|
|
4799
|
+
* @constructor
|
|
4800
|
+
*/
|
|
4801
|
+
proto.zaber.motion.protobufs.StartupParamset = function(opt_data) {
|
|
4802
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
4803
|
+
};
|
|
4804
|
+
goog.inherits(proto.zaber.motion.protobufs.StartupParamset, jspb.Message);
|
|
4805
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4806
|
+
/**
|
|
4807
|
+
* @public
|
|
4808
|
+
* @override
|
|
4809
|
+
*/
|
|
4810
|
+
proto.zaber.motion.protobufs.StartupParamset.displayName = 'proto.zaber.motion.protobufs.StartupParamset';
|
|
4811
|
+
}
|
|
4812
|
+
/**
|
|
4813
|
+
* Generated by JsPbCodeGenerator.
|
|
4814
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4815
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4816
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4817
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4818
|
+
* valid.
|
|
4819
|
+
* @extends {jspb.Message}
|
|
4820
|
+
* @constructor
|
|
4821
|
+
*/
|
|
4822
|
+
proto.zaber.motion.protobufs.LoadParamset = function(opt_data) {
|
|
4823
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
4824
|
+
};
|
|
4825
|
+
goog.inherits(proto.zaber.motion.protobufs.LoadParamset, jspb.Message);
|
|
4826
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4827
|
+
/**
|
|
4828
|
+
* @public
|
|
4829
|
+
* @override
|
|
4830
|
+
*/
|
|
4831
|
+
proto.zaber.motion.protobufs.LoadParamset.displayName = 'proto.zaber.motion.protobufs.LoadParamset';
|
|
4832
|
+
}
|
|
4833
|
+
/**
|
|
4834
|
+
* Generated by JsPbCodeGenerator.
|
|
4835
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4836
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4837
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4838
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4839
|
+
* valid.
|
|
4840
|
+
* @extends {jspb.Message}
|
|
4841
|
+
* @constructor
|
|
4842
|
+
*/
|
|
4843
|
+
proto.zaber.motion.protobufs.SetServoTuningPIDRequest = function(opt_data) {
|
|
4844
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
4845
|
+
};
|
|
4846
|
+
goog.inherits(proto.zaber.motion.protobufs.SetServoTuningPIDRequest, jspb.Message);
|
|
4847
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4848
|
+
/**
|
|
4849
|
+
* @public
|
|
4850
|
+
* @override
|
|
4851
|
+
*/
|
|
4852
|
+
proto.zaber.motion.protobufs.SetServoTuningPIDRequest.displayName = 'proto.zaber.motion.protobufs.SetServoTuningPIDRequest';
|
|
4853
|
+
}
|
|
4854
|
+
/**
|
|
4855
|
+
* Generated by JsPbCodeGenerator.
|
|
4856
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4857
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4858
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4859
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4860
|
+
* valid.
|
|
4861
|
+
* @extends {jspb.Message}
|
|
4862
|
+
* @constructor
|
|
4863
|
+
*/
|
|
4864
|
+
proto.zaber.motion.protobufs.PidTuning = function(opt_data) {
|
|
4865
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
4866
|
+
};
|
|
4867
|
+
goog.inherits(proto.zaber.motion.protobufs.PidTuning, jspb.Message);
|
|
4868
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4869
|
+
/**
|
|
4870
|
+
* @public
|
|
4871
|
+
* @override
|
|
4872
|
+
*/
|
|
4873
|
+
proto.zaber.motion.protobufs.PidTuning.displayName = 'proto.zaber.motion.protobufs.PidTuning';
|
|
4874
|
+
}
|
|
4875
|
+
/**
|
|
4876
|
+
* Generated by JsPbCodeGenerator.
|
|
4877
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4878
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4879
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4880
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4881
|
+
* valid.
|
|
4882
|
+
* @extends {jspb.Message}
|
|
4883
|
+
* @constructor
|
|
4884
|
+
*/
|
|
4885
|
+
proto.zaber.motion.protobufs.GetSimpleTuningParamListRequest = function(opt_data) {
|
|
4886
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
4887
|
+
};
|
|
4888
|
+
goog.inherits(proto.zaber.motion.protobufs.GetSimpleTuningParamListRequest, jspb.Message);
|
|
4889
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4890
|
+
/**
|
|
4891
|
+
* @public
|
|
4892
|
+
* @override
|
|
4893
|
+
*/
|
|
4894
|
+
proto.zaber.motion.protobufs.GetSimpleTuningParamListRequest.displayName = 'proto.zaber.motion.protobufs.GetSimpleTuningParamListRequest';
|
|
4895
|
+
}
|
|
4896
|
+
/**
|
|
4897
|
+
* Generated by JsPbCodeGenerator.
|
|
4898
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4899
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4900
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4901
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4902
|
+
* valid.
|
|
4903
|
+
* @extends {jspb.Message}
|
|
4904
|
+
* @constructor
|
|
4905
|
+
*/
|
|
4906
|
+
proto.zaber.motion.protobufs.SetSimpleTuning = function(opt_data) {
|
|
4907
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.zaber.motion.protobufs.SetSimpleTuning.repeatedFields_, null);
|
|
4908
|
+
};
|
|
4909
|
+
goog.inherits(proto.zaber.motion.protobufs.SetSimpleTuning, jspb.Message);
|
|
4910
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4911
|
+
/**
|
|
4912
|
+
* @public
|
|
4913
|
+
* @override
|
|
4914
|
+
*/
|
|
4915
|
+
proto.zaber.motion.protobufs.SetSimpleTuning.displayName = 'proto.zaber.motion.protobufs.SetSimpleTuning';
|
|
4916
|
+
}
|
|
4917
|
+
/**
|
|
4918
|
+
* Generated by JsPbCodeGenerator.
|
|
4919
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4920
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4921
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4922
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4923
|
+
* valid.
|
|
4924
|
+
* @extends {jspb.Message}
|
|
4925
|
+
* @constructor
|
|
4926
|
+
*/
|
|
4927
|
+
proto.zaber.motion.protobufs.SimpleTuningParam = function(opt_data) {
|
|
4928
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
4929
|
+
};
|
|
4930
|
+
goog.inherits(proto.zaber.motion.protobufs.SimpleTuningParam, jspb.Message);
|
|
4931
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4932
|
+
/**
|
|
4933
|
+
* @public
|
|
4934
|
+
* @override
|
|
4935
|
+
*/
|
|
4936
|
+
proto.zaber.motion.protobufs.SimpleTuningParam.displayName = 'proto.zaber.motion.protobufs.SimpleTuningParam';
|
|
4937
|
+
}
|
|
4938
|
+
/**
|
|
4939
|
+
* Generated by JsPbCodeGenerator.
|
|
4940
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4941
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4942
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4943
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4944
|
+
* valid.
|
|
4945
|
+
* @extends {jspb.Message}
|
|
4946
|
+
* @constructor
|
|
4947
|
+
*/
|
|
4948
|
+
proto.zaber.motion.protobufs.SimpleTuningParamList = function(opt_data) {
|
|
4949
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.zaber.motion.protobufs.SimpleTuningParamList.repeatedFields_, null);
|
|
4950
|
+
};
|
|
4951
|
+
goog.inherits(proto.zaber.motion.protobufs.SimpleTuningParamList, jspb.Message);
|
|
4952
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4953
|
+
/**
|
|
4954
|
+
* @public
|
|
4955
|
+
* @override
|
|
4956
|
+
*/
|
|
4957
|
+
proto.zaber.motion.protobufs.SimpleTuningParamList.displayName = 'proto.zaber.motion.protobufs.SimpleTuningParamList';
|
|
4958
|
+
}
|
|
4651
4959
|
/**
|
|
4652
4960
|
* Generated by JsPbCodeGenerator.
|
|
4653
4961
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -8718,7 +9026,7 @@ proto.zaber.motion.protobufs.BinaryCommandFailedExceptionData.prototype.setRespo
|
|
|
8718
9026
|
* @private {!Array<number>}
|
|
8719
9027
|
* @const
|
|
8720
9028
|
*/
|
|
8721
|
-
proto.zaber.motion.protobufs.SetPeripheralStateExceptionData.repeatedFields_ = [2];
|
|
9029
|
+
proto.zaber.motion.protobufs.SetPeripheralStateExceptionData.repeatedFields_ = [2,4];
|
|
8722
9030
|
|
|
8723
9031
|
|
|
8724
9032
|
|
|
@@ -8753,7 +9061,8 @@ proto.zaber.motion.protobufs.SetPeripheralStateExceptionData.toObject = function
|
|
|
8753
9061
|
var f, obj = {
|
|
8754
9062
|
axisNumber: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
8755
9063
|
settingsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
|
|
8756
|
-
servoTuning: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
9064
|
+
servoTuning: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
9065
|
+
storageList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f
|
|
8757
9066
|
};
|
|
8758
9067
|
|
|
8759
9068
|
if (includeInstance) {
|
|
@@ -8802,6 +9111,10 @@ proto.zaber.motion.protobufs.SetPeripheralStateExceptionData.deserializeBinaryFr
|
|
|
8802
9111
|
var value = /** @type {string} */ (reader.readString());
|
|
8803
9112
|
msg.setServoTuning(value);
|
|
8804
9113
|
break;
|
|
9114
|
+
case 4:
|
|
9115
|
+
var value = /** @type {string} */ (reader.readString());
|
|
9116
|
+
msg.addStorage(value);
|
|
9117
|
+
break;
|
|
8805
9118
|
default:
|
|
8806
9119
|
reader.skipField();
|
|
8807
9120
|
break;
|
|
@@ -8852,6 +9165,13 @@ proto.zaber.motion.protobufs.SetPeripheralStateExceptionData.serializeBinaryToWr
|
|
|
8852
9165
|
f
|
|
8853
9166
|
);
|
|
8854
9167
|
}
|
|
9168
|
+
f = message.getStorageList();
|
|
9169
|
+
if (f.length > 0) {
|
|
9170
|
+
writer.writeRepeatedString(
|
|
9171
|
+
4,
|
|
9172
|
+
f
|
|
9173
|
+
);
|
|
9174
|
+
}
|
|
8855
9175
|
};
|
|
8856
9176
|
|
|
8857
9177
|
|
|
@@ -8928,13 +9248,50 @@ proto.zaber.motion.protobufs.SetPeripheralStateExceptionData.prototype.setServoT
|
|
|
8928
9248
|
};
|
|
8929
9249
|
|
|
8930
9250
|
|
|
9251
|
+
/**
|
|
9252
|
+
* repeated string storage = 4;
|
|
9253
|
+
* @return {!Array<string>}
|
|
9254
|
+
*/
|
|
9255
|
+
proto.zaber.motion.protobufs.SetPeripheralStateExceptionData.prototype.getStorageList = function() {
|
|
9256
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
|
|
9257
|
+
};
|
|
9258
|
+
|
|
9259
|
+
|
|
9260
|
+
/**
|
|
9261
|
+
* @param {!Array<string>} value
|
|
9262
|
+
* @return {!proto.zaber.motion.protobufs.SetPeripheralStateExceptionData} returns this
|
|
9263
|
+
*/
|
|
9264
|
+
proto.zaber.motion.protobufs.SetPeripheralStateExceptionData.prototype.setStorageList = function(value) {
|
|
9265
|
+
return jspb.Message.setField(this, 4, value || []);
|
|
9266
|
+
};
|
|
9267
|
+
|
|
9268
|
+
|
|
9269
|
+
/**
|
|
9270
|
+
* @param {string} value
|
|
9271
|
+
* @param {number=} opt_index
|
|
9272
|
+
* @return {!proto.zaber.motion.protobufs.SetPeripheralStateExceptionData} returns this
|
|
9273
|
+
*/
|
|
9274
|
+
proto.zaber.motion.protobufs.SetPeripheralStateExceptionData.prototype.addStorage = function(value, opt_index) {
|
|
9275
|
+
return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
|
|
9276
|
+
};
|
|
9277
|
+
|
|
9278
|
+
|
|
9279
|
+
/**
|
|
9280
|
+
* Clears the list making it empty but non-null.
|
|
9281
|
+
* @return {!proto.zaber.motion.protobufs.SetPeripheralStateExceptionData} returns this
|
|
9282
|
+
*/
|
|
9283
|
+
proto.zaber.motion.protobufs.SetPeripheralStateExceptionData.prototype.clearStorageList = function() {
|
|
9284
|
+
return this.setStorageList([]);
|
|
9285
|
+
};
|
|
9286
|
+
|
|
9287
|
+
|
|
8931
9288
|
|
|
8932
9289
|
/**
|
|
8933
9290
|
* List of repeated fields within this message type.
|
|
8934
9291
|
* @private {!Array<number>}
|
|
8935
9292
|
* @const
|
|
8936
9293
|
*/
|
|
8937
|
-
proto.zaber.motion.protobufs.SetDeviceStateExceptionData.repeatedFields_ = [2,3,4,5];
|
|
9294
|
+
proto.zaber.motion.protobufs.SetDeviceStateExceptionData.repeatedFields_ = [2,3,4,5,8];
|
|
8938
9295
|
|
|
8939
9296
|
|
|
8940
9297
|
|
|
@@ -8973,7 +9330,8 @@ proto.zaber.motion.protobufs.SetDeviceStateExceptionData.toObject = function(inc
|
|
|
8973
9330
|
streamBuffersList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
|
|
8974
9331
|
triggersList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f,
|
|
8975
9332
|
ipConfig: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
8976
|
-
servoTuning: jspb.Message.getFieldWithDefault(msg, 7, "")
|
|
9333
|
+
servoTuning: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
9334
|
+
storageList: (f = jspb.Message.getRepeatedField(msg, 8)) == null ? undefined : f
|
|
8977
9335
|
};
|
|
8978
9336
|
|
|
8979
9337
|
if (includeInstance) {
|
|
@@ -9035,6 +9393,10 @@ proto.zaber.motion.protobufs.SetDeviceStateExceptionData.deserializeBinaryFromRe
|
|
|
9035
9393
|
var value = /** @type {string} */ (reader.readString());
|
|
9036
9394
|
msg.setServoTuning(value);
|
|
9037
9395
|
break;
|
|
9396
|
+
case 8:
|
|
9397
|
+
var value = /** @type {string} */ (reader.readString());
|
|
9398
|
+
msg.addStorage(value);
|
|
9399
|
+
break;
|
|
9038
9400
|
default:
|
|
9039
9401
|
reader.skipField();
|
|
9040
9402
|
break;
|
|
@@ -9107,6 +9469,13 @@ proto.zaber.motion.protobufs.SetDeviceStateExceptionData.serializeBinaryToWriter
|
|
|
9107
9469
|
f
|
|
9108
9470
|
);
|
|
9109
9471
|
}
|
|
9472
|
+
f = message.getStorageList();
|
|
9473
|
+
if (f.length > 0) {
|
|
9474
|
+
writer.writeRepeatedString(
|
|
9475
|
+
8,
|
|
9476
|
+
f
|
|
9477
|
+
);
|
|
9478
|
+
}
|
|
9110
9479
|
};
|
|
9111
9480
|
|
|
9112
9481
|
|
|
@@ -9295,6 +9664,43 @@ proto.zaber.motion.protobufs.SetDeviceStateExceptionData.prototype.setServoTunin
|
|
|
9295
9664
|
};
|
|
9296
9665
|
|
|
9297
9666
|
|
|
9667
|
+
/**
|
|
9668
|
+
* repeated string storage = 8;
|
|
9669
|
+
* @return {!Array<string>}
|
|
9670
|
+
*/
|
|
9671
|
+
proto.zaber.motion.protobufs.SetDeviceStateExceptionData.prototype.getStorageList = function() {
|
|
9672
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 8));
|
|
9673
|
+
};
|
|
9674
|
+
|
|
9675
|
+
|
|
9676
|
+
/**
|
|
9677
|
+
* @param {!Array<string>} value
|
|
9678
|
+
* @return {!proto.zaber.motion.protobufs.SetDeviceStateExceptionData} returns this
|
|
9679
|
+
*/
|
|
9680
|
+
proto.zaber.motion.protobufs.SetDeviceStateExceptionData.prototype.setStorageList = function(value) {
|
|
9681
|
+
return jspb.Message.setField(this, 8, value || []);
|
|
9682
|
+
};
|
|
9683
|
+
|
|
9684
|
+
|
|
9685
|
+
/**
|
|
9686
|
+
* @param {string} value
|
|
9687
|
+
* @param {number=} opt_index
|
|
9688
|
+
* @return {!proto.zaber.motion.protobufs.SetDeviceStateExceptionData} returns this
|
|
9689
|
+
*/
|
|
9690
|
+
proto.zaber.motion.protobufs.SetDeviceStateExceptionData.prototype.addStorage = function(value, opt_index) {
|
|
9691
|
+
return jspb.Message.addToRepeatedField(this, 8, value, opt_index);
|
|
9692
|
+
};
|
|
9693
|
+
|
|
9694
|
+
|
|
9695
|
+
/**
|
|
9696
|
+
* Clears the list making it empty but non-null.
|
|
9697
|
+
* @return {!proto.zaber.motion.protobufs.SetDeviceStateExceptionData} returns this
|
|
9698
|
+
*/
|
|
9699
|
+
proto.zaber.motion.protobufs.SetDeviceStateExceptionData.prototype.clearStorageList = function() {
|
|
9700
|
+
return this.setStorageList([]);
|
|
9701
|
+
};
|
|
9702
|
+
|
|
9703
|
+
|
|
9298
9704
|
|
|
9299
9705
|
|
|
9300
9706
|
|
|
@@ -10060,6 +10466,136 @@ proto.zaber.motion.protobufs.ToolsListSerialPortsResponse.prototype.clearPortsLi
|
|
|
10060
10466
|
|
|
10061
10467
|
|
|
10062
10468
|
|
|
10469
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
10470
|
+
/**
|
|
10471
|
+
* Creates an object representation of this proto.
|
|
10472
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
10473
|
+
* Optional fields that are not set will be set to undefined.
|
|
10474
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
10475
|
+
* For the list of reserved names please see:
|
|
10476
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
10477
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
10478
|
+
* JSPB instance for transitional soy proto support:
|
|
10479
|
+
* http://goto/soy-param-migration
|
|
10480
|
+
* @return {!Object}
|
|
10481
|
+
*/
|
|
10482
|
+
proto.zaber.motion.protobufs.GetMessageRouterPipeResponse.prototype.toObject = function(opt_includeInstance) {
|
|
10483
|
+
return proto.zaber.motion.protobufs.GetMessageRouterPipeResponse.toObject(opt_includeInstance, this);
|
|
10484
|
+
};
|
|
10485
|
+
|
|
10486
|
+
|
|
10487
|
+
/**
|
|
10488
|
+
* Static version of the {@see toObject} method.
|
|
10489
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
10490
|
+
* the JSPB instance for transitional soy proto support:
|
|
10491
|
+
* http://goto/soy-param-migration
|
|
10492
|
+
* @param {!proto.zaber.motion.protobufs.GetMessageRouterPipeResponse} msg The msg instance to transform.
|
|
10493
|
+
* @return {!Object}
|
|
10494
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
10495
|
+
*/
|
|
10496
|
+
proto.zaber.motion.protobufs.GetMessageRouterPipeResponse.toObject = function(includeInstance, msg) {
|
|
10497
|
+
var f, obj = {
|
|
10498
|
+
value: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
10499
|
+
};
|
|
10500
|
+
|
|
10501
|
+
if (includeInstance) {
|
|
10502
|
+
obj.$jspbMessageInstance = msg;
|
|
10503
|
+
}
|
|
10504
|
+
return obj;
|
|
10505
|
+
};
|
|
10506
|
+
}
|
|
10507
|
+
|
|
10508
|
+
|
|
10509
|
+
/**
|
|
10510
|
+
* Deserializes binary data (in protobuf wire format).
|
|
10511
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
10512
|
+
* @return {!proto.zaber.motion.protobufs.GetMessageRouterPipeResponse}
|
|
10513
|
+
*/
|
|
10514
|
+
proto.zaber.motion.protobufs.GetMessageRouterPipeResponse.deserializeBinary = function(bytes) {
|
|
10515
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
10516
|
+
var msg = new proto.zaber.motion.protobufs.GetMessageRouterPipeResponse;
|
|
10517
|
+
return proto.zaber.motion.protobufs.GetMessageRouterPipeResponse.deserializeBinaryFromReader(msg, reader);
|
|
10518
|
+
};
|
|
10519
|
+
|
|
10520
|
+
|
|
10521
|
+
/**
|
|
10522
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
10523
|
+
* given reader into the given message object.
|
|
10524
|
+
* @param {!proto.zaber.motion.protobufs.GetMessageRouterPipeResponse} msg The message object to deserialize into.
|
|
10525
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
10526
|
+
* @return {!proto.zaber.motion.protobufs.GetMessageRouterPipeResponse}
|
|
10527
|
+
*/
|
|
10528
|
+
proto.zaber.motion.protobufs.GetMessageRouterPipeResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
10529
|
+
while (reader.nextField()) {
|
|
10530
|
+
if (reader.isEndGroup()) {
|
|
10531
|
+
break;
|
|
10532
|
+
}
|
|
10533
|
+
var field = reader.getFieldNumber();
|
|
10534
|
+
switch (field) {
|
|
10535
|
+
case 1:
|
|
10536
|
+
var value = /** @type {string} */ (reader.readString());
|
|
10537
|
+
msg.setValue(value);
|
|
10538
|
+
break;
|
|
10539
|
+
default:
|
|
10540
|
+
reader.skipField();
|
|
10541
|
+
break;
|
|
10542
|
+
}
|
|
10543
|
+
}
|
|
10544
|
+
return msg;
|
|
10545
|
+
};
|
|
10546
|
+
|
|
10547
|
+
|
|
10548
|
+
/**
|
|
10549
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
10550
|
+
* @return {!Uint8Array}
|
|
10551
|
+
*/
|
|
10552
|
+
proto.zaber.motion.protobufs.GetMessageRouterPipeResponse.prototype.serializeBinary = function() {
|
|
10553
|
+
var writer = new jspb.BinaryWriter();
|
|
10554
|
+
proto.zaber.motion.protobufs.GetMessageRouterPipeResponse.serializeBinaryToWriter(this, writer);
|
|
10555
|
+
return writer.getResultBuffer();
|
|
10556
|
+
};
|
|
10557
|
+
|
|
10558
|
+
|
|
10559
|
+
/**
|
|
10560
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
10561
|
+
* format), writing to the given BinaryWriter.
|
|
10562
|
+
* @param {!proto.zaber.motion.protobufs.GetMessageRouterPipeResponse} message
|
|
10563
|
+
* @param {!jspb.BinaryWriter} writer
|
|
10564
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
10565
|
+
*/
|
|
10566
|
+
proto.zaber.motion.protobufs.GetMessageRouterPipeResponse.serializeBinaryToWriter = function(message, writer) {
|
|
10567
|
+
var f = undefined;
|
|
10568
|
+
f = message.getValue();
|
|
10569
|
+
if (f.length > 0) {
|
|
10570
|
+
writer.writeString(
|
|
10571
|
+
1,
|
|
10572
|
+
f
|
|
10573
|
+
);
|
|
10574
|
+
}
|
|
10575
|
+
};
|
|
10576
|
+
|
|
10577
|
+
|
|
10578
|
+
/**
|
|
10579
|
+
* optional string value = 1;
|
|
10580
|
+
* @return {string}
|
|
10581
|
+
*/
|
|
10582
|
+
proto.zaber.motion.protobufs.GetMessageRouterPipeResponse.prototype.getValue = function() {
|
|
10583
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
10584
|
+
};
|
|
10585
|
+
|
|
10586
|
+
|
|
10587
|
+
/**
|
|
10588
|
+
* @param {string} value
|
|
10589
|
+
* @return {!proto.zaber.motion.protobufs.GetMessageRouterPipeResponse} returns this
|
|
10590
|
+
*/
|
|
10591
|
+
proto.zaber.motion.protobufs.GetMessageRouterPipeResponse.prototype.setValue = function(value) {
|
|
10592
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
10593
|
+
};
|
|
10594
|
+
|
|
10595
|
+
|
|
10596
|
+
|
|
10597
|
+
|
|
10598
|
+
|
|
10063
10599
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
10064
10600
|
/**
|
|
10065
10601
|
* Creates an object representation of this proto.
|
|
@@ -45917,6 +46453,2956 @@ proto.zaber.motion.protobufs.SetStateRequest.prototype.setDeviceOnly = function(
|
|
|
45917
46453
|
|
|
45918
46454
|
|
|
45919
46455
|
|
|
46456
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
46457
|
+
/**
|
|
46458
|
+
* Creates an object representation of this proto.
|
|
46459
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
46460
|
+
* Optional fields that are not set will be set to undefined.
|
|
46461
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
46462
|
+
* For the list of reserved names please see:
|
|
46463
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
46464
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
46465
|
+
* JSPB instance for transitional soy proto support:
|
|
46466
|
+
* http://goto/soy-param-migration
|
|
46467
|
+
* @return {!Object}
|
|
46468
|
+
*/
|
|
46469
|
+
proto.zaber.motion.protobufs.ServoTuningRequest.prototype.toObject = function(opt_includeInstance) {
|
|
46470
|
+
return proto.zaber.motion.protobufs.ServoTuningRequest.toObject(opt_includeInstance, this);
|
|
46471
|
+
};
|
|
46472
|
+
|
|
46473
|
+
|
|
46474
|
+
/**
|
|
46475
|
+
* Static version of the {@see toObject} method.
|
|
46476
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
46477
|
+
* the JSPB instance for transitional soy proto support:
|
|
46478
|
+
* http://goto/soy-param-migration
|
|
46479
|
+
* @param {!proto.zaber.motion.protobufs.ServoTuningRequest} msg The msg instance to transform.
|
|
46480
|
+
* @return {!Object}
|
|
46481
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
46482
|
+
*/
|
|
46483
|
+
proto.zaber.motion.protobufs.ServoTuningRequest.toObject = function(includeInstance, msg) {
|
|
46484
|
+
var f, obj = {
|
|
46485
|
+
interfaceId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
46486
|
+
device: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
46487
|
+
axis: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
46488
|
+
paramset: jspb.Message.getFieldWithDefault(msg, 4, 0)
|
|
46489
|
+
};
|
|
46490
|
+
|
|
46491
|
+
if (includeInstance) {
|
|
46492
|
+
obj.$jspbMessageInstance = msg;
|
|
46493
|
+
}
|
|
46494
|
+
return obj;
|
|
46495
|
+
};
|
|
46496
|
+
}
|
|
46497
|
+
|
|
46498
|
+
|
|
46499
|
+
/**
|
|
46500
|
+
* Deserializes binary data (in protobuf wire format).
|
|
46501
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
46502
|
+
* @return {!proto.zaber.motion.protobufs.ServoTuningRequest}
|
|
46503
|
+
*/
|
|
46504
|
+
proto.zaber.motion.protobufs.ServoTuningRequest.deserializeBinary = function(bytes) {
|
|
46505
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
46506
|
+
var msg = new proto.zaber.motion.protobufs.ServoTuningRequest;
|
|
46507
|
+
return proto.zaber.motion.protobufs.ServoTuningRequest.deserializeBinaryFromReader(msg, reader);
|
|
46508
|
+
};
|
|
46509
|
+
|
|
46510
|
+
|
|
46511
|
+
/**
|
|
46512
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
46513
|
+
* given reader into the given message object.
|
|
46514
|
+
* @param {!proto.zaber.motion.protobufs.ServoTuningRequest} msg The message object to deserialize into.
|
|
46515
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
46516
|
+
* @return {!proto.zaber.motion.protobufs.ServoTuningRequest}
|
|
46517
|
+
*/
|
|
46518
|
+
proto.zaber.motion.protobufs.ServoTuningRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
46519
|
+
while (reader.nextField()) {
|
|
46520
|
+
if (reader.isEndGroup()) {
|
|
46521
|
+
break;
|
|
46522
|
+
}
|
|
46523
|
+
var field = reader.getFieldNumber();
|
|
46524
|
+
switch (field) {
|
|
46525
|
+
case 1:
|
|
46526
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
46527
|
+
msg.setInterfaceId(value);
|
|
46528
|
+
break;
|
|
46529
|
+
case 2:
|
|
46530
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
46531
|
+
msg.setDevice(value);
|
|
46532
|
+
break;
|
|
46533
|
+
case 3:
|
|
46534
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
46535
|
+
msg.setAxis(value);
|
|
46536
|
+
break;
|
|
46537
|
+
case 4:
|
|
46538
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
46539
|
+
msg.setParamset(value);
|
|
46540
|
+
break;
|
|
46541
|
+
default:
|
|
46542
|
+
reader.skipField();
|
|
46543
|
+
break;
|
|
46544
|
+
}
|
|
46545
|
+
}
|
|
46546
|
+
return msg;
|
|
46547
|
+
};
|
|
46548
|
+
|
|
46549
|
+
|
|
46550
|
+
/**
|
|
46551
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
46552
|
+
* @return {!Uint8Array}
|
|
46553
|
+
*/
|
|
46554
|
+
proto.zaber.motion.protobufs.ServoTuningRequest.prototype.serializeBinary = function() {
|
|
46555
|
+
var writer = new jspb.BinaryWriter();
|
|
46556
|
+
proto.zaber.motion.protobufs.ServoTuningRequest.serializeBinaryToWriter(this, writer);
|
|
46557
|
+
return writer.getResultBuffer();
|
|
46558
|
+
};
|
|
46559
|
+
|
|
46560
|
+
|
|
46561
|
+
/**
|
|
46562
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
46563
|
+
* format), writing to the given BinaryWriter.
|
|
46564
|
+
* @param {!proto.zaber.motion.protobufs.ServoTuningRequest} message
|
|
46565
|
+
* @param {!jspb.BinaryWriter} writer
|
|
46566
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
46567
|
+
*/
|
|
46568
|
+
proto.zaber.motion.protobufs.ServoTuningRequest.serializeBinaryToWriter = function(message, writer) {
|
|
46569
|
+
var f = undefined;
|
|
46570
|
+
f = message.getInterfaceId();
|
|
46571
|
+
if (f !== 0) {
|
|
46572
|
+
writer.writeInt32(
|
|
46573
|
+
1,
|
|
46574
|
+
f
|
|
46575
|
+
);
|
|
46576
|
+
}
|
|
46577
|
+
f = message.getDevice();
|
|
46578
|
+
if (f !== 0) {
|
|
46579
|
+
writer.writeInt32(
|
|
46580
|
+
2,
|
|
46581
|
+
f
|
|
46582
|
+
);
|
|
46583
|
+
}
|
|
46584
|
+
f = message.getAxis();
|
|
46585
|
+
if (f !== 0) {
|
|
46586
|
+
writer.writeInt32(
|
|
46587
|
+
3,
|
|
46588
|
+
f
|
|
46589
|
+
);
|
|
46590
|
+
}
|
|
46591
|
+
f = message.getParamset();
|
|
46592
|
+
if (f !== 0) {
|
|
46593
|
+
writer.writeInt32(
|
|
46594
|
+
4,
|
|
46595
|
+
f
|
|
46596
|
+
);
|
|
46597
|
+
}
|
|
46598
|
+
};
|
|
46599
|
+
|
|
46600
|
+
|
|
46601
|
+
/**
|
|
46602
|
+
* optional int32 interface_id = 1;
|
|
46603
|
+
* @return {number}
|
|
46604
|
+
*/
|
|
46605
|
+
proto.zaber.motion.protobufs.ServoTuningRequest.prototype.getInterfaceId = function() {
|
|
46606
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
46607
|
+
};
|
|
46608
|
+
|
|
46609
|
+
|
|
46610
|
+
/**
|
|
46611
|
+
* @param {number} value
|
|
46612
|
+
* @return {!proto.zaber.motion.protobufs.ServoTuningRequest} returns this
|
|
46613
|
+
*/
|
|
46614
|
+
proto.zaber.motion.protobufs.ServoTuningRequest.prototype.setInterfaceId = function(value) {
|
|
46615
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
46616
|
+
};
|
|
46617
|
+
|
|
46618
|
+
|
|
46619
|
+
/**
|
|
46620
|
+
* optional int32 device = 2;
|
|
46621
|
+
* @return {number}
|
|
46622
|
+
*/
|
|
46623
|
+
proto.zaber.motion.protobufs.ServoTuningRequest.prototype.getDevice = function() {
|
|
46624
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
46625
|
+
};
|
|
46626
|
+
|
|
46627
|
+
|
|
46628
|
+
/**
|
|
46629
|
+
* @param {number} value
|
|
46630
|
+
* @return {!proto.zaber.motion.protobufs.ServoTuningRequest} returns this
|
|
46631
|
+
*/
|
|
46632
|
+
proto.zaber.motion.protobufs.ServoTuningRequest.prototype.setDevice = function(value) {
|
|
46633
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
46634
|
+
};
|
|
46635
|
+
|
|
46636
|
+
|
|
46637
|
+
/**
|
|
46638
|
+
* optional int32 axis = 3;
|
|
46639
|
+
* @return {number}
|
|
46640
|
+
*/
|
|
46641
|
+
proto.zaber.motion.protobufs.ServoTuningRequest.prototype.getAxis = function() {
|
|
46642
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
46643
|
+
};
|
|
46644
|
+
|
|
46645
|
+
|
|
46646
|
+
/**
|
|
46647
|
+
* @param {number} value
|
|
46648
|
+
* @return {!proto.zaber.motion.protobufs.ServoTuningRequest} returns this
|
|
46649
|
+
*/
|
|
46650
|
+
proto.zaber.motion.protobufs.ServoTuningRequest.prototype.setAxis = function(value) {
|
|
46651
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
46652
|
+
};
|
|
46653
|
+
|
|
46654
|
+
|
|
46655
|
+
/**
|
|
46656
|
+
* optional int32 paramset = 4;
|
|
46657
|
+
* @return {number}
|
|
46658
|
+
*/
|
|
46659
|
+
proto.zaber.motion.protobufs.ServoTuningRequest.prototype.getParamset = function() {
|
|
46660
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
46661
|
+
};
|
|
46662
|
+
|
|
46663
|
+
|
|
46664
|
+
/**
|
|
46665
|
+
* @param {number} value
|
|
46666
|
+
* @return {!proto.zaber.motion.protobufs.ServoTuningRequest} returns this
|
|
46667
|
+
*/
|
|
46668
|
+
proto.zaber.motion.protobufs.ServoTuningRequest.prototype.setParamset = function(value) {
|
|
46669
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
46670
|
+
};
|
|
46671
|
+
|
|
46672
|
+
|
|
46673
|
+
|
|
46674
|
+
|
|
46675
|
+
|
|
46676
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
46677
|
+
/**
|
|
46678
|
+
* Creates an object representation of this proto.
|
|
46679
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
46680
|
+
* Optional fields that are not set will be set to undefined.
|
|
46681
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
46682
|
+
* For the list of reserved names please see:
|
|
46683
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
46684
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
46685
|
+
* JSPB instance for transitional soy proto support:
|
|
46686
|
+
* http://goto/soy-param-migration
|
|
46687
|
+
* @return {!Object}
|
|
46688
|
+
*/
|
|
46689
|
+
proto.zaber.motion.protobufs.ServoTuningParam.prototype.toObject = function(opt_includeInstance) {
|
|
46690
|
+
return proto.zaber.motion.protobufs.ServoTuningParam.toObject(opt_includeInstance, this);
|
|
46691
|
+
};
|
|
46692
|
+
|
|
46693
|
+
|
|
46694
|
+
/**
|
|
46695
|
+
* Static version of the {@see toObject} method.
|
|
46696
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
46697
|
+
* the JSPB instance for transitional soy proto support:
|
|
46698
|
+
* http://goto/soy-param-migration
|
|
46699
|
+
* @param {!proto.zaber.motion.protobufs.ServoTuningParam} msg The msg instance to transform.
|
|
46700
|
+
* @return {!Object}
|
|
46701
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
46702
|
+
*/
|
|
46703
|
+
proto.zaber.motion.protobufs.ServoTuningParam.toObject = function(includeInstance, msg) {
|
|
46704
|
+
var f, obj = {
|
|
46705
|
+
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
46706
|
+
value: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0)
|
|
46707
|
+
};
|
|
46708
|
+
|
|
46709
|
+
if (includeInstance) {
|
|
46710
|
+
obj.$jspbMessageInstance = msg;
|
|
46711
|
+
}
|
|
46712
|
+
return obj;
|
|
46713
|
+
};
|
|
46714
|
+
}
|
|
46715
|
+
|
|
46716
|
+
|
|
46717
|
+
/**
|
|
46718
|
+
* Deserializes binary data (in protobuf wire format).
|
|
46719
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
46720
|
+
* @return {!proto.zaber.motion.protobufs.ServoTuningParam}
|
|
46721
|
+
*/
|
|
46722
|
+
proto.zaber.motion.protobufs.ServoTuningParam.deserializeBinary = function(bytes) {
|
|
46723
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
46724
|
+
var msg = new proto.zaber.motion.protobufs.ServoTuningParam;
|
|
46725
|
+
return proto.zaber.motion.protobufs.ServoTuningParam.deserializeBinaryFromReader(msg, reader);
|
|
46726
|
+
};
|
|
46727
|
+
|
|
46728
|
+
|
|
46729
|
+
/**
|
|
46730
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
46731
|
+
* given reader into the given message object.
|
|
46732
|
+
* @param {!proto.zaber.motion.protobufs.ServoTuningParam} msg The message object to deserialize into.
|
|
46733
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
46734
|
+
* @return {!proto.zaber.motion.protobufs.ServoTuningParam}
|
|
46735
|
+
*/
|
|
46736
|
+
proto.zaber.motion.protobufs.ServoTuningParam.deserializeBinaryFromReader = function(msg, reader) {
|
|
46737
|
+
while (reader.nextField()) {
|
|
46738
|
+
if (reader.isEndGroup()) {
|
|
46739
|
+
break;
|
|
46740
|
+
}
|
|
46741
|
+
var field = reader.getFieldNumber();
|
|
46742
|
+
switch (field) {
|
|
46743
|
+
case 1:
|
|
46744
|
+
var value = /** @type {string} */ (reader.readString());
|
|
46745
|
+
msg.setName(value);
|
|
46746
|
+
break;
|
|
46747
|
+
case 2:
|
|
46748
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
46749
|
+
msg.setValue(value);
|
|
46750
|
+
break;
|
|
46751
|
+
default:
|
|
46752
|
+
reader.skipField();
|
|
46753
|
+
break;
|
|
46754
|
+
}
|
|
46755
|
+
}
|
|
46756
|
+
return msg;
|
|
46757
|
+
};
|
|
46758
|
+
|
|
46759
|
+
|
|
46760
|
+
/**
|
|
46761
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
46762
|
+
* @return {!Uint8Array}
|
|
46763
|
+
*/
|
|
46764
|
+
proto.zaber.motion.protobufs.ServoTuningParam.prototype.serializeBinary = function() {
|
|
46765
|
+
var writer = new jspb.BinaryWriter();
|
|
46766
|
+
proto.zaber.motion.protobufs.ServoTuningParam.serializeBinaryToWriter(this, writer);
|
|
46767
|
+
return writer.getResultBuffer();
|
|
46768
|
+
};
|
|
46769
|
+
|
|
46770
|
+
|
|
46771
|
+
/**
|
|
46772
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
46773
|
+
* format), writing to the given BinaryWriter.
|
|
46774
|
+
* @param {!proto.zaber.motion.protobufs.ServoTuningParam} message
|
|
46775
|
+
* @param {!jspb.BinaryWriter} writer
|
|
46776
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
46777
|
+
*/
|
|
46778
|
+
proto.zaber.motion.protobufs.ServoTuningParam.serializeBinaryToWriter = function(message, writer) {
|
|
46779
|
+
var f = undefined;
|
|
46780
|
+
f = message.getName();
|
|
46781
|
+
if (f.length > 0) {
|
|
46782
|
+
writer.writeString(
|
|
46783
|
+
1,
|
|
46784
|
+
f
|
|
46785
|
+
);
|
|
46786
|
+
}
|
|
46787
|
+
f = message.getValue();
|
|
46788
|
+
if (f !== 0.0) {
|
|
46789
|
+
writer.writeDouble(
|
|
46790
|
+
2,
|
|
46791
|
+
f
|
|
46792
|
+
);
|
|
46793
|
+
}
|
|
46794
|
+
};
|
|
46795
|
+
|
|
46796
|
+
|
|
46797
|
+
/**
|
|
46798
|
+
* optional string name = 1;
|
|
46799
|
+
* @return {string}
|
|
46800
|
+
*/
|
|
46801
|
+
proto.zaber.motion.protobufs.ServoTuningParam.prototype.getName = function() {
|
|
46802
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
46803
|
+
};
|
|
46804
|
+
|
|
46805
|
+
|
|
46806
|
+
/**
|
|
46807
|
+
* @param {string} value
|
|
46808
|
+
* @return {!proto.zaber.motion.protobufs.ServoTuningParam} returns this
|
|
46809
|
+
*/
|
|
46810
|
+
proto.zaber.motion.protobufs.ServoTuningParam.prototype.setName = function(value) {
|
|
46811
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
46812
|
+
};
|
|
46813
|
+
|
|
46814
|
+
|
|
46815
|
+
/**
|
|
46816
|
+
* optional double value = 2;
|
|
46817
|
+
* @return {number}
|
|
46818
|
+
*/
|
|
46819
|
+
proto.zaber.motion.protobufs.ServoTuningParam.prototype.getValue = function() {
|
|
46820
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
|
|
46821
|
+
};
|
|
46822
|
+
|
|
46823
|
+
|
|
46824
|
+
/**
|
|
46825
|
+
* @param {number} value
|
|
46826
|
+
* @return {!proto.zaber.motion.protobufs.ServoTuningParam} returns this
|
|
46827
|
+
*/
|
|
46828
|
+
proto.zaber.motion.protobufs.ServoTuningParam.prototype.setValue = function(value) {
|
|
46829
|
+
return jspb.Message.setProto3FloatField(this, 2, value);
|
|
46830
|
+
};
|
|
46831
|
+
|
|
46832
|
+
|
|
46833
|
+
|
|
46834
|
+
/**
|
|
46835
|
+
* List of repeated fields within this message type.
|
|
46836
|
+
* @private {!Array<number>}
|
|
46837
|
+
* @const
|
|
46838
|
+
*/
|
|
46839
|
+
proto.zaber.motion.protobufs.ParamsetInfo.repeatedFields_ = [2];
|
|
46840
|
+
|
|
46841
|
+
|
|
46842
|
+
|
|
46843
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
46844
|
+
/**
|
|
46845
|
+
* Creates an object representation of this proto.
|
|
46846
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
46847
|
+
* Optional fields that are not set will be set to undefined.
|
|
46848
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
46849
|
+
* For the list of reserved names please see:
|
|
46850
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
46851
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
46852
|
+
* JSPB instance for transitional soy proto support:
|
|
46853
|
+
* http://goto/soy-param-migration
|
|
46854
|
+
* @return {!Object}
|
|
46855
|
+
*/
|
|
46856
|
+
proto.zaber.motion.protobufs.ParamsetInfo.prototype.toObject = function(opt_includeInstance) {
|
|
46857
|
+
return proto.zaber.motion.protobufs.ParamsetInfo.toObject(opt_includeInstance, this);
|
|
46858
|
+
};
|
|
46859
|
+
|
|
46860
|
+
|
|
46861
|
+
/**
|
|
46862
|
+
* Static version of the {@see toObject} method.
|
|
46863
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
46864
|
+
* the JSPB instance for transitional soy proto support:
|
|
46865
|
+
* http://goto/soy-param-migration
|
|
46866
|
+
* @param {!proto.zaber.motion.protobufs.ParamsetInfo} msg The msg instance to transform.
|
|
46867
|
+
* @return {!Object}
|
|
46868
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
46869
|
+
*/
|
|
46870
|
+
proto.zaber.motion.protobufs.ParamsetInfo.toObject = function(includeInstance, msg) {
|
|
46871
|
+
var f, obj = {
|
|
46872
|
+
type: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
46873
|
+
paramsList: jspb.Message.toObjectList(msg.getParamsList(),
|
|
46874
|
+
proto.zaber.motion.protobufs.ServoTuningParam.toObject, includeInstance)
|
|
46875
|
+
};
|
|
46876
|
+
|
|
46877
|
+
if (includeInstance) {
|
|
46878
|
+
obj.$jspbMessageInstance = msg;
|
|
46879
|
+
}
|
|
46880
|
+
return obj;
|
|
46881
|
+
};
|
|
46882
|
+
}
|
|
46883
|
+
|
|
46884
|
+
|
|
46885
|
+
/**
|
|
46886
|
+
* Deserializes binary data (in protobuf wire format).
|
|
46887
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
46888
|
+
* @return {!proto.zaber.motion.protobufs.ParamsetInfo}
|
|
46889
|
+
*/
|
|
46890
|
+
proto.zaber.motion.protobufs.ParamsetInfo.deserializeBinary = function(bytes) {
|
|
46891
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
46892
|
+
var msg = new proto.zaber.motion.protobufs.ParamsetInfo;
|
|
46893
|
+
return proto.zaber.motion.protobufs.ParamsetInfo.deserializeBinaryFromReader(msg, reader);
|
|
46894
|
+
};
|
|
46895
|
+
|
|
46896
|
+
|
|
46897
|
+
/**
|
|
46898
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
46899
|
+
* given reader into the given message object.
|
|
46900
|
+
* @param {!proto.zaber.motion.protobufs.ParamsetInfo} msg The message object to deserialize into.
|
|
46901
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
46902
|
+
* @return {!proto.zaber.motion.protobufs.ParamsetInfo}
|
|
46903
|
+
*/
|
|
46904
|
+
proto.zaber.motion.protobufs.ParamsetInfo.deserializeBinaryFromReader = function(msg, reader) {
|
|
46905
|
+
while (reader.nextField()) {
|
|
46906
|
+
if (reader.isEndGroup()) {
|
|
46907
|
+
break;
|
|
46908
|
+
}
|
|
46909
|
+
var field = reader.getFieldNumber();
|
|
46910
|
+
switch (field) {
|
|
46911
|
+
case 1:
|
|
46912
|
+
var value = /** @type {string} */ (reader.readString());
|
|
46913
|
+
msg.setType(value);
|
|
46914
|
+
break;
|
|
46915
|
+
case 2:
|
|
46916
|
+
var value = new proto.zaber.motion.protobufs.ServoTuningParam;
|
|
46917
|
+
reader.readMessage(value,proto.zaber.motion.protobufs.ServoTuningParam.deserializeBinaryFromReader);
|
|
46918
|
+
msg.addParams(value);
|
|
46919
|
+
break;
|
|
46920
|
+
default:
|
|
46921
|
+
reader.skipField();
|
|
46922
|
+
break;
|
|
46923
|
+
}
|
|
46924
|
+
}
|
|
46925
|
+
return msg;
|
|
46926
|
+
};
|
|
46927
|
+
|
|
46928
|
+
|
|
46929
|
+
/**
|
|
46930
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
46931
|
+
* @return {!Uint8Array}
|
|
46932
|
+
*/
|
|
46933
|
+
proto.zaber.motion.protobufs.ParamsetInfo.prototype.serializeBinary = function() {
|
|
46934
|
+
var writer = new jspb.BinaryWriter();
|
|
46935
|
+
proto.zaber.motion.protobufs.ParamsetInfo.serializeBinaryToWriter(this, writer);
|
|
46936
|
+
return writer.getResultBuffer();
|
|
46937
|
+
};
|
|
46938
|
+
|
|
46939
|
+
|
|
46940
|
+
/**
|
|
46941
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
46942
|
+
* format), writing to the given BinaryWriter.
|
|
46943
|
+
* @param {!proto.zaber.motion.protobufs.ParamsetInfo} message
|
|
46944
|
+
* @param {!jspb.BinaryWriter} writer
|
|
46945
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
46946
|
+
*/
|
|
46947
|
+
proto.zaber.motion.protobufs.ParamsetInfo.serializeBinaryToWriter = function(message, writer) {
|
|
46948
|
+
var f = undefined;
|
|
46949
|
+
f = message.getType();
|
|
46950
|
+
if (f.length > 0) {
|
|
46951
|
+
writer.writeString(
|
|
46952
|
+
1,
|
|
46953
|
+
f
|
|
46954
|
+
);
|
|
46955
|
+
}
|
|
46956
|
+
f = message.getParamsList();
|
|
46957
|
+
if (f.length > 0) {
|
|
46958
|
+
writer.writeRepeatedMessage(
|
|
46959
|
+
2,
|
|
46960
|
+
f,
|
|
46961
|
+
proto.zaber.motion.protobufs.ServoTuningParam.serializeBinaryToWriter
|
|
46962
|
+
);
|
|
46963
|
+
}
|
|
46964
|
+
};
|
|
46965
|
+
|
|
46966
|
+
|
|
46967
|
+
/**
|
|
46968
|
+
* optional string type = 1;
|
|
46969
|
+
* @return {string}
|
|
46970
|
+
*/
|
|
46971
|
+
proto.zaber.motion.protobufs.ParamsetInfo.prototype.getType = function() {
|
|
46972
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
46973
|
+
};
|
|
46974
|
+
|
|
46975
|
+
|
|
46976
|
+
/**
|
|
46977
|
+
* @param {string} value
|
|
46978
|
+
* @return {!proto.zaber.motion.protobufs.ParamsetInfo} returns this
|
|
46979
|
+
*/
|
|
46980
|
+
proto.zaber.motion.protobufs.ParamsetInfo.prototype.setType = function(value) {
|
|
46981
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
46982
|
+
};
|
|
46983
|
+
|
|
46984
|
+
|
|
46985
|
+
/**
|
|
46986
|
+
* repeated ServoTuningParam params = 2;
|
|
46987
|
+
* @return {!Array<!proto.zaber.motion.protobufs.ServoTuningParam>}
|
|
46988
|
+
*/
|
|
46989
|
+
proto.zaber.motion.protobufs.ParamsetInfo.prototype.getParamsList = function() {
|
|
46990
|
+
return /** @type{!Array<!proto.zaber.motion.protobufs.ServoTuningParam>} */ (
|
|
46991
|
+
jspb.Message.getRepeatedWrapperField(this, proto.zaber.motion.protobufs.ServoTuningParam, 2));
|
|
46992
|
+
};
|
|
46993
|
+
|
|
46994
|
+
|
|
46995
|
+
/**
|
|
46996
|
+
* @param {!Array<!proto.zaber.motion.protobufs.ServoTuningParam>} value
|
|
46997
|
+
* @return {!proto.zaber.motion.protobufs.ParamsetInfo} returns this
|
|
46998
|
+
*/
|
|
46999
|
+
proto.zaber.motion.protobufs.ParamsetInfo.prototype.setParamsList = function(value) {
|
|
47000
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
47001
|
+
};
|
|
47002
|
+
|
|
47003
|
+
|
|
47004
|
+
/**
|
|
47005
|
+
* @param {!proto.zaber.motion.protobufs.ServoTuningParam=} opt_value
|
|
47006
|
+
* @param {number=} opt_index
|
|
47007
|
+
* @return {!proto.zaber.motion.protobufs.ServoTuningParam}
|
|
47008
|
+
*/
|
|
47009
|
+
proto.zaber.motion.protobufs.ParamsetInfo.prototype.addParams = function(opt_value, opt_index) {
|
|
47010
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.zaber.motion.protobufs.ServoTuningParam, opt_index);
|
|
47011
|
+
};
|
|
47012
|
+
|
|
47013
|
+
|
|
47014
|
+
/**
|
|
47015
|
+
* Clears the list making it empty but non-null.
|
|
47016
|
+
* @return {!proto.zaber.motion.protobufs.ParamsetInfo} returns this
|
|
47017
|
+
*/
|
|
47018
|
+
proto.zaber.motion.protobufs.ParamsetInfo.prototype.clearParamsList = function() {
|
|
47019
|
+
return this.setParamsList([]);
|
|
47020
|
+
};
|
|
47021
|
+
|
|
47022
|
+
|
|
47023
|
+
|
|
47024
|
+
/**
|
|
47025
|
+
* List of repeated fields within this message type.
|
|
47026
|
+
* @private {!Array<number>}
|
|
47027
|
+
* @const
|
|
47028
|
+
*/
|
|
47029
|
+
proto.zaber.motion.protobufs.SetServoTuningRequest.repeatedFields_ = [5];
|
|
47030
|
+
|
|
47031
|
+
|
|
47032
|
+
|
|
47033
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
47034
|
+
/**
|
|
47035
|
+
* Creates an object representation of this proto.
|
|
47036
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
47037
|
+
* Optional fields that are not set will be set to undefined.
|
|
47038
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
47039
|
+
* For the list of reserved names please see:
|
|
47040
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
47041
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
47042
|
+
* JSPB instance for transitional soy proto support:
|
|
47043
|
+
* http://goto/soy-param-migration
|
|
47044
|
+
* @return {!Object}
|
|
47045
|
+
*/
|
|
47046
|
+
proto.zaber.motion.protobufs.SetServoTuningRequest.prototype.toObject = function(opt_includeInstance) {
|
|
47047
|
+
return proto.zaber.motion.protobufs.SetServoTuningRequest.toObject(opt_includeInstance, this);
|
|
47048
|
+
};
|
|
47049
|
+
|
|
47050
|
+
|
|
47051
|
+
/**
|
|
47052
|
+
* Static version of the {@see toObject} method.
|
|
47053
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
47054
|
+
* the JSPB instance for transitional soy proto support:
|
|
47055
|
+
* http://goto/soy-param-migration
|
|
47056
|
+
* @param {!proto.zaber.motion.protobufs.SetServoTuningRequest} msg The msg instance to transform.
|
|
47057
|
+
* @return {!Object}
|
|
47058
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
47059
|
+
*/
|
|
47060
|
+
proto.zaber.motion.protobufs.SetServoTuningRequest.toObject = function(includeInstance, msg) {
|
|
47061
|
+
var f, obj = {
|
|
47062
|
+
interfaceId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
47063
|
+
device: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
47064
|
+
axis: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
47065
|
+
paramset: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
47066
|
+
tuningParamsList: jspb.Message.toObjectList(msg.getTuningParamsList(),
|
|
47067
|
+
proto.zaber.motion.protobufs.ServoTuningParam.toObject, includeInstance)
|
|
47068
|
+
};
|
|
47069
|
+
|
|
47070
|
+
if (includeInstance) {
|
|
47071
|
+
obj.$jspbMessageInstance = msg;
|
|
47072
|
+
}
|
|
47073
|
+
return obj;
|
|
47074
|
+
};
|
|
47075
|
+
}
|
|
47076
|
+
|
|
47077
|
+
|
|
47078
|
+
/**
|
|
47079
|
+
* Deserializes binary data (in protobuf wire format).
|
|
47080
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
47081
|
+
* @return {!proto.zaber.motion.protobufs.SetServoTuningRequest}
|
|
47082
|
+
*/
|
|
47083
|
+
proto.zaber.motion.protobufs.SetServoTuningRequest.deserializeBinary = function(bytes) {
|
|
47084
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
47085
|
+
var msg = new proto.zaber.motion.protobufs.SetServoTuningRequest;
|
|
47086
|
+
return proto.zaber.motion.protobufs.SetServoTuningRequest.deserializeBinaryFromReader(msg, reader);
|
|
47087
|
+
};
|
|
47088
|
+
|
|
47089
|
+
|
|
47090
|
+
/**
|
|
47091
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
47092
|
+
* given reader into the given message object.
|
|
47093
|
+
* @param {!proto.zaber.motion.protobufs.SetServoTuningRequest} msg The message object to deserialize into.
|
|
47094
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
47095
|
+
* @return {!proto.zaber.motion.protobufs.SetServoTuningRequest}
|
|
47096
|
+
*/
|
|
47097
|
+
proto.zaber.motion.protobufs.SetServoTuningRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
47098
|
+
while (reader.nextField()) {
|
|
47099
|
+
if (reader.isEndGroup()) {
|
|
47100
|
+
break;
|
|
47101
|
+
}
|
|
47102
|
+
var field = reader.getFieldNumber();
|
|
47103
|
+
switch (field) {
|
|
47104
|
+
case 1:
|
|
47105
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
47106
|
+
msg.setInterfaceId(value);
|
|
47107
|
+
break;
|
|
47108
|
+
case 2:
|
|
47109
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
47110
|
+
msg.setDevice(value);
|
|
47111
|
+
break;
|
|
47112
|
+
case 3:
|
|
47113
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
47114
|
+
msg.setAxis(value);
|
|
47115
|
+
break;
|
|
47116
|
+
case 4:
|
|
47117
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
47118
|
+
msg.setParamset(value);
|
|
47119
|
+
break;
|
|
47120
|
+
case 5:
|
|
47121
|
+
var value = new proto.zaber.motion.protobufs.ServoTuningParam;
|
|
47122
|
+
reader.readMessage(value,proto.zaber.motion.protobufs.ServoTuningParam.deserializeBinaryFromReader);
|
|
47123
|
+
msg.addTuningParams(value);
|
|
47124
|
+
break;
|
|
47125
|
+
default:
|
|
47126
|
+
reader.skipField();
|
|
47127
|
+
break;
|
|
47128
|
+
}
|
|
47129
|
+
}
|
|
47130
|
+
return msg;
|
|
47131
|
+
};
|
|
47132
|
+
|
|
47133
|
+
|
|
47134
|
+
/**
|
|
47135
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
47136
|
+
* @return {!Uint8Array}
|
|
47137
|
+
*/
|
|
47138
|
+
proto.zaber.motion.protobufs.SetServoTuningRequest.prototype.serializeBinary = function() {
|
|
47139
|
+
var writer = new jspb.BinaryWriter();
|
|
47140
|
+
proto.zaber.motion.protobufs.SetServoTuningRequest.serializeBinaryToWriter(this, writer);
|
|
47141
|
+
return writer.getResultBuffer();
|
|
47142
|
+
};
|
|
47143
|
+
|
|
47144
|
+
|
|
47145
|
+
/**
|
|
47146
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
47147
|
+
* format), writing to the given BinaryWriter.
|
|
47148
|
+
* @param {!proto.zaber.motion.protobufs.SetServoTuningRequest} message
|
|
47149
|
+
* @param {!jspb.BinaryWriter} writer
|
|
47150
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
47151
|
+
*/
|
|
47152
|
+
proto.zaber.motion.protobufs.SetServoTuningRequest.serializeBinaryToWriter = function(message, writer) {
|
|
47153
|
+
var f = undefined;
|
|
47154
|
+
f = message.getInterfaceId();
|
|
47155
|
+
if (f !== 0) {
|
|
47156
|
+
writer.writeInt32(
|
|
47157
|
+
1,
|
|
47158
|
+
f
|
|
47159
|
+
);
|
|
47160
|
+
}
|
|
47161
|
+
f = message.getDevice();
|
|
47162
|
+
if (f !== 0) {
|
|
47163
|
+
writer.writeInt32(
|
|
47164
|
+
2,
|
|
47165
|
+
f
|
|
47166
|
+
);
|
|
47167
|
+
}
|
|
47168
|
+
f = message.getAxis();
|
|
47169
|
+
if (f !== 0) {
|
|
47170
|
+
writer.writeInt32(
|
|
47171
|
+
3,
|
|
47172
|
+
f
|
|
47173
|
+
);
|
|
47174
|
+
}
|
|
47175
|
+
f = message.getParamset();
|
|
47176
|
+
if (f !== 0) {
|
|
47177
|
+
writer.writeInt32(
|
|
47178
|
+
4,
|
|
47179
|
+
f
|
|
47180
|
+
);
|
|
47181
|
+
}
|
|
47182
|
+
f = message.getTuningParamsList();
|
|
47183
|
+
if (f.length > 0) {
|
|
47184
|
+
writer.writeRepeatedMessage(
|
|
47185
|
+
5,
|
|
47186
|
+
f,
|
|
47187
|
+
proto.zaber.motion.protobufs.ServoTuningParam.serializeBinaryToWriter
|
|
47188
|
+
);
|
|
47189
|
+
}
|
|
47190
|
+
};
|
|
47191
|
+
|
|
47192
|
+
|
|
47193
|
+
/**
|
|
47194
|
+
* optional int32 interface_id = 1;
|
|
47195
|
+
* @return {number}
|
|
47196
|
+
*/
|
|
47197
|
+
proto.zaber.motion.protobufs.SetServoTuningRequest.prototype.getInterfaceId = function() {
|
|
47198
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
47199
|
+
};
|
|
47200
|
+
|
|
47201
|
+
|
|
47202
|
+
/**
|
|
47203
|
+
* @param {number} value
|
|
47204
|
+
* @return {!proto.zaber.motion.protobufs.SetServoTuningRequest} returns this
|
|
47205
|
+
*/
|
|
47206
|
+
proto.zaber.motion.protobufs.SetServoTuningRequest.prototype.setInterfaceId = function(value) {
|
|
47207
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
47208
|
+
};
|
|
47209
|
+
|
|
47210
|
+
|
|
47211
|
+
/**
|
|
47212
|
+
* optional int32 device = 2;
|
|
47213
|
+
* @return {number}
|
|
47214
|
+
*/
|
|
47215
|
+
proto.zaber.motion.protobufs.SetServoTuningRequest.prototype.getDevice = function() {
|
|
47216
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
47217
|
+
};
|
|
47218
|
+
|
|
47219
|
+
|
|
47220
|
+
/**
|
|
47221
|
+
* @param {number} value
|
|
47222
|
+
* @return {!proto.zaber.motion.protobufs.SetServoTuningRequest} returns this
|
|
47223
|
+
*/
|
|
47224
|
+
proto.zaber.motion.protobufs.SetServoTuningRequest.prototype.setDevice = function(value) {
|
|
47225
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
47226
|
+
};
|
|
47227
|
+
|
|
47228
|
+
|
|
47229
|
+
/**
|
|
47230
|
+
* optional int32 axis = 3;
|
|
47231
|
+
* @return {number}
|
|
47232
|
+
*/
|
|
47233
|
+
proto.zaber.motion.protobufs.SetServoTuningRequest.prototype.getAxis = function() {
|
|
47234
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
47235
|
+
};
|
|
47236
|
+
|
|
47237
|
+
|
|
47238
|
+
/**
|
|
47239
|
+
* @param {number} value
|
|
47240
|
+
* @return {!proto.zaber.motion.protobufs.SetServoTuningRequest} returns this
|
|
47241
|
+
*/
|
|
47242
|
+
proto.zaber.motion.protobufs.SetServoTuningRequest.prototype.setAxis = function(value) {
|
|
47243
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
47244
|
+
};
|
|
47245
|
+
|
|
47246
|
+
|
|
47247
|
+
/**
|
|
47248
|
+
* optional int32 paramset = 4;
|
|
47249
|
+
* @return {number}
|
|
47250
|
+
*/
|
|
47251
|
+
proto.zaber.motion.protobufs.SetServoTuningRequest.prototype.getParamset = function() {
|
|
47252
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
47253
|
+
};
|
|
47254
|
+
|
|
47255
|
+
|
|
47256
|
+
/**
|
|
47257
|
+
* @param {number} value
|
|
47258
|
+
* @return {!proto.zaber.motion.protobufs.SetServoTuningRequest} returns this
|
|
47259
|
+
*/
|
|
47260
|
+
proto.zaber.motion.protobufs.SetServoTuningRequest.prototype.setParamset = function(value) {
|
|
47261
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
47262
|
+
};
|
|
47263
|
+
|
|
47264
|
+
|
|
47265
|
+
/**
|
|
47266
|
+
* repeated ServoTuningParam tuning_params = 5;
|
|
47267
|
+
* @return {!Array<!proto.zaber.motion.protobufs.ServoTuningParam>}
|
|
47268
|
+
*/
|
|
47269
|
+
proto.zaber.motion.protobufs.SetServoTuningRequest.prototype.getTuningParamsList = function() {
|
|
47270
|
+
return /** @type{!Array<!proto.zaber.motion.protobufs.ServoTuningParam>} */ (
|
|
47271
|
+
jspb.Message.getRepeatedWrapperField(this, proto.zaber.motion.protobufs.ServoTuningParam, 5));
|
|
47272
|
+
};
|
|
47273
|
+
|
|
47274
|
+
|
|
47275
|
+
/**
|
|
47276
|
+
* @param {!Array<!proto.zaber.motion.protobufs.ServoTuningParam>} value
|
|
47277
|
+
* @return {!proto.zaber.motion.protobufs.SetServoTuningRequest} returns this
|
|
47278
|
+
*/
|
|
47279
|
+
proto.zaber.motion.protobufs.SetServoTuningRequest.prototype.setTuningParamsList = function(value) {
|
|
47280
|
+
return jspb.Message.setRepeatedWrapperField(this, 5, value);
|
|
47281
|
+
};
|
|
47282
|
+
|
|
47283
|
+
|
|
47284
|
+
/**
|
|
47285
|
+
* @param {!proto.zaber.motion.protobufs.ServoTuningParam=} opt_value
|
|
47286
|
+
* @param {number=} opt_index
|
|
47287
|
+
* @return {!proto.zaber.motion.protobufs.ServoTuningParam}
|
|
47288
|
+
*/
|
|
47289
|
+
proto.zaber.motion.protobufs.SetServoTuningRequest.prototype.addTuningParams = function(opt_value, opt_index) {
|
|
47290
|
+
return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.zaber.motion.protobufs.ServoTuningParam, opt_index);
|
|
47291
|
+
};
|
|
47292
|
+
|
|
47293
|
+
|
|
47294
|
+
/**
|
|
47295
|
+
* Clears the list making it empty but non-null.
|
|
47296
|
+
* @return {!proto.zaber.motion.protobufs.SetServoTuningRequest} returns this
|
|
47297
|
+
*/
|
|
47298
|
+
proto.zaber.motion.protobufs.SetServoTuningRequest.prototype.clearTuningParamsList = function() {
|
|
47299
|
+
return this.setTuningParamsList([]);
|
|
47300
|
+
};
|
|
47301
|
+
|
|
47302
|
+
|
|
47303
|
+
|
|
47304
|
+
|
|
47305
|
+
|
|
47306
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
47307
|
+
/**
|
|
47308
|
+
* Creates an object representation of this proto.
|
|
47309
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
47310
|
+
* Optional fields that are not set will be set to undefined.
|
|
47311
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
47312
|
+
* For the list of reserved names please see:
|
|
47313
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
47314
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
47315
|
+
* JSPB instance for transitional soy proto support:
|
|
47316
|
+
* http://goto/soy-param-migration
|
|
47317
|
+
* @return {!Object}
|
|
47318
|
+
*/
|
|
47319
|
+
proto.zaber.motion.protobufs.GetStartupParamset.prototype.toObject = function(opt_includeInstance) {
|
|
47320
|
+
return proto.zaber.motion.protobufs.GetStartupParamset.toObject(opt_includeInstance, this);
|
|
47321
|
+
};
|
|
47322
|
+
|
|
47323
|
+
|
|
47324
|
+
/**
|
|
47325
|
+
* Static version of the {@see toObject} method.
|
|
47326
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
47327
|
+
* the JSPB instance for transitional soy proto support:
|
|
47328
|
+
* http://goto/soy-param-migration
|
|
47329
|
+
* @param {!proto.zaber.motion.protobufs.GetStartupParamset} msg The msg instance to transform.
|
|
47330
|
+
* @return {!Object}
|
|
47331
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
47332
|
+
*/
|
|
47333
|
+
proto.zaber.motion.protobufs.GetStartupParamset.toObject = function(includeInstance, msg) {
|
|
47334
|
+
var f, obj = {
|
|
47335
|
+
interfaceId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
47336
|
+
device: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
47337
|
+
axis: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
47338
|
+
};
|
|
47339
|
+
|
|
47340
|
+
if (includeInstance) {
|
|
47341
|
+
obj.$jspbMessageInstance = msg;
|
|
47342
|
+
}
|
|
47343
|
+
return obj;
|
|
47344
|
+
};
|
|
47345
|
+
}
|
|
47346
|
+
|
|
47347
|
+
|
|
47348
|
+
/**
|
|
47349
|
+
* Deserializes binary data (in protobuf wire format).
|
|
47350
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
47351
|
+
* @return {!proto.zaber.motion.protobufs.GetStartupParamset}
|
|
47352
|
+
*/
|
|
47353
|
+
proto.zaber.motion.protobufs.GetStartupParamset.deserializeBinary = function(bytes) {
|
|
47354
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
47355
|
+
var msg = new proto.zaber.motion.protobufs.GetStartupParamset;
|
|
47356
|
+
return proto.zaber.motion.protobufs.GetStartupParamset.deserializeBinaryFromReader(msg, reader);
|
|
47357
|
+
};
|
|
47358
|
+
|
|
47359
|
+
|
|
47360
|
+
/**
|
|
47361
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
47362
|
+
* given reader into the given message object.
|
|
47363
|
+
* @param {!proto.zaber.motion.protobufs.GetStartupParamset} msg The message object to deserialize into.
|
|
47364
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
47365
|
+
* @return {!proto.zaber.motion.protobufs.GetStartupParamset}
|
|
47366
|
+
*/
|
|
47367
|
+
proto.zaber.motion.protobufs.GetStartupParamset.deserializeBinaryFromReader = function(msg, reader) {
|
|
47368
|
+
while (reader.nextField()) {
|
|
47369
|
+
if (reader.isEndGroup()) {
|
|
47370
|
+
break;
|
|
47371
|
+
}
|
|
47372
|
+
var field = reader.getFieldNumber();
|
|
47373
|
+
switch (field) {
|
|
47374
|
+
case 1:
|
|
47375
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
47376
|
+
msg.setInterfaceId(value);
|
|
47377
|
+
break;
|
|
47378
|
+
case 2:
|
|
47379
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
47380
|
+
msg.setDevice(value);
|
|
47381
|
+
break;
|
|
47382
|
+
case 3:
|
|
47383
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
47384
|
+
msg.setAxis(value);
|
|
47385
|
+
break;
|
|
47386
|
+
default:
|
|
47387
|
+
reader.skipField();
|
|
47388
|
+
break;
|
|
47389
|
+
}
|
|
47390
|
+
}
|
|
47391
|
+
return msg;
|
|
47392
|
+
};
|
|
47393
|
+
|
|
47394
|
+
|
|
47395
|
+
/**
|
|
47396
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
47397
|
+
* @return {!Uint8Array}
|
|
47398
|
+
*/
|
|
47399
|
+
proto.zaber.motion.protobufs.GetStartupParamset.prototype.serializeBinary = function() {
|
|
47400
|
+
var writer = new jspb.BinaryWriter();
|
|
47401
|
+
proto.zaber.motion.protobufs.GetStartupParamset.serializeBinaryToWriter(this, writer);
|
|
47402
|
+
return writer.getResultBuffer();
|
|
47403
|
+
};
|
|
47404
|
+
|
|
47405
|
+
|
|
47406
|
+
/**
|
|
47407
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
47408
|
+
* format), writing to the given BinaryWriter.
|
|
47409
|
+
* @param {!proto.zaber.motion.protobufs.GetStartupParamset} message
|
|
47410
|
+
* @param {!jspb.BinaryWriter} writer
|
|
47411
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
47412
|
+
*/
|
|
47413
|
+
proto.zaber.motion.protobufs.GetStartupParamset.serializeBinaryToWriter = function(message, writer) {
|
|
47414
|
+
var f = undefined;
|
|
47415
|
+
f = message.getInterfaceId();
|
|
47416
|
+
if (f !== 0) {
|
|
47417
|
+
writer.writeInt32(
|
|
47418
|
+
1,
|
|
47419
|
+
f
|
|
47420
|
+
);
|
|
47421
|
+
}
|
|
47422
|
+
f = message.getDevice();
|
|
47423
|
+
if (f !== 0) {
|
|
47424
|
+
writer.writeInt32(
|
|
47425
|
+
2,
|
|
47426
|
+
f
|
|
47427
|
+
);
|
|
47428
|
+
}
|
|
47429
|
+
f = message.getAxis();
|
|
47430
|
+
if (f !== 0) {
|
|
47431
|
+
writer.writeInt32(
|
|
47432
|
+
3,
|
|
47433
|
+
f
|
|
47434
|
+
);
|
|
47435
|
+
}
|
|
47436
|
+
};
|
|
47437
|
+
|
|
47438
|
+
|
|
47439
|
+
/**
|
|
47440
|
+
* optional int32 interface_id = 1;
|
|
47441
|
+
* @return {number}
|
|
47442
|
+
*/
|
|
47443
|
+
proto.zaber.motion.protobufs.GetStartupParamset.prototype.getInterfaceId = function() {
|
|
47444
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
47445
|
+
};
|
|
47446
|
+
|
|
47447
|
+
|
|
47448
|
+
/**
|
|
47449
|
+
* @param {number} value
|
|
47450
|
+
* @return {!proto.zaber.motion.protobufs.GetStartupParamset} returns this
|
|
47451
|
+
*/
|
|
47452
|
+
proto.zaber.motion.protobufs.GetStartupParamset.prototype.setInterfaceId = function(value) {
|
|
47453
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
47454
|
+
};
|
|
47455
|
+
|
|
47456
|
+
|
|
47457
|
+
/**
|
|
47458
|
+
* optional int32 device = 2;
|
|
47459
|
+
* @return {number}
|
|
47460
|
+
*/
|
|
47461
|
+
proto.zaber.motion.protobufs.GetStartupParamset.prototype.getDevice = function() {
|
|
47462
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
47463
|
+
};
|
|
47464
|
+
|
|
47465
|
+
|
|
47466
|
+
/**
|
|
47467
|
+
* @param {number} value
|
|
47468
|
+
* @return {!proto.zaber.motion.protobufs.GetStartupParamset} returns this
|
|
47469
|
+
*/
|
|
47470
|
+
proto.zaber.motion.protobufs.GetStartupParamset.prototype.setDevice = function(value) {
|
|
47471
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
47472
|
+
};
|
|
47473
|
+
|
|
47474
|
+
|
|
47475
|
+
/**
|
|
47476
|
+
* optional int32 axis = 3;
|
|
47477
|
+
* @return {number}
|
|
47478
|
+
*/
|
|
47479
|
+
proto.zaber.motion.protobufs.GetStartupParamset.prototype.getAxis = function() {
|
|
47480
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
47481
|
+
};
|
|
47482
|
+
|
|
47483
|
+
|
|
47484
|
+
/**
|
|
47485
|
+
* @param {number} value
|
|
47486
|
+
* @return {!proto.zaber.motion.protobufs.GetStartupParamset} returns this
|
|
47487
|
+
*/
|
|
47488
|
+
proto.zaber.motion.protobufs.GetStartupParamset.prototype.setAxis = function(value) {
|
|
47489
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
47490
|
+
};
|
|
47491
|
+
|
|
47492
|
+
|
|
47493
|
+
|
|
47494
|
+
|
|
47495
|
+
|
|
47496
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
47497
|
+
/**
|
|
47498
|
+
* Creates an object representation of this proto.
|
|
47499
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
47500
|
+
* Optional fields that are not set will be set to undefined.
|
|
47501
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
47502
|
+
* For the list of reserved names please see:
|
|
47503
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
47504
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
47505
|
+
* JSPB instance for transitional soy proto support:
|
|
47506
|
+
* http://goto/soy-param-migration
|
|
47507
|
+
* @return {!Object}
|
|
47508
|
+
*/
|
|
47509
|
+
proto.zaber.motion.protobufs.StartupParamset.prototype.toObject = function(opt_includeInstance) {
|
|
47510
|
+
return proto.zaber.motion.protobufs.StartupParamset.toObject(opt_includeInstance, this);
|
|
47511
|
+
};
|
|
47512
|
+
|
|
47513
|
+
|
|
47514
|
+
/**
|
|
47515
|
+
* Static version of the {@see toObject} method.
|
|
47516
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
47517
|
+
* the JSPB instance for transitional soy proto support:
|
|
47518
|
+
* http://goto/soy-param-migration
|
|
47519
|
+
* @param {!proto.zaber.motion.protobufs.StartupParamset} msg The msg instance to transform.
|
|
47520
|
+
* @return {!Object}
|
|
47521
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
47522
|
+
*/
|
|
47523
|
+
proto.zaber.motion.protobufs.StartupParamset.toObject = function(includeInstance, msg) {
|
|
47524
|
+
var f, obj = {
|
|
47525
|
+
paramset: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
47526
|
+
};
|
|
47527
|
+
|
|
47528
|
+
if (includeInstance) {
|
|
47529
|
+
obj.$jspbMessageInstance = msg;
|
|
47530
|
+
}
|
|
47531
|
+
return obj;
|
|
47532
|
+
};
|
|
47533
|
+
}
|
|
47534
|
+
|
|
47535
|
+
|
|
47536
|
+
/**
|
|
47537
|
+
* Deserializes binary data (in protobuf wire format).
|
|
47538
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
47539
|
+
* @return {!proto.zaber.motion.protobufs.StartupParamset}
|
|
47540
|
+
*/
|
|
47541
|
+
proto.zaber.motion.protobufs.StartupParamset.deserializeBinary = function(bytes) {
|
|
47542
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
47543
|
+
var msg = new proto.zaber.motion.protobufs.StartupParamset;
|
|
47544
|
+
return proto.zaber.motion.protobufs.StartupParamset.deserializeBinaryFromReader(msg, reader);
|
|
47545
|
+
};
|
|
47546
|
+
|
|
47547
|
+
|
|
47548
|
+
/**
|
|
47549
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
47550
|
+
* given reader into the given message object.
|
|
47551
|
+
* @param {!proto.zaber.motion.protobufs.StartupParamset} msg The message object to deserialize into.
|
|
47552
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
47553
|
+
* @return {!proto.zaber.motion.protobufs.StartupParamset}
|
|
47554
|
+
*/
|
|
47555
|
+
proto.zaber.motion.protobufs.StartupParamset.deserializeBinaryFromReader = function(msg, reader) {
|
|
47556
|
+
while (reader.nextField()) {
|
|
47557
|
+
if (reader.isEndGroup()) {
|
|
47558
|
+
break;
|
|
47559
|
+
}
|
|
47560
|
+
var field = reader.getFieldNumber();
|
|
47561
|
+
switch (field) {
|
|
47562
|
+
case 1:
|
|
47563
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
47564
|
+
msg.setParamset(value);
|
|
47565
|
+
break;
|
|
47566
|
+
default:
|
|
47567
|
+
reader.skipField();
|
|
47568
|
+
break;
|
|
47569
|
+
}
|
|
47570
|
+
}
|
|
47571
|
+
return msg;
|
|
47572
|
+
};
|
|
47573
|
+
|
|
47574
|
+
|
|
47575
|
+
/**
|
|
47576
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
47577
|
+
* @return {!Uint8Array}
|
|
47578
|
+
*/
|
|
47579
|
+
proto.zaber.motion.protobufs.StartupParamset.prototype.serializeBinary = function() {
|
|
47580
|
+
var writer = new jspb.BinaryWriter();
|
|
47581
|
+
proto.zaber.motion.protobufs.StartupParamset.serializeBinaryToWriter(this, writer);
|
|
47582
|
+
return writer.getResultBuffer();
|
|
47583
|
+
};
|
|
47584
|
+
|
|
47585
|
+
|
|
47586
|
+
/**
|
|
47587
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
47588
|
+
* format), writing to the given BinaryWriter.
|
|
47589
|
+
* @param {!proto.zaber.motion.protobufs.StartupParamset} message
|
|
47590
|
+
* @param {!jspb.BinaryWriter} writer
|
|
47591
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
47592
|
+
*/
|
|
47593
|
+
proto.zaber.motion.protobufs.StartupParamset.serializeBinaryToWriter = function(message, writer) {
|
|
47594
|
+
var f = undefined;
|
|
47595
|
+
f = message.getParamset();
|
|
47596
|
+
if (f !== 0) {
|
|
47597
|
+
writer.writeInt32(
|
|
47598
|
+
1,
|
|
47599
|
+
f
|
|
47600
|
+
);
|
|
47601
|
+
}
|
|
47602
|
+
};
|
|
47603
|
+
|
|
47604
|
+
|
|
47605
|
+
/**
|
|
47606
|
+
* optional int32 paramset = 1;
|
|
47607
|
+
* @return {number}
|
|
47608
|
+
*/
|
|
47609
|
+
proto.zaber.motion.protobufs.StartupParamset.prototype.getParamset = function() {
|
|
47610
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
47611
|
+
};
|
|
47612
|
+
|
|
47613
|
+
|
|
47614
|
+
/**
|
|
47615
|
+
* @param {number} value
|
|
47616
|
+
* @return {!proto.zaber.motion.protobufs.StartupParamset} returns this
|
|
47617
|
+
*/
|
|
47618
|
+
proto.zaber.motion.protobufs.StartupParamset.prototype.setParamset = function(value) {
|
|
47619
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
47620
|
+
};
|
|
47621
|
+
|
|
47622
|
+
|
|
47623
|
+
|
|
47624
|
+
|
|
47625
|
+
|
|
47626
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
47627
|
+
/**
|
|
47628
|
+
* Creates an object representation of this proto.
|
|
47629
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
47630
|
+
* Optional fields that are not set will be set to undefined.
|
|
47631
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
47632
|
+
* For the list of reserved names please see:
|
|
47633
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
47634
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
47635
|
+
* JSPB instance for transitional soy proto support:
|
|
47636
|
+
* http://goto/soy-param-migration
|
|
47637
|
+
* @return {!Object}
|
|
47638
|
+
*/
|
|
47639
|
+
proto.zaber.motion.protobufs.LoadParamset.prototype.toObject = function(opt_includeInstance) {
|
|
47640
|
+
return proto.zaber.motion.protobufs.LoadParamset.toObject(opt_includeInstance, this);
|
|
47641
|
+
};
|
|
47642
|
+
|
|
47643
|
+
|
|
47644
|
+
/**
|
|
47645
|
+
* Static version of the {@see toObject} method.
|
|
47646
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
47647
|
+
* the JSPB instance for transitional soy proto support:
|
|
47648
|
+
* http://goto/soy-param-migration
|
|
47649
|
+
* @param {!proto.zaber.motion.protobufs.LoadParamset} msg The msg instance to transform.
|
|
47650
|
+
* @return {!Object}
|
|
47651
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
47652
|
+
*/
|
|
47653
|
+
proto.zaber.motion.protobufs.LoadParamset.toObject = function(includeInstance, msg) {
|
|
47654
|
+
var f, obj = {
|
|
47655
|
+
interfaceId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
47656
|
+
device: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
47657
|
+
axis: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
47658
|
+
toParamset: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
47659
|
+
fromParamset: jspb.Message.getFieldWithDefault(msg, 5, 0)
|
|
47660
|
+
};
|
|
47661
|
+
|
|
47662
|
+
if (includeInstance) {
|
|
47663
|
+
obj.$jspbMessageInstance = msg;
|
|
47664
|
+
}
|
|
47665
|
+
return obj;
|
|
47666
|
+
};
|
|
47667
|
+
}
|
|
47668
|
+
|
|
47669
|
+
|
|
47670
|
+
/**
|
|
47671
|
+
* Deserializes binary data (in protobuf wire format).
|
|
47672
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
47673
|
+
* @return {!proto.zaber.motion.protobufs.LoadParamset}
|
|
47674
|
+
*/
|
|
47675
|
+
proto.zaber.motion.protobufs.LoadParamset.deserializeBinary = function(bytes) {
|
|
47676
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
47677
|
+
var msg = new proto.zaber.motion.protobufs.LoadParamset;
|
|
47678
|
+
return proto.zaber.motion.protobufs.LoadParamset.deserializeBinaryFromReader(msg, reader);
|
|
47679
|
+
};
|
|
47680
|
+
|
|
47681
|
+
|
|
47682
|
+
/**
|
|
47683
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
47684
|
+
* given reader into the given message object.
|
|
47685
|
+
* @param {!proto.zaber.motion.protobufs.LoadParamset} msg The message object to deserialize into.
|
|
47686
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
47687
|
+
* @return {!proto.zaber.motion.protobufs.LoadParamset}
|
|
47688
|
+
*/
|
|
47689
|
+
proto.zaber.motion.protobufs.LoadParamset.deserializeBinaryFromReader = function(msg, reader) {
|
|
47690
|
+
while (reader.nextField()) {
|
|
47691
|
+
if (reader.isEndGroup()) {
|
|
47692
|
+
break;
|
|
47693
|
+
}
|
|
47694
|
+
var field = reader.getFieldNumber();
|
|
47695
|
+
switch (field) {
|
|
47696
|
+
case 1:
|
|
47697
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
47698
|
+
msg.setInterfaceId(value);
|
|
47699
|
+
break;
|
|
47700
|
+
case 2:
|
|
47701
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
47702
|
+
msg.setDevice(value);
|
|
47703
|
+
break;
|
|
47704
|
+
case 3:
|
|
47705
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
47706
|
+
msg.setAxis(value);
|
|
47707
|
+
break;
|
|
47708
|
+
case 4:
|
|
47709
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
47710
|
+
msg.setToParamset(value);
|
|
47711
|
+
break;
|
|
47712
|
+
case 5:
|
|
47713
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
47714
|
+
msg.setFromParamset(value);
|
|
47715
|
+
break;
|
|
47716
|
+
default:
|
|
47717
|
+
reader.skipField();
|
|
47718
|
+
break;
|
|
47719
|
+
}
|
|
47720
|
+
}
|
|
47721
|
+
return msg;
|
|
47722
|
+
};
|
|
47723
|
+
|
|
47724
|
+
|
|
47725
|
+
/**
|
|
47726
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
47727
|
+
* @return {!Uint8Array}
|
|
47728
|
+
*/
|
|
47729
|
+
proto.zaber.motion.protobufs.LoadParamset.prototype.serializeBinary = function() {
|
|
47730
|
+
var writer = new jspb.BinaryWriter();
|
|
47731
|
+
proto.zaber.motion.protobufs.LoadParamset.serializeBinaryToWriter(this, writer);
|
|
47732
|
+
return writer.getResultBuffer();
|
|
47733
|
+
};
|
|
47734
|
+
|
|
47735
|
+
|
|
47736
|
+
/**
|
|
47737
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
47738
|
+
* format), writing to the given BinaryWriter.
|
|
47739
|
+
* @param {!proto.zaber.motion.protobufs.LoadParamset} message
|
|
47740
|
+
* @param {!jspb.BinaryWriter} writer
|
|
47741
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
47742
|
+
*/
|
|
47743
|
+
proto.zaber.motion.protobufs.LoadParamset.serializeBinaryToWriter = function(message, writer) {
|
|
47744
|
+
var f = undefined;
|
|
47745
|
+
f = message.getInterfaceId();
|
|
47746
|
+
if (f !== 0) {
|
|
47747
|
+
writer.writeInt32(
|
|
47748
|
+
1,
|
|
47749
|
+
f
|
|
47750
|
+
);
|
|
47751
|
+
}
|
|
47752
|
+
f = message.getDevice();
|
|
47753
|
+
if (f !== 0) {
|
|
47754
|
+
writer.writeInt32(
|
|
47755
|
+
2,
|
|
47756
|
+
f
|
|
47757
|
+
);
|
|
47758
|
+
}
|
|
47759
|
+
f = message.getAxis();
|
|
47760
|
+
if (f !== 0) {
|
|
47761
|
+
writer.writeInt32(
|
|
47762
|
+
3,
|
|
47763
|
+
f
|
|
47764
|
+
);
|
|
47765
|
+
}
|
|
47766
|
+
f = message.getToParamset();
|
|
47767
|
+
if (f !== 0) {
|
|
47768
|
+
writer.writeInt32(
|
|
47769
|
+
4,
|
|
47770
|
+
f
|
|
47771
|
+
);
|
|
47772
|
+
}
|
|
47773
|
+
f = message.getFromParamset();
|
|
47774
|
+
if (f !== 0) {
|
|
47775
|
+
writer.writeInt32(
|
|
47776
|
+
5,
|
|
47777
|
+
f
|
|
47778
|
+
);
|
|
47779
|
+
}
|
|
47780
|
+
};
|
|
47781
|
+
|
|
47782
|
+
|
|
47783
|
+
/**
|
|
47784
|
+
* optional int32 interface_id = 1;
|
|
47785
|
+
* @return {number}
|
|
47786
|
+
*/
|
|
47787
|
+
proto.zaber.motion.protobufs.LoadParamset.prototype.getInterfaceId = function() {
|
|
47788
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
47789
|
+
};
|
|
47790
|
+
|
|
47791
|
+
|
|
47792
|
+
/**
|
|
47793
|
+
* @param {number} value
|
|
47794
|
+
* @return {!proto.zaber.motion.protobufs.LoadParamset} returns this
|
|
47795
|
+
*/
|
|
47796
|
+
proto.zaber.motion.protobufs.LoadParamset.prototype.setInterfaceId = function(value) {
|
|
47797
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
47798
|
+
};
|
|
47799
|
+
|
|
47800
|
+
|
|
47801
|
+
/**
|
|
47802
|
+
* optional int32 device = 2;
|
|
47803
|
+
* @return {number}
|
|
47804
|
+
*/
|
|
47805
|
+
proto.zaber.motion.protobufs.LoadParamset.prototype.getDevice = function() {
|
|
47806
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
47807
|
+
};
|
|
47808
|
+
|
|
47809
|
+
|
|
47810
|
+
/**
|
|
47811
|
+
* @param {number} value
|
|
47812
|
+
* @return {!proto.zaber.motion.protobufs.LoadParamset} returns this
|
|
47813
|
+
*/
|
|
47814
|
+
proto.zaber.motion.protobufs.LoadParamset.prototype.setDevice = function(value) {
|
|
47815
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
47816
|
+
};
|
|
47817
|
+
|
|
47818
|
+
|
|
47819
|
+
/**
|
|
47820
|
+
* optional int32 axis = 3;
|
|
47821
|
+
* @return {number}
|
|
47822
|
+
*/
|
|
47823
|
+
proto.zaber.motion.protobufs.LoadParamset.prototype.getAxis = function() {
|
|
47824
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
47825
|
+
};
|
|
47826
|
+
|
|
47827
|
+
|
|
47828
|
+
/**
|
|
47829
|
+
* @param {number} value
|
|
47830
|
+
* @return {!proto.zaber.motion.protobufs.LoadParamset} returns this
|
|
47831
|
+
*/
|
|
47832
|
+
proto.zaber.motion.protobufs.LoadParamset.prototype.setAxis = function(value) {
|
|
47833
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
47834
|
+
};
|
|
47835
|
+
|
|
47836
|
+
|
|
47837
|
+
/**
|
|
47838
|
+
* optional int32 to_paramset = 4;
|
|
47839
|
+
* @return {number}
|
|
47840
|
+
*/
|
|
47841
|
+
proto.zaber.motion.protobufs.LoadParamset.prototype.getToParamset = function() {
|
|
47842
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
47843
|
+
};
|
|
47844
|
+
|
|
47845
|
+
|
|
47846
|
+
/**
|
|
47847
|
+
* @param {number} value
|
|
47848
|
+
* @return {!proto.zaber.motion.protobufs.LoadParamset} returns this
|
|
47849
|
+
*/
|
|
47850
|
+
proto.zaber.motion.protobufs.LoadParamset.prototype.setToParamset = function(value) {
|
|
47851
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
47852
|
+
};
|
|
47853
|
+
|
|
47854
|
+
|
|
47855
|
+
/**
|
|
47856
|
+
* optional int32 from_paramset = 5;
|
|
47857
|
+
* @return {number}
|
|
47858
|
+
*/
|
|
47859
|
+
proto.zaber.motion.protobufs.LoadParamset.prototype.getFromParamset = function() {
|
|
47860
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
47861
|
+
};
|
|
47862
|
+
|
|
47863
|
+
|
|
47864
|
+
/**
|
|
47865
|
+
* @param {number} value
|
|
47866
|
+
* @return {!proto.zaber.motion.protobufs.LoadParamset} returns this
|
|
47867
|
+
*/
|
|
47868
|
+
proto.zaber.motion.protobufs.LoadParamset.prototype.setFromParamset = function(value) {
|
|
47869
|
+
return jspb.Message.setProto3IntField(this, 5, value);
|
|
47870
|
+
};
|
|
47871
|
+
|
|
47872
|
+
|
|
47873
|
+
|
|
47874
|
+
|
|
47875
|
+
|
|
47876
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
47877
|
+
/**
|
|
47878
|
+
* Creates an object representation of this proto.
|
|
47879
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
47880
|
+
* Optional fields that are not set will be set to undefined.
|
|
47881
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
47882
|
+
* For the list of reserved names please see:
|
|
47883
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
47884
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
47885
|
+
* JSPB instance for transitional soy proto support:
|
|
47886
|
+
* http://goto/soy-param-migration
|
|
47887
|
+
* @return {!Object}
|
|
47888
|
+
*/
|
|
47889
|
+
proto.zaber.motion.protobufs.SetServoTuningPIDRequest.prototype.toObject = function(opt_includeInstance) {
|
|
47890
|
+
return proto.zaber.motion.protobufs.SetServoTuningPIDRequest.toObject(opt_includeInstance, this);
|
|
47891
|
+
};
|
|
47892
|
+
|
|
47893
|
+
|
|
47894
|
+
/**
|
|
47895
|
+
* Static version of the {@see toObject} method.
|
|
47896
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
47897
|
+
* the JSPB instance for transitional soy proto support:
|
|
47898
|
+
* http://goto/soy-param-migration
|
|
47899
|
+
* @param {!proto.zaber.motion.protobufs.SetServoTuningPIDRequest} msg The msg instance to transform.
|
|
47900
|
+
* @return {!Object}
|
|
47901
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
47902
|
+
*/
|
|
47903
|
+
proto.zaber.motion.protobufs.SetServoTuningPIDRequest.toObject = function(includeInstance, msg) {
|
|
47904
|
+
var f, obj = {
|
|
47905
|
+
interfaceId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
47906
|
+
device: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
47907
|
+
axis: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
47908
|
+
paramset: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
47909
|
+
p: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
|
|
47910
|
+
i: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0),
|
|
47911
|
+
d: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0),
|
|
47912
|
+
fc: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.0)
|
|
47913
|
+
};
|
|
47914
|
+
|
|
47915
|
+
if (includeInstance) {
|
|
47916
|
+
obj.$jspbMessageInstance = msg;
|
|
47917
|
+
}
|
|
47918
|
+
return obj;
|
|
47919
|
+
};
|
|
47920
|
+
}
|
|
47921
|
+
|
|
47922
|
+
|
|
47923
|
+
/**
|
|
47924
|
+
* Deserializes binary data (in protobuf wire format).
|
|
47925
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
47926
|
+
* @return {!proto.zaber.motion.protobufs.SetServoTuningPIDRequest}
|
|
47927
|
+
*/
|
|
47928
|
+
proto.zaber.motion.protobufs.SetServoTuningPIDRequest.deserializeBinary = function(bytes) {
|
|
47929
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
47930
|
+
var msg = new proto.zaber.motion.protobufs.SetServoTuningPIDRequest;
|
|
47931
|
+
return proto.zaber.motion.protobufs.SetServoTuningPIDRequest.deserializeBinaryFromReader(msg, reader);
|
|
47932
|
+
};
|
|
47933
|
+
|
|
47934
|
+
|
|
47935
|
+
/**
|
|
47936
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
47937
|
+
* given reader into the given message object.
|
|
47938
|
+
* @param {!proto.zaber.motion.protobufs.SetServoTuningPIDRequest} msg The message object to deserialize into.
|
|
47939
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
47940
|
+
* @return {!proto.zaber.motion.protobufs.SetServoTuningPIDRequest}
|
|
47941
|
+
*/
|
|
47942
|
+
proto.zaber.motion.protobufs.SetServoTuningPIDRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
47943
|
+
while (reader.nextField()) {
|
|
47944
|
+
if (reader.isEndGroup()) {
|
|
47945
|
+
break;
|
|
47946
|
+
}
|
|
47947
|
+
var field = reader.getFieldNumber();
|
|
47948
|
+
switch (field) {
|
|
47949
|
+
case 1:
|
|
47950
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
47951
|
+
msg.setInterfaceId(value);
|
|
47952
|
+
break;
|
|
47953
|
+
case 2:
|
|
47954
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
47955
|
+
msg.setDevice(value);
|
|
47956
|
+
break;
|
|
47957
|
+
case 3:
|
|
47958
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
47959
|
+
msg.setAxis(value);
|
|
47960
|
+
break;
|
|
47961
|
+
case 4:
|
|
47962
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
47963
|
+
msg.setParamset(value);
|
|
47964
|
+
break;
|
|
47965
|
+
case 5:
|
|
47966
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
47967
|
+
msg.setP(value);
|
|
47968
|
+
break;
|
|
47969
|
+
case 6:
|
|
47970
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
47971
|
+
msg.setI(value);
|
|
47972
|
+
break;
|
|
47973
|
+
case 7:
|
|
47974
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
47975
|
+
msg.setD(value);
|
|
47976
|
+
break;
|
|
47977
|
+
case 8:
|
|
47978
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
47979
|
+
msg.setFc(value);
|
|
47980
|
+
break;
|
|
47981
|
+
default:
|
|
47982
|
+
reader.skipField();
|
|
47983
|
+
break;
|
|
47984
|
+
}
|
|
47985
|
+
}
|
|
47986
|
+
return msg;
|
|
47987
|
+
};
|
|
47988
|
+
|
|
47989
|
+
|
|
47990
|
+
/**
|
|
47991
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
47992
|
+
* @return {!Uint8Array}
|
|
47993
|
+
*/
|
|
47994
|
+
proto.zaber.motion.protobufs.SetServoTuningPIDRequest.prototype.serializeBinary = function() {
|
|
47995
|
+
var writer = new jspb.BinaryWriter();
|
|
47996
|
+
proto.zaber.motion.protobufs.SetServoTuningPIDRequest.serializeBinaryToWriter(this, writer);
|
|
47997
|
+
return writer.getResultBuffer();
|
|
47998
|
+
};
|
|
47999
|
+
|
|
48000
|
+
|
|
48001
|
+
/**
|
|
48002
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
48003
|
+
* format), writing to the given BinaryWriter.
|
|
48004
|
+
* @param {!proto.zaber.motion.protobufs.SetServoTuningPIDRequest} message
|
|
48005
|
+
* @param {!jspb.BinaryWriter} writer
|
|
48006
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
48007
|
+
*/
|
|
48008
|
+
proto.zaber.motion.protobufs.SetServoTuningPIDRequest.serializeBinaryToWriter = function(message, writer) {
|
|
48009
|
+
var f = undefined;
|
|
48010
|
+
f = message.getInterfaceId();
|
|
48011
|
+
if (f !== 0) {
|
|
48012
|
+
writer.writeInt32(
|
|
48013
|
+
1,
|
|
48014
|
+
f
|
|
48015
|
+
);
|
|
48016
|
+
}
|
|
48017
|
+
f = message.getDevice();
|
|
48018
|
+
if (f !== 0) {
|
|
48019
|
+
writer.writeInt32(
|
|
48020
|
+
2,
|
|
48021
|
+
f
|
|
48022
|
+
);
|
|
48023
|
+
}
|
|
48024
|
+
f = message.getAxis();
|
|
48025
|
+
if (f !== 0) {
|
|
48026
|
+
writer.writeInt32(
|
|
48027
|
+
3,
|
|
48028
|
+
f
|
|
48029
|
+
);
|
|
48030
|
+
}
|
|
48031
|
+
f = message.getParamset();
|
|
48032
|
+
if (f !== 0) {
|
|
48033
|
+
writer.writeInt32(
|
|
48034
|
+
4,
|
|
48035
|
+
f
|
|
48036
|
+
);
|
|
48037
|
+
}
|
|
48038
|
+
f = message.getP();
|
|
48039
|
+
if (f !== 0.0) {
|
|
48040
|
+
writer.writeDouble(
|
|
48041
|
+
5,
|
|
48042
|
+
f
|
|
48043
|
+
);
|
|
48044
|
+
}
|
|
48045
|
+
f = message.getI();
|
|
48046
|
+
if (f !== 0.0) {
|
|
48047
|
+
writer.writeDouble(
|
|
48048
|
+
6,
|
|
48049
|
+
f
|
|
48050
|
+
);
|
|
48051
|
+
}
|
|
48052
|
+
f = message.getD();
|
|
48053
|
+
if (f !== 0.0) {
|
|
48054
|
+
writer.writeDouble(
|
|
48055
|
+
7,
|
|
48056
|
+
f
|
|
48057
|
+
);
|
|
48058
|
+
}
|
|
48059
|
+
f = message.getFc();
|
|
48060
|
+
if (f !== 0.0) {
|
|
48061
|
+
writer.writeDouble(
|
|
48062
|
+
8,
|
|
48063
|
+
f
|
|
48064
|
+
);
|
|
48065
|
+
}
|
|
48066
|
+
};
|
|
48067
|
+
|
|
48068
|
+
|
|
48069
|
+
/**
|
|
48070
|
+
* optional int32 interface_id = 1;
|
|
48071
|
+
* @return {number}
|
|
48072
|
+
*/
|
|
48073
|
+
proto.zaber.motion.protobufs.SetServoTuningPIDRequest.prototype.getInterfaceId = function() {
|
|
48074
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
48075
|
+
};
|
|
48076
|
+
|
|
48077
|
+
|
|
48078
|
+
/**
|
|
48079
|
+
* @param {number} value
|
|
48080
|
+
* @return {!proto.zaber.motion.protobufs.SetServoTuningPIDRequest} returns this
|
|
48081
|
+
*/
|
|
48082
|
+
proto.zaber.motion.protobufs.SetServoTuningPIDRequest.prototype.setInterfaceId = function(value) {
|
|
48083
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
48084
|
+
};
|
|
48085
|
+
|
|
48086
|
+
|
|
48087
|
+
/**
|
|
48088
|
+
* optional int32 device = 2;
|
|
48089
|
+
* @return {number}
|
|
48090
|
+
*/
|
|
48091
|
+
proto.zaber.motion.protobufs.SetServoTuningPIDRequest.prototype.getDevice = function() {
|
|
48092
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
48093
|
+
};
|
|
48094
|
+
|
|
48095
|
+
|
|
48096
|
+
/**
|
|
48097
|
+
* @param {number} value
|
|
48098
|
+
* @return {!proto.zaber.motion.protobufs.SetServoTuningPIDRequest} returns this
|
|
48099
|
+
*/
|
|
48100
|
+
proto.zaber.motion.protobufs.SetServoTuningPIDRequest.prototype.setDevice = function(value) {
|
|
48101
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
48102
|
+
};
|
|
48103
|
+
|
|
48104
|
+
|
|
48105
|
+
/**
|
|
48106
|
+
* optional int32 axis = 3;
|
|
48107
|
+
* @return {number}
|
|
48108
|
+
*/
|
|
48109
|
+
proto.zaber.motion.protobufs.SetServoTuningPIDRequest.prototype.getAxis = function() {
|
|
48110
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
48111
|
+
};
|
|
48112
|
+
|
|
48113
|
+
|
|
48114
|
+
/**
|
|
48115
|
+
* @param {number} value
|
|
48116
|
+
* @return {!proto.zaber.motion.protobufs.SetServoTuningPIDRequest} returns this
|
|
48117
|
+
*/
|
|
48118
|
+
proto.zaber.motion.protobufs.SetServoTuningPIDRequest.prototype.setAxis = function(value) {
|
|
48119
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
48120
|
+
};
|
|
48121
|
+
|
|
48122
|
+
|
|
48123
|
+
/**
|
|
48124
|
+
* optional int32 paramset = 4;
|
|
48125
|
+
* @return {number}
|
|
48126
|
+
*/
|
|
48127
|
+
proto.zaber.motion.protobufs.SetServoTuningPIDRequest.prototype.getParamset = function() {
|
|
48128
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
48129
|
+
};
|
|
48130
|
+
|
|
48131
|
+
|
|
48132
|
+
/**
|
|
48133
|
+
* @param {number} value
|
|
48134
|
+
* @return {!proto.zaber.motion.protobufs.SetServoTuningPIDRequest} returns this
|
|
48135
|
+
*/
|
|
48136
|
+
proto.zaber.motion.protobufs.SetServoTuningPIDRequest.prototype.setParamset = function(value) {
|
|
48137
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
48138
|
+
};
|
|
48139
|
+
|
|
48140
|
+
|
|
48141
|
+
/**
|
|
48142
|
+
* optional double p = 5;
|
|
48143
|
+
* @return {number}
|
|
48144
|
+
*/
|
|
48145
|
+
proto.zaber.motion.protobufs.SetServoTuningPIDRequest.prototype.getP = function() {
|
|
48146
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
|
|
48147
|
+
};
|
|
48148
|
+
|
|
48149
|
+
|
|
48150
|
+
/**
|
|
48151
|
+
* @param {number} value
|
|
48152
|
+
* @return {!proto.zaber.motion.protobufs.SetServoTuningPIDRequest} returns this
|
|
48153
|
+
*/
|
|
48154
|
+
proto.zaber.motion.protobufs.SetServoTuningPIDRequest.prototype.setP = function(value) {
|
|
48155
|
+
return jspb.Message.setProto3FloatField(this, 5, value);
|
|
48156
|
+
};
|
|
48157
|
+
|
|
48158
|
+
|
|
48159
|
+
/**
|
|
48160
|
+
* optional double i = 6;
|
|
48161
|
+
* @return {number}
|
|
48162
|
+
*/
|
|
48163
|
+
proto.zaber.motion.protobufs.SetServoTuningPIDRequest.prototype.getI = function() {
|
|
48164
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0));
|
|
48165
|
+
};
|
|
48166
|
+
|
|
48167
|
+
|
|
48168
|
+
/**
|
|
48169
|
+
* @param {number} value
|
|
48170
|
+
* @return {!proto.zaber.motion.protobufs.SetServoTuningPIDRequest} returns this
|
|
48171
|
+
*/
|
|
48172
|
+
proto.zaber.motion.protobufs.SetServoTuningPIDRequest.prototype.setI = function(value) {
|
|
48173
|
+
return jspb.Message.setProto3FloatField(this, 6, value);
|
|
48174
|
+
};
|
|
48175
|
+
|
|
48176
|
+
|
|
48177
|
+
/**
|
|
48178
|
+
* optional double d = 7;
|
|
48179
|
+
* @return {number}
|
|
48180
|
+
*/
|
|
48181
|
+
proto.zaber.motion.protobufs.SetServoTuningPIDRequest.prototype.getD = function() {
|
|
48182
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0));
|
|
48183
|
+
};
|
|
48184
|
+
|
|
48185
|
+
|
|
48186
|
+
/**
|
|
48187
|
+
* @param {number} value
|
|
48188
|
+
* @return {!proto.zaber.motion.protobufs.SetServoTuningPIDRequest} returns this
|
|
48189
|
+
*/
|
|
48190
|
+
proto.zaber.motion.protobufs.SetServoTuningPIDRequest.prototype.setD = function(value) {
|
|
48191
|
+
return jspb.Message.setProto3FloatField(this, 7, value);
|
|
48192
|
+
};
|
|
48193
|
+
|
|
48194
|
+
|
|
48195
|
+
/**
|
|
48196
|
+
* optional double fc = 8;
|
|
48197
|
+
* @return {number}
|
|
48198
|
+
*/
|
|
48199
|
+
proto.zaber.motion.protobufs.SetServoTuningPIDRequest.prototype.getFc = function() {
|
|
48200
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 8, 0.0));
|
|
48201
|
+
};
|
|
48202
|
+
|
|
48203
|
+
|
|
48204
|
+
/**
|
|
48205
|
+
* @param {number} value
|
|
48206
|
+
* @return {!proto.zaber.motion.protobufs.SetServoTuningPIDRequest} returns this
|
|
48207
|
+
*/
|
|
48208
|
+
proto.zaber.motion.protobufs.SetServoTuningPIDRequest.prototype.setFc = function(value) {
|
|
48209
|
+
return jspb.Message.setProto3FloatField(this, 8, value);
|
|
48210
|
+
};
|
|
48211
|
+
|
|
48212
|
+
|
|
48213
|
+
|
|
48214
|
+
|
|
48215
|
+
|
|
48216
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
48217
|
+
/**
|
|
48218
|
+
* Creates an object representation of this proto.
|
|
48219
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
48220
|
+
* Optional fields that are not set will be set to undefined.
|
|
48221
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
48222
|
+
* For the list of reserved names please see:
|
|
48223
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
48224
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
48225
|
+
* JSPB instance for transitional soy proto support:
|
|
48226
|
+
* http://goto/soy-param-migration
|
|
48227
|
+
* @return {!Object}
|
|
48228
|
+
*/
|
|
48229
|
+
proto.zaber.motion.protobufs.PidTuning.prototype.toObject = function(opt_includeInstance) {
|
|
48230
|
+
return proto.zaber.motion.protobufs.PidTuning.toObject(opt_includeInstance, this);
|
|
48231
|
+
};
|
|
48232
|
+
|
|
48233
|
+
|
|
48234
|
+
/**
|
|
48235
|
+
* Static version of the {@see toObject} method.
|
|
48236
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
48237
|
+
* the JSPB instance for transitional soy proto support:
|
|
48238
|
+
* http://goto/soy-param-migration
|
|
48239
|
+
* @param {!proto.zaber.motion.protobufs.PidTuning} msg The msg instance to transform.
|
|
48240
|
+
* @return {!Object}
|
|
48241
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
48242
|
+
*/
|
|
48243
|
+
proto.zaber.motion.protobufs.PidTuning.toObject = function(includeInstance, msg) {
|
|
48244
|
+
var f, obj = {
|
|
48245
|
+
type: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
48246
|
+
version: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
48247
|
+
p: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
|
|
48248
|
+
i: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
|
|
48249
|
+
d: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
|
|
48250
|
+
fc: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0)
|
|
48251
|
+
};
|
|
48252
|
+
|
|
48253
|
+
if (includeInstance) {
|
|
48254
|
+
obj.$jspbMessageInstance = msg;
|
|
48255
|
+
}
|
|
48256
|
+
return obj;
|
|
48257
|
+
};
|
|
48258
|
+
}
|
|
48259
|
+
|
|
48260
|
+
|
|
48261
|
+
/**
|
|
48262
|
+
* Deserializes binary data (in protobuf wire format).
|
|
48263
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
48264
|
+
* @return {!proto.zaber.motion.protobufs.PidTuning}
|
|
48265
|
+
*/
|
|
48266
|
+
proto.zaber.motion.protobufs.PidTuning.deserializeBinary = function(bytes) {
|
|
48267
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
48268
|
+
var msg = new proto.zaber.motion.protobufs.PidTuning;
|
|
48269
|
+
return proto.zaber.motion.protobufs.PidTuning.deserializeBinaryFromReader(msg, reader);
|
|
48270
|
+
};
|
|
48271
|
+
|
|
48272
|
+
|
|
48273
|
+
/**
|
|
48274
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
48275
|
+
* given reader into the given message object.
|
|
48276
|
+
* @param {!proto.zaber.motion.protobufs.PidTuning} msg The message object to deserialize into.
|
|
48277
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
48278
|
+
* @return {!proto.zaber.motion.protobufs.PidTuning}
|
|
48279
|
+
*/
|
|
48280
|
+
proto.zaber.motion.protobufs.PidTuning.deserializeBinaryFromReader = function(msg, reader) {
|
|
48281
|
+
while (reader.nextField()) {
|
|
48282
|
+
if (reader.isEndGroup()) {
|
|
48283
|
+
break;
|
|
48284
|
+
}
|
|
48285
|
+
var field = reader.getFieldNumber();
|
|
48286
|
+
switch (field) {
|
|
48287
|
+
case 1:
|
|
48288
|
+
var value = /** @type {string} */ (reader.readString());
|
|
48289
|
+
msg.setType(value);
|
|
48290
|
+
break;
|
|
48291
|
+
case 2:
|
|
48292
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
48293
|
+
msg.setVersion(value);
|
|
48294
|
+
break;
|
|
48295
|
+
case 3:
|
|
48296
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
48297
|
+
msg.setP(value);
|
|
48298
|
+
break;
|
|
48299
|
+
case 4:
|
|
48300
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
48301
|
+
msg.setI(value);
|
|
48302
|
+
break;
|
|
48303
|
+
case 5:
|
|
48304
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
48305
|
+
msg.setD(value);
|
|
48306
|
+
break;
|
|
48307
|
+
case 6:
|
|
48308
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
48309
|
+
msg.setFc(value);
|
|
48310
|
+
break;
|
|
48311
|
+
default:
|
|
48312
|
+
reader.skipField();
|
|
48313
|
+
break;
|
|
48314
|
+
}
|
|
48315
|
+
}
|
|
48316
|
+
return msg;
|
|
48317
|
+
};
|
|
48318
|
+
|
|
48319
|
+
|
|
48320
|
+
/**
|
|
48321
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
48322
|
+
* @return {!Uint8Array}
|
|
48323
|
+
*/
|
|
48324
|
+
proto.zaber.motion.protobufs.PidTuning.prototype.serializeBinary = function() {
|
|
48325
|
+
var writer = new jspb.BinaryWriter();
|
|
48326
|
+
proto.zaber.motion.protobufs.PidTuning.serializeBinaryToWriter(this, writer);
|
|
48327
|
+
return writer.getResultBuffer();
|
|
48328
|
+
};
|
|
48329
|
+
|
|
48330
|
+
|
|
48331
|
+
/**
|
|
48332
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
48333
|
+
* format), writing to the given BinaryWriter.
|
|
48334
|
+
* @param {!proto.zaber.motion.protobufs.PidTuning} message
|
|
48335
|
+
* @param {!jspb.BinaryWriter} writer
|
|
48336
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
48337
|
+
*/
|
|
48338
|
+
proto.zaber.motion.protobufs.PidTuning.serializeBinaryToWriter = function(message, writer) {
|
|
48339
|
+
var f = undefined;
|
|
48340
|
+
f = message.getType();
|
|
48341
|
+
if (f.length > 0) {
|
|
48342
|
+
writer.writeString(
|
|
48343
|
+
1,
|
|
48344
|
+
f
|
|
48345
|
+
);
|
|
48346
|
+
}
|
|
48347
|
+
f = message.getVersion();
|
|
48348
|
+
if (f !== 0) {
|
|
48349
|
+
writer.writeInt32(
|
|
48350
|
+
2,
|
|
48351
|
+
f
|
|
48352
|
+
);
|
|
48353
|
+
}
|
|
48354
|
+
f = message.getP();
|
|
48355
|
+
if (f !== 0.0) {
|
|
48356
|
+
writer.writeDouble(
|
|
48357
|
+
3,
|
|
48358
|
+
f
|
|
48359
|
+
);
|
|
48360
|
+
}
|
|
48361
|
+
f = message.getI();
|
|
48362
|
+
if (f !== 0.0) {
|
|
48363
|
+
writer.writeDouble(
|
|
48364
|
+
4,
|
|
48365
|
+
f
|
|
48366
|
+
);
|
|
48367
|
+
}
|
|
48368
|
+
f = message.getD();
|
|
48369
|
+
if (f !== 0.0) {
|
|
48370
|
+
writer.writeDouble(
|
|
48371
|
+
5,
|
|
48372
|
+
f
|
|
48373
|
+
);
|
|
48374
|
+
}
|
|
48375
|
+
f = message.getFc();
|
|
48376
|
+
if (f !== 0.0) {
|
|
48377
|
+
writer.writeDouble(
|
|
48378
|
+
6,
|
|
48379
|
+
f
|
|
48380
|
+
);
|
|
48381
|
+
}
|
|
48382
|
+
};
|
|
48383
|
+
|
|
48384
|
+
|
|
48385
|
+
/**
|
|
48386
|
+
* optional string type = 1;
|
|
48387
|
+
* @return {string}
|
|
48388
|
+
*/
|
|
48389
|
+
proto.zaber.motion.protobufs.PidTuning.prototype.getType = function() {
|
|
48390
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
48391
|
+
};
|
|
48392
|
+
|
|
48393
|
+
|
|
48394
|
+
/**
|
|
48395
|
+
* @param {string} value
|
|
48396
|
+
* @return {!proto.zaber.motion.protobufs.PidTuning} returns this
|
|
48397
|
+
*/
|
|
48398
|
+
proto.zaber.motion.protobufs.PidTuning.prototype.setType = function(value) {
|
|
48399
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
48400
|
+
};
|
|
48401
|
+
|
|
48402
|
+
|
|
48403
|
+
/**
|
|
48404
|
+
* optional int32 version = 2;
|
|
48405
|
+
* @return {number}
|
|
48406
|
+
*/
|
|
48407
|
+
proto.zaber.motion.protobufs.PidTuning.prototype.getVersion = function() {
|
|
48408
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
48409
|
+
};
|
|
48410
|
+
|
|
48411
|
+
|
|
48412
|
+
/**
|
|
48413
|
+
* @param {number} value
|
|
48414
|
+
* @return {!proto.zaber.motion.protobufs.PidTuning} returns this
|
|
48415
|
+
*/
|
|
48416
|
+
proto.zaber.motion.protobufs.PidTuning.prototype.setVersion = function(value) {
|
|
48417
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
48418
|
+
};
|
|
48419
|
+
|
|
48420
|
+
|
|
48421
|
+
/**
|
|
48422
|
+
* optional double p = 3;
|
|
48423
|
+
* @return {number}
|
|
48424
|
+
*/
|
|
48425
|
+
proto.zaber.motion.protobufs.PidTuning.prototype.getP = function() {
|
|
48426
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
|
|
48427
|
+
};
|
|
48428
|
+
|
|
48429
|
+
|
|
48430
|
+
/**
|
|
48431
|
+
* @param {number} value
|
|
48432
|
+
* @return {!proto.zaber.motion.protobufs.PidTuning} returns this
|
|
48433
|
+
*/
|
|
48434
|
+
proto.zaber.motion.protobufs.PidTuning.prototype.setP = function(value) {
|
|
48435
|
+
return jspb.Message.setProto3FloatField(this, 3, value);
|
|
48436
|
+
};
|
|
48437
|
+
|
|
48438
|
+
|
|
48439
|
+
/**
|
|
48440
|
+
* optional double i = 4;
|
|
48441
|
+
* @return {number}
|
|
48442
|
+
*/
|
|
48443
|
+
proto.zaber.motion.protobufs.PidTuning.prototype.getI = function() {
|
|
48444
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
|
|
48445
|
+
};
|
|
48446
|
+
|
|
48447
|
+
|
|
48448
|
+
/**
|
|
48449
|
+
* @param {number} value
|
|
48450
|
+
* @return {!proto.zaber.motion.protobufs.PidTuning} returns this
|
|
48451
|
+
*/
|
|
48452
|
+
proto.zaber.motion.protobufs.PidTuning.prototype.setI = function(value) {
|
|
48453
|
+
return jspb.Message.setProto3FloatField(this, 4, value);
|
|
48454
|
+
};
|
|
48455
|
+
|
|
48456
|
+
|
|
48457
|
+
/**
|
|
48458
|
+
* optional double d = 5;
|
|
48459
|
+
* @return {number}
|
|
48460
|
+
*/
|
|
48461
|
+
proto.zaber.motion.protobufs.PidTuning.prototype.getD = function() {
|
|
48462
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
|
|
48463
|
+
};
|
|
48464
|
+
|
|
48465
|
+
|
|
48466
|
+
/**
|
|
48467
|
+
* @param {number} value
|
|
48468
|
+
* @return {!proto.zaber.motion.protobufs.PidTuning} returns this
|
|
48469
|
+
*/
|
|
48470
|
+
proto.zaber.motion.protobufs.PidTuning.prototype.setD = function(value) {
|
|
48471
|
+
return jspb.Message.setProto3FloatField(this, 5, value);
|
|
48472
|
+
};
|
|
48473
|
+
|
|
48474
|
+
|
|
48475
|
+
/**
|
|
48476
|
+
* optional double fc = 6;
|
|
48477
|
+
* @return {number}
|
|
48478
|
+
*/
|
|
48479
|
+
proto.zaber.motion.protobufs.PidTuning.prototype.getFc = function() {
|
|
48480
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0));
|
|
48481
|
+
};
|
|
48482
|
+
|
|
48483
|
+
|
|
48484
|
+
/**
|
|
48485
|
+
* @param {number} value
|
|
48486
|
+
* @return {!proto.zaber.motion.protobufs.PidTuning} returns this
|
|
48487
|
+
*/
|
|
48488
|
+
proto.zaber.motion.protobufs.PidTuning.prototype.setFc = function(value) {
|
|
48489
|
+
return jspb.Message.setProto3FloatField(this, 6, value);
|
|
48490
|
+
};
|
|
48491
|
+
|
|
48492
|
+
|
|
48493
|
+
|
|
48494
|
+
|
|
48495
|
+
|
|
48496
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
48497
|
+
/**
|
|
48498
|
+
* Creates an object representation of this proto.
|
|
48499
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
48500
|
+
* Optional fields that are not set will be set to undefined.
|
|
48501
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
48502
|
+
* For the list of reserved names please see:
|
|
48503
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
48504
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
48505
|
+
* JSPB instance for transitional soy proto support:
|
|
48506
|
+
* http://goto/soy-param-migration
|
|
48507
|
+
* @return {!Object}
|
|
48508
|
+
*/
|
|
48509
|
+
proto.zaber.motion.protobufs.GetSimpleTuningParamListRequest.prototype.toObject = function(opt_includeInstance) {
|
|
48510
|
+
return proto.zaber.motion.protobufs.GetSimpleTuningParamListRequest.toObject(opt_includeInstance, this);
|
|
48511
|
+
};
|
|
48512
|
+
|
|
48513
|
+
|
|
48514
|
+
/**
|
|
48515
|
+
* Static version of the {@see toObject} method.
|
|
48516
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
48517
|
+
* the JSPB instance for transitional soy proto support:
|
|
48518
|
+
* http://goto/soy-param-migration
|
|
48519
|
+
* @param {!proto.zaber.motion.protobufs.GetSimpleTuningParamListRequest} msg The msg instance to transform.
|
|
48520
|
+
* @return {!Object}
|
|
48521
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
48522
|
+
*/
|
|
48523
|
+
proto.zaber.motion.protobufs.GetSimpleTuningParamListRequest.toObject = function(includeInstance, msg) {
|
|
48524
|
+
var f, obj = {
|
|
48525
|
+
interfaceId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
48526
|
+
device: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
48527
|
+
axis: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
48528
|
+
};
|
|
48529
|
+
|
|
48530
|
+
if (includeInstance) {
|
|
48531
|
+
obj.$jspbMessageInstance = msg;
|
|
48532
|
+
}
|
|
48533
|
+
return obj;
|
|
48534
|
+
};
|
|
48535
|
+
}
|
|
48536
|
+
|
|
48537
|
+
|
|
48538
|
+
/**
|
|
48539
|
+
* Deserializes binary data (in protobuf wire format).
|
|
48540
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
48541
|
+
* @return {!proto.zaber.motion.protobufs.GetSimpleTuningParamListRequest}
|
|
48542
|
+
*/
|
|
48543
|
+
proto.zaber.motion.protobufs.GetSimpleTuningParamListRequest.deserializeBinary = function(bytes) {
|
|
48544
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
48545
|
+
var msg = new proto.zaber.motion.protobufs.GetSimpleTuningParamListRequest;
|
|
48546
|
+
return proto.zaber.motion.protobufs.GetSimpleTuningParamListRequest.deserializeBinaryFromReader(msg, reader);
|
|
48547
|
+
};
|
|
48548
|
+
|
|
48549
|
+
|
|
48550
|
+
/**
|
|
48551
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
48552
|
+
* given reader into the given message object.
|
|
48553
|
+
* @param {!proto.zaber.motion.protobufs.GetSimpleTuningParamListRequest} msg The message object to deserialize into.
|
|
48554
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
48555
|
+
* @return {!proto.zaber.motion.protobufs.GetSimpleTuningParamListRequest}
|
|
48556
|
+
*/
|
|
48557
|
+
proto.zaber.motion.protobufs.GetSimpleTuningParamListRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
48558
|
+
while (reader.nextField()) {
|
|
48559
|
+
if (reader.isEndGroup()) {
|
|
48560
|
+
break;
|
|
48561
|
+
}
|
|
48562
|
+
var field = reader.getFieldNumber();
|
|
48563
|
+
switch (field) {
|
|
48564
|
+
case 1:
|
|
48565
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
48566
|
+
msg.setInterfaceId(value);
|
|
48567
|
+
break;
|
|
48568
|
+
case 2:
|
|
48569
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
48570
|
+
msg.setDevice(value);
|
|
48571
|
+
break;
|
|
48572
|
+
case 3:
|
|
48573
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
48574
|
+
msg.setAxis(value);
|
|
48575
|
+
break;
|
|
48576
|
+
default:
|
|
48577
|
+
reader.skipField();
|
|
48578
|
+
break;
|
|
48579
|
+
}
|
|
48580
|
+
}
|
|
48581
|
+
return msg;
|
|
48582
|
+
};
|
|
48583
|
+
|
|
48584
|
+
|
|
48585
|
+
/**
|
|
48586
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
48587
|
+
* @return {!Uint8Array}
|
|
48588
|
+
*/
|
|
48589
|
+
proto.zaber.motion.protobufs.GetSimpleTuningParamListRequest.prototype.serializeBinary = function() {
|
|
48590
|
+
var writer = new jspb.BinaryWriter();
|
|
48591
|
+
proto.zaber.motion.protobufs.GetSimpleTuningParamListRequest.serializeBinaryToWriter(this, writer);
|
|
48592
|
+
return writer.getResultBuffer();
|
|
48593
|
+
};
|
|
48594
|
+
|
|
48595
|
+
|
|
48596
|
+
/**
|
|
48597
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
48598
|
+
* format), writing to the given BinaryWriter.
|
|
48599
|
+
* @param {!proto.zaber.motion.protobufs.GetSimpleTuningParamListRequest} message
|
|
48600
|
+
* @param {!jspb.BinaryWriter} writer
|
|
48601
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
48602
|
+
*/
|
|
48603
|
+
proto.zaber.motion.protobufs.GetSimpleTuningParamListRequest.serializeBinaryToWriter = function(message, writer) {
|
|
48604
|
+
var f = undefined;
|
|
48605
|
+
f = message.getInterfaceId();
|
|
48606
|
+
if (f !== 0) {
|
|
48607
|
+
writer.writeInt32(
|
|
48608
|
+
1,
|
|
48609
|
+
f
|
|
48610
|
+
);
|
|
48611
|
+
}
|
|
48612
|
+
f = message.getDevice();
|
|
48613
|
+
if (f !== 0) {
|
|
48614
|
+
writer.writeInt32(
|
|
48615
|
+
2,
|
|
48616
|
+
f
|
|
48617
|
+
);
|
|
48618
|
+
}
|
|
48619
|
+
f = message.getAxis();
|
|
48620
|
+
if (f !== 0) {
|
|
48621
|
+
writer.writeInt32(
|
|
48622
|
+
3,
|
|
48623
|
+
f
|
|
48624
|
+
);
|
|
48625
|
+
}
|
|
48626
|
+
};
|
|
48627
|
+
|
|
48628
|
+
|
|
48629
|
+
/**
|
|
48630
|
+
* optional int32 interface_id = 1;
|
|
48631
|
+
* @return {number}
|
|
48632
|
+
*/
|
|
48633
|
+
proto.zaber.motion.protobufs.GetSimpleTuningParamListRequest.prototype.getInterfaceId = function() {
|
|
48634
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
48635
|
+
};
|
|
48636
|
+
|
|
48637
|
+
|
|
48638
|
+
/**
|
|
48639
|
+
* @param {number} value
|
|
48640
|
+
* @return {!proto.zaber.motion.protobufs.GetSimpleTuningParamListRequest} returns this
|
|
48641
|
+
*/
|
|
48642
|
+
proto.zaber.motion.protobufs.GetSimpleTuningParamListRequest.prototype.setInterfaceId = function(value) {
|
|
48643
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
48644
|
+
};
|
|
48645
|
+
|
|
48646
|
+
|
|
48647
|
+
/**
|
|
48648
|
+
* optional int32 device = 2;
|
|
48649
|
+
* @return {number}
|
|
48650
|
+
*/
|
|
48651
|
+
proto.zaber.motion.protobufs.GetSimpleTuningParamListRequest.prototype.getDevice = function() {
|
|
48652
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
48653
|
+
};
|
|
48654
|
+
|
|
48655
|
+
|
|
48656
|
+
/**
|
|
48657
|
+
* @param {number} value
|
|
48658
|
+
* @return {!proto.zaber.motion.protobufs.GetSimpleTuningParamListRequest} returns this
|
|
48659
|
+
*/
|
|
48660
|
+
proto.zaber.motion.protobufs.GetSimpleTuningParamListRequest.prototype.setDevice = function(value) {
|
|
48661
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
48662
|
+
};
|
|
48663
|
+
|
|
48664
|
+
|
|
48665
|
+
/**
|
|
48666
|
+
* optional int32 axis = 3;
|
|
48667
|
+
* @return {number}
|
|
48668
|
+
*/
|
|
48669
|
+
proto.zaber.motion.protobufs.GetSimpleTuningParamListRequest.prototype.getAxis = function() {
|
|
48670
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
48671
|
+
};
|
|
48672
|
+
|
|
48673
|
+
|
|
48674
|
+
/**
|
|
48675
|
+
* @param {number} value
|
|
48676
|
+
* @return {!proto.zaber.motion.protobufs.GetSimpleTuningParamListRequest} returns this
|
|
48677
|
+
*/
|
|
48678
|
+
proto.zaber.motion.protobufs.GetSimpleTuningParamListRequest.prototype.setAxis = function(value) {
|
|
48679
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
48680
|
+
};
|
|
48681
|
+
|
|
48682
|
+
|
|
48683
|
+
|
|
48684
|
+
/**
|
|
48685
|
+
* List of repeated fields within this message type.
|
|
48686
|
+
* @private {!Array<number>}
|
|
48687
|
+
* @const
|
|
48688
|
+
*/
|
|
48689
|
+
proto.zaber.motion.protobufs.SetSimpleTuning.repeatedFields_ = [7];
|
|
48690
|
+
|
|
48691
|
+
|
|
48692
|
+
|
|
48693
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
48694
|
+
/**
|
|
48695
|
+
* Creates an object representation of this proto.
|
|
48696
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
48697
|
+
* Optional fields that are not set will be set to undefined.
|
|
48698
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
48699
|
+
* For the list of reserved names please see:
|
|
48700
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
48701
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
48702
|
+
* JSPB instance for transitional soy proto support:
|
|
48703
|
+
* http://goto/soy-param-migration
|
|
48704
|
+
* @return {!Object}
|
|
48705
|
+
*/
|
|
48706
|
+
proto.zaber.motion.protobufs.SetSimpleTuning.prototype.toObject = function(opt_includeInstance) {
|
|
48707
|
+
return proto.zaber.motion.protobufs.SetSimpleTuning.toObject(opt_includeInstance, this);
|
|
48708
|
+
};
|
|
48709
|
+
|
|
48710
|
+
|
|
48711
|
+
/**
|
|
48712
|
+
* Static version of the {@see toObject} method.
|
|
48713
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
48714
|
+
* the JSPB instance for transitional soy proto support:
|
|
48715
|
+
* http://goto/soy-param-migration
|
|
48716
|
+
* @param {!proto.zaber.motion.protobufs.SetSimpleTuning} msg The msg instance to transform.
|
|
48717
|
+
* @return {!Object}
|
|
48718
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
48719
|
+
*/
|
|
48720
|
+
proto.zaber.motion.protobufs.SetSimpleTuning.toObject = function(includeInstance, msg) {
|
|
48721
|
+
var f, obj = {
|
|
48722
|
+
interfaceId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
48723
|
+
device: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
48724
|
+
axis: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
48725
|
+
paramset: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
48726
|
+
carriageMass: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
|
|
48727
|
+
loadMass: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0),
|
|
48728
|
+
tuningParamsList: jspb.Message.toObjectList(msg.getTuningParamsList(),
|
|
48729
|
+
proto.zaber.motion.protobufs.ServoTuningParam.toObject, includeInstance)
|
|
48730
|
+
};
|
|
48731
|
+
|
|
48732
|
+
if (includeInstance) {
|
|
48733
|
+
obj.$jspbMessageInstance = msg;
|
|
48734
|
+
}
|
|
48735
|
+
return obj;
|
|
48736
|
+
};
|
|
48737
|
+
}
|
|
48738
|
+
|
|
48739
|
+
|
|
48740
|
+
/**
|
|
48741
|
+
* Deserializes binary data (in protobuf wire format).
|
|
48742
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
48743
|
+
* @return {!proto.zaber.motion.protobufs.SetSimpleTuning}
|
|
48744
|
+
*/
|
|
48745
|
+
proto.zaber.motion.protobufs.SetSimpleTuning.deserializeBinary = function(bytes) {
|
|
48746
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
48747
|
+
var msg = new proto.zaber.motion.protobufs.SetSimpleTuning;
|
|
48748
|
+
return proto.zaber.motion.protobufs.SetSimpleTuning.deserializeBinaryFromReader(msg, reader);
|
|
48749
|
+
};
|
|
48750
|
+
|
|
48751
|
+
|
|
48752
|
+
/**
|
|
48753
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
48754
|
+
* given reader into the given message object.
|
|
48755
|
+
* @param {!proto.zaber.motion.protobufs.SetSimpleTuning} msg The message object to deserialize into.
|
|
48756
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
48757
|
+
* @return {!proto.zaber.motion.protobufs.SetSimpleTuning}
|
|
48758
|
+
*/
|
|
48759
|
+
proto.zaber.motion.protobufs.SetSimpleTuning.deserializeBinaryFromReader = function(msg, reader) {
|
|
48760
|
+
while (reader.nextField()) {
|
|
48761
|
+
if (reader.isEndGroup()) {
|
|
48762
|
+
break;
|
|
48763
|
+
}
|
|
48764
|
+
var field = reader.getFieldNumber();
|
|
48765
|
+
switch (field) {
|
|
48766
|
+
case 1:
|
|
48767
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
48768
|
+
msg.setInterfaceId(value);
|
|
48769
|
+
break;
|
|
48770
|
+
case 2:
|
|
48771
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
48772
|
+
msg.setDevice(value);
|
|
48773
|
+
break;
|
|
48774
|
+
case 3:
|
|
48775
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
48776
|
+
msg.setAxis(value);
|
|
48777
|
+
break;
|
|
48778
|
+
case 4:
|
|
48779
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
48780
|
+
msg.setParamset(value);
|
|
48781
|
+
break;
|
|
48782
|
+
case 5:
|
|
48783
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
48784
|
+
msg.setCarriageMass(value);
|
|
48785
|
+
break;
|
|
48786
|
+
case 6:
|
|
48787
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
48788
|
+
msg.setLoadMass(value);
|
|
48789
|
+
break;
|
|
48790
|
+
case 7:
|
|
48791
|
+
var value = new proto.zaber.motion.protobufs.ServoTuningParam;
|
|
48792
|
+
reader.readMessage(value,proto.zaber.motion.protobufs.ServoTuningParam.deserializeBinaryFromReader);
|
|
48793
|
+
msg.addTuningParams(value);
|
|
48794
|
+
break;
|
|
48795
|
+
default:
|
|
48796
|
+
reader.skipField();
|
|
48797
|
+
break;
|
|
48798
|
+
}
|
|
48799
|
+
}
|
|
48800
|
+
return msg;
|
|
48801
|
+
};
|
|
48802
|
+
|
|
48803
|
+
|
|
48804
|
+
/**
|
|
48805
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
48806
|
+
* @return {!Uint8Array}
|
|
48807
|
+
*/
|
|
48808
|
+
proto.zaber.motion.protobufs.SetSimpleTuning.prototype.serializeBinary = function() {
|
|
48809
|
+
var writer = new jspb.BinaryWriter();
|
|
48810
|
+
proto.zaber.motion.protobufs.SetSimpleTuning.serializeBinaryToWriter(this, writer);
|
|
48811
|
+
return writer.getResultBuffer();
|
|
48812
|
+
};
|
|
48813
|
+
|
|
48814
|
+
|
|
48815
|
+
/**
|
|
48816
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
48817
|
+
* format), writing to the given BinaryWriter.
|
|
48818
|
+
* @param {!proto.zaber.motion.protobufs.SetSimpleTuning} message
|
|
48819
|
+
* @param {!jspb.BinaryWriter} writer
|
|
48820
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
48821
|
+
*/
|
|
48822
|
+
proto.zaber.motion.protobufs.SetSimpleTuning.serializeBinaryToWriter = function(message, writer) {
|
|
48823
|
+
var f = undefined;
|
|
48824
|
+
f = message.getInterfaceId();
|
|
48825
|
+
if (f !== 0) {
|
|
48826
|
+
writer.writeInt32(
|
|
48827
|
+
1,
|
|
48828
|
+
f
|
|
48829
|
+
);
|
|
48830
|
+
}
|
|
48831
|
+
f = message.getDevice();
|
|
48832
|
+
if (f !== 0) {
|
|
48833
|
+
writer.writeInt32(
|
|
48834
|
+
2,
|
|
48835
|
+
f
|
|
48836
|
+
);
|
|
48837
|
+
}
|
|
48838
|
+
f = message.getAxis();
|
|
48839
|
+
if (f !== 0) {
|
|
48840
|
+
writer.writeInt32(
|
|
48841
|
+
3,
|
|
48842
|
+
f
|
|
48843
|
+
);
|
|
48844
|
+
}
|
|
48845
|
+
f = message.getParamset();
|
|
48846
|
+
if (f !== 0) {
|
|
48847
|
+
writer.writeInt32(
|
|
48848
|
+
4,
|
|
48849
|
+
f
|
|
48850
|
+
);
|
|
48851
|
+
}
|
|
48852
|
+
f = message.getCarriageMass();
|
|
48853
|
+
if (f !== 0.0) {
|
|
48854
|
+
writer.writeDouble(
|
|
48855
|
+
5,
|
|
48856
|
+
f
|
|
48857
|
+
);
|
|
48858
|
+
}
|
|
48859
|
+
f = message.getLoadMass();
|
|
48860
|
+
if (f !== 0.0) {
|
|
48861
|
+
writer.writeDouble(
|
|
48862
|
+
6,
|
|
48863
|
+
f
|
|
48864
|
+
);
|
|
48865
|
+
}
|
|
48866
|
+
f = message.getTuningParamsList();
|
|
48867
|
+
if (f.length > 0) {
|
|
48868
|
+
writer.writeRepeatedMessage(
|
|
48869
|
+
7,
|
|
48870
|
+
f,
|
|
48871
|
+
proto.zaber.motion.protobufs.ServoTuningParam.serializeBinaryToWriter
|
|
48872
|
+
);
|
|
48873
|
+
}
|
|
48874
|
+
};
|
|
48875
|
+
|
|
48876
|
+
|
|
48877
|
+
/**
|
|
48878
|
+
* optional int32 interface_id = 1;
|
|
48879
|
+
* @return {number}
|
|
48880
|
+
*/
|
|
48881
|
+
proto.zaber.motion.protobufs.SetSimpleTuning.prototype.getInterfaceId = function() {
|
|
48882
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
48883
|
+
};
|
|
48884
|
+
|
|
48885
|
+
|
|
48886
|
+
/**
|
|
48887
|
+
* @param {number} value
|
|
48888
|
+
* @return {!proto.zaber.motion.protobufs.SetSimpleTuning} returns this
|
|
48889
|
+
*/
|
|
48890
|
+
proto.zaber.motion.protobufs.SetSimpleTuning.prototype.setInterfaceId = function(value) {
|
|
48891
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
48892
|
+
};
|
|
48893
|
+
|
|
48894
|
+
|
|
48895
|
+
/**
|
|
48896
|
+
* optional int32 device = 2;
|
|
48897
|
+
* @return {number}
|
|
48898
|
+
*/
|
|
48899
|
+
proto.zaber.motion.protobufs.SetSimpleTuning.prototype.getDevice = function() {
|
|
48900
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
48901
|
+
};
|
|
48902
|
+
|
|
48903
|
+
|
|
48904
|
+
/**
|
|
48905
|
+
* @param {number} value
|
|
48906
|
+
* @return {!proto.zaber.motion.protobufs.SetSimpleTuning} returns this
|
|
48907
|
+
*/
|
|
48908
|
+
proto.zaber.motion.protobufs.SetSimpleTuning.prototype.setDevice = function(value) {
|
|
48909
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
48910
|
+
};
|
|
48911
|
+
|
|
48912
|
+
|
|
48913
|
+
/**
|
|
48914
|
+
* optional int32 axis = 3;
|
|
48915
|
+
* @return {number}
|
|
48916
|
+
*/
|
|
48917
|
+
proto.zaber.motion.protobufs.SetSimpleTuning.prototype.getAxis = function() {
|
|
48918
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
48919
|
+
};
|
|
48920
|
+
|
|
48921
|
+
|
|
48922
|
+
/**
|
|
48923
|
+
* @param {number} value
|
|
48924
|
+
* @return {!proto.zaber.motion.protobufs.SetSimpleTuning} returns this
|
|
48925
|
+
*/
|
|
48926
|
+
proto.zaber.motion.protobufs.SetSimpleTuning.prototype.setAxis = function(value) {
|
|
48927
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
48928
|
+
};
|
|
48929
|
+
|
|
48930
|
+
|
|
48931
|
+
/**
|
|
48932
|
+
* optional int32 paramset = 4;
|
|
48933
|
+
* @return {number}
|
|
48934
|
+
*/
|
|
48935
|
+
proto.zaber.motion.protobufs.SetSimpleTuning.prototype.getParamset = function() {
|
|
48936
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
48937
|
+
};
|
|
48938
|
+
|
|
48939
|
+
|
|
48940
|
+
/**
|
|
48941
|
+
* @param {number} value
|
|
48942
|
+
* @return {!proto.zaber.motion.protobufs.SetSimpleTuning} returns this
|
|
48943
|
+
*/
|
|
48944
|
+
proto.zaber.motion.protobufs.SetSimpleTuning.prototype.setParamset = function(value) {
|
|
48945
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
48946
|
+
};
|
|
48947
|
+
|
|
48948
|
+
|
|
48949
|
+
/**
|
|
48950
|
+
* optional double carriage_mass = 5;
|
|
48951
|
+
* @return {number}
|
|
48952
|
+
*/
|
|
48953
|
+
proto.zaber.motion.protobufs.SetSimpleTuning.prototype.getCarriageMass = function() {
|
|
48954
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
|
|
48955
|
+
};
|
|
48956
|
+
|
|
48957
|
+
|
|
48958
|
+
/**
|
|
48959
|
+
* @param {number} value
|
|
48960
|
+
* @return {!proto.zaber.motion.protobufs.SetSimpleTuning} returns this
|
|
48961
|
+
*/
|
|
48962
|
+
proto.zaber.motion.protobufs.SetSimpleTuning.prototype.setCarriageMass = function(value) {
|
|
48963
|
+
return jspb.Message.setProto3FloatField(this, 5, value);
|
|
48964
|
+
};
|
|
48965
|
+
|
|
48966
|
+
|
|
48967
|
+
/**
|
|
48968
|
+
* optional double load_mass = 6;
|
|
48969
|
+
* @return {number}
|
|
48970
|
+
*/
|
|
48971
|
+
proto.zaber.motion.protobufs.SetSimpleTuning.prototype.getLoadMass = function() {
|
|
48972
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0));
|
|
48973
|
+
};
|
|
48974
|
+
|
|
48975
|
+
|
|
48976
|
+
/**
|
|
48977
|
+
* @param {number} value
|
|
48978
|
+
* @return {!proto.zaber.motion.protobufs.SetSimpleTuning} returns this
|
|
48979
|
+
*/
|
|
48980
|
+
proto.zaber.motion.protobufs.SetSimpleTuning.prototype.setLoadMass = function(value) {
|
|
48981
|
+
return jspb.Message.setProto3FloatField(this, 6, value);
|
|
48982
|
+
};
|
|
48983
|
+
|
|
48984
|
+
|
|
48985
|
+
/**
|
|
48986
|
+
* repeated ServoTuningParam tuning_params = 7;
|
|
48987
|
+
* @return {!Array<!proto.zaber.motion.protobufs.ServoTuningParam>}
|
|
48988
|
+
*/
|
|
48989
|
+
proto.zaber.motion.protobufs.SetSimpleTuning.prototype.getTuningParamsList = function() {
|
|
48990
|
+
return /** @type{!Array<!proto.zaber.motion.protobufs.ServoTuningParam>} */ (
|
|
48991
|
+
jspb.Message.getRepeatedWrapperField(this, proto.zaber.motion.protobufs.ServoTuningParam, 7));
|
|
48992
|
+
};
|
|
48993
|
+
|
|
48994
|
+
|
|
48995
|
+
/**
|
|
48996
|
+
* @param {!Array<!proto.zaber.motion.protobufs.ServoTuningParam>} value
|
|
48997
|
+
* @return {!proto.zaber.motion.protobufs.SetSimpleTuning} returns this
|
|
48998
|
+
*/
|
|
48999
|
+
proto.zaber.motion.protobufs.SetSimpleTuning.prototype.setTuningParamsList = function(value) {
|
|
49000
|
+
return jspb.Message.setRepeatedWrapperField(this, 7, value);
|
|
49001
|
+
};
|
|
49002
|
+
|
|
49003
|
+
|
|
49004
|
+
/**
|
|
49005
|
+
* @param {!proto.zaber.motion.protobufs.ServoTuningParam=} opt_value
|
|
49006
|
+
* @param {number=} opt_index
|
|
49007
|
+
* @return {!proto.zaber.motion.protobufs.ServoTuningParam}
|
|
49008
|
+
*/
|
|
49009
|
+
proto.zaber.motion.protobufs.SetSimpleTuning.prototype.addTuningParams = function(opt_value, opt_index) {
|
|
49010
|
+
return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.zaber.motion.protobufs.ServoTuningParam, opt_index);
|
|
49011
|
+
};
|
|
49012
|
+
|
|
49013
|
+
|
|
49014
|
+
/**
|
|
49015
|
+
* Clears the list making it empty but non-null.
|
|
49016
|
+
* @return {!proto.zaber.motion.protobufs.SetSimpleTuning} returns this
|
|
49017
|
+
*/
|
|
49018
|
+
proto.zaber.motion.protobufs.SetSimpleTuning.prototype.clearTuningParamsList = function() {
|
|
49019
|
+
return this.setTuningParamsList([]);
|
|
49020
|
+
};
|
|
49021
|
+
|
|
49022
|
+
|
|
49023
|
+
|
|
49024
|
+
|
|
49025
|
+
|
|
49026
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
49027
|
+
/**
|
|
49028
|
+
* Creates an object representation of this proto.
|
|
49029
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
49030
|
+
* Optional fields that are not set will be set to undefined.
|
|
49031
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
49032
|
+
* For the list of reserved names please see:
|
|
49033
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
49034
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
49035
|
+
* JSPB instance for transitional soy proto support:
|
|
49036
|
+
* http://goto/soy-param-migration
|
|
49037
|
+
* @return {!Object}
|
|
49038
|
+
*/
|
|
49039
|
+
proto.zaber.motion.protobufs.SimpleTuningParam.prototype.toObject = function(opt_includeInstance) {
|
|
49040
|
+
return proto.zaber.motion.protobufs.SimpleTuningParam.toObject(opt_includeInstance, this);
|
|
49041
|
+
};
|
|
49042
|
+
|
|
49043
|
+
|
|
49044
|
+
/**
|
|
49045
|
+
* Static version of the {@see toObject} method.
|
|
49046
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
49047
|
+
* the JSPB instance for transitional soy proto support:
|
|
49048
|
+
* http://goto/soy-param-migration
|
|
49049
|
+
* @param {!proto.zaber.motion.protobufs.SimpleTuningParam} msg The msg instance to transform.
|
|
49050
|
+
* @return {!Object}
|
|
49051
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
49052
|
+
*/
|
|
49053
|
+
proto.zaber.motion.protobufs.SimpleTuningParam.toObject = function(includeInstance, msg) {
|
|
49054
|
+
var f, obj = {
|
|
49055
|
+
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
49056
|
+
minLabel: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
49057
|
+
maxLabel: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
49058
|
+
dataType: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
49059
|
+
};
|
|
49060
|
+
|
|
49061
|
+
if (includeInstance) {
|
|
49062
|
+
obj.$jspbMessageInstance = msg;
|
|
49063
|
+
}
|
|
49064
|
+
return obj;
|
|
49065
|
+
};
|
|
49066
|
+
}
|
|
49067
|
+
|
|
49068
|
+
|
|
49069
|
+
/**
|
|
49070
|
+
* Deserializes binary data (in protobuf wire format).
|
|
49071
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
49072
|
+
* @return {!proto.zaber.motion.protobufs.SimpleTuningParam}
|
|
49073
|
+
*/
|
|
49074
|
+
proto.zaber.motion.protobufs.SimpleTuningParam.deserializeBinary = function(bytes) {
|
|
49075
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
49076
|
+
var msg = new proto.zaber.motion.protobufs.SimpleTuningParam;
|
|
49077
|
+
return proto.zaber.motion.protobufs.SimpleTuningParam.deserializeBinaryFromReader(msg, reader);
|
|
49078
|
+
};
|
|
49079
|
+
|
|
49080
|
+
|
|
49081
|
+
/**
|
|
49082
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
49083
|
+
* given reader into the given message object.
|
|
49084
|
+
* @param {!proto.zaber.motion.protobufs.SimpleTuningParam} msg The message object to deserialize into.
|
|
49085
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
49086
|
+
* @return {!proto.zaber.motion.protobufs.SimpleTuningParam}
|
|
49087
|
+
*/
|
|
49088
|
+
proto.zaber.motion.protobufs.SimpleTuningParam.deserializeBinaryFromReader = function(msg, reader) {
|
|
49089
|
+
while (reader.nextField()) {
|
|
49090
|
+
if (reader.isEndGroup()) {
|
|
49091
|
+
break;
|
|
49092
|
+
}
|
|
49093
|
+
var field = reader.getFieldNumber();
|
|
49094
|
+
switch (field) {
|
|
49095
|
+
case 1:
|
|
49096
|
+
var value = /** @type {string} */ (reader.readString());
|
|
49097
|
+
msg.setName(value);
|
|
49098
|
+
break;
|
|
49099
|
+
case 2:
|
|
49100
|
+
var value = /** @type {string} */ (reader.readString());
|
|
49101
|
+
msg.setMinLabel(value);
|
|
49102
|
+
break;
|
|
49103
|
+
case 3:
|
|
49104
|
+
var value = /** @type {string} */ (reader.readString());
|
|
49105
|
+
msg.setMaxLabel(value);
|
|
49106
|
+
break;
|
|
49107
|
+
case 4:
|
|
49108
|
+
var value = /** @type {string} */ (reader.readString());
|
|
49109
|
+
msg.setDataType(value);
|
|
49110
|
+
break;
|
|
49111
|
+
default:
|
|
49112
|
+
reader.skipField();
|
|
49113
|
+
break;
|
|
49114
|
+
}
|
|
49115
|
+
}
|
|
49116
|
+
return msg;
|
|
49117
|
+
};
|
|
49118
|
+
|
|
49119
|
+
|
|
49120
|
+
/**
|
|
49121
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
49122
|
+
* @return {!Uint8Array}
|
|
49123
|
+
*/
|
|
49124
|
+
proto.zaber.motion.protobufs.SimpleTuningParam.prototype.serializeBinary = function() {
|
|
49125
|
+
var writer = new jspb.BinaryWriter();
|
|
49126
|
+
proto.zaber.motion.protobufs.SimpleTuningParam.serializeBinaryToWriter(this, writer);
|
|
49127
|
+
return writer.getResultBuffer();
|
|
49128
|
+
};
|
|
49129
|
+
|
|
49130
|
+
|
|
49131
|
+
/**
|
|
49132
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
49133
|
+
* format), writing to the given BinaryWriter.
|
|
49134
|
+
* @param {!proto.zaber.motion.protobufs.SimpleTuningParam} message
|
|
49135
|
+
* @param {!jspb.BinaryWriter} writer
|
|
49136
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
49137
|
+
*/
|
|
49138
|
+
proto.zaber.motion.protobufs.SimpleTuningParam.serializeBinaryToWriter = function(message, writer) {
|
|
49139
|
+
var f = undefined;
|
|
49140
|
+
f = message.getName();
|
|
49141
|
+
if (f.length > 0) {
|
|
49142
|
+
writer.writeString(
|
|
49143
|
+
1,
|
|
49144
|
+
f
|
|
49145
|
+
);
|
|
49146
|
+
}
|
|
49147
|
+
f = message.getMinLabel();
|
|
49148
|
+
if (f.length > 0) {
|
|
49149
|
+
writer.writeString(
|
|
49150
|
+
2,
|
|
49151
|
+
f
|
|
49152
|
+
);
|
|
49153
|
+
}
|
|
49154
|
+
f = message.getMaxLabel();
|
|
49155
|
+
if (f.length > 0) {
|
|
49156
|
+
writer.writeString(
|
|
49157
|
+
3,
|
|
49158
|
+
f
|
|
49159
|
+
);
|
|
49160
|
+
}
|
|
49161
|
+
f = message.getDataType();
|
|
49162
|
+
if (f.length > 0) {
|
|
49163
|
+
writer.writeString(
|
|
49164
|
+
4,
|
|
49165
|
+
f
|
|
49166
|
+
);
|
|
49167
|
+
}
|
|
49168
|
+
};
|
|
49169
|
+
|
|
49170
|
+
|
|
49171
|
+
/**
|
|
49172
|
+
* optional string name = 1;
|
|
49173
|
+
* @return {string}
|
|
49174
|
+
*/
|
|
49175
|
+
proto.zaber.motion.protobufs.SimpleTuningParam.prototype.getName = function() {
|
|
49176
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
49177
|
+
};
|
|
49178
|
+
|
|
49179
|
+
|
|
49180
|
+
/**
|
|
49181
|
+
* @param {string} value
|
|
49182
|
+
* @return {!proto.zaber.motion.protobufs.SimpleTuningParam} returns this
|
|
49183
|
+
*/
|
|
49184
|
+
proto.zaber.motion.protobufs.SimpleTuningParam.prototype.setName = function(value) {
|
|
49185
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
49186
|
+
};
|
|
49187
|
+
|
|
49188
|
+
|
|
49189
|
+
/**
|
|
49190
|
+
* optional string min_label = 2;
|
|
49191
|
+
* @return {string}
|
|
49192
|
+
*/
|
|
49193
|
+
proto.zaber.motion.protobufs.SimpleTuningParam.prototype.getMinLabel = function() {
|
|
49194
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
49195
|
+
};
|
|
49196
|
+
|
|
49197
|
+
|
|
49198
|
+
/**
|
|
49199
|
+
* @param {string} value
|
|
49200
|
+
* @return {!proto.zaber.motion.protobufs.SimpleTuningParam} returns this
|
|
49201
|
+
*/
|
|
49202
|
+
proto.zaber.motion.protobufs.SimpleTuningParam.prototype.setMinLabel = function(value) {
|
|
49203
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
49204
|
+
};
|
|
49205
|
+
|
|
49206
|
+
|
|
49207
|
+
/**
|
|
49208
|
+
* optional string max_label = 3;
|
|
49209
|
+
* @return {string}
|
|
49210
|
+
*/
|
|
49211
|
+
proto.zaber.motion.protobufs.SimpleTuningParam.prototype.getMaxLabel = function() {
|
|
49212
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
49213
|
+
};
|
|
49214
|
+
|
|
49215
|
+
|
|
49216
|
+
/**
|
|
49217
|
+
* @param {string} value
|
|
49218
|
+
* @return {!proto.zaber.motion.protobufs.SimpleTuningParam} returns this
|
|
49219
|
+
*/
|
|
49220
|
+
proto.zaber.motion.protobufs.SimpleTuningParam.prototype.setMaxLabel = function(value) {
|
|
49221
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
49222
|
+
};
|
|
49223
|
+
|
|
49224
|
+
|
|
49225
|
+
/**
|
|
49226
|
+
* optional string data_type = 4;
|
|
49227
|
+
* @return {string}
|
|
49228
|
+
*/
|
|
49229
|
+
proto.zaber.motion.protobufs.SimpleTuningParam.prototype.getDataType = function() {
|
|
49230
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
49231
|
+
};
|
|
49232
|
+
|
|
49233
|
+
|
|
49234
|
+
/**
|
|
49235
|
+
* @param {string} value
|
|
49236
|
+
* @return {!proto.zaber.motion.protobufs.SimpleTuningParam} returns this
|
|
49237
|
+
*/
|
|
49238
|
+
proto.zaber.motion.protobufs.SimpleTuningParam.prototype.setDataType = function(value) {
|
|
49239
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
49240
|
+
};
|
|
49241
|
+
|
|
49242
|
+
|
|
49243
|
+
|
|
49244
|
+
/**
|
|
49245
|
+
* List of repeated fields within this message type.
|
|
49246
|
+
* @private {!Array<number>}
|
|
49247
|
+
* @const
|
|
49248
|
+
*/
|
|
49249
|
+
proto.zaber.motion.protobufs.SimpleTuningParamList.repeatedFields_ = [1];
|
|
49250
|
+
|
|
49251
|
+
|
|
49252
|
+
|
|
49253
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
49254
|
+
/**
|
|
49255
|
+
* Creates an object representation of this proto.
|
|
49256
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
49257
|
+
* Optional fields that are not set will be set to undefined.
|
|
49258
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
49259
|
+
* For the list of reserved names please see:
|
|
49260
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
49261
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
49262
|
+
* JSPB instance for transitional soy proto support:
|
|
49263
|
+
* http://goto/soy-param-migration
|
|
49264
|
+
* @return {!Object}
|
|
49265
|
+
*/
|
|
49266
|
+
proto.zaber.motion.protobufs.SimpleTuningParamList.prototype.toObject = function(opt_includeInstance) {
|
|
49267
|
+
return proto.zaber.motion.protobufs.SimpleTuningParamList.toObject(opt_includeInstance, this);
|
|
49268
|
+
};
|
|
49269
|
+
|
|
49270
|
+
|
|
49271
|
+
/**
|
|
49272
|
+
* Static version of the {@see toObject} method.
|
|
49273
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
49274
|
+
* the JSPB instance for transitional soy proto support:
|
|
49275
|
+
* http://goto/soy-param-migration
|
|
49276
|
+
* @param {!proto.zaber.motion.protobufs.SimpleTuningParamList} msg The msg instance to transform.
|
|
49277
|
+
* @return {!Object}
|
|
49278
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
49279
|
+
*/
|
|
49280
|
+
proto.zaber.motion.protobufs.SimpleTuningParamList.toObject = function(includeInstance, msg) {
|
|
49281
|
+
var f, obj = {
|
|
49282
|
+
paramsList: jspb.Message.toObjectList(msg.getParamsList(),
|
|
49283
|
+
proto.zaber.motion.protobufs.SimpleTuningParam.toObject, includeInstance)
|
|
49284
|
+
};
|
|
49285
|
+
|
|
49286
|
+
if (includeInstance) {
|
|
49287
|
+
obj.$jspbMessageInstance = msg;
|
|
49288
|
+
}
|
|
49289
|
+
return obj;
|
|
49290
|
+
};
|
|
49291
|
+
}
|
|
49292
|
+
|
|
49293
|
+
|
|
49294
|
+
/**
|
|
49295
|
+
* Deserializes binary data (in protobuf wire format).
|
|
49296
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
49297
|
+
* @return {!proto.zaber.motion.protobufs.SimpleTuningParamList}
|
|
49298
|
+
*/
|
|
49299
|
+
proto.zaber.motion.protobufs.SimpleTuningParamList.deserializeBinary = function(bytes) {
|
|
49300
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
49301
|
+
var msg = new proto.zaber.motion.protobufs.SimpleTuningParamList;
|
|
49302
|
+
return proto.zaber.motion.protobufs.SimpleTuningParamList.deserializeBinaryFromReader(msg, reader);
|
|
49303
|
+
};
|
|
49304
|
+
|
|
49305
|
+
|
|
49306
|
+
/**
|
|
49307
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
49308
|
+
* given reader into the given message object.
|
|
49309
|
+
* @param {!proto.zaber.motion.protobufs.SimpleTuningParamList} msg The message object to deserialize into.
|
|
49310
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
49311
|
+
* @return {!proto.zaber.motion.protobufs.SimpleTuningParamList}
|
|
49312
|
+
*/
|
|
49313
|
+
proto.zaber.motion.protobufs.SimpleTuningParamList.deserializeBinaryFromReader = function(msg, reader) {
|
|
49314
|
+
while (reader.nextField()) {
|
|
49315
|
+
if (reader.isEndGroup()) {
|
|
49316
|
+
break;
|
|
49317
|
+
}
|
|
49318
|
+
var field = reader.getFieldNumber();
|
|
49319
|
+
switch (field) {
|
|
49320
|
+
case 1:
|
|
49321
|
+
var value = new proto.zaber.motion.protobufs.SimpleTuningParam;
|
|
49322
|
+
reader.readMessage(value,proto.zaber.motion.protobufs.SimpleTuningParam.deserializeBinaryFromReader);
|
|
49323
|
+
msg.addParams(value);
|
|
49324
|
+
break;
|
|
49325
|
+
default:
|
|
49326
|
+
reader.skipField();
|
|
49327
|
+
break;
|
|
49328
|
+
}
|
|
49329
|
+
}
|
|
49330
|
+
return msg;
|
|
49331
|
+
};
|
|
49332
|
+
|
|
49333
|
+
|
|
49334
|
+
/**
|
|
49335
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
49336
|
+
* @return {!Uint8Array}
|
|
49337
|
+
*/
|
|
49338
|
+
proto.zaber.motion.protobufs.SimpleTuningParamList.prototype.serializeBinary = function() {
|
|
49339
|
+
var writer = new jspb.BinaryWriter();
|
|
49340
|
+
proto.zaber.motion.protobufs.SimpleTuningParamList.serializeBinaryToWriter(this, writer);
|
|
49341
|
+
return writer.getResultBuffer();
|
|
49342
|
+
};
|
|
49343
|
+
|
|
49344
|
+
|
|
49345
|
+
/**
|
|
49346
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
49347
|
+
* format), writing to the given BinaryWriter.
|
|
49348
|
+
* @param {!proto.zaber.motion.protobufs.SimpleTuningParamList} message
|
|
49349
|
+
* @param {!jspb.BinaryWriter} writer
|
|
49350
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
49351
|
+
*/
|
|
49352
|
+
proto.zaber.motion.protobufs.SimpleTuningParamList.serializeBinaryToWriter = function(message, writer) {
|
|
49353
|
+
var f = undefined;
|
|
49354
|
+
f = message.getParamsList();
|
|
49355
|
+
if (f.length > 0) {
|
|
49356
|
+
writer.writeRepeatedMessage(
|
|
49357
|
+
1,
|
|
49358
|
+
f,
|
|
49359
|
+
proto.zaber.motion.protobufs.SimpleTuningParam.serializeBinaryToWriter
|
|
49360
|
+
);
|
|
49361
|
+
}
|
|
49362
|
+
};
|
|
49363
|
+
|
|
49364
|
+
|
|
49365
|
+
/**
|
|
49366
|
+
* repeated SimpleTuningParam params = 1;
|
|
49367
|
+
* @return {!Array<!proto.zaber.motion.protobufs.SimpleTuningParam>}
|
|
49368
|
+
*/
|
|
49369
|
+
proto.zaber.motion.protobufs.SimpleTuningParamList.prototype.getParamsList = function() {
|
|
49370
|
+
return /** @type{!Array<!proto.zaber.motion.protobufs.SimpleTuningParam>} */ (
|
|
49371
|
+
jspb.Message.getRepeatedWrapperField(this, proto.zaber.motion.protobufs.SimpleTuningParam, 1));
|
|
49372
|
+
};
|
|
49373
|
+
|
|
49374
|
+
|
|
49375
|
+
/**
|
|
49376
|
+
* @param {!Array<!proto.zaber.motion.protobufs.SimpleTuningParam>} value
|
|
49377
|
+
* @return {!proto.zaber.motion.protobufs.SimpleTuningParamList} returns this
|
|
49378
|
+
*/
|
|
49379
|
+
proto.zaber.motion.protobufs.SimpleTuningParamList.prototype.setParamsList = function(value) {
|
|
49380
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
49381
|
+
};
|
|
49382
|
+
|
|
49383
|
+
|
|
49384
|
+
/**
|
|
49385
|
+
* @param {!proto.zaber.motion.protobufs.SimpleTuningParam=} opt_value
|
|
49386
|
+
* @param {number=} opt_index
|
|
49387
|
+
* @return {!proto.zaber.motion.protobufs.SimpleTuningParam}
|
|
49388
|
+
*/
|
|
49389
|
+
proto.zaber.motion.protobufs.SimpleTuningParamList.prototype.addParams = function(opt_value, opt_index) {
|
|
49390
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.zaber.motion.protobufs.SimpleTuningParam, opt_index);
|
|
49391
|
+
};
|
|
49392
|
+
|
|
49393
|
+
|
|
49394
|
+
/**
|
|
49395
|
+
* Clears the list making it empty but non-null.
|
|
49396
|
+
* @return {!proto.zaber.motion.protobufs.SimpleTuningParamList} returns this
|
|
49397
|
+
*/
|
|
49398
|
+
proto.zaber.motion.protobufs.SimpleTuningParamList.prototype.clearParamsList = function() {
|
|
49399
|
+
return this.setParamsList([]);
|
|
49400
|
+
};
|
|
49401
|
+
|
|
49402
|
+
|
|
49403
|
+
|
|
49404
|
+
|
|
49405
|
+
|
|
45920
49406
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
45921
49407
|
/**
|
|
45922
49408
|
* Creates an object representation of this proto.
|