// Generated by the protocol buffer compiler. DO NOT EDIT! // source: JobFileBrushStop.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 { /// Holder for reflection information generated from JobFileBrushStop.proto public static partial class JobFileBrushStopReflection { #region Descriptor /// File descriptor for JobFileBrushStop.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static JobFileBrushStopReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "ChZKb2JGaWxlQnJ1c2hTdG9wLnByb3RvEhFUYW5nby5QTVIuRXhwb3J0cxoZ", "Sm9iRmlsZUxpcXVpZFZvbHVtZS5wcm90byK6AwoQSm9iRmlsZUJydXNoU3Rv", "cBIWCg5Db2xvclNwYWNlR3VpZBgBIAEoCRIVCg1PZmZzZXRQZXJjZW50GAIg", "ASgBEgwKBEN5YW4YAyABKAESDwoHTWFnZW50YRgEIAEoARIOCgZZZWxsb3cY", "BSABKAESDQoFQmxhY2sYBiABKAESCwoDUmVkGAcgASgFEg0KBUdyZWVuGAgg", "ASgFEgwKBEJsdWUYCSABKAUSCQoBTBgKIAEoARIJCgFBGAsgASgBEgkKAUIY", "DCABKAESPQoNTGlxdWlkVm9sdW1lcxgYIAMoCzImLlRhbmdvLlBNUi5FeHBv", "cnRzLkpvYkZpbGVMaXF1aWRWb2x1bWUSEQoJQ29ycmVjdGVkGBUgASgIEhgK", "EENvbG9yQ2F0YWxvZ0d1aWQYFiABKAkSHAoUQ29sb3JDYXRhbG9nSXRlbUd1", "aWQYFyABKAkSFQoNSXNUcmFuc3BhcmVudBgZIAEoCBIRCglTdG9wSW5kZXgY", "GiABKAUSEgoKQmVzdE1hdGNoUhgbIAEoBRISCgpCZXN0TWF0Y2hHGBwgASgF", "EhIKCkJlc3RNYXRjaEIYHSABKAVCHQobY29tLnR3aW5lLnRhbmdvLnBtci5l", "eHBvcnRzYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Tango.PMR.Exports.JobFileLiquidVolumeReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Exports.JobFileBrushStop), global::Tango.PMR.Exports.JobFileBrushStop.Parser, new[]{ "ColorSpaceGuid", "OffsetPercent", "Cyan", "Magenta", "Yellow", "Black", "Red", "Green", "Blue", "L", "A", "B", "LiquidVolumes", "Corrected", "ColorCatalogGuid", "ColorCatalogItemGuid", "IsTransparent", "StopIndex", "BestMatchR", "BestMatchG", "BestMatchB" }, null, null, null) })); } #endregion } #region Messages public sealed partial class JobFileBrushStop : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new JobFileBrushStop()); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Tango.PMR.Exports.JobFileBrushStopReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public JobFileBrushStop() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public JobFileBrushStop(JobFileBrushStop other) : this() { colorSpaceGuid_ = other.colorSpaceGuid_; offsetPercent_ = other.offsetPercent_; cyan_ = other.cyan_; magenta_ = other.magenta_; yellow_ = other.yellow_; black_ = other.black_; red_ = other.red_; green_ = other.green_; blue_ = other.blue_; l_ = other.l_; a_ = other.a_; b_ = other.b_; liquidVolumes_ = other.liquidVolumes_.Clone(); corrected_ = other.corrected_; colorCatalogGuid_ = other.colorCatalogGuid_; colorCatalogItemGuid_ = other.colorCatalogItemGuid_; isTransparent_ = other.isTransparent_; stopIndex_ = other.stopIndex_; bestMatchR_ = other.bestMatchR_; bestMatchG_ = other.bestMatchG_; bestMatchB_ = other.bestMatchB_; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public JobFileBrushStop Clone() { return new JobFileBrushStop(this); } /// Field number for the "ColorSpaceGuid" field. public const int ColorSpaceGuidFieldNumber = 1; private string colorSpaceGuid_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string ColorSpaceGuid { get { return colorSpaceGuid_; } set { colorSpaceGuid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "OffsetPercent" field. public const int OffsetPercentFieldNumber = 2; private double offsetPercent_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public double OffsetPercent { get { return offsetPercent_; } set { offsetPercent_ = value; } } /// Field number for the "Cyan" field. public const int CyanFieldNumber = 3; private double cyan_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public double Cyan { get { return cyan_; } set { cyan_ = value; } } /// Field number for the "Magenta" field. public const int MagentaFieldNumber = 4; private double magenta_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public double Magenta { get { return magenta_; } set { magenta_ = value; } } /// Field number for the "Yellow" field. public const int YellowFieldNumber = 5; private double yellow_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public double Yellow { get { return yellow_; } set { yellow_ = value; } } /// Field number for the "Black" field. public const int BlackFieldNumber = 6; private double black_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public double Black { get { return black_; } set { black_ = value; } } /// Field number for the "Red" field. public const int RedFieldNumber = 7; private int red_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int Red { get { return red_; } set { red_ = value; } } /// Field number for the "Green" field. public const int GreenFieldNumber = 8; private int green_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int Green { get { return green_; } set { green_ = value; } } /// Field number for the "Blue" field. public const int BlueFieldNumber = 9; private int blue_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int Blue { get { return blue_; } set { blue_ = value; } } /// Field number for the "L" field. public const int LFieldNumber = 10; private double l_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public double L { get { return l_; } set { l_ = value; } } /// Field number for the "A" field. public const int AFieldNumber = 11; private double a_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public double A { get { return a_; } set { a_ = value; } } /// Field number for the "B" field. public const int BFieldNumber = 12; private double b_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public double B { get { return b_; } set { b_ = value; } } /// Field number for the "LiquidVolumes" field. public const int LiquidVolumesFieldNumber = 24; private static readonly pb::FieldCodec _repeated_liquidVolumes_codec = pb::FieldCodec.ForMessage(194, global::Tango.PMR.Exports.JobFileLiquidVolume.Parser); private readonly pbc::RepeatedField liquidVolumes_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pbc::RepeatedField LiquidVolumes { get { return liquidVolumes_; } } /// Field number for the "Corrected" field. public const int CorrectedFieldNumber = 21; private bool corrected_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Corrected { get { return corrected_; } set { corrected_ = value; } } /// Field number for the "ColorCatalogGuid" field. 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"); } } /// Field number for the "ColorCatalogItemGuid" field. public const int ColorCatalogItemGuidFieldNumber = 23; private string colorCatalogItemGuid_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string ColorCatalogItemGuid { get { return colorCatalogItemGuid_; } set { colorCatalogItemGuid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "IsTransparent" field. public const int IsTransparentFieldNumber = 25; private bool isTransparent_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool IsTransparent { get { return isTransparent_; } set { isTransparent_ = value; } } /// Field number for the "StopIndex" field. public const int StopIndexFieldNumber = 26; private int stopIndex_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int StopIndex { get { return stopIndex_; } set { stopIndex_ = value; } } /// Field number for the "BestMatchR" field. public const int BestMatchRFieldNumber = 27; private int bestMatchR_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int BestMatchR { get { return bestMatchR_; } set { bestMatchR_ = value; } } /// Field number for the "BestMatchG" field. public const int BestMatchGFieldNumber = 28; private int bestMatchG_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int BestMatchG { get { return bestMatchG_; } set { bestMatchG_ = value; } } /// Field number for the "BestMatchB" field. public const int BestMatchBFieldNumber = 29; private int bestMatchB_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int BestMatchB { get { return bestMatchB_; } set { bestMatchB_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as JobFileBrushStop); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(JobFileBrushStop other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (ColorSpaceGuid != other.ColorSpaceGuid) return false; if (OffsetPercent != other.OffsetPercent) return false; if (Cyan != other.Cyan) return false; if (Magenta != other.Magenta) return false; if (Yellow != other.Yellow) return false; if (Black != other.Black) return false; if (Red != other.Red) return false; if (Green != other.Green) return false; if (Blue != other.Blue) return false; if (L != other.L) return false; if (A != other.A) return false; if (B != other.B) return false; if(!liquidVolumes_.Equals(other.liquidVolumes_)) return false; if (Corrected != other.Corrected) return false; if (ColorCatalogGuid != other.ColorCatalogGuid) return false; if (ColorCatalogItemGuid != other.ColorCatalogItemGuid) return false; if (IsTransparent != other.IsTransparent) return false; if (StopIndex != other.StopIndex) return false; if (BestMatchR != other.BestMatchR) return false; if (BestMatchG != other.BestMatchG) return false; if (BestMatchB != other.BestMatchB) return false; return true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (ColorSpaceGuid.Length != 0) hash ^= ColorSpaceGuid.GetHashCode(); if (OffsetPercent != 0D) hash ^= OffsetPercent.GetHashCode(); if (Cyan != 0D) hash ^= Cyan.GetHashCode(); if (Magenta != 0D) hash ^= Magenta.GetHashCode(); if (Yellow != 0D) hash ^= Yellow.GetHashCode(); if (Black != 0D) hash ^= Black.GetHashCode(); if (Red != 0) hash ^= Red.GetHashCode(); if (Green != 0) hash ^= Green.GetHashCode(); if (Blue != 0) hash ^= Blue.GetHashCode(); if (L != 0D) hash ^= L.GetHashCode(); if (A != 0D) hash ^= A.GetHashCode(); if (B != 0D) hash ^= B.GetHashCode(); hash ^= liquidVolumes_.GetHashCode(); if (Corrected != false) hash ^= Corrected.GetHashCode(); if (ColorCatalogGuid.Length != 0) hash ^= ColorCatalogGuid.GetHashCode(); if (ColorCatalogItemGuid.Length != 0) hash ^= ColorCatalogItemGuid.GetHashCode(); if (IsTransparent != false) hash ^= IsTransparent.GetHashCode(); if (StopIndex != 0) hash ^= StopIndex.GetHashCode(); if (BestMatchR != 0) hash ^= BestMatchR.GetHashCode(); if (BestMatchG != 0) hash ^= BestMatchG.GetHashCode(); if (BestMatchB != 0) hash ^= BestMatchB.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 (ColorSpaceGuid.Length != 0) { output.WriteRawTag(10); output.WriteString(ColorSpaceGuid); } if (OffsetPercent != 0D) { output.WriteRawTag(17); output.WriteDouble(OffsetPercent); } if (Cyan != 0D) { output.WriteRawTag(25); output.WriteDouble(Cyan); } if (Magenta != 0D) { output.WriteRawTag(33); output.WriteDouble(Magenta); } if (Yellow != 0D) { output.WriteRawTag(41); output.WriteDouble(Yellow); } if (Black != 0D) { output.WriteRawTag(49); output.WriteDouble(Black); } if (Red != 0) { output.WriteRawTag(56); output.WriteInt32(Red); } if (Green != 0) { output.WriteRawTag(64); output.WriteInt32(Green); } if (Blue != 0) { output.WriteRawTag(72); output.WriteInt32(Blue); } if (L != 0D) { output.WriteRawTag(81); output.WriteDouble(L); } if (A != 0D) { output.WriteRawTag(89); output.WriteDouble(A); } if (B != 0D) { output.WriteRawTag(97); output.WriteDouble(B); } if (Corrected != false) { output.WriteRawTag(168, 1); output.WriteBool(Corrected); } if (ColorCatalogGuid.Length != 0) { output.WriteRawTag(178, 1); output.WriteString(ColorCatalogGuid); } if (ColorCatalogItemGuid.Length != 0) { output.WriteRawTag(186, 1); output.WriteString(ColorCatalogItemGuid); } liquidVolumes_.WriteTo(output, _repeated_liquidVolumes_codec); if (IsTransparent != false) { output.WriteRawTag(200, 1); output.WriteBool(IsTransparent); } if (StopIndex != 0) { output.WriteRawTag(208, 1); output.WriteInt32(StopIndex); } if (BestMatchR != 0) { output.WriteRawTag(216, 1); output.WriteInt32(BestMatchR); } if (BestMatchG != 0) { output.WriteRawTag(224, 1); output.WriteInt32(BestMatchG); } if (BestMatchB != 0) { output.WriteRawTag(232, 1); output.WriteInt32(BestMatchB); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (ColorSpaceGuid.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ColorSpaceGuid); } if (OffsetPercent != 0D) { size += 1 + 8; } if (Cyan != 0D) { size += 1 + 8; } if (Magenta != 0D) { size += 1 + 8; } if (Yellow != 0D) { size += 1 + 8; } if (Black != 0D) { size += 1 + 8; } if (Red != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Red); } if (Green != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Green); } if (Blue != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Blue); } if (L != 0D) { size += 1 + 8; } if (A != 0D) { size += 1 + 8; } if (B != 0D) { size += 1 + 8; } size += liquidVolumes_.CalculateSize(_repeated_liquidVolumes_codec); if (Corrected != false) { size += 2 + 1; } if (ColorCatalogGuid.Length != 0) { size += 2 + pb::CodedOutputStream.ComputeStringSize(ColorCatalogGuid); } if (ColorCatalogItemGuid.Length != 0) { size += 2 + pb::CodedOutputStream.ComputeStringSize(ColorCatalogItemGuid); } if (IsTransparent != false) { size += 2 + 1; } if (StopIndex != 0) { size += 2 + pb::CodedOutputStream.ComputeInt32Size(StopIndex); } if (BestMatchR != 0) { size += 2 + pb::CodedOutputStream.ComputeInt32Size(BestMatchR); } if (BestMatchG != 0) { size += 2 + pb::CodedOutputStream.ComputeInt32Size(BestMatchG); } if (BestMatchB != 0) { size += 2 + pb::CodedOutputStream.ComputeInt32Size(BestMatchB); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(JobFileBrushStop other) { if (other == null) { return; } if (other.ColorSpaceGuid.Length != 0) { ColorSpaceGuid = other.ColorSpaceGuid; } if (other.OffsetPercent != 0D) { OffsetPercent = other.OffsetPercent; } if (other.Cyan != 0D) { Cyan = other.Cyan; } if (other.Magenta != 0D) { Magenta = other.Magenta; } if (other.Yellow != 0D) { Yellow = other.Yellow; } if (other.Black != 0D) { Black = other.Black; } if (other.Red != 0) { Red = other.Red; } if (other.Green != 0) { Green = other.Green; } if (other.Blue != 0) { Blue = other.Blue; } if (other.L != 0D) { L = other.L; } if (other.A != 0D) { A = other.A; } if (other.B != 0D) { B = other.B; } liquidVolumes_.Add(other.liquidVolumes_); if (other.Corrected != false) { Corrected = other.Corrected; } if (other.ColorCatalogGuid.Length != 0) { ColorCatalogGuid = other.ColorCatalogGuid; } if (other.ColorCatalogItemGuid.Length != 0) { ColorCatalogItemGuid = other.ColorCatalogItemGuid; } if (other.IsTransparent != false) { IsTransparent = other.IsTransparent; } if (other.StopIndex != 0) { StopIndex = other.StopIndex; } if (other.BestMatchR != 0) { BestMatchR = other.BestMatchR; } if (other.BestMatchG != 0) { BestMatchG = other.BestMatchG; } if (other.BestMatchB != 0) { BestMatchB = other.BestMatchB; } } [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: { ColorSpaceGuid = input.ReadString(); break; } case 17: { OffsetPercent = input.ReadDouble(); break; } case 25: { Cyan = input.ReadDouble(); break; } case 33: { Magenta = input.ReadDouble(); break; } case 41: { Yellow = input.ReadDouble(); break; } case 49: { Black = input.ReadDouble(); break; } case 56: { Red = input.ReadInt32(); break; } case 64: { Green = input.ReadInt32(); break; } case 72: { Blue = input.ReadInt32(); break; } case 81: { L = input.ReadDouble(); break; } case 89: { A = input.ReadDouble(); break; } case 97: { B = input.ReadDouble(); break; } case 168: { Corrected = input.ReadBool(); break; } case 178: { ColorCatalogGuid = input.ReadString(); break; } case 186: { ColorCatalogItemGuid = input.ReadString(); break; } case 194: { liquidVolumes_.AddEntriesFrom(input, _repeated_liquidVolumes_codec); break; } case 200: { IsTransparent = input.ReadBool(); break; } case 208: { StopIndex = input.ReadInt32(); break; } case 216: { BestMatchR = input.ReadInt32(); break; } case 224: { BestMatchG = input.ReadInt32(); break; } case 232: { BestMatchB = input.ReadInt32(); break; } } } } } #endregion } #endregion Designer generated code