// Generated by the protocol buffer compiler. DO NOT EDIT! // source: Stitch.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.Embroidery { /// Holder for reflection information generated from Stitch.proto public static partial class StitchReflection { #region Descriptor /// File descriptor for Stitch.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static StitchReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CgxTdGl0Y2gucHJvdG8SFFRhbmdvLlBNUi5FbWJyb2lkZXJ5GhBTdGl0Y2hG", "bGFnLnByb3RvIqsBCgZTdGl0Y2gSLgoERmxhZxgBIAEoDjIgLlRhbmdvLlBN", "Ui5FbWJyb2lkZXJ5LlN0aXRjaEZsYWcSCgoCWFgYAiABKAESCgoCWVkYAyAB", "KAESCgoCRFgYBCABKAESCgoCRFkYBSABKAESDgoGTGVuZ3RoGAYgASgBEg0K", "BUFuZ2xlGAcgASgBEg4KBkRBbmdsZRgIIAEoARISCgpDb2xvckluZGV4GAkg", "ASgFQiAKHmNvbS50d2luZS50YW5nby5wbXIuZW1icm9pZGVyeWIGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Tango.PMR.Embroidery.StitchFlagReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Embroidery.Stitch), global::Tango.PMR.Embroidery.Stitch.Parser, new[]{ "Flag", "XX", "YY", "DX", "DY", "Length", "Angle", "DAngle", "ColorIndex" }, null, null, null) })); } #endregion } #region Messages public sealed partial class Stitch : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Stitch()); [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.Embroidery.StitchReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Stitch() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Stitch(Stitch other) : this() { flag_ = other.flag_; xX_ = other.xX_; yY_ = other.yY_; dX_ = other.dX_; dY_ = other.dY_; length_ = other.length_; angle_ = other.angle_; dAngle_ = other.dAngle_; colorIndex_ = other.colorIndex_; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Stitch Clone() { return new Stitch(this); } /// Field number for the "Flag" field. public const int FlagFieldNumber = 1; private global::Tango.PMR.Embroidery.StitchFlag flag_ = 0; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Tango.PMR.Embroidery.StitchFlag Flag { get { return flag_; } set { flag_ = value; } } /// Field number for the "XX" field. public const int XXFieldNumber = 2; private double xX_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public double XX { get { return xX_; } set { xX_ = value; } } /// Field number for the "YY" field. public const int YYFieldNumber = 3; private double yY_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public double YY { get { return yY_; } set { yY_ = value; } } /// Field number for the "DX" field. public const int DXFieldNumber = 4; private double dX_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public double DX { get { return dX_; } set { dX_ = value; } } /// Field number for the "DY" field. public const int DYFieldNumber = 5; private double dY_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public double DY { get { return dY_; } set { dY_ = value; } } /// Field number for the "Length" field. public const int LengthFieldNumber = 6; private double length_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public double Length { get { return length_; } set { length_ = value; } } /// Field number for the "Angle" field. public const int AngleFieldNumber = 7; private double angle_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public double Angle { get { return angle_; } set { angle_ = value; } } /// Field number for the "DAngle" field. public const int DAngleFieldNumber = 8; private double dAngle_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public double DAngle { get { return dAngle_; } set { dAngle_ = value; } } /// Field number for the "ColorIndex" field. public const int ColorIndexFieldNumber = 9; private int colorIndex_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int ColorIndex { get { return colorIndex_; } set { colorIndex_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as Stitch); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(Stitch other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Flag != other.Flag) return false; if (XX != other.XX) return false; if (YY != other.YY) return false; if (DX != other.DX) return false; if (DY != other.DY) return false; if (Length != other.Length) return false; if (Angle != other.Angle) return false; if (DAngle != other.DAngle) return false; if (ColorIndex != other.ColorIndex) return false; return true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (Flag != 0) hash ^= Flag.GetHashCode(); if (XX != 0D) hash ^= XX.GetHashCode(); if (YY != 0D) hash ^= YY.GetHashCode(); if (DX != 0D) hash ^= DX.GetHashCode(); if (DY != 0D) hash ^= DY.GetHashCode(); if (Length != 0D) hash ^= Length.GetHashCode(); if (Angle != 0D) hash ^= Angle.GetHashCode(); if (DAngle != 0D) hash ^= DAngle.GetHashCode(); if (ColorIndex != 0) hash ^= ColorIndex.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 (Flag != 0) { output.WriteRawTag(8); output.WriteEnum((int) Flag); } if (XX != 0D) { output.WriteRawTag(17); output.WriteDouble(XX); } if (YY != 0D) { output.WriteRawTag(25); output.WriteDouble(YY); } if (DX != 0D) { output.WriteRawTag(33); output.WriteDouble(DX); } if (DY != 0D) { output.WriteRawTag(41); output.WriteDouble(DY); } if (Length != 0D) { output.WriteRawTag(49); output.WriteDouble(Length); } if (Angle != 0D) { output.WriteRawTag(57); output.WriteDouble(Angle); } if (DAngle != 0D) { output.WriteRawTag(65); output.WriteDouble(DAngle); } if (ColorIndex != 0) { output.WriteRawTag(72); output.WriteInt32(ColorIndex); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (Flag != 0) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Flag); } if (XX != 0D) { size += 1 + 8; } if (YY != 0D) { size += 1 + 8; } if (DX != 0D) { size += 1 + 8; } if (DY != 0D) { size += 1 + 8; } if (Length != 0D) { size += 1 + 8; } if (Angle != 0D) { size += 1 + 8; } if (DAngle != 0D) { size += 1 + 8; } if (ColorIndex != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(ColorIndex); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(Stitch other) { if (other == null) { return; } if (other.Flag != 0) { Flag = other.Flag; } if (other.XX != 0D) { XX = other.XX; } if (other.YY != 0D) { YY = other.YY; } if (other.DX != 0D) { DX = other.DX; } if (other.DY != 0D) { DY = other.DY; } if (other.Length != 0D) { Length = other.Length; } if (other.Angle != 0D) { Angle = other.Angle; } if (other.DAngle != 0D) { DAngle = other.DAngle; } if (other.ColorIndex != 0) { ColorIndex = other.ColorIndex; } } [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: { flag_ = (global::Tango.PMR.Embroidery.StitchFlag) input.ReadEnum(); break; } case 17: { XX = input.ReadDouble(); break; } case 25: { YY = input.ReadDouble(); break; } case 33: { DX = input.ReadDouble(); break; } case 41: { DY = input.ReadDouble(); break; } case 49: { Length = input.ReadDouble(); break; } case 57: { Angle = input.ReadDouble(); break; } case 65: { DAngle = input.ReadDouble(); break; } case 72: { ColorIndex = input.ReadInt32(); break; } } } } } #endregion } #endregion Designer generated code