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
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: JobFile.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.Exports {
/// <summary>Holder for reflection information generated from JobFile.proto</summary>
public static partial class JobFileReflection {
#region Descriptor
/// <summary>File descriptor for JobFile.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static JobFileReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"Cg1Kb2JGaWxlLnByb3RvEhFUYW5nby5QTVIuRXhwb3J0cxoUSm9iRmlsZVNl",
"Z21lbnQucHJvdG8i5AQKB0pvYkZpbGUSDAoETmFtZRgBIAEoCRITCgtEZXNj",
"cmlwdGlvbhgCIAEoCRIaChJFbmFibGVJbnRlclNlZ21lbnQYAyABKAgSGgoS",
"SW50ZXJTZWdtZW50TGVuZ3RoGAQgASgBEg8KB1JtbEd1aWQYBSABKAkSGQoR",
"V2luZGluZ01ldGhvZEd1aWQYBiABKAkSFQoNU3Bvb2xUeXBlR3VpZBgHIAEo",
"CRIZChFFbmFibGVMdWJyaWNhdGlvbhgIIAEoCBIZChFIYXNFbWJyb2lkZXJ5",
"RmlsZRgJIAEoCBIaChJFbWJyb2lkZXJ5RmlsZURhdGEYCiABKAwSGgoSRW1i",
"cm9pZGVyeUZpbGVOYW1lGAsgASgJEhYKDkVtYnJvaWRlcnlKcGVnGAwgASgM",
"EhYKDkNvbG9yU3BhY2VHdWlkGA0gASgJEhUKDU51bWJlck9mVW5pdHMYDiAB",
"KAUSDAoEVHlwZRgPIAEoBRIQCghDdXN0b21lchgQIAEoCRIaChJTcG9vbHNE",
"aXN0cmlidXRpb24YESABKAUSFQoNTnVtYmVyT2ZIZWFkcxgSIAEoBRIbChNT",
"YW1wbGVVbml0c09yTWV0ZXJzGBMgASgFEh4KFkxlbmd0aFBlcmNlbnRhZ2VG",
"YWN0b3IYFCABKAESMwoIU2VnbWVudHMYFSADKAsyIS5UYW5nby5QTVIuRXhw",
"b3J0cy5Kb2JGaWxlU2VnbWVudBIYChBDb2xvckNhdGFsb2dHdWlkGBYgASgJ",
"Eg8KB1ZlcnNpb24YFyABKAUSFgoOTnVtYmVyT2ZTcG9vbHMYGCABKAVCHQob",
"Y29tLnR3aW5lLnRhbmdvLnBtci5leHBvcnRzYgZwcm90bzM="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Tango.PMR.Exports.JobFileSegmentReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Exports.JobFile), global::Tango.PMR.Exports.JobFile.Parser, new[]{ "Name", "Description", "EnableInterSegment", "InterSegmentLength", "RmlGuid", "WindingMethodGuid", "SpoolTypeGuid", "EnableLubrication", "HasEmbroideryFile", "EmbroideryFileData", "EmbroideryFileName", "EmbroideryJpeg", "ColorSpaceGuid", "NumberOfUnits", "Type", "Customer", "SpoolsDistribution", "NumberOfHeads", "SampleUnitsOrMeters", "LengthPercentageFactor", "Segments", "ColorCatalogGuid", "Version", "NumberOfSpools" }, null, null, null)
}));
}
#endregion
}
#region Messages
public sealed partial class JobFile : pb::IMessage<JobFile> {
private static readonly pb::MessageParser<JobFile> _parser = new pb::MessageParser<JobFile>(() => new JobFile());
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<JobFile> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Tango.PMR.Exports.JobFileReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public JobFile() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public JobFile(JobFile other) : this() {
name_ = other.name_;
description_ = other.description_;
enableInterSegment_ = other.enableInterSegment_;
interSegmentLength_ = other.interSegmentLength_;
rmlGuid_ = other.rmlGuid_;
windingMethodGuid_ = other.windingMethodGuid_;
spoolTypeGuid_ = other.spoolTypeGuid_;
enableLubrication_ = other.enableLubrication_;
hasEmbroideryFile_ = other.hasEmbroideryFile_;
embroideryFileData_ = other.embroideryFileData_;
embroideryFileName_ = other.embroideryFileName_;
embroideryJpeg_ = other.embroideryJpeg_;
colorSpaceGuid_ = other.colorSpaceGuid_;
numberOfUnits_ = other.numberOfUnits_;
type_ = other.type_;
customer_ = other.customer_;
spoolsDistribution_ = other.spoolsDistribution_;
numberOfHeads_ = other.numberOfHeads_;
sampleUnitsOrMeters_ = other.sampleUnitsOrMeters_;
lengthPercentageFactor_ = other.lengthPercentageFactor_;
segments_ = other.segments_.Clone();
colorCatalogGuid_ = other.colorCatalogGuid_;
version_ = other.version_;
numberOfSpools_ = other.numberOfSpools_;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public JobFile Clone() {
return new JobFile(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 "Description" field.</summary>
public const int DescriptionFieldNumber = 2;
private string description_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string Description {
get { return description_; }
set {
description_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "EnableInterSegment" field.</summary>
public const int EnableInterSegmentFieldNumber = 3;
private bool enableInterSegment_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool EnableInterSegment {
get { return enableInterSegment_; }
set {
enableInterSegment_ = value;
}
}
/// <summary>Field number for the "InterSegmentLength" field.</summary>
public const int InterSegmentLengthFieldNumber = 4;
private double interSegmentLength_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public double InterSegmentLength {
get { return interSegmentLength_; }
set {
interSegmentLength_ = value;
}
}
/// <summary>Field number for the "RmlGuid" field.</summary>
public const int RmlGuidFieldNumber = 5;
private string rmlGuid_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string RmlGuid {
get { return rmlGuid_; }
set {
rmlGuid_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "WindingMethodGuid" field.</summary>
public const int WindingMethodGuidFieldNumber = 6;
private string windingMethodGuid_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string WindingMethodGuid {
get { return windingMethodGuid_; }
set {
windingMethodGuid_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "SpoolTypeGuid" field.</summary>
public const int SpoolTypeGuidFieldNumber = 7;
private string spoolTypeGuid_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string SpoolTypeGuid {
get { return spoolTypeGuid_; }
set {
spoolTypeGuid_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "EnableLubrication" field.</summary>
public const int EnableLubricationFieldNumber = 8;
private bool enableLubrication_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool EnableLubrication {
get { return enableLubrication_; }
set {
enableLubrication_ = value;
}
}
/// <summary>Field number for the "HasEmbroideryFile" field.</summary>
public const int HasEmbroideryFileFieldNumber = 9;
private bool hasEmbroideryFile_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasEmbroideryFile {
get { return hasEmbroideryFile_; }
set {
hasEmbroideryFile_ = value;
}
}
/// <summary>Field number for the "EmbroideryFileData" field.</summary>
public const int EmbroideryFileDataFieldNumber = 10;
private pb::ByteString embroideryFileData_ = pb::ByteString.Empty;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pb::ByteString EmbroideryFileData {
get { return embroideryFileData_; }
set {
embroideryFileData_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "EmbroideryFileName" field.</summary>
public const int EmbroideryFileNameFieldNumber = 11;
private string embroideryFileName_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string EmbroideryFileName {
get { return embroideryFileName_; }
set {
embroideryFileName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "EmbroideryJpeg" field.</summary>
public const int EmbroideryJpegFieldNumber = 12;
private pb::ByteString embroideryJpeg_ = pb::ByteString.Empty;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pb::ByteString EmbroideryJpeg {
get { return embroideryJpeg_; }
set {
embroideryJpeg_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "ColorSpaceGuid" field.</summary>
public const int ColorSpaceGuidFieldNumber = 13;
private string colorSpaceGuid_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string ColorSpaceGuid {
get { return colorSpaceGuid_; }
set {
colorSpaceGuid_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "NumberOfUnits" field.</summary>
public const int NumberOfUnitsFieldNumber = 14;
private int numberOfUnits_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int NumberOfUnits {
get { return numberOfUnits_; }
set {
numberOfUnits_ = value;
}
}
/// <summary>Field number for the "Type" field.</summary>
public const int TypeFieldNumber = 15;
private int type_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int Type {
get { return type_; }
set {
type_ = value;
}
}
/// <summary>Field number for the "Customer" field.</summary>
public const int CustomerFieldNumber = 16;
private string customer_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string Customer {
get { return customer_; }
set {
customer_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "SpoolsDistribution" field.</summary>
public const int SpoolsDistributionFieldNumber = 17;
private int spoolsDistribution_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int SpoolsDistribution {
get { return spoolsDistribution_; }
set {
spoolsDistribution_ = value;
}
}
/// <summary>Field number for the "NumberOfHeads" field.</summary>
public const int NumberOfHeadsFieldNumber = 18;
private int numberOfHeads_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int NumberOfHeads {
get { return numberOfHeads_; }
set {
numberOfHeads_ = value;
}
}
/// <summary>Field number for the "SampleUnitsOrMeters" field.</summary>
public const int SampleUnitsOrMetersFieldNumber = 19;
private int sampleUnitsOrMeters_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int SampleUnitsOrMeters {
get { return sampleUnitsOrMeters_; }
set {
sampleUnitsOrMeters_ = value;
}
}
/// <summary>Field number for the "LengthPercentageFactor" field.</summary>
public const int LengthPercentageFactorFieldNumber = 20;
private double lengthPercentageFactor_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public double LengthPercentageFactor {
get { return lengthPercentageFactor_; }
set {
lengthPercentageFactor_ = value;
}
}
/// <summary>Field number for the "Segments" field.</summary>
public const int SegmentsFieldNumber = 21;
private static readonly pb::FieldCodec<global::Tango.PMR.Exports.JobFileSegment> _repeated_segments_codec
= pb::FieldCodec.ForMessage(170, global::Tango.PMR.Exports.JobFileSegment.Parser);
private readonly pbc::RepeatedField<global::Tango.PMR.Exports.JobFileSegment> segments_ = new pbc::RepeatedField<global::Tango.PMR.Exports.JobFileSegment>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<global::Tango.PMR.Exports.JobFileSegment> Segments {
get { return segments_; }
}
/// <summary>Field number for the "ColorCatalogGuid" field.</summary>
public const int ColorCatalogGuidFieldNumber = 22;
private string colorCatalogGuid_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string ColorCatalogGuid {
get { return colorCatalogGuid_; }
set {
colorCatalogGuid_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "Version" field.</summary>
public const int VersionFieldNumber = 23;
private int version_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int Version {
get { return version_; }
set {
version_ = value;
}
}
/// <summary>Field number for the "NumberOfSpools" field.</summary>
public const int NumberOfSpoolsFieldNumber = 24;
private int numberOfSpools_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int NumberOfSpools {
get { return numberOfSpools_; }
set {
numberOfSpools_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as JobFile);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(JobFile other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Name != other.Name) return false;
if (Description != other.Description) return false;
if (EnableInterSegment != other.EnableInterSegment) return false;
if (InterSegmentLength != other.InterSegmentLength) return false;
if (RmlGuid != other.RmlGuid) return false;
if (WindingMethodGuid != other.WindingMethodGuid) return false;
if (SpoolTypeGuid != other.SpoolTypeGuid) return false;
if (EnableLubrication != other.EnableLubrication) return false;
if (HasEmbroideryFile != other.HasEmbroideryFile) return false;
if (EmbroideryFileData != other.EmbroideryFileData) return false;
if (EmbroideryFileName != other.EmbroideryFileName) return false;
if (EmbroideryJpeg != other.EmbroideryJpeg) return false;
if (ColorSpaceGuid != other.ColorSpaceGuid) return false;
if (NumberOfUnits != other.NumberOfUnits) return false;
if (Type != other.Type) return false;
if (Customer != other.Customer) return false;
if (SpoolsDistribution != other.SpoolsDistribution) return false;
if (NumberOfHeads != other.NumberOfHeads) return false;
if (SampleUnitsOrMeters != other.SampleUnitsOrMeters) return false;
if (LengthPercentageFactor != other.LengthPercentageFactor) return false;
if(!segments_.Equals(other.segments_)) return false;
if (ColorCatalogGuid != other.ColorCatalogGuid) return false;
if (Version != other.Version) return false;
if (NumberOfSpools != other.NumberOfSpools) return false;
return true;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (Name.Length != 0) hash ^= Name.GetHashCode();
if (Description.Length != 0) hash ^= Description.GetHashCode();
if (EnableInterSegment != false) hash ^= EnableInterSegment.GetHashCode();
if (InterSegmentLength != 0D) hash ^= InterSegmentLength.GetHashCode();
if (RmlGuid.Length != 0) hash ^= RmlGuid.GetHashCode();
if (WindingMethodGuid.Length != 0) hash ^= WindingMethodGuid.GetHashCode();
if (SpoolTypeGuid.Length != 0) hash ^= SpoolTypeGuid.GetHashCode();
if (EnableLubrication != false) hash ^= EnableLubrication.GetHashCode();
if (HasEmbroideryFile != false) hash ^= HasEmbroideryFile.GetHashCode();
if (EmbroideryFileData.Length != 0) hash ^= EmbroideryFileData.GetHashCode();
if (EmbroideryFileName.Length != 0) hash ^= EmbroideryFileName.GetHashCode();
if (EmbroideryJpeg.Length != 0) hash ^= EmbroideryJpeg.GetHashCode();
if (ColorSpaceGuid.Length != 0) hash ^= ColorSpaceGuid.GetHashCode();
if (NumberOfUnits != 0) hash ^= NumberOfUnits.GetHashCode();
if (Type != 0) hash ^= Type.GetHashCode();
if (Customer.Length != 0) hash ^= Customer.GetHashCode();
if (SpoolsDistribution != 0) hash ^= SpoolsDistribution.GetHashCode();
if (NumberOfHeads != 0) hash ^= NumberOfHeads.GetHashCode();
if (SampleUnitsOrMeters != 0) hash ^= SampleUnitsOrMeters.GetHashCode();
if (LengthPercentageFactor != 0D) hash ^= LengthPercentageFactor.GetHashCode();
hash ^= segments_.GetHashCode();
if (ColorCatalogGuid.Length != 0) hash ^= ColorCatalogGuid.GetHashCode();
if (Version != 0) hash ^= Version.GetHashCode();
if (NumberOfSpools != 0) hash ^= NumberOfSpools.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 (Description.Length != 0) {
output.WriteRawTag(18);
output.WriteString(Description);
}
if (EnableInterSegment != false) {
output.WriteRawTag(24);
output.WriteBool(EnableInterSegment);
}
if (InterSegmentLength != 0D) {
output.WriteRawTag(33);
output.WriteDouble(InterSegmentLength);
}
if (RmlGuid.Length != 0) {
output.WriteRawTag(42);
output.WriteString(RmlGuid);
}
if (WindingMethodGuid.Length != 0) {
output.WriteRawTag(50);
output.WriteString(WindingMethodGuid);
}
if (SpoolTypeGuid.Length != 0) {
output.WriteRawTag(58);
output.WriteString(SpoolTypeGuid);
}
if (EnableLubrication != false) {
output.WriteRawTag(64);
output.WriteBool(EnableLubrication);
}
if (HasEmbroideryFile != false) {
output.WriteRawTag(72);
output.WriteBool(HasEmbroideryFile);
}
if (EmbroideryFileData.Length != 0) {
output.WriteRawTag(82);
output.WriteBytes(EmbroideryFileData);
}
if (EmbroideryFileName.Length != 0) {
output.WriteRawTag(90);
output.WriteString(EmbroideryFileName);
}
if (EmbroideryJpeg.Length != 0) {
output.WriteRawTag(98);
output.WriteBytes(EmbroideryJpeg);
}
if (ColorSpaceGuid.Length != 0) {
output.WriteRawTag(106);
output.WriteString(ColorSpaceGuid);
}
if (NumberOfUnits != 0) {
output.WriteRawTag(112);
output.WriteInt32(NumberOfUnits);
}
if (Type != 0) {
output.WriteRawTag(120);
output.WriteInt32(Type);
}
if (Customer.Length != 0) {
output.WriteRawTag(130, 1);
output.WriteString(Customer);
}
if (SpoolsDistribution != 0) {
output.WriteRawTag(136, 1);
output.WriteInt32(SpoolsDistribution);
}
if (NumberOfHeads != 0) {
output.WriteRawTag(144, 1);
output.WriteInt32(NumberOfHeads);
}
if (SampleUnitsOrMeters != 0) {
output.WriteRawTag(152, 1);
output.WriteInt32(SampleUnitsOrMeters);
}
if (LengthPercentageFactor != 0D) {
output.WriteRawTag(161, 1);
output.WriteDouble(LengthPercentageFactor);
}
segments_.WriteTo(output, _repeated_segments_codec);
if (ColorCatalogGuid.Length != 0) {
output.WriteRawTag(178, 1);
output.WriteString(ColorCatalogGuid);
}
if (Version != 0) {
output.WriteRawTag(184, 1);
output.WriteInt32(Version);
}
if (NumberOfSpools != 0) {
output.WriteRawTag(192, 1);
output.WriteInt32(NumberOfSpools);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (Name.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
}
if (Description.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Description);
}
if (EnableInterSegment != false) {
size += 1 + 1;
}
if (InterSegmentLength != 0D) {
size += 1 + 8;
}
if (RmlGuid.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(RmlGuid);
}
if (WindingMethodGuid.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(WindingMethodGuid);
}
if (SpoolTypeGuid.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(SpoolTypeGuid);
}
if (EnableLubrication != false) {
size += 1 + 1;
}
if (HasEmbroideryFile != false) {
size += 1 + 1;
}
if (EmbroideryFileData.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeBytesSize(EmbroideryFileData);
}
if (EmbroideryFileName.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(EmbroideryFileName);
}
if (EmbroideryJpeg.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeBytesSize(EmbroideryJpeg);
}
if (ColorSpaceGuid.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ColorSpaceGuid);
}
if (NumberOfUnits != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(NumberOfUnits);
}
if (Type != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Type);
}
if (Customer.Length != 0) {
size += 2 + pb::CodedOutputStream.ComputeStringSize(Customer);
}
if (SpoolsDistribution != 0) {
size += 2 + pb::CodedOutputStream.ComputeInt32Size(SpoolsDistribution);
}
if (NumberOfHeads != 0) {
size += 2 + pb::CodedOutputStream.ComputeInt32Size(NumberOfHeads);
}
if (SampleUnitsOrMeters != 0) {
size += 2 + pb::CodedOutputStream.ComputeInt32Size(SampleUnitsOrMeters);
}
if (LengthPercentageFactor != 0D) {
size += 2 + 8;
}
size += segments_.CalculateSize(_repeated_segments_codec);
if (ColorCatalogGuid.Length != 0) {
size += 2 + pb::CodedOutputStream.ComputeStringSize(ColorCatalogGuid);
}
if (Version != 0) {
size += 2 + pb::CodedOutputStream.ComputeInt32Size(Version);
}
if (NumberOfSpools != 0) {
size += 2 + pb::CodedOutputStream.ComputeInt32Size(NumberOfSpools);
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(JobFile other) {
if (other == null) {
return;
}
if (other.Name.Length != 0) {
Name = other.Name;
}
if (other.Description.Length != 0) {
Description = other.Description;
}
if (other.EnableInterSegment != false) {
EnableInterSegment = other.EnableInterSegment;
}
if (other.InterSegmentLength != 0D) {
InterSegmentLength = other.InterSegmentLength;
}
if (other.RmlGuid.Length != 0) {
RmlGuid = other.RmlGuid;
}
if (other.WindingMethodGuid.Length != 0) {
WindingMethodGuid = other.WindingMethodGuid;
}
if (other.SpoolTypeGuid.Length != 0) {
SpoolTypeGuid = other.SpoolTypeGuid;
}
if (other.EnableLubrication != false) {
EnableLubrication = other.EnableLubrication;
}
if (other.HasEmbroideryFile != false) {
HasEmbroideryFile = other.HasEmbroideryFile;
}
if (other.EmbroideryFileData.Length != 0) {
EmbroideryFileData = other.EmbroideryFileData;
}
if (other.EmbroideryFileName.Length != 0) {
EmbroideryFileName = other.EmbroideryFileName;
}
if (other.EmbroideryJpeg.Length != 0) {
EmbroideryJpeg = other.EmbroideryJpeg;
}
if (other.ColorSpaceGuid.Length != 0) {
ColorSpaceGuid = other.ColorSpaceGuid;
}
if (other.NumberOfUnits != 0) {
NumberOfUnits = other.NumberOfUnits;
}
if (other.Type != 0) {
Type = other.Type;
}
if (other.Customer.Length != 0) {
Customer = other.Customer;
}
if (other.SpoolsDistribution != 0) {
SpoolsDistribution = other.SpoolsDistribution;
}
if (other.NumberOfHeads != 0) {
NumberOfHeads = other.NumberOfHeads;
}
if (other.SampleUnitsOrMeters != 0) {
SampleUnitsOrMeters = other.SampleUnitsOrMeters;
}
if (other.LengthPercentageFactor != 0D) {
LengthPercentageFactor = other.LengthPercentageFactor;
}
segments_.Add(other.segments_);
if (other.ColorCatalogGuid.Length != 0) {
ColorCatalogGuid = other.ColorCatalogGuid;
}
if (other.Version != 0) {
Version = other.Version;
}
if (other.NumberOfSpools != 0) {
NumberOfSpools = other.NumberOfSpools;
}
}
[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 18: {
Description = input.ReadString();
break;
}
case 24: {
EnableInterSegment = input.ReadBool();
break;
}
case 33: {
InterSegmentLength = input.ReadDouble();
break;
}
case 42: {
RmlGuid = input.ReadString();
break;
}
case 50: {
WindingMethodGuid = input.ReadString();
break;
}
case 58: {
SpoolTypeGuid = input.ReadString();
break;
}
case 64: {
EnableLubrication = input.ReadBool();
break;
}
case 72: {
HasEmbroideryFile = input.ReadBool();
break;
}
case 82: {
EmbroideryFileData = input.ReadBytes();
break;
}
case 90: {
EmbroideryFileName = input.ReadString();
break;
}
case 98: {
EmbroideryJpeg = input.ReadBytes();
break;
}
case 106: {
ColorSpaceGuid = input.ReadString();
break;
}
case 112: {
NumberOfUnits = input.ReadInt32();
break;
}
case 120: {
Type = input.ReadInt32();
break;
}
case 130: {
Customer = input.ReadString();
break;
}
case 136: {
SpoolsDistribution = input.ReadInt32();
break;
}
case 144: {
NumberOfHeads = input.ReadInt32();
break;
}
case 152: {
SampleUnitsOrMeters = input.ReadInt32();
break;
}
case 161: {
LengthPercentageFactor = input.ReadDouble();
break;
}
case 170: {
segments_.AddEntriesFrom(input, _repeated_segments_codec);
break;
}
case 178: {
ColorCatalogGuid = input.ReadString();
break;
}
case 184: {
Version = input.ReadInt32();
break;
}
case 192: {
NumberOfSpools = input.ReadInt32();
break;
}
}
}
}
}
#endregion
}
#endregion Designer generated code
|