@zaber/motion 2.7.1 → 2.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/binding/wasm/zaber-motion-lib.wasm +0 -0
- package/dist/lib/ascii/axis.d.ts +18 -0
- package/dist/lib/ascii/axis.js +40 -0
- package/dist/lib/ascii/axis.js.map +1 -1
- package/dist/lib/ascii/connection.js +3 -3
- package/dist/lib/ascii/connection.js.map +1 -1
- package/dist/lib/ascii/device.d.ts +20 -0
- package/dist/lib/ascii/device.js +40 -0
- package/dist/lib/ascii/device.js.map +1 -1
- package/dist/lib/binary/connection.js +3 -3
- package/dist/lib/binary/connection.js.map +1 -1
- package/dist/lib/can_set_state_axis_response.d.ts +16 -0
- package/dist/lib/can_set_state_axis_response.js +18 -0
- package/dist/lib/can_set_state_axis_response.js.map +1 -0
- package/dist/lib/can_set_state_device_response.d.ts +17 -0
- package/dist/lib/can_set_state_device_response.js +19 -0
- package/dist/lib/can_set_state_device_response.js.map +1 -0
- package/dist/lib/exceptions/index.d.ts +4 -0
- package/dist/lib/exceptions/index.js +10 -1
- package/dist/lib/exceptions/index.js.map +1 -1
- package/dist/lib/exceptions/set_device_state_exception_data.d.ts +25 -0
- package/dist/lib/exceptions/set_device_state_exception_data.js +21 -0
- package/dist/lib/exceptions/set_device_state_exception_data.js.map +1 -0
- package/dist/lib/exceptions/set_device_state_failed_exception.d.ts +14 -0
- package/dist/lib/exceptions/set_device_state_failed_exception.js +32 -0
- package/dist/lib/exceptions/set_device_state_failed_exception.js.map +1 -0
- package/dist/lib/exceptions/set_peripheral_state_exception_data.d.ts +20 -0
- package/dist/lib/exceptions/set_peripheral_state_exception_data.js +19 -0
- package/dist/lib/exceptions/set_peripheral_state_exception_data.js.map +1 -0
- package/dist/lib/exceptions/set_peripheral_state_failed_exception.d.ts +14 -0
- package/dist/lib/exceptions/set_peripheral_state_failed_exception.js +32 -0
- package/dist/lib/exceptions/set_peripheral_state_failed_exception.js.map +1 -0
- package/dist/lib/gateway/call.js +7 -7
- package/dist/lib/gateway/call.js.map +1 -1
- package/dist/lib/gateway/convert_exceptions.js +2 -0
- package/dist/lib/gateway/convert_exceptions.js.map +1 -1
- package/dist/lib/gateway/events.js +5 -5
- package/dist/lib/gateway/events.js.map +1 -1
- package/dist/lib/gateway/wasm.js +1 -1
- package/dist/lib/gateway/wasm.js.map +1 -1
- package/dist/lib/index.d.ts +2 -0
- package/dist/lib/index.js +5 -1
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/protobufs/main_pb.d.ts +250 -0
- package/dist/lib/protobufs/main_pb.js +2125 -194
- package/dist/lib/protobufs/main_pb.js.map +1 -1
- package/dist/lib/wasm.js +3 -3
- package/dist/lib/wasm.js.map +1 -1
- package/package.json +2 -2
|
@@ -48,6 +48,9 @@ goog.exportSymbol('zaber.motion.protobufs.BinaryGenericWithUnitsResponse', null,
|
|
|
48
48
|
goog.exportSymbol('zaber.motion.protobufs.BinaryMessage', null, proto);
|
|
49
49
|
goog.exportSymbol('zaber.motion.protobufs.BinaryMessageCollection', null, proto);
|
|
50
50
|
goog.exportSymbol('zaber.motion.protobufs.BinaryReplyOnlyEvent', null, proto);
|
|
51
|
+
goog.exportSymbol('zaber.motion.protobufs.CanSetStateAxisResponse', null, proto);
|
|
52
|
+
goog.exportSymbol('zaber.motion.protobufs.CanSetStateDeviceResponse', null, proto);
|
|
53
|
+
goog.exportSymbol('zaber.motion.protobufs.CanSetStateRequest', null, proto);
|
|
51
54
|
goog.exportSymbol('zaber.motion.protobufs.CloseInterfaceRequest', null, proto);
|
|
52
55
|
goog.exportSymbol('zaber.motion.protobufs.CommandFailedExceptionData', null, proto);
|
|
53
56
|
goog.exportSymbol('zaber.motion.protobufs.CustomInterfaceCloseRequest', null, proto);
|
|
@@ -114,6 +117,8 @@ goog.exportSymbol('zaber.motion.protobufs.GenericCommandResponse', null, proto);
|
|
|
114
117
|
goog.exportSymbol('zaber.motion.protobufs.GenericCommandResponseCollection', null, proto);
|
|
115
118
|
goog.exportSymbol('zaber.motion.protobufs.GetInterfaceChecksumEnabledResponse', null, proto);
|
|
116
119
|
goog.exportSymbol('zaber.motion.protobufs.GetInterfaceTimeoutResponse', null, proto);
|
|
120
|
+
goog.exportSymbol('zaber.motion.protobufs.GetStateRequest', null, proto);
|
|
121
|
+
goog.exportSymbol('zaber.motion.protobufs.GetStateResponse', null, proto);
|
|
117
122
|
goog.exportSymbol('zaber.motion.protobufs.InterfaceType', null, proto);
|
|
118
123
|
goog.exportSymbol('zaber.motion.protobufs.InvalidPacketExceptionData', null, proto);
|
|
119
124
|
goog.exportSymbol('zaber.motion.protobufs.InvalidResponseExceptionData', null, proto);
|
|
@@ -152,9 +157,12 @@ goog.exportSymbol('zaber.motion.protobufs.Request', null, proto);
|
|
|
152
157
|
goog.exportSymbol('zaber.motion.protobufs.Response', null, proto);
|
|
153
158
|
goog.exportSymbol('zaber.motion.protobufs.Response.ResponseType', null, proto);
|
|
154
159
|
goog.exportSymbol('zaber.motion.protobufs.SetDeviceDbSourceRequest', null, proto);
|
|
160
|
+
goog.exportSymbol('zaber.motion.protobufs.SetDeviceStateExceptionData', null, proto);
|
|
155
161
|
goog.exportSymbol('zaber.motion.protobufs.SetInterfaceChecksumEnabledRequest', null, proto);
|
|
156
162
|
goog.exportSymbol('zaber.motion.protobufs.SetInterfaceTimeoutRequest', null, proto);
|
|
157
163
|
goog.exportSymbol('zaber.motion.protobufs.SetLogOutputRequest', null, proto);
|
|
164
|
+
goog.exportSymbol('zaber.motion.protobufs.SetPeripheralStateExceptionData', null, proto);
|
|
165
|
+
goog.exportSymbol('zaber.motion.protobufs.SetStateRequest', null, proto);
|
|
158
166
|
goog.exportSymbol('zaber.motion.protobufs.StreamArcRequest', null, proto);
|
|
159
167
|
goog.exportSymbol('zaber.motion.protobufs.StreamArcRequest.Type', null, proto);
|
|
160
168
|
goog.exportSymbol('zaber.motion.protobufs.StreamAxisDefinition', null, proto);
|
|
@@ -631,6 +639,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
631
639
|
*/
|
|
632
640
|
proto.zaber.motion.protobufs.BinaryCommandFailedExceptionData.displayName = 'proto.zaber.motion.protobufs.BinaryCommandFailedExceptionData';
|
|
633
641
|
}
|
|
642
|
+
/**
|
|
643
|
+
* Generated by JsPbCodeGenerator.
|
|
644
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
645
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
646
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
647
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
648
|
+
* valid.
|
|
649
|
+
* @extends {jspb.Message}
|
|
650
|
+
* @constructor
|
|
651
|
+
*/
|
|
652
|
+
proto.zaber.motion.protobufs.SetPeripheralStateExceptionData = function(opt_data) {
|
|
653
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.zaber.motion.protobufs.SetPeripheralStateExceptionData.repeatedFields_, null);
|
|
654
|
+
};
|
|
655
|
+
goog.inherits(proto.zaber.motion.protobufs.SetPeripheralStateExceptionData, jspb.Message);
|
|
656
|
+
if (goog.DEBUG && !COMPILED) {
|
|
657
|
+
/**
|
|
658
|
+
* @public
|
|
659
|
+
* @override
|
|
660
|
+
*/
|
|
661
|
+
proto.zaber.motion.protobufs.SetPeripheralStateExceptionData.displayName = 'proto.zaber.motion.protobufs.SetPeripheralStateExceptionData';
|
|
662
|
+
}
|
|
663
|
+
/**
|
|
664
|
+
* Generated by JsPbCodeGenerator.
|
|
665
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
666
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
667
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
668
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
669
|
+
* valid.
|
|
670
|
+
* @extends {jspb.Message}
|
|
671
|
+
* @constructor
|
|
672
|
+
*/
|
|
673
|
+
proto.zaber.motion.protobufs.SetDeviceStateExceptionData = function(opt_data) {
|
|
674
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.zaber.motion.protobufs.SetDeviceStateExceptionData.repeatedFields_, null);
|
|
675
|
+
};
|
|
676
|
+
goog.inherits(proto.zaber.motion.protobufs.SetDeviceStateExceptionData, jspb.Message);
|
|
677
|
+
if (goog.DEBUG && !COMPILED) {
|
|
678
|
+
/**
|
|
679
|
+
* @public
|
|
680
|
+
* @override
|
|
681
|
+
*/
|
|
682
|
+
proto.zaber.motion.protobufs.SetDeviceStateExceptionData.displayName = 'proto.zaber.motion.protobufs.SetDeviceStateExceptionData';
|
|
683
|
+
}
|
|
634
684
|
/**
|
|
635
685
|
* Generated by JsPbCodeGenerator.
|
|
636
686
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -4075,6 +4125,132 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
4075
4125
|
*/
|
|
4076
4126
|
proto.zaber.motion.protobufs.CustomInterfaceCloseRequest.displayName = 'proto.zaber.motion.protobufs.CustomInterfaceCloseRequest';
|
|
4077
4127
|
}
|
|
4128
|
+
/**
|
|
4129
|
+
* Generated by JsPbCodeGenerator.
|
|
4130
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4131
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4132
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4133
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4134
|
+
* valid.
|
|
4135
|
+
* @extends {jspb.Message}
|
|
4136
|
+
* @constructor
|
|
4137
|
+
*/
|
|
4138
|
+
proto.zaber.motion.protobufs.GetStateRequest = function(opt_data) {
|
|
4139
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
4140
|
+
};
|
|
4141
|
+
goog.inherits(proto.zaber.motion.protobufs.GetStateRequest, jspb.Message);
|
|
4142
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4143
|
+
/**
|
|
4144
|
+
* @public
|
|
4145
|
+
* @override
|
|
4146
|
+
*/
|
|
4147
|
+
proto.zaber.motion.protobufs.GetStateRequest.displayName = 'proto.zaber.motion.protobufs.GetStateRequest';
|
|
4148
|
+
}
|
|
4149
|
+
/**
|
|
4150
|
+
* Generated by JsPbCodeGenerator.
|
|
4151
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4152
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4153
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4154
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4155
|
+
* valid.
|
|
4156
|
+
* @extends {jspb.Message}
|
|
4157
|
+
* @constructor
|
|
4158
|
+
*/
|
|
4159
|
+
proto.zaber.motion.protobufs.GetStateResponse = function(opt_data) {
|
|
4160
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
4161
|
+
};
|
|
4162
|
+
goog.inherits(proto.zaber.motion.protobufs.GetStateResponse, jspb.Message);
|
|
4163
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4164
|
+
/**
|
|
4165
|
+
* @public
|
|
4166
|
+
* @override
|
|
4167
|
+
*/
|
|
4168
|
+
proto.zaber.motion.protobufs.GetStateResponse.displayName = 'proto.zaber.motion.protobufs.GetStateResponse';
|
|
4169
|
+
}
|
|
4170
|
+
/**
|
|
4171
|
+
* Generated by JsPbCodeGenerator.
|
|
4172
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4173
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4174
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4175
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4176
|
+
* valid.
|
|
4177
|
+
* @extends {jspb.Message}
|
|
4178
|
+
* @constructor
|
|
4179
|
+
*/
|
|
4180
|
+
proto.zaber.motion.protobufs.CanSetStateRequest = function(opt_data) {
|
|
4181
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
4182
|
+
};
|
|
4183
|
+
goog.inherits(proto.zaber.motion.protobufs.CanSetStateRequest, jspb.Message);
|
|
4184
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4185
|
+
/**
|
|
4186
|
+
* @public
|
|
4187
|
+
* @override
|
|
4188
|
+
*/
|
|
4189
|
+
proto.zaber.motion.protobufs.CanSetStateRequest.displayName = 'proto.zaber.motion.protobufs.CanSetStateRequest';
|
|
4190
|
+
}
|
|
4191
|
+
/**
|
|
4192
|
+
* Generated by JsPbCodeGenerator.
|
|
4193
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4194
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4195
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4196
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4197
|
+
* valid.
|
|
4198
|
+
* @extends {jspb.Message}
|
|
4199
|
+
* @constructor
|
|
4200
|
+
*/
|
|
4201
|
+
proto.zaber.motion.protobufs.CanSetStateAxisResponse = function(opt_data) {
|
|
4202
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
4203
|
+
};
|
|
4204
|
+
goog.inherits(proto.zaber.motion.protobufs.CanSetStateAxisResponse, jspb.Message);
|
|
4205
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4206
|
+
/**
|
|
4207
|
+
* @public
|
|
4208
|
+
* @override
|
|
4209
|
+
*/
|
|
4210
|
+
proto.zaber.motion.protobufs.CanSetStateAxisResponse.displayName = 'proto.zaber.motion.protobufs.CanSetStateAxisResponse';
|
|
4211
|
+
}
|
|
4212
|
+
/**
|
|
4213
|
+
* Generated by JsPbCodeGenerator.
|
|
4214
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4215
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4216
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4217
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4218
|
+
* valid.
|
|
4219
|
+
* @extends {jspb.Message}
|
|
4220
|
+
* @constructor
|
|
4221
|
+
*/
|
|
4222
|
+
proto.zaber.motion.protobufs.CanSetStateDeviceResponse = function(opt_data) {
|
|
4223
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.zaber.motion.protobufs.CanSetStateDeviceResponse.repeatedFields_, null);
|
|
4224
|
+
};
|
|
4225
|
+
goog.inherits(proto.zaber.motion.protobufs.CanSetStateDeviceResponse, jspb.Message);
|
|
4226
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4227
|
+
/**
|
|
4228
|
+
* @public
|
|
4229
|
+
* @override
|
|
4230
|
+
*/
|
|
4231
|
+
proto.zaber.motion.protobufs.CanSetStateDeviceResponse.displayName = 'proto.zaber.motion.protobufs.CanSetStateDeviceResponse';
|
|
4232
|
+
}
|
|
4233
|
+
/**
|
|
4234
|
+
* Generated by JsPbCodeGenerator.
|
|
4235
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4236
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4237
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4238
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4239
|
+
* valid.
|
|
4240
|
+
* @extends {jspb.Message}
|
|
4241
|
+
* @constructor
|
|
4242
|
+
*/
|
|
4243
|
+
proto.zaber.motion.protobufs.SetStateRequest = function(opt_data) {
|
|
4244
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
4245
|
+
};
|
|
4246
|
+
goog.inherits(proto.zaber.motion.protobufs.SetStateRequest, jspb.Message);
|
|
4247
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4248
|
+
/**
|
|
4249
|
+
* @public
|
|
4250
|
+
* @override
|
|
4251
|
+
*/
|
|
4252
|
+
proto.zaber.motion.protobufs.SetStateRequest.displayName = 'proto.zaber.motion.protobufs.SetStateRequest';
|
|
4253
|
+
}
|
|
4078
4254
|
|
|
4079
4255
|
|
|
4080
4256
|
|
|
@@ -7627,6 +7803,13 @@ proto.zaber.motion.protobufs.BinaryCommandFailedExceptionData.prototype.setRespo
|
|
|
7627
7803
|
|
|
7628
7804
|
|
|
7629
7805
|
|
|
7806
|
+
/**
|
|
7807
|
+
* List of repeated fields within this message type.
|
|
7808
|
+
* @private {!Array<number>}
|
|
7809
|
+
* @const
|
|
7810
|
+
*/
|
|
7811
|
+
proto.zaber.motion.protobufs.SetPeripheralStateExceptionData.repeatedFields_ = [2];
|
|
7812
|
+
|
|
7630
7813
|
|
|
7631
7814
|
|
|
7632
7815
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -7642,8 +7825,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
7642
7825
|
* http://goto/soy-param-migration
|
|
7643
7826
|
* @return {!Object}
|
|
7644
7827
|
*/
|
|
7645
|
-
proto.zaber.motion.protobufs.
|
|
7646
|
-
return proto.zaber.motion.protobufs.
|
|
7828
|
+
proto.zaber.motion.protobufs.SetPeripheralStateExceptionData.prototype.toObject = function(opt_includeInstance) {
|
|
7829
|
+
return proto.zaber.motion.protobufs.SetPeripheralStateExceptionData.toObject(opt_includeInstance, this);
|
|
7647
7830
|
};
|
|
7648
7831
|
|
|
7649
7832
|
|
|
@@ -7652,15 +7835,15 @@ proto.zaber.motion.protobufs.TestRequest.prototype.toObject = function(opt_inclu
|
|
|
7652
7835
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
7653
7836
|
* the JSPB instance for transitional soy proto support:
|
|
7654
7837
|
* http://goto/soy-param-migration
|
|
7655
|
-
* @param {!proto.zaber.motion.protobufs.
|
|
7838
|
+
* @param {!proto.zaber.motion.protobufs.SetPeripheralStateExceptionData} msg The msg instance to transform.
|
|
7656
7839
|
* @return {!Object}
|
|
7657
7840
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7658
7841
|
*/
|
|
7659
|
-
proto.zaber.motion.protobufs.
|
|
7842
|
+
proto.zaber.motion.protobufs.SetPeripheralStateExceptionData.toObject = function(includeInstance, msg) {
|
|
7660
7843
|
var f, obj = {
|
|
7661
|
-
|
|
7662
|
-
|
|
7663
|
-
|
|
7844
|
+
axisNumber: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
7845
|
+
settingsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
|
|
7846
|
+
servoTuning: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
7664
7847
|
};
|
|
7665
7848
|
|
|
7666
7849
|
if (includeInstance) {
|
|
@@ -7674,23 +7857,23 @@ proto.zaber.motion.protobufs.TestRequest.toObject = function(includeInstance, ms
|
|
|
7674
7857
|
/**
|
|
7675
7858
|
* Deserializes binary data (in protobuf wire format).
|
|
7676
7859
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
7677
|
-
* @return {!proto.zaber.motion.protobufs.
|
|
7860
|
+
* @return {!proto.zaber.motion.protobufs.SetPeripheralStateExceptionData}
|
|
7678
7861
|
*/
|
|
7679
|
-
proto.zaber.motion.protobufs.
|
|
7862
|
+
proto.zaber.motion.protobufs.SetPeripheralStateExceptionData.deserializeBinary = function(bytes) {
|
|
7680
7863
|
var reader = new jspb.BinaryReader(bytes);
|
|
7681
|
-
var msg = new proto.zaber.motion.protobufs.
|
|
7682
|
-
return proto.zaber.motion.protobufs.
|
|
7864
|
+
var msg = new proto.zaber.motion.protobufs.SetPeripheralStateExceptionData;
|
|
7865
|
+
return proto.zaber.motion.protobufs.SetPeripheralStateExceptionData.deserializeBinaryFromReader(msg, reader);
|
|
7683
7866
|
};
|
|
7684
7867
|
|
|
7685
7868
|
|
|
7686
7869
|
/**
|
|
7687
7870
|
* Deserializes binary data (in protobuf wire format) from the
|
|
7688
7871
|
* given reader into the given message object.
|
|
7689
|
-
* @param {!proto.zaber.motion.protobufs.
|
|
7872
|
+
* @param {!proto.zaber.motion.protobufs.SetPeripheralStateExceptionData} msg The message object to deserialize into.
|
|
7690
7873
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
7691
|
-
* @return {!proto.zaber.motion.protobufs.
|
|
7874
|
+
* @return {!proto.zaber.motion.protobufs.SetPeripheralStateExceptionData}
|
|
7692
7875
|
*/
|
|
7693
|
-
proto.zaber.motion.protobufs.
|
|
7876
|
+
proto.zaber.motion.protobufs.SetPeripheralStateExceptionData.deserializeBinaryFromReader = function(msg, reader) {
|
|
7694
7877
|
while (reader.nextField()) {
|
|
7695
7878
|
if (reader.isEndGroup()) {
|
|
7696
7879
|
break;
|
|
@@ -7698,16 +7881,16 @@ proto.zaber.motion.protobufs.TestRequest.deserializeBinaryFromReader = function(
|
|
|
7698
7881
|
var field = reader.getFieldNumber();
|
|
7699
7882
|
switch (field) {
|
|
7700
7883
|
case 1:
|
|
7701
|
-
var value = /** @type {
|
|
7702
|
-
msg.
|
|
7884
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
7885
|
+
msg.setAxisNumber(value);
|
|
7703
7886
|
break;
|
|
7704
7887
|
case 2:
|
|
7705
7888
|
var value = /** @type {string} */ (reader.readString());
|
|
7706
|
-
msg.
|
|
7889
|
+
msg.addSettings(value);
|
|
7707
7890
|
break;
|
|
7708
7891
|
case 3:
|
|
7709
|
-
var value = /** @type {
|
|
7710
|
-
msg.
|
|
7892
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7893
|
+
msg.setServoTuning(value);
|
|
7711
7894
|
break;
|
|
7712
7895
|
default:
|
|
7713
7896
|
reader.skipField();
|
|
@@ -7722,9 +7905,9 @@ proto.zaber.motion.protobufs.TestRequest.deserializeBinaryFromReader = function(
|
|
|
7722
7905
|
* Serializes the message to binary data (in protobuf wire format).
|
|
7723
7906
|
* @return {!Uint8Array}
|
|
7724
7907
|
*/
|
|
7725
|
-
proto.zaber.motion.protobufs.
|
|
7908
|
+
proto.zaber.motion.protobufs.SetPeripheralStateExceptionData.prototype.serializeBinary = function() {
|
|
7726
7909
|
var writer = new jspb.BinaryWriter();
|
|
7727
|
-
proto.zaber.motion.protobufs.
|
|
7910
|
+
proto.zaber.motion.protobufs.SetPeripheralStateExceptionData.serializeBinaryToWriter(this, writer);
|
|
7728
7911
|
return writer.getResultBuffer();
|
|
7729
7912
|
};
|
|
7730
7913
|
|
|
@@ -7732,29 +7915,29 @@ proto.zaber.motion.protobufs.TestRequest.prototype.serializeBinary = function()
|
|
|
7732
7915
|
/**
|
|
7733
7916
|
* Serializes the given message to binary data (in protobuf wire
|
|
7734
7917
|
* format), writing to the given BinaryWriter.
|
|
7735
|
-
* @param {!proto.zaber.motion.protobufs.
|
|
7918
|
+
* @param {!proto.zaber.motion.protobufs.SetPeripheralStateExceptionData} message
|
|
7736
7919
|
* @param {!jspb.BinaryWriter} writer
|
|
7737
7920
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7738
7921
|
*/
|
|
7739
|
-
proto.zaber.motion.protobufs.
|
|
7922
|
+
proto.zaber.motion.protobufs.SetPeripheralStateExceptionData.serializeBinaryToWriter = function(message, writer) {
|
|
7740
7923
|
var f = undefined;
|
|
7741
|
-
f = message.
|
|
7742
|
-
if (f) {
|
|
7743
|
-
writer.
|
|
7924
|
+
f = message.getAxisNumber();
|
|
7925
|
+
if (f !== 0) {
|
|
7926
|
+
writer.writeInt32(
|
|
7744
7927
|
1,
|
|
7745
7928
|
f
|
|
7746
7929
|
);
|
|
7747
7930
|
}
|
|
7748
|
-
f = message.
|
|
7931
|
+
f = message.getSettingsList();
|
|
7749
7932
|
if (f.length > 0) {
|
|
7750
|
-
writer.
|
|
7933
|
+
writer.writeRepeatedString(
|
|
7751
7934
|
2,
|
|
7752
7935
|
f
|
|
7753
7936
|
);
|
|
7754
7937
|
}
|
|
7755
|
-
f = message.
|
|
7756
|
-
if (f) {
|
|
7757
|
-
writer.
|
|
7938
|
+
f = message.getServoTuning();
|
|
7939
|
+
if (f.length > 0) {
|
|
7940
|
+
writer.writeString(
|
|
7758
7941
|
3,
|
|
7759
7942
|
f
|
|
7760
7943
|
);
|
|
@@ -7763,60 +7946,86 @@ proto.zaber.motion.protobufs.TestRequest.serializeBinaryToWriter = function(mess
|
|
|
7763
7946
|
|
|
7764
7947
|
|
|
7765
7948
|
/**
|
|
7766
|
-
* optional
|
|
7767
|
-
* @return {
|
|
7949
|
+
* optional int32 axis_number = 1;
|
|
7950
|
+
* @return {number}
|
|
7768
7951
|
*/
|
|
7769
|
-
proto.zaber.motion.protobufs.
|
|
7770
|
-
return /** @type {
|
|
7952
|
+
proto.zaber.motion.protobufs.SetPeripheralStateExceptionData.prototype.getAxisNumber = function() {
|
|
7953
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
7771
7954
|
};
|
|
7772
7955
|
|
|
7773
7956
|
|
|
7774
7957
|
/**
|
|
7775
|
-
* @param {
|
|
7776
|
-
* @return {!proto.zaber.motion.protobufs.
|
|
7958
|
+
* @param {number} value
|
|
7959
|
+
* @return {!proto.zaber.motion.protobufs.SetPeripheralStateExceptionData} returns this
|
|
7777
7960
|
*/
|
|
7778
|
-
proto.zaber.motion.protobufs.
|
|
7779
|
-
return jspb.Message.
|
|
7961
|
+
proto.zaber.motion.protobufs.SetPeripheralStateExceptionData.prototype.setAxisNumber = function(value) {
|
|
7962
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
7780
7963
|
};
|
|
7781
7964
|
|
|
7782
7965
|
|
|
7783
7966
|
/**
|
|
7784
|
-
*
|
|
7785
|
-
* @return {string}
|
|
7967
|
+
* repeated string settings = 2;
|
|
7968
|
+
* @return {!Array<string>}
|
|
7786
7969
|
*/
|
|
7787
|
-
proto.zaber.motion.protobufs.
|
|
7788
|
-
return /** @type {string} */ (jspb.Message.
|
|
7970
|
+
proto.zaber.motion.protobufs.SetPeripheralStateExceptionData.prototype.getSettingsList = function() {
|
|
7971
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
|
|
7972
|
+
};
|
|
7973
|
+
|
|
7974
|
+
|
|
7975
|
+
/**
|
|
7976
|
+
* @param {!Array<string>} value
|
|
7977
|
+
* @return {!proto.zaber.motion.protobufs.SetPeripheralStateExceptionData} returns this
|
|
7978
|
+
*/
|
|
7979
|
+
proto.zaber.motion.protobufs.SetPeripheralStateExceptionData.prototype.setSettingsList = function(value) {
|
|
7980
|
+
return jspb.Message.setField(this, 2, value || []);
|
|
7789
7981
|
};
|
|
7790
7982
|
|
|
7791
7983
|
|
|
7792
7984
|
/**
|
|
7793
7985
|
* @param {string} value
|
|
7794
|
-
* @
|
|
7986
|
+
* @param {number=} opt_index
|
|
7987
|
+
* @return {!proto.zaber.motion.protobufs.SetPeripheralStateExceptionData} returns this
|
|
7795
7988
|
*/
|
|
7796
|
-
proto.zaber.motion.protobufs.
|
|
7797
|
-
return jspb.Message.
|
|
7989
|
+
proto.zaber.motion.protobufs.SetPeripheralStateExceptionData.prototype.addSettings = function(value, opt_index) {
|
|
7990
|
+
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
|
|
7798
7991
|
};
|
|
7799
7992
|
|
|
7800
7993
|
|
|
7801
7994
|
/**
|
|
7802
|
-
*
|
|
7803
|
-
* @return {
|
|
7995
|
+
* Clears the list making it empty but non-null.
|
|
7996
|
+
* @return {!proto.zaber.motion.protobufs.SetPeripheralStateExceptionData} returns this
|
|
7804
7997
|
*/
|
|
7805
|
-
proto.zaber.motion.protobufs.
|
|
7806
|
-
return
|
|
7998
|
+
proto.zaber.motion.protobufs.SetPeripheralStateExceptionData.prototype.clearSettingsList = function() {
|
|
7999
|
+
return this.setSettingsList([]);
|
|
7807
8000
|
};
|
|
7808
8001
|
|
|
7809
8002
|
|
|
7810
8003
|
/**
|
|
7811
|
-
*
|
|
7812
|
-
* @return {
|
|
8004
|
+
* optional string servo_tuning = 3;
|
|
8005
|
+
* @return {string}
|
|
7813
8006
|
*/
|
|
7814
|
-
proto.zaber.motion.protobufs.
|
|
7815
|
-
return jspb.Message.
|
|
8007
|
+
proto.zaber.motion.protobufs.SetPeripheralStateExceptionData.prototype.getServoTuning = function() {
|
|
8008
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
8009
|
+
};
|
|
8010
|
+
|
|
8011
|
+
|
|
8012
|
+
/**
|
|
8013
|
+
* @param {string} value
|
|
8014
|
+
* @return {!proto.zaber.motion.protobufs.SetPeripheralStateExceptionData} returns this
|
|
8015
|
+
*/
|
|
8016
|
+
proto.zaber.motion.protobufs.SetPeripheralStateExceptionData.prototype.setServoTuning = function(value) {
|
|
8017
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
7816
8018
|
};
|
|
7817
8019
|
|
|
7818
8020
|
|
|
7819
8021
|
|
|
8022
|
+
/**
|
|
8023
|
+
* List of repeated fields within this message type.
|
|
8024
|
+
* @private {!Array<number>}
|
|
8025
|
+
* @const
|
|
8026
|
+
*/
|
|
8027
|
+
proto.zaber.motion.protobufs.SetDeviceStateExceptionData.repeatedFields_ = [2,3,4,5];
|
|
8028
|
+
|
|
7820
8029
|
|
|
7821
8030
|
|
|
7822
8031
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -7832,8 +8041,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
7832
8041
|
* http://goto/soy-param-migration
|
|
7833
8042
|
* @return {!Object}
|
|
7834
8043
|
*/
|
|
7835
|
-
proto.zaber.motion.protobufs.
|
|
7836
|
-
return proto.zaber.motion.protobufs.
|
|
8044
|
+
proto.zaber.motion.protobufs.SetDeviceStateExceptionData.prototype.toObject = function(opt_includeInstance) {
|
|
8045
|
+
return proto.zaber.motion.protobufs.SetDeviceStateExceptionData.toObject(opt_includeInstance, this);
|
|
7837
8046
|
};
|
|
7838
8047
|
|
|
7839
8048
|
|
|
@@ -7842,13 +8051,19 @@ proto.zaber.motion.protobufs.TestResponse.prototype.toObject = function(opt_incl
|
|
|
7842
8051
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
7843
8052
|
* the JSPB instance for transitional soy proto support:
|
|
7844
8053
|
* http://goto/soy-param-migration
|
|
7845
|
-
* @param {!proto.zaber.motion.protobufs.
|
|
8054
|
+
* @param {!proto.zaber.motion.protobufs.SetDeviceStateExceptionData} msg The msg instance to transform.
|
|
7846
8055
|
* @return {!Object}
|
|
7847
8056
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7848
8057
|
*/
|
|
7849
|
-
proto.zaber.motion.protobufs.
|
|
8058
|
+
proto.zaber.motion.protobufs.SetDeviceStateExceptionData.toObject = function(includeInstance, msg) {
|
|
7850
8059
|
var f, obj = {
|
|
7851
|
-
|
|
8060
|
+
peripheralsList: jspb.Message.toObjectList(msg.getPeripheralsList(),
|
|
8061
|
+
proto.zaber.motion.protobufs.SetPeripheralStateExceptionData.toObject, includeInstance),
|
|
8062
|
+
settingsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
|
|
8063
|
+
streamBuffersList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
|
|
8064
|
+
triggersList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f,
|
|
8065
|
+
ipConfig: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
8066
|
+
servoTuning: jspb.Message.getFieldWithDefault(msg, 7, "")
|
|
7852
8067
|
};
|
|
7853
8068
|
|
|
7854
8069
|
if (includeInstance) {
|
|
@@ -7862,32 +8077,53 @@ proto.zaber.motion.protobufs.TestResponse.toObject = function(includeInstance, m
|
|
|
7862
8077
|
/**
|
|
7863
8078
|
* Deserializes binary data (in protobuf wire format).
|
|
7864
8079
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
7865
|
-
* @return {!proto.zaber.motion.protobufs.
|
|
8080
|
+
* @return {!proto.zaber.motion.protobufs.SetDeviceStateExceptionData}
|
|
7866
8081
|
*/
|
|
7867
|
-
proto.zaber.motion.protobufs.
|
|
8082
|
+
proto.zaber.motion.protobufs.SetDeviceStateExceptionData.deserializeBinary = function(bytes) {
|
|
7868
8083
|
var reader = new jspb.BinaryReader(bytes);
|
|
7869
|
-
var msg = new proto.zaber.motion.protobufs.
|
|
7870
|
-
return proto.zaber.motion.protobufs.
|
|
8084
|
+
var msg = new proto.zaber.motion.protobufs.SetDeviceStateExceptionData;
|
|
8085
|
+
return proto.zaber.motion.protobufs.SetDeviceStateExceptionData.deserializeBinaryFromReader(msg, reader);
|
|
7871
8086
|
};
|
|
7872
8087
|
|
|
7873
8088
|
|
|
7874
8089
|
/**
|
|
7875
8090
|
* Deserializes binary data (in protobuf wire format) from the
|
|
7876
8091
|
* given reader into the given message object.
|
|
7877
|
-
* @param {!proto.zaber.motion.protobufs.
|
|
8092
|
+
* @param {!proto.zaber.motion.protobufs.SetDeviceStateExceptionData} msg The message object to deserialize into.
|
|
7878
8093
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
7879
|
-
* @return {!proto.zaber.motion.protobufs.
|
|
8094
|
+
* @return {!proto.zaber.motion.protobufs.SetDeviceStateExceptionData}
|
|
7880
8095
|
*/
|
|
7881
|
-
proto.zaber.motion.protobufs.
|
|
8096
|
+
proto.zaber.motion.protobufs.SetDeviceStateExceptionData.deserializeBinaryFromReader = function(msg, reader) {
|
|
7882
8097
|
while (reader.nextField()) {
|
|
7883
8098
|
if (reader.isEndGroup()) {
|
|
7884
8099
|
break;
|
|
7885
8100
|
}
|
|
7886
8101
|
var field = reader.getFieldNumber();
|
|
7887
8102
|
switch (field) {
|
|
7888
|
-
case
|
|
8103
|
+
case 2:
|
|
8104
|
+
var value = new proto.zaber.motion.protobufs.SetPeripheralStateExceptionData;
|
|
8105
|
+
reader.readMessage(value,proto.zaber.motion.protobufs.SetPeripheralStateExceptionData.deserializeBinaryFromReader);
|
|
8106
|
+
msg.addPeripherals(value);
|
|
8107
|
+
break;
|
|
8108
|
+
case 3:
|
|
7889
8109
|
var value = /** @type {string} */ (reader.readString());
|
|
7890
|
-
msg.
|
|
8110
|
+
msg.addSettings(value);
|
|
8111
|
+
break;
|
|
8112
|
+
case 4:
|
|
8113
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8114
|
+
msg.addStreamBuffers(value);
|
|
8115
|
+
break;
|
|
8116
|
+
case 5:
|
|
8117
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8118
|
+
msg.addTriggers(value);
|
|
8119
|
+
break;
|
|
8120
|
+
case 6:
|
|
8121
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8122
|
+
msg.setIpConfig(value);
|
|
8123
|
+
break;
|
|
8124
|
+
case 7:
|
|
8125
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8126
|
+
msg.setServoTuning(value);
|
|
7891
8127
|
break;
|
|
7892
8128
|
default:
|
|
7893
8129
|
reader.skipField();
|
|
@@ -7902,9 +8138,9 @@ proto.zaber.motion.protobufs.TestResponse.deserializeBinaryFromReader = function
|
|
|
7902
8138
|
* Serializes the message to binary data (in protobuf wire format).
|
|
7903
8139
|
* @return {!Uint8Array}
|
|
7904
8140
|
*/
|
|
7905
|
-
proto.zaber.motion.protobufs.
|
|
8141
|
+
proto.zaber.motion.protobufs.SetDeviceStateExceptionData.prototype.serializeBinary = function() {
|
|
7906
8142
|
var writer = new jspb.BinaryWriter();
|
|
7907
|
-
proto.zaber.motion.protobufs.
|
|
8143
|
+
proto.zaber.motion.protobufs.SetDeviceStateExceptionData.serializeBinaryToWriter(this, writer);
|
|
7908
8144
|
return writer.getResultBuffer();
|
|
7909
8145
|
};
|
|
7910
8146
|
|
|
@@ -7912,16 +8148,52 @@ proto.zaber.motion.protobufs.TestResponse.prototype.serializeBinary = function()
|
|
|
7912
8148
|
/**
|
|
7913
8149
|
* Serializes the given message to binary data (in protobuf wire
|
|
7914
8150
|
* format), writing to the given BinaryWriter.
|
|
7915
|
-
* @param {!proto.zaber.motion.protobufs.
|
|
8151
|
+
* @param {!proto.zaber.motion.protobufs.SetDeviceStateExceptionData} message
|
|
7916
8152
|
* @param {!jspb.BinaryWriter} writer
|
|
7917
8153
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7918
8154
|
*/
|
|
7919
|
-
proto.zaber.motion.protobufs.
|
|
8155
|
+
proto.zaber.motion.protobufs.SetDeviceStateExceptionData.serializeBinaryToWriter = function(message, writer) {
|
|
7920
8156
|
var f = undefined;
|
|
7921
|
-
f = message.
|
|
8157
|
+
f = message.getPeripheralsList();
|
|
8158
|
+
if (f.length > 0) {
|
|
8159
|
+
writer.writeRepeatedMessage(
|
|
8160
|
+
2,
|
|
8161
|
+
f,
|
|
8162
|
+
proto.zaber.motion.protobufs.SetPeripheralStateExceptionData.serializeBinaryToWriter
|
|
8163
|
+
);
|
|
8164
|
+
}
|
|
8165
|
+
f = message.getSettingsList();
|
|
8166
|
+
if (f.length > 0) {
|
|
8167
|
+
writer.writeRepeatedString(
|
|
8168
|
+
3,
|
|
8169
|
+
f
|
|
8170
|
+
);
|
|
8171
|
+
}
|
|
8172
|
+
f = message.getStreamBuffersList();
|
|
8173
|
+
if (f.length > 0) {
|
|
8174
|
+
writer.writeRepeatedString(
|
|
8175
|
+
4,
|
|
8176
|
+
f
|
|
8177
|
+
);
|
|
8178
|
+
}
|
|
8179
|
+
f = message.getTriggersList();
|
|
8180
|
+
if (f.length > 0) {
|
|
8181
|
+
writer.writeRepeatedString(
|
|
8182
|
+
5,
|
|
8183
|
+
f
|
|
8184
|
+
);
|
|
8185
|
+
}
|
|
8186
|
+
f = message.getIpConfig();
|
|
7922
8187
|
if (f.length > 0) {
|
|
7923
8188
|
writer.writeString(
|
|
7924
|
-
|
|
8189
|
+
6,
|
|
8190
|
+
f
|
|
8191
|
+
);
|
|
8192
|
+
}
|
|
8193
|
+
f = message.getServoTuning();
|
|
8194
|
+
if (f.length > 0) {
|
|
8195
|
+
writer.writeString(
|
|
8196
|
+
7,
|
|
7925
8197
|
f
|
|
7926
8198
|
);
|
|
7927
8199
|
}
|
|
@@ -7929,176 +8201,187 @@ proto.zaber.motion.protobufs.TestResponse.serializeBinaryToWriter = function(mes
|
|
|
7929
8201
|
|
|
7930
8202
|
|
|
7931
8203
|
/**
|
|
7932
|
-
*
|
|
7933
|
-
* @return {
|
|
8204
|
+
* repeated SetPeripheralStateExceptionData peripherals = 2;
|
|
8205
|
+
* @return {!Array<!proto.zaber.motion.protobufs.SetPeripheralStateExceptionData>}
|
|
7934
8206
|
*/
|
|
7935
|
-
proto.zaber.motion.protobufs.
|
|
7936
|
-
return /** @type
|
|
8207
|
+
proto.zaber.motion.protobufs.SetDeviceStateExceptionData.prototype.getPeripheralsList = function() {
|
|
8208
|
+
return /** @type{!Array<!proto.zaber.motion.protobufs.SetPeripheralStateExceptionData>} */ (
|
|
8209
|
+
jspb.Message.getRepeatedWrapperField(this, proto.zaber.motion.protobufs.SetPeripheralStateExceptionData, 2));
|
|
7937
8210
|
};
|
|
7938
8211
|
|
|
7939
8212
|
|
|
7940
8213
|
/**
|
|
7941
|
-
* @param {
|
|
7942
|
-
* @return {!proto.zaber.motion.protobufs.
|
|
7943
|
-
|
|
7944
|
-
proto.zaber.motion.protobufs.
|
|
7945
|
-
return jspb.Message.
|
|
8214
|
+
* @param {!Array<!proto.zaber.motion.protobufs.SetPeripheralStateExceptionData>} value
|
|
8215
|
+
* @return {!proto.zaber.motion.protobufs.SetDeviceStateExceptionData} returns this
|
|
8216
|
+
*/
|
|
8217
|
+
proto.zaber.motion.protobufs.SetDeviceStateExceptionData.prototype.setPeripheralsList = function(value) {
|
|
8218
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
7946
8219
|
};
|
|
7947
8220
|
|
|
7948
8221
|
|
|
8222
|
+
/**
|
|
8223
|
+
* @param {!proto.zaber.motion.protobufs.SetPeripheralStateExceptionData=} opt_value
|
|
8224
|
+
* @param {number=} opt_index
|
|
8225
|
+
* @return {!proto.zaber.motion.protobufs.SetPeripheralStateExceptionData}
|
|
8226
|
+
*/
|
|
8227
|
+
proto.zaber.motion.protobufs.SetDeviceStateExceptionData.prototype.addPeripherals = function(opt_value, opt_index) {
|
|
8228
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.zaber.motion.protobufs.SetPeripheralStateExceptionData, opt_index);
|
|
8229
|
+
};
|
|
8230
|
+
|
|
7949
8231
|
|
|
7950
8232
|
/**
|
|
7951
|
-
*
|
|
7952
|
-
* @
|
|
7953
|
-
* @const
|
|
8233
|
+
* Clears the list making it empty but non-null.
|
|
8234
|
+
* @return {!proto.zaber.motion.protobufs.SetDeviceStateExceptionData} returns this
|
|
7954
8235
|
*/
|
|
7955
|
-
proto.zaber.motion.protobufs.
|
|
8236
|
+
proto.zaber.motion.protobufs.SetDeviceStateExceptionData.prototype.clearPeripheralsList = function() {
|
|
8237
|
+
return this.setPeripheralsList([]);
|
|
8238
|
+
};
|
|
7956
8239
|
|
|
7957
8240
|
|
|
8241
|
+
/**
|
|
8242
|
+
* repeated string settings = 3;
|
|
8243
|
+
* @return {!Array<string>}
|
|
8244
|
+
*/
|
|
8245
|
+
proto.zaber.motion.protobufs.SetDeviceStateExceptionData.prototype.getSettingsList = function() {
|
|
8246
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
|
|
8247
|
+
};
|
|
8248
|
+
|
|
7958
8249
|
|
|
7959
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7960
8250
|
/**
|
|
7961
|
-
*
|
|
7962
|
-
*
|
|
7963
|
-
* Optional fields that are not set will be set to undefined.
|
|
7964
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
7965
|
-
* For the list of reserved names please see:
|
|
7966
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
7967
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
7968
|
-
* JSPB instance for transitional soy proto support:
|
|
7969
|
-
* http://goto/soy-param-migration
|
|
7970
|
-
* @return {!Object}
|
|
8251
|
+
* @param {!Array<string>} value
|
|
8252
|
+
* @return {!proto.zaber.motion.protobufs.SetDeviceStateExceptionData} returns this
|
|
7971
8253
|
*/
|
|
7972
|
-
proto.zaber.motion.protobufs.
|
|
7973
|
-
return
|
|
8254
|
+
proto.zaber.motion.protobufs.SetDeviceStateExceptionData.prototype.setSettingsList = function(value) {
|
|
8255
|
+
return jspb.Message.setField(this, 3, value || []);
|
|
7974
8256
|
};
|
|
7975
8257
|
|
|
7976
8258
|
|
|
7977
8259
|
/**
|
|
7978
|
-
*
|
|
7979
|
-
* @param {
|
|
7980
|
-
*
|
|
7981
|
-
* http://goto/soy-param-migration
|
|
7982
|
-
* @param {!proto.zaber.motion.protobufs.TestResponseLong} msg The msg instance to transform.
|
|
7983
|
-
* @return {!Object}
|
|
7984
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8260
|
+
* @param {string} value
|
|
8261
|
+
* @param {number=} opt_index
|
|
8262
|
+
* @return {!proto.zaber.motion.protobufs.SetDeviceStateExceptionData} returns this
|
|
7985
8263
|
*/
|
|
7986
|
-
proto.zaber.motion.protobufs.
|
|
7987
|
-
|
|
7988
|
-
|
|
7989
|
-
};
|
|
8264
|
+
proto.zaber.motion.protobufs.SetDeviceStateExceptionData.prototype.addSettings = function(value, opt_index) {
|
|
8265
|
+
return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
|
|
8266
|
+
};
|
|
7990
8267
|
|
|
7991
|
-
|
|
7992
|
-
|
|
7993
|
-
|
|
7994
|
-
|
|
8268
|
+
|
|
8269
|
+
/**
|
|
8270
|
+
* Clears the list making it empty but non-null.
|
|
8271
|
+
* @return {!proto.zaber.motion.protobufs.SetDeviceStateExceptionData} returns this
|
|
8272
|
+
*/
|
|
8273
|
+
proto.zaber.motion.protobufs.SetDeviceStateExceptionData.prototype.clearSettingsList = function() {
|
|
8274
|
+
return this.setSettingsList([]);
|
|
7995
8275
|
};
|
|
7996
|
-
}
|
|
7997
8276
|
|
|
7998
8277
|
|
|
7999
8278
|
/**
|
|
8000
|
-
*
|
|
8001
|
-
* @
|
|
8002
|
-
* @return {!proto.zaber.motion.protobufs.TestResponseLong}
|
|
8279
|
+
* repeated string stream_buffers = 4;
|
|
8280
|
+
* @return {!Array<string>}
|
|
8003
8281
|
*/
|
|
8004
|
-
proto.zaber.motion.protobufs.
|
|
8005
|
-
|
|
8006
|
-
var msg = new proto.zaber.motion.protobufs.TestResponseLong;
|
|
8007
|
-
return proto.zaber.motion.protobufs.TestResponseLong.deserializeBinaryFromReader(msg, reader);
|
|
8282
|
+
proto.zaber.motion.protobufs.SetDeviceStateExceptionData.prototype.getStreamBuffersList = function() {
|
|
8283
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
|
|
8008
8284
|
};
|
|
8009
8285
|
|
|
8010
8286
|
|
|
8011
8287
|
/**
|
|
8012
|
-
*
|
|
8013
|
-
*
|
|
8014
|
-
* @param {!proto.zaber.motion.protobufs.TestResponseLong} msg The message object to deserialize into.
|
|
8015
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
8016
|
-
* @return {!proto.zaber.motion.protobufs.TestResponseLong}
|
|
8288
|
+
* @param {!Array<string>} value
|
|
8289
|
+
* @return {!proto.zaber.motion.protobufs.SetDeviceStateExceptionData} returns this
|
|
8017
8290
|
*/
|
|
8018
|
-
proto.zaber.motion.protobufs.
|
|
8019
|
-
|
|
8020
|
-
if (reader.isEndGroup()) {
|
|
8021
|
-
break;
|
|
8022
|
-
}
|
|
8023
|
-
var field = reader.getFieldNumber();
|
|
8024
|
-
switch (field) {
|
|
8025
|
-
case 1:
|
|
8026
|
-
var value = /** @type {string} */ (reader.readString());
|
|
8027
|
-
msg.addDataPong(value);
|
|
8028
|
-
break;
|
|
8029
|
-
default:
|
|
8030
|
-
reader.skipField();
|
|
8031
|
-
break;
|
|
8032
|
-
}
|
|
8033
|
-
}
|
|
8034
|
-
return msg;
|
|
8291
|
+
proto.zaber.motion.protobufs.SetDeviceStateExceptionData.prototype.setStreamBuffersList = function(value) {
|
|
8292
|
+
return jspb.Message.setField(this, 4, value || []);
|
|
8035
8293
|
};
|
|
8036
8294
|
|
|
8037
8295
|
|
|
8038
8296
|
/**
|
|
8039
|
-
*
|
|
8040
|
-
* @
|
|
8297
|
+
* @param {string} value
|
|
8298
|
+
* @param {number=} opt_index
|
|
8299
|
+
* @return {!proto.zaber.motion.protobufs.SetDeviceStateExceptionData} returns this
|
|
8041
8300
|
*/
|
|
8042
|
-
proto.zaber.motion.protobufs.
|
|
8043
|
-
|
|
8044
|
-
proto.zaber.motion.protobufs.TestResponseLong.serializeBinaryToWriter(this, writer);
|
|
8045
|
-
return writer.getResultBuffer();
|
|
8301
|
+
proto.zaber.motion.protobufs.SetDeviceStateExceptionData.prototype.addStreamBuffers = function(value, opt_index) {
|
|
8302
|
+
return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
|
|
8046
8303
|
};
|
|
8047
8304
|
|
|
8048
8305
|
|
|
8049
8306
|
/**
|
|
8050
|
-
*
|
|
8051
|
-
*
|
|
8052
|
-
* @param {!proto.zaber.motion.protobufs.TestResponseLong} message
|
|
8053
|
-
* @param {!jspb.BinaryWriter} writer
|
|
8054
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8307
|
+
* Clears the list making it empty but non-null.
|
|
8308
|
+
* @return {!proto.zaber.motion.protobufs.SetDeviceStateExceptionData} returns this
|
|
8055
8309
|
*/
|
|
8056
|
-
proto.zaber.motion.protobufs.
|
|
8057
|
-
|
|
8058
|
-
f = message.getDataPongList();
|
|
8059
|
-
if (f.length > 0) {
|
|
8060
|
-
writer.writeRepeatedString(
|
|
8061
|
-
1,
|
|
8062
|
-
f
|
|
8063
|
-
);
|
|
8064
|
-
}
|
|
8310
|
+
proto.zaber.motion.protobufs.SetDeviceStateExceptionData.prototype.clearStreamBuffersList = function() {
|
|
8311
|
+
return this.setStreamBuffersList([]);
|
|
8065
8312
|
};
|
|
8066
8313
|
|
|
8067
8314
|
|
|
8068
8315
|
/**
|
|
8069
|
-
* repeated string
|
|
8316
|
+
* repeated string triggers = 5;
|
|
8070
8317
|
* @return {!Array<string>}
|
|
8071
8318
|
*/
|
|
8072
|
-
proto.zaber.motion.protobufs.
|
|
8073
|
-
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this,
|
|
8319
|
+
proto.zaber.motion.protobufs.SetDeviceStateExceptionData.prototype.getTriggersList = function() {
|
|
8320
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 5));
|
|
8074
8321
|
};
|
|
8075
8322
|
|
|
8076
8323
|
|
|
8077
8324
|
/**
|
|
8078
8325
|
* @param {!Array<string>} value
|
|
8079
|
-
* @return {!proto.zaber.motion.protobufs.
|
|
8326
|
+
* @return {!proto.zaber.motion.protobufs.SetDeviceStateExceptionData} returns this
|
|
8080
8327
|
*/
|
|
8081
|
-
proto.zaber.motion.protobufs.
|
|
8082
|
-
return jspb.Message.setField(this,
|
|
8328
|
+
proto.zaber.motion.protobufs.SetDeviceStateExceptionData.prototype.setTriggersList = function(value) {
|
|
8329
|
+
return jspb.Message.setField(this, 5, value || []);
|
|
8083
8330
|
};
|
|
8084
8331
|
|
|
8085
8332
|
|
|
8086
8333
|
/**
|
|
8087
8334
|
* @param {string} value
|
|
8088
8335
|
* @param {number=} opt_index
|
|
8089
|
-
* @return {!proto.zaber.motion.protobufs.
|
|
8336
|
+
* @return {!proto.zaber.motion.protobufs.SetDeviceStateExceptionData} returns this
|
|
8090
8337
|
*/
|
|
8091
|
-
proto.zaber.motion.protobufs.
|
|
8092
|
-
return jspb.Message.addToRepeatedField(this,
|
|
8338
|
+
proto.zaber.motion.protobufs.SetDeviceStateExceptionData.prototype.addTriggers = function(value, opt_index) {
|
|
8339
|
+
return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
|
|
8093
8340
|
};
|
|
8094
8341
|
|
|
8095
8342
|
|
|
8096
8343
|
/**
|
|
8097
8344
|
* Clears the list making it empty but non-null.
|
|
8098
|
-
* @return {!proto.zaber.motion.protobufs.
|
|
8345
|
+
* @return {!proto.zaber.motion.protobufs.SetDeviceStateExceptionData} returns this
|
|
8099
8346
|
*/
|
|
8100
|
-
proto.zaber.motion.protobufs.
|
|
8101
|
-
return this.
|
|
8347
|
+
proto.zaber.motion.protobufs.SetDeviceStateExceptionData.prototype.clearTriggersList = function() {
|
|
8348
|
+
return this.setTriggersList([]);
|
|
8349
|
+
};
|
|
8350
|
+
|
|
8351
|
+
|
|
8352
|
+
/**
|
|
8353
|
+
* optional string ip_config = 6;
|
|
8354
|
+
* @return {string}
|
|
8355
|
+
*/
|
|
8356
|
+
proto.zaber.motion.protobufs.SetDeviceStateExceptionData.prototype.getIpConfig = function() {
|
|
8357
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
8358
|
+
};
|
|
8359
|
+
|
|
8360
|
+
|
|
8361
|
+
/**
|
|
8362
|
+
* @param {string} value
|
|
8363
|
+
* @return {!proto.zaber.motion.protobufs.SetDeviceStateExceptionData} returns this
|
|
8364
|
+
*/
|
|
8365
|
+
proto.zaber.motion.protobufs.SetDeviceStateExceptionData.prototype.setIpConfig = function(value) {
|
|
8366
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
8367
|
+
};
|
|
8368
|
+
|
|
8369
|
+
|
|
8370
|
+
/**
|
|
8371
|
+
* optional string servo_tuning = 7;
|
|
8372
|
+
* @return {string}
|
|
8373
|
+
*/
|
|
8374
|
+
proto.zaber.motion.protobufs.SetDeviceStateExceptionData.prototype.getServoTuning = function() {
|
|
8375
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
8376
|
+
};
|
|
8377
|
+
|
|
8378
|
+
|
|
8379
|
+
/**
|
|
8380
|
+
* @param {string} value
|
|
8381
|
+
* @return {!proto.zaber.motion.protobufs.SetDeviceStateExceptionData} returns this
|
|
8382
|
+
*/
|
|
8383
|
+
proto.zaber.motion.protobufs.SetDeviceStateExceptionData.prototype.setServoTuning = function(value) {
|
|
8384
|
+
return jspb.Message.setProto3StringField(this, 7, value);
|
|
8102
8385
|
};
|
|
8103
8386
|
|
|
8104
8387
|
|
|
@@ -8118,8 +8401,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
8118
8401
|
* http://goto/soy-param-migration
|
|
8119
8402
|
* @return {!Object}
|
|
8120
8403
|
*/
|
|
8121
|
-
proto.zaber.motion.protobufs.
|
|
8122
|
-
return proto.zaber.motion.protobufs.
|
|
8404
|
+
proto.zaber.motion.protobufs.TestRequest.prototype.toObject = function(opt_includeInstance) {
|
|
8405
|
+
return proto.zaber.motion.protobufs.TestRequest.toObject(opt_includeInstance, this);
|
|
8123
8406
|
};
|
|
8124
8407
|
|
|
8125
8408
|
|
|
@@ -8128,13 +8411,15 @@ proto.zaber.motion.protobufs.TestEvent.prototype.toObject = function(opt_include
|
|
|
8128
8411
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
8129
8412
|
* the JSPB instance for transitional soy proto support:
|
|
8130
8413
|
* http://goto/soy-param-migration
|
|
8131
|
-
* @param {!proto.zaber.motion.protobufs.
|
|
8414
|
+
* @param {!proto.zaber.motion.protobufs.TestRequest} msg The msg instance to transform.
|
|
8132
8415
|
* @return {!Object}
|
|
8133
8416
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8134
8417
|
*/
|
|
8135
|
-
proto.zaber.motion.protobufs.
|
|
8418
|
+
proto.zaber.motion.protobufs.TestRequest.toObject = function(includeInstance, msg) {
|
|
8136
8419
|
var f, obj = {
|
|
8137
|
-
|
|
8420
|
+
returnError: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
|
|
8421
|
+
dataPing: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
8422
|
+
returnErrorWithData: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
|
|
8138
8423
|
};
|
|
8139
8424
|
|
|
8140
8425
|
if (includeInstance) {
|
|
@@ -8148,23 +8433,23 @@ proto.zaber.motion.protobufs.TestEvent.toObject = function(includeInstance, msg)
|
|
|
8148
8433
|
/**
|
|
8149
8434
|
* Deserializes binary data (in protobuf wire format).
|
|
8150
8435
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
8151
|
-
* @return {!proto.zaber.motion.protobufs.
|
|
8436
|
+
* @return {!proto.zaber.motion.protobufs.TestRequest}
|
|
8152
8437
|
*/
|
|
8153
|
-
proto.zaber.motion.protobufs.
|
|
8438
|
+
proto.zaber.motion.protobufs.TestRequest.deserializeBinary = function(bytes) {
|
|
8154
8439
|
var reader = new jspb.BinaryReader(bytes);
|
|
8155
|
-
var msg = new proto.zaber.motion.protobufs.
|
|
8156
|
-
return proto.zaber.motion.protobufs.
|
|
8440
|
+
var msg = new proto.zaber.motion.protobufs.TestRequest;
|
|
8441
|
+
return proto.zaber.motion.protobufs.TestRequest.deserializeBinaryFromReader(msg, reader);
|
|
8157
8442
|
};
|
|
8158
8443
|
|
|
8159
8444
|
|
|
8160
8445
|
/**
|
|
8161
8446
|
* Deserializes binary data (in protobuf wire format) from the
|
|
8162
8447
|
* given reader into the given message object.
|
|
8163
|
-
* @param {!proto.zaber.motion.protobufs.
|
|
8448
|
+
* @param {!proto.zaber.motion.protobufs.TestRequest} msg The message object to deserialize into.
|
|
8164
8449
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
8165
|
-
* @return {!proto.zaber.motion.protobufs.
|
|
8450
|
+
* @return {!proto.zaber.motion.protobufs.TestRequest}
|
|
8166
8451
|
*/
|
|
8167
|
-
proto.zaber.motion.protobufs.
|
|
8452
|
+
proto.zaber.motion.protobufs.TestRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
8168
8453
|
while (reader.nextField()) {
|
|
8169
8454
|
if (reader.isEndGroup()) {
|
|
8170
8455
|
break;
|
|
@@ -8172,8 +8457,16 @@ proto.zaber.motion.protobufs.TestEvent.deserializeBinaryFromReader = function(ms
|
|
|
8172
8457
|
var field = reader.getFieldNumber();
|
|
8173
8458
|
switch (field) {
|
|
8174
8459
|
case 1:
|
|
8460
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
8461
|
+
msg.setReturnError(value);
|
|
8462
|
+
break;
|
|
8463
|
+
case 2:
|
|
8175
8464
|
var value = /** @type {string} */ (reader.readString());
|
|
8176
|
-
msg.
|
|
8465
|
+
msg.setDataPing(value);
|
|
8466
|
+
break;
|
|
8467
|
+
case 3:
|
|
8468
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
8469
|
+
msg.setReturnErrorWithData(value);
|
|
8177
8470
|
break;
|
|
8178
8471
|
default:
|
|
8179
8472
|
reader.skipField();
|
|
@@ -8188,9 +8481,9 @@ proto.zaber.motion.protobufs.TestEvent.deserializeBinaryFromReader = function(ms
|
|
|
8188
8481
|
* Serializes the message to binary data (in protobuf wire format).
|
|
8189
8482
|
* @return {!Uint8Array}
|
|
8190
8483
|
*/
|
|
8191
|
-
proto.zaber.motion.protobufs.
|
|
8484
|
+
proto.zaber.motion.protobufs.TestRequest.prototype.serializeBinary = function() {
|
|
8192
8485
|
var writer = new jspb.BinaryWriter();
|
|
8193
|
-
proto.zaber.motion.protobufs.
|
|
8486
|
+
proto.zaber.motion.protobufs.TestRequest.serializeBinaryToWriter(this, writer);
|
|
8194
8487
|
return writer.getResultBuffer();
|
|
8195
8488
|
};
|
|
8196
8489
|
|
|
@@ -8198,7 +8491,473 @@ proto.zaber.motion.protobufs.TestEvent.prototype.serializeBinary = function() {
|
|
|
8198
8491
|
/**
|
|
8199
8492
|
* Serializes the given message to binary data (in protobuf wire
|
|
8200
8493
|
* format), writing to the given BinaryWriter.
|
|
8201
|
-
* @param {!proto.zaber.motion.protobufs.
|
|
8494
|
+
* @param {!proto.zaber.motion.protobufs.TestRequest} message
|
|
8495
|
+
* @param {!jspb.BinaryWriter} writer
|
|
8496
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8497
|
+
*/
|
|
8498
|
+
proto.zaber.motion.protobufs.TestRequest.serializeBinaryToWriter = function(message, writer) {
|
|
8499
|
+
var f = undefined;
|
|
8500
|
+
f = message.getReturnError();
|
|
8501
|
+
if (f) {
|
|
8502
|
+
writer.writeBool(
|
|
8503
|
+
1,
|
|
8504
|
+
f
|
|
8505
|
+
);
|
|
8506
|
+
}
|
|
8507
|
+
f = message.getDataPing();
|
|
8508
|
+
if (f.length > 0) {
|
|
8509
|
+
writer.writeString(
|
|
8510
|
+
2,
|
|
8511
|
+
f
|
|
8512
|
+
);
|
|
8513
|
+
}
|
|
8514
|
+
f = message.getReturnErrorWithData();
|
|
8515
|
+
if (f) {
|
|
8516
|
+
writer.writeBool(
|
|
8517
|
+
3,
|
|
8518
|
+
f
|
|
8519
|
+
);
|
|
8520
|
+
}
|
|
8521
|
+
};
|
|
8522
|
+
|
|
8523
|
+
|
|
8524
|
+
/**
|
|
8525
|
+
* optional bool return_error = 1;
|
|
8526
|
+
* @return {boolean}
|
|
8527
|
+
*/
|
|
8528
|
+
proto.zaber.motion.protobufs.TestRequest.prototype.getReturnError = function() {
|
|
8529
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
|
|
8530
|
+
};
|
|
8531
|
+
|
|
8532
|
+
|
|
8533
|
+
/**
|
|
8534
|
+
* @param {boolean} value
|
|
8535
|
+
* @return {!proto.zaber.motion.protobufs.TestRequest} returns this
|
|
8536
|
+
*/
|
|
8537
|
+
proto.zaber.motion.protobufs.TestRequest.prototype.setReturnError = function(value) {
|
|
8538
|
+
return jspb.Message.setProto3BooleanField(this, 1, value);
|
|
8539
|
+
};
|
|
8540
|
+
|
|
8541
|
+
|
|
8542
|
+
/**
|
|
8543
|
+
* optional string data_ping = 2;
|
|
8544
|
+
* @return {string}
|
|
8545
|
+
*/
|
|
8546
|
+
proto.zaber.motion.protobufs.TestRequest.prototype.getDataPing = function() {
|
|
8547
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
8548
|
+
};
|
|
8549
|
+
|
|
8550
|
+
|
|
8551
|
+
/**
|
|
8552
|
+
* @param {string} value
|
|
8553
|
+
* @return {!proto.zaber.motion.protobufs.TestRequest} returns this
|
|
8554
|
+
*/
|
|
8555
|
+
proto.zaber.motion.protobufs.TestRequest.prototype.setDataPing = function(value) {
|
|
8556
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
8557
|
+
};
|
|
8558
|
+
|
|
8559
|
+
|
|
8560
|
+
/**
|
|
8561
|
+
* optional bool return_error_with_data = 3;
|
|
8562
|
+
* @return {boolean}
|
|
8563
|
+
*/
|
|
8564
|
+
proto.zaber.motion.protobufs.TestRequest.prototype.getReturnErrorWithData = function() {
|
|
8565
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
|
|
8566
|
+
};
|
|
8567
|
+
|
|
8568
|
+
|
|
8569
|
+
/**
|
|
8570
|
+
* @param {boolean} value
|
|
8571
|
+
* @return {!proto.zaber.motion.protobufs.TestRequest} returns this
|
|
8572
|
+
*/
|
|
8573
|
+
proto.zaber.motion.protobufs.TestRequest.prototype.setReturnErrorWithData = function(value) {
|
|
8574
|
+
return jspb.Message.setProto3BooleanField(this, 3, value);
|
|
8575
|
+
};
|
|
8576
|
+
|
|
8577
|
+
|
|
8578
|
+
|
|
8579
|
+
|
|
8580
|
+
|
|
8581
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
8582
|
+
/**
|
|
8583
|
+
* Creates an object representation of this proto.
|
|
8584
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
8585
|
+
* Optional fields that are not set will be set to undefined.
|
|
8586
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
8587
|
+
* For the list of reserved names please see:
|
|
8588
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
8589
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
8590
|
+
* JSPB instance for transitional soy proto support:
|
|
8591
|
+
* http://goto/soy-param-migration
|
|
8592
|
+
* @return {!Object}
|
|
8593
|
+
*/
|
|
8594
|
+
proto.zaber.motion.protobufs.TestResponse.prototype.toObject = function(opt_includeInstance) {
|
|
8595
|
+
return proto.zaber.motion.protobufs.TestResponse.toObject(opt_includeInstance, this);
|
|
8596
|
+
};
|
|
8597
|
+
|
|
8598
|
+
|
|
8599
|
+
/**
|
|
8600
|
+
* Static version of the {@see toObject} method.
|
|
8601
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
8602
|
+
* the JSPB instance for transitional soy proto support:
|
|
8603
|
+
* http://goto/soy-param-migration
|
|
8604
|
+
* @param {!proto.zaber.motion.protobufs.TestResponse} msg The msg instance to transform.
|
|
8605
|
+
* @return {!Object}
|
|
8606
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8607
|
+
*/
|
|
8608
|
+
proto.zaber.motion.protobufs.TestResponse.toObject = function(includeInstance, msg) {
|
|
8609
|
+
var f, obj = {
|
|
8610
|
+
dataPong: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
8611
|
+
};
|
|
8612
|
+
|
|
8613
|
+
if (includeInstance) {
|
|
8614
|
+
obj.$jspbMessageInstance = msg;
|
|
8615
|
+
}
|
|
8616
|
+
return obj;
|
|
8617
|
+
};
|
|
8618
|
+
}
|
|
8619
|
+
|
|
8620
|
+
|
|
8621
|
+
/**
|
|
8622
|
+
* Deserializes binary data (in protobuf wire format).
|
|
8623
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
8624
|
+
* @return {!proto.zaber.motion.protobufs.TestResponse}
|
|
8625
|
+
*/
|
|
8626
|
+
proto.zaber.motion.protobufs.TestResponse.deserializeBinary = function(bytes) {
|
|
8627
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
8628
|
+
var msg = new proto.zaber.motion.protobufs.TestResponse;
|
|
8629
|
+
return proto.zaber.motion.protobufs.TestResponse.deserializeBinaryFromReader(msg, reader);
|
|
8630
|
+
};
|
|
8631
|
+
|
|
8632
|
+
|
|
8633
|
+
/**
|
|
8634
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
8635
|
+
* given reader into the given message object.
|
|
8636
|
+
* @param {!proto.zaber.motion.protobufs.TestResponse} msg The message object to deserialize into.
|
|
8637
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
8638
|
+
* @return {!proto.zaber.motion.protobufs.TestResponse}
|
|
8639
|
+
*/
|
|
8640
|
+
proto.zaber.motion.protobufs.TestResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
8641
|
+
while (reader.nextField()) {
|
|
8642
|
+
if (reader.isEndGroup()) {
|
|
8643
|
+
break;
|
|
8644
|
+
}
|
|
8645
|
+
var field = reader.getFieldNumber();
|
|
8646
|
+
switch (field) {
|
|
8647
|
+
case 1:
|
|
8648
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8649
|
+
msg.setDataPong(value);
|
|
8650
|
+
break;
|
|
8651
|
+
default:
|
|
8652
|
+
reader.skipField();
|
|
8653
|
+
break;
|
|
8654
|
+
}
|
|
8655
|
+
}
|
|
8656
|
+
return msg;
|
|
8657
|
+
};
|
|
8658
|
+
|
|
8659
|
+
|
|
8660
|
+
/**
|
|
8661
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
8662
|
+
* @return {!Uint8Array}
|
|
8663
|
+
*/
|
|
8664
|
+
proto.zaber.motion.protobufs.TestResponse.prototype.serializeBinary = function() {
|
|
8665
|
+
var writer = new jspb.BinaryWriter();
|
|
8666
|
+
proto.zaber.motion.protobufs.TestResponse.serializeBinaryToWriter(this, writer);
|
|
8667
|
+
return writer.getResultBuffer();
|
|
8668
|
+
};
|
|
8669
|
+
|
|
8670
|
+
|
|
8671
|
+
/**
|
|
8672
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
8673
|
+
* format), writing to the given BinaryWriter.
|
|
8674
|
+
* @param {!proto.zaber.motion.protobufs.TestResponse} message
|
|
8675
|
+
* @param {!jspb.BinaryWriter} writer
|
|
8676
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8677
|
+
*/
|
|
8678
|
+
proto.zaber.motion.protobufs.TestResponse.serializeBinaryToWriter = function(message, writer) {
|
|
8679
|
+
var f = undefined;
|
|
8680
|
+
f = message.getDataPong();
|
|
8681
|
+
if (f.length > 0) {
|
|
8682
|
+
writer.writeString(
|
|
8683
|
+
1,
|
|
8684
|
+
f
|
|
8685
|
+
);
|
|
8686
|
+
}
|
|
8687
|
+
};
|
|
8688
|
+
|
|
8689
|
+
|
|
8690
|
+
/**
|
|
8691
|
+
* optional string data_pong = 1;
|
|
8692
|
+
* @return {string}
|
|
8693
|
+
*/
|
|
8694
|
+
proto.zaber.motion.protobufs.TestResponse.prototype.getDataPong = function() {
|
|
8695
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
8696
|
+
};
|
|
8697
|
+
|
|
8698
|
+
|
|
8699
|
+
/**
|
|
8700
|
+
* @param {string} value
|
|
8701
|
+
* @return {!proto.zaber.motion.protobufs.TestResponse} returns this
|
|
8702
|
+
*/
|
|
8703
|
+
proto.zaber.motion.protobufs.TestResponse.prototype.setDataPong = function(value) {
|
|
8704
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
8705
|
+
};
|
|
8706
|
+
|
|
8707
|
+
|
|
8708
|
+
|
|
8709
|
+
/**
|
|
8710
|
+
* List of repeated fields within this message type.
|
|
8711
|
+
* @private {!Array<number>}
|
|
8712
|
+
* @const
|
|
8713
|
+
*/
|
|
8714
|
+
proto.zaber.motion.protobufs.TestResponseLong.repeatedFields_ = [1];
|
|
8715
|
+
|
|
8716
|
+
|
|
8717
|
+
|
|
8718
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
8719
|
+
/**
|
|
8720
|
+
* Creates an object representation of this proto.
|
|
8721
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
8722
|
+
* Optional fields that are not set will be set to undefined.
|
|
8723
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
8724
|
+
* For the list of reserved names please see:
|
|
8725
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
8726
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
8727
|
+
* JSPB instance for transitional soy proto support:
|
|
8728
|
+
* http://goto/soy-param-migration
|
|
8729
|
+
* @return {!Object}
|
|
8730
|
+
*/
|
|
8731
|
+
proto.zaber.motion.protobufs.TestResponseLong.prototype.toObject = function(opt_includeInstance) {
|
|
8732
|
+
return proto.zaber.motion.protobufs.TestResponseLong.toObject(opt_includeInstance, this);
|
|
8733
|
+
};
|
|
8734
|
+
|
|
8735
|
+
|
|
8736
|
+
/**
|
|
8737
|
+
* Static version of the {@see toObject} method.
|
|
8738
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
8739
|
+
* the JSPB instance for transitional soy proto support:
|
|
8740
|
+
* http://goto/soy-param-migration
|
|
8741
|
+
* @param {!proto.zaber.motion.protobufs.TestResponseLong} msg The msg instance to transform.
|
|
8742
|
+
* @return {!Object}
|
|
8743
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8744
|
+
*/
|
|
8745
|
+
proto.zaber.motion.protobufs.TestResponseLong.toObject = function(includeInstance, msg) {
|
|
8746
|
+
var f, obj = {
|
|
8747
|
+
dataPongList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
|
|
8748
|
+
};
|
|
8749
|
+
|
|
8750
|
+
if (includeInstance) {
|
|
8751
|
+
obj.$jspbMessageInstance = msg;
|
|
8752
|
+
}
|
|
8753
|
+
return obj;
|
|
8754
|
+
};
|
|
8755
|
+
}
|
|
8756
|
+
|
|
8757
|
+
|
|
8758
|
+
/**
|
|
8759
|
+
* Deserializes binary data (in protobuf wire format).
|
|
8760
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
8761
|
+
* @return {!proto.zaber.motion.protobufs.TestResponseLong}
|
|
8762
|
+
*/
|
|
8763
|
+
proto.zaber.motion.protobufs.TestResponseLong.deserializeBinary = function(bytes) {
|
|
8764
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
8765
|
+
var msg = new proto.zaber.motion.protobufs.TestResponseLong;
|
|
8766
|
+
return proto.zaber.motion.protobufs.TestResponseLong.deserializeBinaryFromReader(msg, reader);
|
|
8767
|
+
};
|
|
8768
|
+
|
|
8769
|
+
|
|
8770
|
+
/**
|
|
8771
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
8772
|
+
* given reader into the given message object.
|
|
8773
|
+
* @param {!proto.zaber.motion.protobufs.TestResponseLong} msg The message object to deserialize into.
|
|
8774
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
8775
|
+
* @return {!proto.zaber.motion.protobufs.TestResponseLong}
|
|
8776
|
+
*/
|
|
8777
|
+
proto.zaber.motion.protobufs.TestResponseLong.deserializeBinaryFromReader = function(msg, reader) {
|
|
8778
|
+
while (reader.nextField()) {
|
|
8779
|
+
if (reader.isEndGroup()) {
|
|
8780
|
+
break;
|
|
8781
|
+
}
|
|
8782
|
+
var field = reader.getFieldNumber();
|
|
8783
|
+
switch (field) {
|
|
8784
|
+
case 1:
|
|
8785
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8786
|
+
msg.addDataPong(value);
|
|
8787
|
+
break;
|
|
8788
|
+
default:
|
|
8789
|
+
reader.skipField();
|
|
8790
|
+
break;
|
|
8791
|
+
}
|
|
8792
|
+
}
|
|
8793
|
+
return msg;
|
|
8794
|
+
};
|
|
8795
|
+
|
|
8796
|
+
|
|
8797
|
+
/**
|
|
8798
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
8799
|
+
* @return {!Uint8Array}
|
|
8800
|
+
*/
|
|
8801
|
+
proto.zaber.motion.protobufs.TestResponseLong.prototype.serializeBinary = function() {
|
|
8802
|
+
var writer = new jspb.BinaryWriter();
|
|
8803
|
+
proto.zaber.motion.protobufs.TestResponseLong.serializeBinaryToWriter(this, writer);
|
|
8804
|
+
return writer.getResultBuffer();
|
|
8805
|
+
};
|
|
8806
|
+
|
|
8807
|
+
|
|
8808
|
+
/**
|
|
8809
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
8810
|
+
* format), writing to the given BinaryWriter.
|
|
8811
|
+
* @param {!proto.zaber.motion.protobufs.TestResponseLong} message
|
|
8812
|
+
* @param {!jspb.BinaryWriter} writer
|
|
8813
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8814
|
+
*/
|
|
8815
|
+
proto.zaber.motion.protobufs.TestResponseLong.serializeBinaryToWriter = function(message, writer) {
|
|
8816
|
+
var f = undefined;
|
|
8817
|
+
f = message.getDataPongList();
|
|
8818
|
+
if (f.length > 0) {
|
|
8819
|
+
writer.writeRepeatedString(
|
|
8820
|
+
1,
|
|
8821
|
+
f
|
|
8822
|
+
);
|
|
8823
|
+
}
|
|
8824
|
+
};
|
|
8825
|
+
|
|
8826
|
+
|
|
8827
|
+
/**
|
|
8828
|
+
* repeated string data_pong = 1;
|
|
8829
|
+
* @return {!Array<string>}
|
|
8830
|
+
*/
|
|
8831
|
+
proto.zaber.motion.protobufs.TestResponseLong.prototype.getDataPongList = function() {
|
|
8832
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
8833
|
+
};
|
|
8834
|
+
|
|
8835
|
+
|
|
8836
|
+
/**
|
|
8837
|
+
* @param {!Array<string>} value
|
|
8838
|
+
* @return {!proto.zaber.motion.protobufs.TestResponseLong} returns this
|
|
8839
|
+
*/
|
|
8840
|
+
proto.zaber.motion.protobufs.TestResponseLong.prototype.setDataPongList = function(value) {
|
|
8841
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
8842
|
+
};
|
|
8843
|
+
|
|
8844
|
+
|
|
8845
|
+
/**
|
|
8846
|
+
* @param {string} value
|
|
8847
|
+
* @param {number=} opt_index
|
|
8848
|
+
* @return {!proto.zaber.motion.protobufs.TestResponseLong} returns this
|
|
8849
|
+
*/
|
|
8850
|
+
proto.zaber.motion.protobufs.TestResponseLong.prototype.addDataPong = function(value, opt_index) {
|
|
8851
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
8852
|
+
};
|
|
8853
|
+
|
|
8854
|
+
|
|
8855
|
+
/**
|
|
8856
|
+
* Clears the list making it empty but non-null.
|
|
8857
|
+
* @return {!proto.zaber.motion.protobufs.TestResponseLong} returns this
|
|
8858
|
+
*/
|
|
8859
|
+
proto.zaber.motion.protobufs.TestResponseLong.prototype.clearDataPongList = function() {
|
|
8860
|
+
return this.setDataPongList([]);
|
|
8861
|
+
};
|
|
8862
|
+
|
|
8863
|
+
|
|
8864
|
+
|
|
8865
|
+
|
|
8866
|
+
|
|
8867
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
8868
|
+
/**
|
|
8869
|
+
* Creates an object representation of this proto.
|
|
8870
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
8871
|
+
* Optional fields that are not set will be set to undefined.
|
|
8872
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
8873
|
+
* For the list of reserved names please see:
|
|
8874
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
8875
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
8876
|
+
* JSPB instance for transitional soy proto support:
|
|
8877
|
+
* http://goto/soy-param-migration
|
|
8878
|
+
* @return {!Object}
|
|
8879
|
+
*/
|
|
8880
|
+
proto.zaber.motion.protobufs.TestEvent.prototype.toObject = function(opt_includeInstance) {
|
|
8881
|
+
return proto.zaber.motion.protobufs.TestEvent.toObject(opt_includeInstance, this);
|
|
8882
|
+
};
|
|
8883
|
+
|
|
8884
|
+
|
|
8885
|
+
/**
|
|
8886
|
+
* Static version of the {@see toObject} method.
|
|
8887
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
8888
|
+
* the JSPB instance for transitional soy proto support:
|
|
8889
|
+
* http://goto/soy-param-migration
|
|
8890
|
+
* @param {!proto.zaber.motion.protobufs.TestEvent} msg The msg instance to transform.
|
|
8891
|
+
* @return {!Object}
|
|
8892
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8893
|
+
*/
|
|
8894
|
+
proto.zaber.motion.protobufs.TestEvent.toObject = function(includeInstance, msg) {
|
|
8895
|
+
var f, obj = {
|
|
8896
|
+
data: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
8897
|
+
};
|
|
8898
|
+
|
|
8899
|
+
if (includeInstance) {
|
|
8900
|
+
obj.$jspbMessageInstance = msg;
|
|
8901
|
+
}
|
|
8902
|
+
return obj;
|
|
8903
|
+
};
|
|
8904
|
+
}
|
|
8905
|
+
|
|
8906
|
+
|
|
8907
|
+
/**
|
|
8908
|
+
* Deserializes binary data (in protobuf wire format).
|
|
8909
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
8910
|
+
* @return {!proto.zaber.motion.protobufs.TestEvent}
|
|
8911
|
+
*/
|
|
8912
|
+
proto.zaber.motion.protobufs.TestEvent.deserializeBinary = function(bytes) {
|
|
8913
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
8914
|
+
var msg = new proto.zaber.motion.protobufs.TestEvent;
|
|
8915
|
+
return proto.zaber.motion.protobufs.TestEvent.deserializeBinaryFromReader(msg, reader);
|
|
8916
|
+
};
|
|
8917
|
+
|
|
8918
|
+
|
|
8919
|
+
/**
|
|
8920
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
8921
|
+
* given reader into the given message object.
|
|
8922
|
+
* @param {!proto.zaber.motion.protobufs.TestEvent} msg The message object to deserialize into.
|
|
8923
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
8924
|
+
* @return {!proto.zaber.motion.protobufs.TestEvent}
|
|
8925
|
+
*/
|
|
8926
|
+
proto.zaber.motion.protobufs.TestEvent.deserializeBinaryFromReader = function(msg, reader) {
|
|
8927
|
+
while (reader.nextField()) {
|
|
8928
|
+
if (reader.isEndGroup()) {
|
|
8929
|
+
break;
|
|
8930
|
+
}
|
|
8931
|
+
var field = reader.getFieldNumber();
|
|
8932
|
+
switch (field) {
|
|
8933
|
+
case 1:
|
|
8934
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8935
|
+
msg.setData(value);
|
|
8936
|
+
break;
|
|
8937
|
+
default:
|
|
8938
|
+
reader.skipField();
|
|
8939
|
+
break;
|
|
8940
|
+
}
|
|
8941
|
+
}
|
|
8942
|
+
return msg;
|
|
8943
|
+
};
|
|
8944
|
+
|
|
8945
|
+
|
|
8946
|
+
/**
|
|
8947
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
8948
|
+
* @return {!Uint8Array}
|
|
8949
|
+
*/
|
|
8950
|
+
proto.zaber.motion.protobufs.TestEvent.prototype.serializeBinary = function() {
|
|
8951
|
+
var writer = new jspb.BinaryWriter();
|
|
8952
|
+
proto.zaber.motion.protobufs.TestEvent.serializeBinaryToWriter(this, writer);
|
|
8953
|
+
return writer.getResultBuffer();
|
|
8954
|
+
};
|
|
8955
|
+
|
|
8956
|
+
|
|
8957
|
+
/**
|
|
8958
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
8959
|
+
* format), writing to the given BinaryWriter.
|
|
8960
|
+
* @param {!proto.zaber.motion.protobufs.TestEvent} message
|
|
8202
8961
|
* @param {!jspb.BinaryWriter} writer
|
|
8203
8962
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8204
8963
|
*/
|
|
@@ -39746,6 +40505,1176 @@ proto.zaber.motion.protobufs.CustomInterfaceCloseRequest.prototype.setErrorMessa
|
|
|
39746
40505
|
};
|
|
39747
40506
|
|
|
39748
40507
|
|
|
40508
|
+
|
|
40509
|
+
|
|
40510
|
+
|
|
40511
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
40512
|
+
/**
|
|
40513
|
+
* Creates an object representation of this proto.
|
|
40514
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
40515
|
+
* Optional fields that are not set will be set to undefined.
|
|
40516
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
40517
|
+
* For the list of reserved names please see:
|
|
40518
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
40519
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
40520
|
+
* JSPB instance for transitional soy proto support:
|
|
40521
|
+
* http://goto/soy-param-migration
|
|
40522
|
+
* @return {!Object}
|
|
40523
|
+
*/
|
|
40524
|
+
proto.zaber.motion.protobufs.GetStateRequest.prototype.toObject = function(opt_includeInstance) {
|
|
40525
|
+
return proto.zaber.motion.protobufs.GetStateRequest.toObject(opt_includeInstance, this);
|
|
40526
|
+
};
|
|
40527
|
+
|
|
40528
|
+
|
|
40529
|
+
/**
|
|
40530
|
+
* Static version of the {@see toObject} method.
|
|
40531
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
40532
|
+
* the JSPB instance for transitional soy proto support:
|
|
40533
|
+
* http://goto/soy-param-migration
|
|
40534
|
+
* @param {!proto.zaber.motion.protobufs.GetStateRequest} msg The msg instance to transform.
|
|
40535
|
+
* @return {!Object}
|
|
40536
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
40537
|
+
*/
|
|
40538
|
+
proto.zaber.motion.protobufs.GetStateRequest.toObject = function(includeInstance, msg) {
|
|
40539
|
+
var f, obj = {
|
|
40540
|
+
interfaceId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
40541
|
+
device: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
40542
|
+
axis: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
40543
|
+
};
|
|
40544
|
+
|
|
40545
|
+
if (includeInstance) {
|
|
40546
|
+
obj.$jspbMessageInstance = msg;
|
|
40547
|
+
}
|
|
40548
|
+
return obj;
|
|
40549
|
+
};
|
|
40550
|
+
}
|
|
40551
|
+
|
|
40552
|
+
|
|
40553
|
+
/**
|
|
40554
|
+
* Deserializes binary data (in protobuf wire format).
|
|
40555
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
40556
|
+
* @return {!proto.zaber.motion.protobufs.GetStateRequest}
|
|
40557
|
+
*/
|
|
40558
|
+
proto.zaber.motion.protobufs.GetStateRequest.deserializeBinary = function(bytes) {
|
|
40559
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
40560
|
+
var msg = new proto.zaber.motion.protobufs.GetStateRequest;
|
|
40561
|
+
return proto.zaber.motion.protobufs.GetStateRequest.deserializeBinaryFromReader(msg, reader);
|
|
40562
|
+
};
|
|
40563
|
+
|
|
40564
|
+
|
|
40565
|
+
/**
|
|
40566
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
40567
|
+
* given reader into the given message object.
|
|
40568
|
+
* @param {!proto.zaber.motion.protobufs.GetStateRequest} msg The message object to deserialize into.
|
|
40569
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
40570
|
+
* @return {!proto.zaber.motion.protobufs.GetStateRequest}
|
|
40571
|
+
*/
|
|
40572
|
+
proto.zaber.motion.protobufs.GetStateRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
40573
|
+
while (reader.nextField()) {
|
|
40574
|
+
if (reader.isEndGroup()) {
|
|
40575
|
+
break;
|
|
40576
|
+
}
|
|
40577
|
+
var field = reader.getFieldNumber();
|
|
40578
|
+
switch (field) {
|
|
40579
|
+
case 1:
|
|
40580
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
40581
|
+
msg.setInterfaceId(value);
|
|
40582
|
+
break;
|
|
40583
|
+
case 2:
|
|
40584
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
40585
|
+
msg.setDevice(value);
|
|
40586
|
+
break;
|
|
40587
|
+
case 3:
|
|
40588
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
40589
|
+
msg.setAxis(value);
|
|
40590
|
+
break;
|
|
40591
|
+
default:
|
|
40592
|
+
reader.skipField();
|
|
40593
|
+
break;
|
|
40594
|
+
}
|
|
40595
|
+
}
|
|
40596
|
+
return msg;
|
|
40597
|
+
};
|
|
40598
|
+
|
|
40599
|
+
|
|
40600
|
+
/**
|
|
40601
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
40602
|
+
* @return {!Uint8Array}
|
|
40603
|
+
*/
|
|
40604
|
+
proto.zaber.motion.protobufs.GetStateRequest.prototype.serializeBinary = function() {
|
|
40605
|
+
var writer = new jspb.BinaryWriter();
|
|
40606
|
+
proto.zaber.motion.protobufs.GetStateRequest.serializeBinaryToWriter(this, writer);
|
|
40607
|
+
return writer.getResultBuffer();
|
|
40608
|
+
};
|
|
40609
|
+
|
|
40610
|
+
|
|
40611
|
+
/**
|
|
40612
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
40613
|
+
* format), writing to the given BinaryWriter.
|
|
40614
|
+
* @param {!proto.zaber.motion.protobufs.GetStateRequest} message
|
|
40615
|
+
* @param {!jspb.BinaryWriter} writer
|
|
40616
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
40617
|
+
*/
|
|
40618
|
+
proto.zaber.motion.protobufs.GetStateRequest.serializeBinaryToWriter = function(message, writer) {
|
|
40619
|
+
var f = undefined;
|
|
40620
|
+
f = message.getInterfaceId();
|
|
40621
|
+
if (f !== 0) {
|
|
40622
|
+
writer.writeInt32(
|
|
40623
|
+
1,
|
|
40624
|
+
f
|
|
40625
|
+
);
|
|
40626
|
+
}
|
|
40627
|
+
f = message.getDevice();
|
|
40628
|
+
if (f !== 0) {
|
|
40629
|
+
writer.writeInt32(
|
|
40630
|
+
2,
|
|
40631
|
+
f
|
|
40632
|
+
);
|
|
40633
|
+
}
|
|
40634
|
+
f = message.getAxis();
|
|
40635
|
+
if (f !== 0) {
|
|
40636
|
+
writer.writeInt32(
|
|
40637
|
+
3,
|
|
40638
|
+
f
|
|
40639
|
+
);
|
|
40640
|
+
}
|
|
40641
|
+
};
|
|
40642
|
+
|
|
40643
|
+
|
|
40644
|
+
/**
|
|
40645
|
+
* optional int32 interface_id = 1;
|
|
40646
|
+
* @return {number}
|
|
40647
|
+
*/
|
|
40648
|
+
proto.zaber.motion.protobufs.GetStateRequest.prototype.getInterfaceId = function() {
|
|
40649
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
40650
|
+
};
|
|
40651
|
+
|
|
40652
|
+
|
|
40653
|
+
/**
|
|
40654
|
+
* @param {number} value
|
|
40655
|
+
* @return {!proto.zaber.motion.protobufs.GetStateRequest} returns this
|
|
40656
|
+
*/
|
|
40657
|
+
proto.zaber.motion.protobufs.GetStateRequest.prototype.setInterfaceId = function(value) {
|
|
40658
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
40659
|
+
};
|
|
40660
|
+
|
|
40661
|
+
|
|
40662
|
+
/**
|
|
40663
|
+
* optional int32 device = 2;
|
|
40664
|
+
* @return {number}
|
|
40665
|
+
*/
|
|
40666
|
+
proto.zaber.motion.protobufs.GetStateRequest.prototype.getDevice = function() {
|
|
40667
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
40668
|
+
};
|
|
40669
|
+
|
|
40670
|
+
|
|
40671
|
+
/**
|
|
40672
|
+
* @param {number} value
|
|
40673
|
+
* @return {!proto.zaber.motion.protobufs.GetStateRequest} returns this
|
|
40674
|
+
*/
|
|
40675
|
+
proto.zaber.motion.protobufs.GetStateRequest.prototype.setDevice = function(value) {
|
|
40676
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
40677
|
+
};
|
|
40678
|
+
|
|
40679
|
+
|
|
40680
|
+
/**
|
|
40681
|
+
* optional int32 axis = 3;
|
|
40682
|
+
* @return {number}
|
|
40683
|
+
*/
|
|
40684
|
+
proto.zaber.motion.protobufs.GetStateRequest.prototype.getAxis = function() {
|
|
40685
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
40686
|
+
};
|
|
40687
|
+
|
|
40688
|
+
|
|
40689
|
+
/**
|
|
40690
|
+
* @param {number} value
|
|
40691
|
+
* @return {!proto.zaber.motion.protobufs.GetStateRequest} returns this
|
|
40692
|
+
*/
|
|
40693
|
+
proto.zaber.motion.protobufs.GetStateRequest.prototype.setAxis = function(value) {
|
|
40694
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
40695
|
+
};
|
|
40696
|
+
|
|
40697
|
+
|
|
40698
|
+
|
|
40699
|
+
|
|
40700
|
+
|
|
40701
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
40702
|
+
/**
|
|
40703
|
+
* Creates an object representation of this proto.
|
|
40704
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
40705
|
+
* Optional fields that are not set will be set to undefined.
|
|
40706
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
40707
|
+
* For the list of reserved names please see:
|
|
40708
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
40709
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
40710
|
+
* JSPB instance for transitional soy proto support:
|
|
40711
|
+
* http://goto/soy-param-migration
|
|
40712
|
+
* @return {!Object}
|
|
40713
|
+
*/
|
|
40714
|
+
proto.zaber.motion.protobufs.GetStateResponse.prototype.toObject = function(opt_includeInstance) {
|
|
40715
|
+
return proto.zaber.motion.protobufs.GetStateResponse.toObject(opt_includeInstance, this);
|
|
40716
|
+
};
|
|
40717
|
+
|
|
40718
|
+
|
|
40719
|
+
/**
|
|
40720
|
+
* Static version of the {@see toObject} method.
|
|
40721
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
40722
|
+
* the JSPB instance for transitional soy proto support:
|
|
40723
|
+
* http://goto/soy-param-migration
|
|
40724
|
+
* @param {!proto.zaber.motion.protobufs.GetStateResponse} msg The msg instance to transform.
|
|
40725
|
+
* @return {!Object}
|
|
40726
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
40727
|
+
*/
|
|
40728
|
+
proto.zaber.motion.protobufs.GetStateResponse.toObject = function(includeInstance, msg) {
|
|
40729
|
+
var f, obj = {
|
|
40730
|
+
state: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
40731
|
+
};
|
|
40732
|
+
|
|
40733
|
+
if (includeInstance) {
|
|
40734
|
+
obj.$jspbMessageInstance = msg;
|
|
40735
|
+
}
|
|
40736
|
+
return obj;
|
|
40737
|
+
};
|
|
40738
|
+
}
|
|
40739
|
+
|
|
40740
|
+
|
|
40741
|
+
/**
|
|
40742
|
+
* Deserializes binary data (in protobuf wire format).
|
|
40743
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
40744
|
+
* @return {!proto.zaber.motion.protobufs.GetStateResponse}
|
|
40745
|
+
*/
|
|
40746
|
+
proto.zaber.motion.protobufs.GetStateResponse.deserializeBinary = function(bytes) {
|
|
40747
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
40748
|
+
var msg = new proto.zaber.motion.protobufs.GetStateResponse;
|
|
40749
|
+
return proto.zaber.motion.protobufs.GetStateResponse.deserializeBinaryFromReader(msg, reader);
|
|
40750
|
+
};
|
|
40751
|
+
|
|
40752
|
+
|
|
40753
|
+
/**
|
|
40754
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
40755
|
+
* given reader into the given message object.
|
|
40756
|
+
* @param {!proto.zaber.motion.protobufs.GetStateResponse} msg The message object to deserialize into.
|
|
40757
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
40758
|
+
* @return {!proto.zaber.motion.protobufs.GetStateResponse}
|
|
40759
|
+
*/
|
|
40760
|
+
proto.zaber.motion.protobufs.GetStateResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
40761
|
+
while (reader.nextField()) {
|
|
40762
|
+
if (reader.isEndGroup()) {
|
|
40763
|
+
break;
|
|
40764
|
+
}
|
|
40765
|
+
var field = reader.getFieldNumber();
|
|
40766
|
+
switch (field) {
|
|
40767
|
+
case 1:
|
|
40768
|
+
var value = /** @type {string} */ (reader.readString());
|
|
40769
|
+
msg.setState(value);
|
|
40770
|
+
break;
|
|
40771
|
+
default:
|
|
40772
|
+
reader.skipField();
|
|
40773
|
+
break;
|
|
40774
|
+
}
|
|
40775
|
+
}
|
|
40776
|
+
return msg;
|
|
40777
|
+
};
|
|
40778
|
+
|
|
40779
|
+
|
|
40780
|
+
/**
|
|
40781
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
40782
|
+
* @return {!Uint8Array}
|
|
40783
|
+
*/
|
|
40784
|
+
proto.zaber.motion.protobufs.GetStateResponse.prototype.serializeBinary = function() {
|
|
40785
|
+
var writer = new jspb.BinaryWriter();
|
|
40786
|
+
proto.zaber.motion.protobufs.GetStateResponse.serializeBinaryToWriter(this, writer);
|
|
40787
|
+
return writer.getResultBuffer();
|
|
40788
|
+
};
|
|
40789
|
+
|
|
40790
|
+
|
|
40791
|
+
/**
|
|
40792
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
40793
|
+
* format), writing to the given BinaryWriter.
|
|
40794
|
+
* @param {!proto.zaber.motion.protobufs.GetStateResponse} message
|
|
40795
|
+
* @param {!jspb.BinaryWriter} writer
|
|
40796
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
40797
|
+
*/
|
|
40798
|
+
proto.zaber.motion.protobufs.GetStateResponse.serializeBinaryToWriter = function(message, writer) {
|
|
40799
|
+
var f = undefined;
|
|
40800
|
+
f = message.getState();
|
|
40801
|
+
if (f.length > 0) {
|
|
40802
|
+
writer.writeString(
|
|
40803
|
+
1,
|
|
40804
|
+
f
|
|
40805
|
+
);
|
|
40806
|
+
}
|
|
40807
|
+
};
|
|
40808
|
+
|
|
40809
|
+
|
|
40810
|
+
/**
|
|
40811
|
+
* optional string state = 1;
|
|
40812
|
+
* @return {string}
|
|
40813
|
+
*/
|
|
40814
|
+
proto.zaber.motion.protobufs.GetStateResponse.prototype.getState = function() {
|
|
40815
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
40816
|
+
};
|
|
40817
|
+
|
|
40818
|
+
|
|
40819
|
+
/**
|
|
40820
|
+
* @param {string} value
|
|
40821
|
+
* @return {!proto.zaber.motion.protobufs.GetStateResponse} returns this
|
|
40822
|
+
*/
|
|
40823
|
+
proto.zaber.motion.protobufs.GetStateResponse.prototype.setState = function(value) {
|
|
40824
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
40825
|
+
};
|
|
40826
|
+
|
|
40827
|
+
|
|
40828
|
+
|
|
40829
|
+
|
|
40830
|
+
|
|
40831
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
40832
|
+
/**
|
|
40833
|
+
* Creates an object representation of this proto.
|
|
40834
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
40835
|
+
* Optional fields that are not set will be set to undefined.
|
|
40836
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
40837
|
+
* For the list of reserved names please see:
|
|
40838
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
40839
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
40840
|
+
* JSPB instance for transitional soy proto support:
|
|
40841
|
+
* http://goto/soy-param-migration
|
|
40842
|
+
* @return {!Object}
|
|
40843
|
+
*/
|
|
40844
|
+
proto.zaber.motion.protobufs.CanSetStateRequest.prototype.toObject = function(opt_includeInstance) {
|
|
40845
|
+
return proto.zaber.motion.protobufs.CanSetStateRequest.toObject(opt_includeInstance, this);
|
|
40846
|
+
};
|
|
40847
|
+
|
|
40848
|
+
|
|
40849
|
+
/**
|
|
40850
|
+
* Static version of the {@see toObject} method.
|
|
40851
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
40852
|
+
* the JSPB instance for transitional soy proto support:
|
|
40853
|
+
* http://goto/soy-param-migration
|
|
40854
|
+
* @param {!proto.zaber.motion.protobufs.CanSetStateRequest} msg The msg instance to transform.
|
|
40855
|
+
* @return {!Object}
|
|
40856
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
40857
|
+
*/
|
|
40858
|
+
proto.zaber.motion.protobufs.CanSetStateRequest.toObject = function(includeInstance, msg) {
|
|
40859
|
+
var f, obj = {
|
|
40860
|
+
interfaceId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
40861
|
+
device: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
40862
|
+
axis: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
40863
|
+
state: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
40864
|
+
deviceOnly: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
|
|
40865
|
+
};
|
|
40866
|
+
|
|
40867
|
+
if (includeInstance) {
|
|
40868
|
+
obj.$jspbMessageInstance = msg;
|
|
40869
|
+
}
|
|
40870
|
+
return obj;
|
|
40871
|
+
};
|
|
40872
|
+
}
|
|
40873
|
+
|
|
40874
|
+
|
|
40875
|
+
/**
|
|
40876
|
+
* Deserializes binary data (in protobuf wire format).
|
|
40877
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
40878
|
+
* @return {!proto.zaber.motion.protobufs.CanSetStateRequest}
|
|
40879
|
+
*/
|
|
40880
|
+
proto.zaber.motion.protobufs.CanSetStateRequest.deserializeBinary = function(bytes) {
|
|
40881
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
40882
|
+
var msg = new proto.zaber.motion.protobufs.CanSetStateRequest;
|
|
40883
|
+
return proto.zaber.motion.protobufs.CanSetStateRequest.deserializeBinaryFromReader(msg, reader);
|
|
40884
|
+
};
|
|
40885
|
+
|
|
40886
|
+
|
|
40887
|
+
/**
|
|
40888
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
40889
|
+
* given reader into the given message object.
|
|
40890
|
+
* @param {!proto.zaber.motion.protobufs.CanSetStateRequest} msg The message object to deserialize into.
|
|
40891
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
40892
|
+
* @return {!proto.zaber.motion.protobufs.CanSetStateRequest}
|
|
40893
|
+
*/
|
|
40894
|
+
proto.zaber.motion.protobufs.CanSetStateRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
40895
|
+
while (reader.nextField()) {
|
|
40896
|
+
if (reader.isEndGroup()) {
|
|
40897
|
+
break;
|
|
40898
|
+
}
|
|
40899
|
+
var field = reader.getFieldNumber();
|
|
40900
|
+
switch (field) {
|
|
40901
|
+
case 1:
|
|
40902
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
40903
|
+
msg.setInterfaceId(value);
|
|
40904
|
+
break;
|
|
40905
|
+
case 2:
|
|
40906
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
40907
|
+
msg.setDevice(value);
|
|
40908
|
+
break;
|
|
40909
|
+
case 3:
|
|
40910
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
40911
|
+
msg.setAxis(value);
|
|
40912
|
+
break;
|
|
40913
|
+
case 4:
|
|
40914
|
+
var value = /** @type {string} */ (reader.readString());
|
|
40915
|
+
msg.setState(value);
|
|
40916
|
+
break;
|
|
40917
|
+
case 5:
|
|
40918
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
40919
|
+
msg.setDeviceOnly(value);
|
|
40920
|
+
break;
|
|
40921
|
+
default:
|
|
40922
|
+
reader.skipField();
|
|
40923
|
+
break;
|
|
40924
|
+
}
|
|
40925
|
+
}
|
|
40926
|
+
return msg;
|
|
40927
|
+
};
|
|
40928
|
+
|
|
40929
|
+
|
|
40930
|
+
/**
|
|
40931
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
40932
|
+
* @return {!Uint8Array}
|
|
40933
|
+
*/
|
|
40934
|
+
proto.zaber.motion.protobufs.CanSetStateRequest.prototype.serializeBinary = function() {
|
|
40935
|
+
var writer = new jspb.BinaryWriter();
|
|
40936
|
+
proto.zaber.motion.protobufs.CanSetStateRequest.serializeBinaryToWriter(this, writer);
|
|
40937
|
+
return writer.getResultBuffer();
|
|
40938
|
+
};
|
|
40939
|
+
|
|
40940
|
+
|
|
40941
|
+
/**
|
|
40942
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
40943
|
+
* format), writing to the given BinaryWriter.
|
|
40944
|
+
* @param {!proto.zaber.motion.protobufs.CanSetStateRequest} message
|
|
40945
|
+
* @param {!jspb.BinaryWriter} writer
|
|
40946
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
40947
|
+
*/
|
|
40948
|
+
proto.zaber.motion.protobufs.CanSetStateRequest.serializeBinaryToWriter = function(message, writer) {
|
|
40949
|
+
var f = undefined;
|
|
40950
|
+
f = message.getInterfaceId();
|
|
40951
|
+
if (f !== 0) {
|
|
40952
|
+
writer.writeInt32(
|
|
40953
|
+
1,
|
|
40954
|
+
f
|
|
40955
|
+
);
|
|
40956
|
+
}
|
|
40957
|
+
f = message.getDevice();
|
|
40958
|
+
if (f !== 0) {
|
|
40959
|
+
writer.writeInt32(
|
|
40960
|
+
2,
|
|
40961
|
+
f
|
|
40962
|
+
);
|
|
40963
|
+
}
|
|
40964
|
+
f = message.getAxis();
|
|
40965
|
+
if (f !== 0) {
|
|
40966
|
+
writer.writeInt32(
|
|
40967
|
+
3,
|
|
40968
|
+
f
|
|
40969
|
+
);
|
|
40970
|
+
}
|
|
40971
|
+
f = message.getState();
|
|
40972
|
+
if (f.length > 0) {
|
|
40973
|
+
writer.writeString(
|
|
40974
|
+
4,
|
|
40975
|
+
f
|
|
40976
|
+
);
|
|
40977
|
+
}
|
|
40978
|
+
f = message.getDeviceOnly();
|
|
40979
|
+
if (f) {
|
|
40980
|
+
writer.writeBool(
|
|
40981
|
+
5,
|
|
40982
|
+
f
|
|
40983
|
+
);
|
|
40984
|
+
}
|
|
40985
|
+
};
|
|
40986
|
+
|
|
40987
|
+
|
|
40988
|
+
/**
|
|
40989
|
+
* optional int32 interface_id = 1;
|
|
40990
|
+
* @return {number}
|
|
40991
|
+
*/
|
|
40992
|
+
proto.zaber.motion.protobufs.CanSetStateRequest.prototype.getInterfaceId = function() {
|
|
40993
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
40994
|
+
};
|
|
40995
|
+
|
|
40996
|
+
|
|
40997
|
+
/**
|
|
40998
|
+
* @param {number} value
|
|
40999
|
+
* @return {!proto.zaber.motion.protobufs.CanSetStateRequest} returns this
|
|
41000
|
+
*/
|
|
41001
|
+
proto.zaber.motion.protobufs.CanSetStateRequest.prototype.setInterfaceId = function(value) {
|
|
41002
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
41003
|
+
};
|
|
41004
|
+
|
|
41005
|
+
|
|
41006
|
+
/**
|
|
41007
|
+
* optional int32 device = 2;
|
|
41008
|
+
* @return {number}
|
|
41009
|
+
*/
|
|
41010
|
+
proto.zaber.motion.protobufs.CanSetStateRequest.prototype.getDevice = function() {
|
|
41011
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
41012
|
+
};
|
|
41013
|
+
|
|
41014
|
+
|
|
41015
|
+
/**
|
|
41016
|
+
* @param {number} value
|
|
41017
|
+
* @return {!proto.zaber.motion.protobufs.CanSetStateRequest} returns this
|
|
41018
|
+
*/
|
|
41019
|
+
proto.zaber.motion.protobufs.CanSetStateRequest.prototype.setDevice = function(value) {
|
|
41020
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
41021
|
+
};
|
|
41022
|
+
|
|
41023
|
+
|
|
41024
|
+
/**
|
|
41025
|
+
* optional int32 axis = 3;
|
|
41026
|
+
* @return {number}
|
|
41027
|
+
*/
|
|
41028
|
+
proto.zaber.motion.protobufs.CanSetStateRequest.prototype.getAxis = function() {
|
|
41029
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
41030
|
+
};
|
|
41031
|
+
|
|
41032
|
+
|
|
41033
|
+
/**
|
|
41034
|
+
* @param {number} value
|
|
41035
|
+
* @return {!proto.zaber.motion.protobufs.CanSetStateRequest} returns this
|
|
41036
|
+
*/
|
|
41037
|
+
proto.zaber.motion.protobufs.CanSetStateRequest.prototype.setAxis = function(value) {
|
|
41038
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
41039
|
+
};
|
|
41040
|
+
|
|
41041
|
+
|
|
41042
|
+
/**
|
|
41043
|
+
* optional string state = 4;
|
|
41044
|
+
* @return {string}
|
|
41045
|
+
*/
|
|
41046
|
+
proto.zaber.motion.protobufs.CanSetStateRequest.prototype.getState = function() {
|
|
41047
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
41048
|
+
};
|
|
41049
|
+
|
|
41050
|
+
|
|
41051
|
+
/**
|
|
41052
|
+
* @param {string} value
|
|
41053
|
+
* @return {!proto.zaber.motion.protobufs.CanSetStateRequest} returns this
|
|
41054
|
+
*/
|
|
41055
|
+
proto.zaber.motion.protobufs.CanSetStateRequest.prototype.setState = function(value) {
|
|
41056
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
41057
|
+
};
|
|
41058
|
+
|
|
41059
|
+
|
|
41060
|
+
/**
|
|
41061
|
+
* optional bool device_only = 5;
|
|
41062
|
+
* @return {boolean}
|
|
41063
|
+
*/
|
|
41064
|
+
proto.zaber.motion.protobufs.CanSetStateRequest.prototype.getDeviceOnly = function() {
|
|
41065
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
|
|
41066
|
+
};
|
|
41067
|
+
|
|
41068
|
+
|
|
41069
|
+
/**
|
|
41070
|
+
* @param {boolean} value
|
|
41071
|
+
* @return {!proto.zaber.motion.protobufs.CanSetStateRequest} returns this
|
|
41072
|
+
*/
|
|
41073
|
+
proto.zaber.motion.protobufs.CanSetStateRequest.prototype.setDeviceOnly = function(value) {
|
|
41074
|
+
return jspb.Message.setProto3BooleanField(this, 5, value);
|
|
41075
|
+
};
|
|
41076
|
+
|
|
41077
|
+
|
|
41078
|
+
|
|
41079
|
+
|
|
41080
|
+
|
|
41081
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
41082
|
+
/**
|
|
41083
|
+
* Creates an object representation of this proto.
|
|
41084
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
41085
|
+
* Optional fields that are not set will be set to undefined.
|
|
41086
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
41087
|
+
* For the list of reserved names please see:
|
|
41088
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
41089
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
41090
|
+
* JSPB instance for transitional soy proto support:
|
|
41091
|
+
* http://goto/soy-param-migration
|
|
41092
|
+
* @return {!Object}
|
|
41093
|
+
*/
|
|
41094
|
+
proto.zaber.motion.protobufs.CanSetStateAxisResponse.prototype.toObject = function(opt_includeInstance) {
|
|
41095
|
+
return proto.zaber.motion.protobufs.CanSetStateAxisResponse.toObject(opt_includeInstance, this);
|
|
41096
|
+
};
|
|
41097
|
+
|
|
41098
|
+
|
|
41099
|
+
/**
|
|
41100
|
+
* Static version of the {@see toObject} method.
|
|
41101
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
41102
|
+
* the JSPB instance for transitional soy proto support:
|
|
41103
|
+
* http://goto/soy-param-migration
|
|
41104
|
+
* @param {!proto.zaber.motion.protobufs.CanSetStateAxisResponse} msg The msg instance to transform.
|
|
41105
|
+
* @return {!Object}
|
|
41106
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
41107
|
+
*/
|
|
41108
|
+
proto.zaber.motion.protobufs.CanSetStateAxisResponse.toObject = function(includeInstance, msg) {
|
|
41109
|
+
var f, obj = {
|
|
41110
|
+
axisNumber: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
41111
|
+
error: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
41112
|
+
};
|
|
41113
|
+
|
|
41114
|
+
if (includeInstance) {
|
|
41115
|
+
obj.$jspbMessageInstance = msg;
|
|
41116
|
+
}
|
|
41117
|
+
return obj;
|
|
41118
|
+
};
|
|
41119
|
+
}
|
|
41120
|
+
|
|
41121
|
+
|
|
41122
|
+
/**
|
|
41123
|
+
* Deserializes binary data (in protobuf wire format).
|
|
41124
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
41125
|
+
* @return {!proto.zaber.motion.protobufs.CanSetStateAxisResponse}
|
|
41126
|
+
*/
|
|
41127
|
+
proto.zaber.motion.protobufs.CanSetStateAxisResponse.deserializeBinary = function(bytes) {
|
|
41128
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
41129
|
+
var msg = new proto.zaber.motion.protobufs.CanSetStateAxisResponse;
|
|
41130
|
+
return proto.zaber.motion.protobufs.CanSetStateAxisResponse.deserializeBinaryFromReader(msg, reader);
|
|
41131
|
+
};
|
|
41132
|
+
|
|
41133
|
+
|
|
41134
|
+
/**
|
|
41135
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
41136
|
+
* given reader into the given message object.
|
|
41137
|
+
* @param {!proto.zaber.motion.protobufs.CanSetStateAxisResponse} msg The message object to deserialize into.
|
|
41138
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
41139
|
+
* @return {!proto.zaber.motion.protobufs.CanSetStateAxisResponse}
|
|
41140
|
+
*/
|
|
41141
|
+
proto.zaber.motion.protobufs.CanSetStateAxisResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
41142
|
+
while (reader.nextField()) {
|
|
41143
|
+
if (reader.isEndGroup()) {
|
|
41144
|
+
break;
|
|
41145
|
+
}
|
|
41146
|
+
var field = reader.getFieldNumber();
|
|
41147
|
+
switch (field) {
|
|
41148
|
+
case 1:
|
|
41149
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
41150
|
+
msg.setAxisNumber(value);
|
|
41151
|
+
break;
|
|
41152
|
+
case 2:
|
|
41153
|
+
var value = /** @type {string} */ (reader.readString());
|
|
41154
|
+
msg.setError(value);
|
|
41155
|
+
break;
|
|
41156
|
+
default:
|
|
41157
|
+
reader.skipField();
|
|
41158
|
+
break;
|
|
41159
|
+
}
|
|
41160
|
+
}
|
|
41161
|
+
return msg;
|
|
41162
|
+
};
|
|
41163
|
+
|
|
41164
|
+
|
|
41165
|
+
/**
|
|
41166
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
41167
|
+
* @return {!Uint8Array}
|
|
41168
|
+
*/
|
|
41169
|
+
proto.zaber.motion.protobufs.CanSetStateAxisResponse.prototype.serializeBinary = function() {
|
|
41170
|
+
var writer = new jspb.BinaryWriter();
|
|
41171
|
+
proto.zaber.motion.protobufs.CanSetStateAxisResponse.serializeBinaryToWriter(this, writer);
|
|
41172
|
+
return writer.getResultBuffer();
|
|
41173
|
+
};
|
|
41174
|
+
|
|
41175
|
+
|
|
41176
|
+
/**
|
|
41177
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
41178
|
+
* format), writing to the given BinaryWriter.
|
|
41179
|
+
* @param {!proto.zaber.motion.protobufs.CanSetStateAxisResponse} message
|
|
41180
|
+
* @param {!jspb.BinaryWriter} writer
|
|
41181
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
41182
|
+
*/
|
|
41183
|
+
proto.zaber.motion.protobufs.CanSetStateAxisResponse.serializeBinaryToWriter = function(message, writer) {
|
|
41184
|
+
var f = undefined;
|
|
41185
|
+
f = message.getAxisNumber();
|
|
41186
|
+
if (f !== 0) {
|
|
41187
|
+
writer.writeInt32(
|
|
41188
|
+
1,
|
|
41189
|
+
f
|
|
41190
|
+
);
|
|
41191
|
+
}
|
|
41192
|
+
f = message.getError();
|
|
41193
|
+
if (f.length > 0) {
|
|
41194
|
+
writer.writeString(
|
|
41195
|
+
2,
|
|
41196
|
+
f
|
|
41197
|
+
);
|
|
41198
|
+
}
|
|
41199
|
+
};
|
|
41200
|
+
|
|
41201
|
+
|
|
41202
|
+
/**
|
|
41203
|
+
* optional int32 axis_number = 1;
|
|
41204
|
+
* @return {number}
|
|
41205
|
+
*/
|
|
41206
|
+
proto.zaber.motion.protobufs.CanSetStateAxisResponse.prototype.getAxisNumber = function() {
|
|
41207
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
41208
|
+
};
|
|
41209
|
+
|
|
41210
|
+
|
|
41211
|
+
/**
|
|
41212
|
+
* @param {number} value
|
|
41213
|
+
* @return {!proto.zaber.motion.protobufs.CanSetStateAxisResponse} returns this
|
|
41214
|
+
*/
|
|
41215
|
+
proto.zaber.motion.protobufs.CanSetStateAxisResponse.prototype.setAxisNumber = function(value) {
|
|
41216
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
41217
|
+
};
|
|
41218
|
+
|
|
41219
|
+
|
|
41220
|
+
/**
|
|
41221
|
+
* optional string error = 2;
|
|
41222
|
+
* @return {string}
|
|
41223
|
+
*/
|
|
41224
|
+
proto.zaber.motion.protobufs.CanSetStateAxisResponse.prototype.getError = function() {
|
|
41225
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
41226
|
+
};
|
|
41227
|
+
|
|
41228
|
+
|
|
41229
|
+
/**
|
|
41230
|
+
* @param {string} value
|
|
41231
|
+
* @return {!proto.zaber.motion.protobufs.CanSetStateAxisResponse} returns this
|
|
41232
|
+
*/
|
|
41233
|
+
proto.zaber.motion.protobufs.CanSetStateAxisResponse.prototype.setError = function(value) {
|
|
41234
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
41235
|
+
};
|
|
41236
|
+
|
|
41237
|
+
|
|
41238
|
+
|
|
41239
|
+
/**
|
|
41240
|
+
* List of repeated fields within this message type.
|
|
41241
|
+
* @private {!Array<number>}
|
|
41242
|
+
* @const
|
|
41243
|
+
*/
|
|
41244
|
+
proto.zaber.motion.protobufs.CanSetStateDeviceResponse.repeatedFields_ = [3];
|
|
41245
|
+
|
|
41246
|
+
|
|
41247
|
+
|
|
41248
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
41249
|
+
/**
|
|
41250
|
+
* Creates an object representation of this proto.
|
|
41251
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
41252
|
+
* Optional fields that are not set will be set to undefined.
|
|
41253
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
41254
|
+
* For the list of reserved names please see:
|
|
41255
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
41256
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
41257
|
+
* JSPB instance for transitional soy proto support:
|
|
41258
|
+
* http://goto/soy-param-migration
|
|
41259
|
+
* @return {!Object}
|
|
41260
|
+
*/
|
|
41261
|
+
proto.zaber.motion.protobufs.CanSetStateDeviceResponse.prototype.toObject = function(opt_includeInstance) {
|
|
41262
|
+
return proto.zaber.motion.protobufs.CanSetStateDeviceResponse.toObject(opt_includeInstance, this);
|
|
41263
|
+
};
|
|
41264
|
+
|
|
41265
|
+
|
|
41266
|
+
/**
|
|
41267
|
+
* Static version of the {@see toObject} method.
|
|
41268
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
41269
|
+
* the JSPB instance for transitional soy proto support:
|
|
41270
|
+
* http://goto/soy-param-migration
|
|
41271
|
+
* @param {!proto.zaber.motion.protobufs.CanSetStateDeviceResponse} msg The msg instance to transform.
|
|
41272
|
+
* @return {!Object}
|
|
41273
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
41274
|
+
*/
|
|
41275
|
+
proto.zaber.motion.protobufs.CanSetStateDeviceResponse.toObject = function(includeInstance, msg) {
|
|
41276
|
+
var f, obj = {
|
|
41277
|
+
error: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
41278
|
+
peripheralErrorsList: jspb.Message.toObjectList(msg.getPeripheralErrorsList(),
|
|
41279
|
+
proto.zaber.motion.protobufs.CanSetStateAxisResponse.toObject, includeInstance)
|
|
41280
|
+
};
|
|
41281
|
+
|
|
41282
|
+
if (includeInstance) {
|
|
41283
|
+
obj.$jspbMessageInstance = msg;
|
|
41284
|
+
}
|
|
41285
|
+
return obj;
|
|
41286
|
+
};
|
|
41287
|
+
}
|
|
41288
|
+
|
|
41289
|
+
|
|
41290
|
+
/**
|
|
41291
|
+
* Deserializes binary data (in protobuf wire format).
|
|
41292
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
41293
|
+
* @return {!proto.zaber.motion.protobufs.CanSetStateDeviceResponse}
|
|
41294
|
+
*/
|
|
41295
|
+
proto.zaber.motion.protobufs.CanSetStateDeviceResponse.deserializeBinary = function(bytes) {
|
|
41296
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
41297
|
+
var msg = new proto.zaber.motion.protobufs.CanSetStateDeviceResponse;
|
|
41298
|
+
return proto.zaber.motion.protobufs.CanSetStateDeviceResponse.deserializeBinaryFromReader(msg, reader);
|
|
41299
|
+
};
|
|
41300
|
+
|
|
41301
|
+
|
|
41302
|
+
/**
|
|
41303
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
41304
|
+
* given reader into the given message object.
|
|
41305
|
+
* @param {!proto.zaber.motion.protobufs.CanSetStateDeviceResponse} msg The message object to deserialize into.
|
|
41306
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
41307
|
+
* @return {!proto.zaber.motion.protobufs.CanSetStateDeviceResponse}
|
|
41308
|
+
*/
|
|
41309
|
+
proto.zaber.motion.protobufs.CanSetStateDeviceResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
41310
|
+
while (reader.nextField()) {
|
|
41311
|
+
if (reader.isEndGroup()) {
|
|
41312
|
+
break;
|
|
41313
|
+
}
|
|
41314
|
+
var field = reader.getFieldNumber();
|
|
41315
|
+
switch (field) {
|
|
41316
|
+
case 2:
|
|
41317
|
+
var value = /** @type {string} */ (reader.readString());
|
|
41318
|
+
msg.setError(value);
|
|
41319
|
+
break;
|
|
41320
|
+
case 3:
|
|
41321
|
+
var value = new proto.zaber.motion.protobufs.CanSetStateAxisResponse;
|
|
41322
|
+
reader.readMessage(value,proto.zaber.motion.protobufs.CanSetStateAxisResponse.deserializeBinaryFromReader);
|
|
41323
|
+
msg.addPeripheralErrors(value);
|
|
41324
|
+
break;
|
|
41325
|
+
default:
|
|
41326
|
+
reader.skipField();
|
|
41327
|
+
break;
|
|
41328
|
+
}
|
|
41329
|
+
}
|
|
41330
|
+
return msg;
|
|
41331
|
+
};
|
|
41332
|
+
|
|
41333
|
+
|
|
41334
|
+
/**
|
|
41335
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
41336
|
+
* @return {!Uint8Array}
|
|
41337
|
+
*/
|
|
41338
|
+
proto.zaber.motion.protobufs.CanSetStateDeviceResponse.prototype.serializeBinary = function() {
|
|
41339
|
+
var writer = new jspb.BinaryWriter();
|
|
41340
|
+
proto.zaber.motion.protobufs.CanSetStateDeviceResponse.serializeBinaryToWriter(this, writer);
|
|
41341
|
+
return writer.getResultBuffer();
|
|
41342
|
+
};
|
|
41343
|
+
|
|
41344
|
+
|
|
41345
|
+
/**
|
|
41346
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
41347
|
+
* format), writing to the given BinaryWriter.
|
|
41348
|
+
* @param {!proto.zaber.motion.protobufs.CanSetStateDeviceResponse} message
|
|
41349
|
+
* @param {!jspb.BinaryWriter} writer
|
|
41350
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
41351
|
+
*/
|
|
41352
|
+
proto.zaber.motion.protobufs.CanSetStateDeviceResponse.serializeBinaryToWriter = function(message, writer) {
|
|
41353
|
+
var f = undefined;
|
|
41354
|
+
f = message.getError();
|
|
41355
|
+
if (f.length > 0) {
|
|
41356
|
+
writer.writeString(
|
|
41357
|
+
2,
|
|
41358
|
+
f
|
|
41359
|
+
);
|
|
41360
|
+
}
|
|
41361
|
+
f = message.getPeripheralErrorsList();
|
|
41362
|
+
if (f.length > 0) {
|
|
41363
|
+
writer.writeRepeatedMessage(
|
|
41364
|
+
3,
|
|
41365
|
+
f,
|
|
41366
|
+
proto.zaber.motion.protobufs.CanSetStateAxisResponse.serializeBinaryToWriter
|
|
41367
|
+
);
|
|
41368
|
+
}
|
|
41369
|
+
};
|
|
41370
|
+
|
|
41371
|
+
|
|
41372
|
+
/**
|
|
41373
|
+
* optional string error = 2;
|
|
41374
|
+
* @return {string}
|
|
41375
|
+
*/
|
|
41376
|
+
proto.zaber.motion.protobufs.CanSetStateDeviceResponse.prototype.getError = function() {
|
|
41377
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
41378
|
+
};
|
|
41379
|
+
|
|
41380
|
+
|
|
41381
|
+
/**
|
|
41382
|
+
* @param {string} value
|
|
41383
|
+
* @return {!proto.zaber.motion.protobufs.CanSetStateDeviceResponse} returns this
|
|
41384
|
+
*/
|
|
41385
|
+
proto.zaber.motion.protobufs.CanSetStateDeviceResponse.prototype.setError = function(value) {
|
|
41386
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
41387
|
+
};
|
|
41388
|
+
|
|
41389
|
+
|
|
41390
|
+
/**
|
|
41391
|
+
* repeated CanSetStateAxisResponse peripheral_errors = 3;
|
|
41392
|
+
* @return {!Array<!proto.zaber.motion.protobufs.CanSetStateAxisResponse>}
|
|
41393
|
+
*/
|
|
41394
|
+
proto.zaber.motion.protobufs.CanSetStateDeviceResponse.prototype.getPeripheralErrorsList = function() {
|
|
41395
|
+
return /** @type{!Array<!proto.zaber.motion.protobufs.CanSetStateAxisResponse>} */ (
|
|
41396
|
+
jspb.Message.getRepeatedWrapperField(this, proto.zaber.motion.protobufs.CanSetStateAxisResponse, 3));
|
|
41397
|
+
};
|
|
41398
|
+
|
|
41399
|
+
|
|
41400
|
+
/**
|
|
41401
|
+
* @param {!Array<!proto.zaber.motion.protobufs.CanSetStateAxisResponse>} value
|
|
41402
|
+
* @return {!proto.zaber.motion.protobufs.CanSetStateDeviceResponse} returns this
|
|
41403
|
+
*/
|
|
41404
|
+
proto.zaber.motion.protobufs.CanSetStateDeviceResponse.prototype.setPeripheralErrorsList = function(value) {
|
|
41405
|
+
return jspb.Message.setRepeatedWrapperField(this, 3, value);
|
|
41406
|
+
};
|
|
41407
|
+
|
|
41408
|
+
|
|
41409
|
+
/**
|
|
41410
|
+
* @param {!proto.zaber.motion.protobufs.CanSetStateAxisResponse=} opt_value
|
|
41411
|
+
* @param {number=} opt_index
|
|
41412
|
+
* @return {!proto.zaber.motion.protobufs.CanSetStateAxisResponse}
|
|
41413
|
+
*/
|
|
41414
|
+
proto.zaber.motion.protobufs.CanSetStateDeviceResponse.prototype.addPeripheralErrors = function(opt_value, opt_index) {
|
|
41415
|
+
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.zaber.motion.protobufs.CanSetStateAxisResponse, opt_index);
|
|
41416
|
+
};
|
|
41417
|
+
|
|
41418
|
+
|
|
41419
|
+
/**
|
|
41420
|
+
* Clears the list making it empty but non-null.
|
|
41421
|
+
* @return {!proto.zaber.motion.protobufs.CanSetStateDeviceResponse} returns this
|
|
41422
|
+
*/
|
|
41423
|
+
proto.zaber.motion.protobufs.CanSetStateDeviceResponse.prototype.clearPeripheralErrorsList = function() {
|
|
41424
|
+
return this.setPeripheralErrorsList([]);
|
|
41425
|
+
};
|
|
41426
|
+
|
|
41427
|
+
|
|
41428
|
+
|
|
41429
|
+
|
|
41430
|
+
|
|
41431
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
41432
|
+
/**
|
|
41433
|
+
* Creates an object representation of this proto.
|
|
41434
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
41435
|
+
* Optional fields that are not set will be set to undefined.
|
|
41436
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
41437
|
+
* For the list of reserved names please see:
|
|
41438
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
41439
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
41440
|
+
* JSPB instance for transitional soy proto support:
|
|
41441
|
+
* http://goto/soy-param-migration
|
|
41442
|
+
* @return {!Object}
|
|
41443
|
+
*/
|
|
41444
|
+
proto.zaber.motion.protobufs.SetStateRequest.prototype.toObject = function(opt_includeInstance) {
|
|
41445
|
+
return proto.zaber.motion.protobufs.SetStateRequest.toObject(opt_includeInstance, this);
|
|
41446
|
+
};
|
|
41447
|
+
|
|
41448
|
+
|
|
41449
|
+
/**
|
|
41450
|
+
* Static version of the {@see toObject} method.
|
|
41451
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
41452
|
+
* the JSPB instance for transitional soy proto support:
|
|
41453
|
+
* http://goto/soy-param-migration
|
|
41454
|
+
* @param {!proto.zaber.motion.protobufs.SetStateRequest} msg The msg instance to transform.
|
|
41455
|
+
* @return {!Object}
|
|
41456
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
41457
|
+
*/
|
|
41458
|
+
proto.zaber.motion.protobufs.SetStateRequest.toObject = function(includeInstance, msg) {
|
|
41459
|
+
var f, obj = {
|
|
41460
|
+
interfaceId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
41461
|
+
device: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
41462
|
+
axis: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
41463
|
+
state: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
41464
|
+
deviceOnly: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
|
|
41465
|
+
};
|
|
41466
|
+
|
|
41467
|
+
if (includeInstance) {
|
|
41468
|
+
obj.$jspbMessageInstance = msg;
|
|
41469
|
+
}
|
|
41470
|
+
return obj;
|
|
41471
|
+
};
|
|
41472
|
+
}
|
|
41473
|
+
|
|
41474
|
+
|
|
41475
|
+
/**
|
|
41476
|
+
* Deserializes binary data (in protobuf wire format).
|
|
41477
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
41478
|
+
* @return {!proto.zaber.motion.protobufs.SetStateRequest}
|
|
41479
|
+
*/
|
|
41480
|
+
proto.zaber.motion.protobufs.SetStateRequest.deserializeBinary = function(bytes) {
|
|
41481
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
41482
|
+
var msg = new proto.zaber.motion.protobufs.SetStateRequest;
|
|
41483
|
+
return proto.zaber.motion.protobufs.SetStateRequest.deserializeBinaryFromReader(msg, reader);
|
|
41484
|
+
};
|
|
41485
|
+
|
|
41486
|
+
|
|
41487
|
+
/**
|
|
41488
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
41489
|
+
* given reader into the given message object.
|
|
41490
|
+
* @param {!proto.zaber.motion.protobufs.SetStateRequest} msg The message object to deserialize into.
|
|
41491
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
41492
|
+
* @return {!proto.zaber.motion.protobufs.SetStateRequest}
|
|
41493
|
+
*/
|
|
41494
|
+
proto.zaber.motion.protobufs.SetStateRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
41495
|
+
while (reader.nextField()) {
|
|
41496
|
+
if (reader.isEndGroup()) {
|
|
41497
|
+
break;
|
|
41498
|
+
}
|
|
41499
|
+
var field = reader.getFieldNumber();
|
|
41500
|
+
switch (field) {
|
|
41501
|
+
case 1:
|
|
41502
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
41503
|
+
msg.setInterfaceId(value);
|
|
41504
|
+
break;
|
|
41505
|
+
case 2:
|
|
41506
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
41507
|
+
msg.setDevice(value);
|
|
41508
|
+
break;
|
|
41509
|
+
case 3:
|
|
41510
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
41511
|
+
msg.setAxis(value);
|
|
41512
|
+
break;
|
|
41513
|
+
case 4:
|
|
41514
|
+
var value = /** @type {string} */ (reader.readString());
|
|
41515
|
+
msg.setState(value);
|
|
41516
|
+
break;
|
|
41517
|
+
case 5:
|
|
41518
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
41519
|
+
msg.setDeviceOnly(value);
|
|
41520
|
+
break;
|
|
41521
|
+
default:
|
|
41522
|
+
reader.skipField();
|
|
41523
|
+
break;
|
|
41524
|
+
}
|
|
41525
|
+
}
|
|
41526
|
+
return msg;
|
|
41527
|
+
};
|
|
41528
|
+
|
|
41529
|
+
|
|
41530
|
+
/**
|
|
41531
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
41532
|
+
* @return {!Uint8Array}
|
|
41533
|
+
*/
|
|
41534
|
+
proto.zaber.motion.protobufs.SetStateRequest.prototype.serializeBinary = function() {
|
|
41535
|
+
var writer = new jspb.BinaryWriter();
|
|
41536
|
+
proto.zaber.motion.protobufs.SetStateRequest.serializeBinaryToWriter(this, writer);
|
|
41537
|
+
return writer.getResultBuffer();
|
|
41538
|
+
};
|
|
41539
|
+
|
|
41540
|
+
|
|
41541
|
+
/**
|
|
41542
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
41543
|
+
* format), writing to the given BinaryWriter.
|
|
41544
|
+
* @param {!proto.zaber.motion.protobufs.SetStateRequest} message
|
|
41545
|
+
* @param {!jspb.BinaryWriter} writer
|
|
41546
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
41547
|
+
*/
|
|
41548
|
+
proto.zaber.motion.protobufs.SetStateRequest.serializeBinaryToWriter = function(message, writer) {
|
|
41549
|
+
var f = undefined;
|
|
41550
|
+
f = message.getInterfaceId();
|
|
41551
|
+
if (f !== 0) {
|
|
41552
|
+
writer.writeInt32(
|
|
41553
|
+
1,
|
|
41554
|
+
f
|
|
41555
|
+
);
|
|
41556
|
+
}
|
|
41557
|
+
f = message.getDevice();
|
|
41558
|
+
if (f !== 0) {
|
|
41559
|
+
writer.writeInt32(
|
|
41560
|
+
2,
|
|
41561
|
+
f
|
|
41562
|
+
);
|
|
41563
|
+
}
|
|
41564
|
+
f = message.getAxis();
|
|
41565
|
+
if (f !== 0) {
|
|
41566
|
+
writer.writeInt32(
|
|
41567
|
+
3,
|
|
41568
|
+
f
|
|
41569
|
+
);
|
|
41570
|
+
}
|
|
41571
|
+
f = message.getState();
|
|
41572
|
+
if (f.length > 0) {
|
|
41573
|
+
writer.writeString(
|
|
41574
|
+
4,
|
|
41575
|
+
f
|
|
41576
|
+
);
|
|
41577
|
+
}
|
|
41578
|
+
f = message.getDeviceOnly();
|
|
41579
|
+
if (f) {
|
|
41580
|
+
writer.writeBool(
|
|
41581
|
+
5,
|
|
41582
|
+
f
|
|
41583
|
+
);
|
|
41584
|
+
}
|
|
41585
|
+
};
|
|
41586
|
+
|
|
41587
|
+
|
|
41588
|
+
/**
|
|
41589
|
+
* optional int32 interface_id = 1;
|
|
41590
|
+
* @return {number}
|
|
41591
|
+
*/
|
|
41592
|
+
proto.zaber.motion.protobufs.SetStateRequest.prototype.getInterfaceId = function() {
|
|
41593
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
41594
|
+
};
|
|
41595
|
+
|
|
41596
|
+
|
|
41597
|
+
/**
|
|
41598
|
+
* @param {number} value
|
|
41599
|
+
* @return {!proto.zaber.motion.protobufs.SetStateRequest} returns this
|
|
41600
|
+
*/
|
|
41601
|
+
proto.zaber.motion.protobufs.SetStateRequest.prototype.setInterfaceId = function(value) {
|
|
41602
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
41603
|
+
};
|
|
41604
|
+
|
|
41605
|
+
|
|
41606
|
+
/**
|
|
41607
|
+
* optional int32 device = 2;
|
|
41608
|
+
* @return {number}
|
|
41609
|
+
*/
|
|
41610
|
+
proto.zaber.motion.protobufs.SetStateRequest.prototype.getDevice = function() {
|
|
41611
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
41612
|
+
};
|
|
41613
|
+
|
|
41614
|
+
|
|
41615
|
+
/**
|
|
41616
|
+
* @param {number} value
|
|
41617
|
+
* @return {!proto.zaber.motion.protobufs.SetStateRequest} returns this
|
|
41618
|
+
*/
|
|
41619
|
+
proto.zaber.motion.protobufs.SetStateRequest.prototype.setDevice = function(value) {
|
|
41620
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
41621
|
+
};
|
|
41622
|
+
|
|
41623
|
+
|
|
41624
|
+
/**
|
|
41625
|
+
* optional int32 axis = 3;
|
|
41626
|
+
* @return {number}
|
|
41627
|
+
*/
|
|
41628
|
+
proto.zaber.motion.protobufs.SetStateRequest.prototype.getAxis = function() {
|
|
41629
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
41630
|
+
};
|
|
41631
|
+
|
|
41632
|
+
|
|
41633
|
+
/**
|
|
41634
|
+
* @param {number} value
|
|
41635
|
+
* @return {!proto.zaber.motion.protobufs.SetStateRequest} returns this
|
|
41636
|
+
*/
|
|
41637
|
+
proto.zaber.motion.protobufs.SetStateRequest.prototype.setAxis = function(value) {
|
|
41638
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
41639
|
+
};
|
|
41640
|
+
|
|
41641
|
+
|
|
41642
|
+
/**
|
|
41643
|
+
* optional string state = 4;
|
|
41644
|
+
* @return {string}
|
|
41645
|
+
*/
|
|
41646
|
+
proto.zaber.motion.protobufs.SetStateRequest.prototype.getState = function() {
|
|
41647
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
41648
|
+
};
|
|
41649
|
+
|
|
41650
|
+
|
|
41651
|
+
/**
|
|
41652
|
+
* @param {string} value
|
|
41653
|
+
* @return {!proto.zaber.motion.protobufs.SetStateRequest} returns this
|
|
41654
|
+
*/
|
|
41655
|
+
proto.zaber.motion.protobufs.SetStateRequest.prototype.setState = function(value) {
|
|
41656
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
41657
|
+
};
|
|
41658
|
+
|
|
41659
|
+
|
|
41660
|
+
/**
|
|
41661
|
+
* optional bool device_only = 5;
|
|
41662
|
+
* @return {boolean}
|
|
41663
|
+
*/
|
|
41664
|
+
proto.zaber.motion.protobufs.SetStateRequest.prototype.getDeviceOnly = function() {
|
|
41665
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
|
|
41666
|
+
};
|
|
41667
|
+
|
|
41668
|
+
|
|
41669
|
+
/**
|
|
41670
|
+
* @param {boolean} value
|
|
41671
|
+
* @return {!proto.zaber.motion.protobufs.SetStateRequest} returns this
|
|
41672
|
+
*/
|
|
41673
|
+
proto.zaber.motion.protobufs.SetStateRequest.prototype.setDeviceOnly = function(value) {
|
|
41674
|
+
return jspb.Message.setProto3BooleanField(this, 5, value);
|
|
41675
|
+
};
|
|
41676
|
+
|
|
41677
|
+
|
|
39749
41678
|
/**
|
|
39750
41679
|
* @enum {number}
|
|
39751
41680
|
*/
|
|
@@ -39795,7 +41724,9 @@ proto.zaber.motion.protobufs.Errors = {
|
|
|
39795
41724
|
STREAM_MOVEMENT_INTERRUPTED: 35,
|
|
39796
41725
|
INVALID_PARK_STATE: 36,
|
|
39797
41726
|
SERIAL_PORT_BUSY: 37,
|
|
39798
|
-
TRANSPORT_ALREADY_USED: 38
|
|
41727
|
+
TRANSPORT_ALREADY_USED: 38,
|
|
41728
|
+
SET_PERIPHERAL_STATE_FAILED: 39,
|
|
41729
|
+
SET_DEVICE_STATE_FAILED: 40
|
|
39799
41730
|
};
|
|
39800
41731
|
|
|
39801
41732
|
/**
|