1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Job.proto
#pragma warning disable 1591, 0612, 3021
#region Designer generated code
using pb = global::Google.Protobuf;
using pbc = global::Google.Protobuf.Collections;
using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic;
namespace Tango.PMR.Jobs {
/// <summary>Holder for reflection information generated from Job.proto</summary>
public static partial class JobReflection {
#region Descriptor
/// <summary>File descriptor for Job.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static JobReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CglKb2IucHJvdG8SDlRhbmdvLlBNUi5Kb2JzGg1TZWdtZW50LnByb3RvGgtt",
"b3Rvci5wcm90byKyAgoDSm9iEgwKBE5hbWUYASABKAkSFgoOaW50ZXJTZWdF",
"bmFibGUYAiABKAgSHQoVZGlzdGFuc2VUb1Nwb29sRW5hYmxlGAMgASgIEh0K",
"FWRpc3RhbmNlVG9TcG9vbExlbmd0aBgEIAEoDRIZChFzdGFydE9mZnNldFB1",
"bHNlcxgFIAEoDRIYChBzcG9vbEJhY2tpbmdSYXRlGAYgASgNEhsKE3NlZ21l",
"bnRPZmZzZXRQdWxzZXMYByABKA0SHQoVbWlsaW1ldGVyc1BlclJvdGF0aW9u",
"GAggASgNEikKCFNlZ21lbnRzGAkgAygLMhcuVGFuZ28uUE1SLkpvYnMuU2Vn",
"bWVudBIrCgZNb3RvcnMYCiADKAsyGy5UYW5nby5QTVIuSm9icy5Nb3RvckNv",
"bmZpZ0IaChhjb20udHdpbmUudGFuZ28ucG1yLmpvYnNiBnByb3RvMw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Tango.PMR.Jobs.SegmentReflection.Descriptor, global::Tango.PMR.Jobs.MotorReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Jobs.Job), global::Tango.PMR.Jobs.Job.Parser, new[]{ "Name", "InterSegEnable", "DistanseToSpoolEnable", "DistanceToSpoolLength", "StartOffsetPulses", "SpoolBackingRate", "SegmentOffsetPulses", "MilimetersPerRotation", "Segments", "Motors" }, null, null, null)
}));
}
#endregion
}
#region Messages
public sealed partial class Job : pb::IMessage<Job> {
private static readonly pb::MessageParser<Job> _parser = new pb::MessageParser<Job>(() => new Job());
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<Job> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Tango.PMR.Jobs.JobReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Job() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Job(Job other) : this() {
name_ = other.name_;
interSegEnable_ = other.interSegEnable_;
distanseToSpoolEnable_ = other.distanseToSpoolEnable_;
distanceToSpoolLength_ = other.distanceToSpoolLength_;
startOffsetPulses_ = other.startOffsetPulses_;
spoolBackingRate_ = other.spoolBackingRate_;
segmentOffsetPulses_ = other.segmentOffsetPulses_;
milimetersPerRotation_ = other.milimetersPerRotation_;
segments_ = other.segments_.Clone();
motors_ = other.motors_.Clone();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Job Clone() {
return new Job(this);
}
/// <summary>Field number for the "Name" field.</summary>
public const int NameFieldNumber = 1;
private string name_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string Name {
get { return name_; }
set {
name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "interSegEnable" field.</summary>
public const int InterSegEnableFieldNumber = 2;
private bool interSegEnable_;
/// <summary>
///does user have chosen inter segment enable option
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool InterSegEnable {
get { return interSegEnable_; }
set {
interSegEnable_ = value;
}
}
/// <summary>Field number for the "distanseToSpoolEnable" field.</summary>
public const int DistanseToSpoolEnableFieldNumber = 3;
private bool distanseToSpoolEnable_;
/// <summary>
///does user have chosen distanse to spool enable option
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool DistanseToSpoolEnable {
get { return distanseToSpoolEnable_; }
set {
distanseToSpoolEnable_ = value;
}
}
/// <summary>Field number for the "distanceToSpoolLength" field.</summary>
public const int DistanceToSpoolLengthFieldNumber = 4;
private uint distanceToSpoolLength_;
/// <summary>
///had distance to spool finished?
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public uint DistanceToSpoolLength {
get { return distanceToSpoolLength_; }
set {
distanceToSpoolLength_ = value;
}
}
/// <summary>Field number for the "startOffsetPulses" field.</summary>
public const int StartOffsetPulsesFieldNumber = 5;
private uint startOffsetPulses_;
/// <summary>
///repeated temperatureSensorsSetting[Dryer,Head, Mixer]; //temp sensor wanted temperaure in celzius
///SCREW:
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public uint StartOffsetPulses {
get { return startOffsetPulses_; }
set {
startOffsetPulses_ = value;
}
}
/// <summary>Field number for the "spoolBackingRate" field.</summary>
public const int SpoolBackingRateFieldNumber = 6;
private uint spoolBackingRate_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public uint SpoolBackingRate {
get { return spoolBackingRate_; }
set {
spoolBackingRate_ = value;
}
}
/// <summary>Field number for the "segmentOffsetPulses" field.</summary>
public const int SegmentOffsetPulsesFieldNumber = 7;
private uint segmentOffsetPulses_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public uint SegmentOffsetPulses {
get { return segmentOffsetPulses_; }
set {
segmentOffsetPulses_ = value;
}
}
/// <summary>Field number for the "milimetersPerRotation" field.</summary>
public const int MilimetersPerRotationFieldNumber = 8;
private uint milimetersPerRotation_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public uint MilimetersPerRotation {
get { return milimetersPerRotation_; }
set {
milimetersPerRotation_ = value;
}
}
/// <summary>Field number for the "Segments" field.</summary>
public const int SegmentsFieldNumber = 9;
private static readonly pb::FieldCodec<global::Tango.PMR.Jobs.Segment> _repeated_segments_codec
= pb::FieldCodec.ForMessage(74, global::Tango.PMR.Jobs.Segment.Parser);
private readonly pbc::RepeatedField<global::Tango.PMR.Jobs.Segment> segments_ = new pbc::RepeatedField<global::Tango.PMR.Jobs.Segment>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<global::Tango.PMR.Jobs.Segment> Segments {
get { return segments_; }
}
/// <summary>Field number for the "Motors" field.</summary>
public const int MotorsFieldNumber = 10;
private static readonly pb::FieldCodec<global::Tango.PMR.Jobs.MotorConfig> _repeated_motors_codec
= pb::FieldCodec.ForMessage(82, global::Tango.PMR.Jobs.MotorConfig.Parser);
private readonly pbc::RepeatedField<global::Tango.PMR.Jobs.MotorConfig> motors_ = new pbc::RepeatedField<global::Tango.PMR.Jobs.MotorConfig>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<global::Tango.PMR.Jobs.MotorConfig> Motors {
get { return motors_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as Job);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(Job other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Name != other.Name) return false;
if (InterSegEnable != other.InterSegEnable) return false;
if (DistanseToSpoolEnable != other.DistanseToSpoolEnable) return false;
if (DistanceToSpoolLength != other.DistanceToSpoolLength) return false;
if (StartOffsetPulses != other.StartOffsetPulses) return false;
if (SpoolBackingRate != other.SpoolBackingRate) return false;
if (SegmentOffsetPulses != other.SegmentOffsetPulses) return false;
if (MilimetersPerRotation != other.MilimetersPerRotation) return false;
if(!segments_.Equals(other.segments_)) return false;
if(!motors_.Equals(other.motors_)) return false;
return true;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (Name.Length != 0) hash ^= Name.GetHashCode();
if (InterSegEnable != false) hash ^= InterSegEnable.GetHashCode();
if (DistanseToSpoolEnable != false) hash ^= DistanseToSpoolEnable.GetHashCode();
if (DistanceToSpoolLength != 0) hash ^= DistanceToSpoolLength.GetHashCode();
if (StartOffsetPulses != 0) hash ^= StartOffsetPulses.GetHashCode();
if (SpoolBackingRate != 0) hash ^= SpoolBackingRate.GetHashCode();
if (SegmentOffsetPulses != 0) hash ^= SegmentOffsetPulses.GetHashCode();
if (MilimetersPerRotation != 0) hash ^= MilimetersPerRotation.GetHashCode();
hash ^= segments_.GetHashCode();
hash ^= motors_.GetHashCode();
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (Name.Length != 0) {
output.WriteRawTag(10);
output.WriteString(Name);
}
if (InterSegEnable != false) {
output.WriteRawTag(16);
output.WriteBool(InterSegEnable);
}
if (DistanseToSpoolEnable != false) {
output.WriteRawTag(24);
output.WriteBool(DistanseToSpoolEnable);
}
if (DistanceToSpoolLength != 0) {
output.WriteRawTag(32);
output.WriteUInt32(DistanceToSpoolLength);
}
if (StartOffsetPulses != 0) {
output.WriteRawTag(40);
output.WriteUInt32(StartOffsetPulses);
}
if (SpoolBackingRate != 0) {
output.WriteRawTag(48);
output.WriteUInt32(SpoolBackingRate);
}
if (SegmentOffsetPulses != 0) {
output.WriteRawTag(56);
output.WriteUInt32(SegmentOffsetPulses);
}
if (MilimetersPerRotation != 0) {
output.WriteRawTag(64);
output.WriteUInt32(MilimetersPerRotation);
}
segments_.WriteTo(output, _repeated_segments_codec);
motors_.WriteTo(output, _repeated_motors_codec);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (Name.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
}
if (InterSegEnable != false) {
size += 1 + 1;
}
if (DistanseToSpoolEnable != false) {
size += 1 + 1;
}
if (DistanceToSpoolLength != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DistanceToSpoolLength);
}
if (StartOffsetPulses != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(StartOffsetPulses);
}
if (SpoolBackingRate != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SpoolBackingRate);
}
if (SegmentOffsetPulses != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SegmentOffsetPulses);
}
if (MilimetersPerRotation != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MilimetersPerRotation);
}
size += segments_.CalculateSize(_repeated_segments_codec);
size += motors_.CalculateSize(_repeated_motors_codec);
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(Job other) {
if (other == null) {
return;
}
if (other.Name.Length != 0) {
Name = other.Name;
}
if (other.InterSegEnable != false) {
InterSegEnable = other.InterSegEnable;
}
if (other.DistanseToSpoolEnable != false) {
DistanseToSpoolEnable = other.DistanseToSpoolEnable;
}
if (other.DistanceToSpoolLength != 0) {
DistanceToSpoolLength = other.DistanceToSpoolLength;
}
if (other.StartOffsetPulses != 0) {
StartOffsetPulses = other.StartOffsetPulses;
}
if (other.SpoolBackingRate != 0) {
SpoolBackingRate = other.SpoolBackingRate;
}
if (other.SegmentOffsetPulses != 0) {
SegmentOffsetPulses = other.SegmentOffsetPulses;
}
if (other.MilimetersPerRotation != 0) {
MilimetersPerRotation = other.MilimetersPerRotation;
}
segments_.Add(other.segments_);
motors_.Add(other.motors_);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
input.SkipLastField();
break;
case 10: {
Name = input.ReadString();
break;
}
case 16: {
InterSegEnable = input.ReadBool();
break;
}
case 24: {
DistanseToSpoolEnable = input.ReadBool();
break;
}
case 32: {
DistanceToSpoolLength = input.ReadUInt32();
break;
}
case 40: {
StartOffsetPulses = input.ReadUInt32();
break;
}
case 48: {
SpoolBackingRate = input.ReadUInt32();
break;
}
case 56: {
SegmentOffsetPulses = input.ReadUInt32();
break;
}
case 64: {
MilimetersPerRotation = input.ReadUInt32();
break;
}
case 74: {
segments_.AddEntriesFrom(input, _repeated_segments_codec);
break;
}
case 82: {
motors_.AddEntriesFrom(input, _repeated_motors_codec);
break;
}
}
}
}
}
#endregion
}
#endregion Designer generated code
|