aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.PMR/Printing/ThreadParameters.cs
blob: edfd5c457dddb88a94ebc7a1f95eaa1fbdbf0412 (plain)
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
415
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: ThreadParameters.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.Printing {

  /// <summary>Holder for reflection information generated from ThreadParameters.proto</summary>
  public static partial class ThreadParametersReflection {

    #region Descriptor
    /// <summary>File descriptor for ThreadParameters.proto</summary>
    public static pbr::FileDescriptor Descriptor {
      get { return descriptor; }
    }
    private static pbr::FileDescriptor descriptor;

    static ThreadParametersReflection() {
      byte[] descriptorData = global::System.Convert.FromBase64String(
          string.Concat(
            "ChZUaHJlYWRQYXJhbWV0ZXJzLnByb3RvEhJUYW5nby5QTVIuUHJpbnRpbmci",
            "wgEKEFRocmVhZFBhcmFtZXRlcnMSDwoHRmVlZGVyUBgBIAEoBRIPCgdGZWVk",
            "ZXJJGAIgASgFEg8KB0ZlZWRlckQYAyABKAUSDwoHUHVsbGVyUBgEIAEoBRIP",
            "CgdQdWxsZXJJGAUgASgFEg8KB1B1bGxlckQYBiABKAUSDwoHV2luZGVyUBgH",
            "IAEoBRIPCgdXaW5kZXJJGAggASgFEg8KB1dpbmRlckQYCSABKAUSFQoNQnlw",
            "YXNzUm9ja2VycxgKIAEoCEIeChxjb20udHdpbmUudGFuZ28ucG1yLnByaW50",
            "aW5nYgZwcm90bzM="));
      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
          new pbr::FileDescriptor[] { },
          new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
            new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Printing.ThreadParameters), global::Tango.PMR.Printing.ThreadParameters.Parser, new[]{ "FeederP", "FeederI", "FeederD", "PullerP", "PullerI", "PullerD", "WinderP", "WinderI", "WinderD", "BypassRockers" }, null, null, null)
          }));
    }
    #endregion

  }
  #region Messages
  public sealed partial class ThreadParameters : pb::IMessage<ThreadParameters> {
    private static readonly pb::MessageParser<ThreadParameters> _parser = new pb::MessageParser<ThreadParameters>(() => new ThreadParameters());
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public static pb::MessageParser<ThreadParameters> Parser { get { return _parser; } }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public static pbr::MessageDescriptor Descriptor {
      get { return global::Tango.PMR.Printing.ThreadParametersReflection.Descriptor.MessageTypes[0]; }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    pbr::MessageDescriptor pb::IMessage.Descriptor {
      get { return Descriptor; }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public ThreadParameters() {
      OnConstruction();
    }

    partial void OnConstruction();

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public ThreadParameters(ThreadParameters other) : this() {
      feederP_ = other.feederP_;
      feederI_ = other.feederI_;
      feederD_ = other.feederD_;
      pullerP_ = other.pullerP_;
      pullerI_ = other.pullerI_;
      pullerD_ = other.pullerD_;
      winderP_ = other.winderP_;
      winderI_ = other.winderI_;
      winderD_ = other.winderD_;
      bypassRockers_ = other.bypassRockers_;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public ThreadParameters Clone() {
      return new ThreadParameters(this);
    }

    /// <summary>Field number for the "FeederP" field.</summary>
    public const int FeederPFieldNumber = 1;
    private int feederP_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public int FeederP {
      get { return feederP_; }
      set {
        feederP_ = value;
      }
    }

    /// <summary>Field number for the "FeederI" field.</summary>
    public const int FeederIFieldNumber = 2;
    private int feederI_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public int FeederI {
      get { return feederI_; }
      set {
        feederI_ = value;
      }
    }

    /// <summary>Field number for the "FeederD" field.</summary>
    public const int FeederDFieldNumber = 3;
    private int feederD_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public int FeederD {
      get { return feederD_; }
      set {
        feederD_ = value;
      }
    }

    /// <summary>Field number for the "PullerP" field.</summary>
    public const int PullerPFieldNumber = 4;
    private int pullerP_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public int PullerP {
      get { return pullerP_; }
      set {
        pullerP_ = value;
      }
    }

    /// <summary>Field number for the "PullerI" field.</summary>
    public const int PullerIFieldNumber = 5;
    private int pullerI_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public int PullerI {
      get { return pullerI_; }
      set {
        pullerI_ = value;
      }
    }

    /// <summary>Field number for the "PullerD" field.</summary>
    public const int PullerDFieldNumber = 6;
    private int pullerD_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public int PullerD {
      get { return pullerD_; }
      set {
        pullerD_ = value;
      }
    }

    /// <summary>Field number for the "WinderP" field.</summary>
    public const int WinderPFieldNumber = 7;
    private int winderP_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public int WinderP {
      get { return winderP_; }
      set {
        winderP_ = value;
      }
    }

    /// <summary>Field number for the "WinderI" field.</summary>
    public const int WinderIFieldNumber = 8;
    private int winderI_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public int WinderI {
      get { return winderI_; }
      set {
        winderI_ = value;
      }
    }

    /// <summary>Field number for the "WinderD" field.</summary>
    public const int WinderDFieldNumber = 9;
    private int winderD_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public int WinderD {
      get { return winderD_; }
      set {
        winderD_ = value;
      }
    }

    /// <summary>Field number for the "BypassRockers" field.</summary>
    public const int BypassRockersFieldNumber = 10;
    private bool bypassRockers_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public bool BypassRockers {
      get { return bypassRockers_; }
      set {
        bypassRockers_ = value;
      }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public override bool Equals(object other) {
      return Equals(other as ThreadParameters);
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public bool Equals(ThreadParameters other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
        return true;
      }
      if (FeederP != other.FeederP) return false;
      if (FeederI != other.FeederI) return false;
      if (FeederD != other.FeederD) return false;
      if (PullerP != other.PullerP) return false;
      if (PullerI != other.PullerI) return false;
      if (PullerD != other.PullerD) return false;
      if (WinderP != other.WinderP) return false;
      if (WinderI != other.WinderI) return false;
      if (WinderD != other.WinderD) return false;
      if (BypassRockers != other.BypassRockers) return false;
      return true;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public override int GetHashCode() {
      int hash = 1;
      if (FeederP != 0) hash ^= FeederP.GetHashCode();
      if (FeederI != 0) hash ^= FeederI.GetHashCode();
      if (FeederD != 0) hash ^= FeederD.GetHashCode();
      if (PullerP != 0) hash ^= PullerP.GetHashCode();
      if (PullerI != 0) hash ^= PullerI.GetHashCode();
      if (PullerD != 0) hash ^= PullerD.GetHashCode();
      if (WinderP != 0) hash ^= WinderP.GetHashCode();
      if (WinderI != 0) hash ^= WinderI.GetHashCode();
      if (WinderD != 0) hash ^= WinderD.GetHashCode();
      if (BypassRockers != false) hash ^= BypassRockers.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 (FeederP != 0) {
        output.WriteRawTag(8);
        output.WriteInt32(FeederP);
      }
      if (FeederI != 0) {
        output.WriteRawTag(16);
        output.WriteInt32(FeederI);
      }
      if (FeederD != 0) {
        output.WriteRawTag(24);
        output.WriteInt32(FeederD);
      }
      if (PullerP != 0) {
        output.WriteRawTag(32);
        output.WriteInt32(PullerP);
      }
      if (PullerI != 0) {
        output.WriteRawTag(40);
        output.WriteInt32(PullerI);
      }
      if (PullerD != 0) {
        output.WriteRawTag(48);
        output.WriteInt32(PullerD);
      }
      if (WinderP != 0) {
        output.WriteRawTag(56);
        output.WriteInt32(WinderP);
      }
      if (WinderI != 0) {
        output.WriteRawTag(64);
        output.WriteInt32(WinderI);
      }
      if (WinderD != 0) {
        output.WriteRawTag(72);
        output.WriteInt32(WinderD);
      }
      if (BypassRockers != false) {
        output.WriteRawTag(80);
        output.WriteBool(BypassRockers);
      }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public int CalculateSize() {
      int size = 0;
      if (FeederP != 0) {
        size += 1 + pb::CodedOutputStream.ComputeInt32Size(FeederP);
      }
      if (FeederI != 0) {
        size += 1 + pb::CodedOutputStream.ComputeInt32Size(FeederI);
      }
      if (FeederD != 0) {
        size += 1 + pb::CodedOutputStream.ComputeInt32Size(FeederD);
      }
      if (PullerP != 0) {
        size += 1 + pb::CodedOutputStream.ComputeInt32Size(PullerP);
      }
      if (PullerI != 0) {
        size += 1 + pb::CodedOutputStream.ComputeInt32Size(PullerI);
      }
      if (PullerD != 0) {
        size += 1 + pb::CodedOutputStream.ComputeInt32Size(PullerD);
      }
      if (WinderP != 0) {
        size += 1 + pb::CodedOutputStream.ComputeInt32Size(WinderP);
      }
      if (WinderI != 0) {
        size += 1 + pb::CodedOutputStream.ComputeInt32Size(WinderI);
      }
      if (WinderD != 0) {
        size += 1 + pb::CodedOutputStream.ComputeInt32Size(WinderD);
      }
      if (BypassRockers != false) {
        size += 1 + 1;
      }
      return size;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public void MergeFrom(ThreadParameters other) {
      if (other == null) {
        return;
      }
      if (other.FeederP != 0) {
        FeederP = other.FeederP;
      }
      if (other.FeederI != 0) {
        FeederI = other.FeederI;
      }
      if (other.FeederD != 0) {
        FeederD = other.FeederD;
      }
      if (other.PullerP != 0) {
        PullerP = other.PullerP;
      }
      if (other.PullerI != 0) {
        PullerI = other.PullerI;
      }
      if (other.PullerD != 0) {
        PullerD = other.PullerD;
      }
      if (other.WinderP != 0) {
        WinderP = other.WinderP;
      }
      if (other.WinderI != 0) {
        WinderI = other.WinderI;
      }
      if (other.WinderD != 0) {
        WinderD = other.WinderD;
      }
      if (other.BypassRockers != false) {
        BypassRockers = other.BypassRockers;
      }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public void MergeFrom(pb::CodedInputStream input) {
      uint tag;
      while ((tag = input.ReadTag()) != 0) {
        switch(tag) {
          default:
            input.SkipLastField();
            break;
          case 8: {
            FeederP = input.ReadInt32();
            break;
          }
          case 16: {
            FeederI = input.ReadInt32();
            break;
          }
          case 24: {
            FeederD = input.ReadInt32();
            break;
          }
          case 32: {
            PullerP = input.ReadInt32();
            break;
          }
          case 40: {
            PullerI = input.ReadInt32();
            break;
          }
          case 48: {
            PullerD = input.ReadInt32();
            break;
          }
          case 56: {
            WinderP = input.ReadInt32();
            break;
          }
          case 64: {
            WinderI = input.ReadInt32();
            break;
          }
          case 72: {
            WinderD = input.ReadInt32();
            break;
          }
          case 80: {
            BypassRockers = input.ReadBool();
            break;
          }
        }
      }
    }

  }

  #endregion

}

#endregion Designer generated code