// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: EmbroideryFile.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 EmbroideryFile.proto
public static partial class EmbroideryFileReflection {
#region Descriptor
/// File descriptor for EmbroideryFile.proto
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static EmbroideryFileReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChRFbWJyb2lkZXJ5RmlsZS5wcm90bxIUVGFuZ28uUE1SLkVtYnJvaWRlcnka",
"DUV4dGVudHMucHJvdG8aDFN0aXRjaC5wcm90bxoRU3RpdGNoQ29sb3IucHJv",
"dG8i8gEKDkVtYnJvaWRlcnlGaWxlEhIKCkRlc2lnbk5hbWUYASABKAkSEAoI",
"RmlsZU5hbWUYAiABKAkSEwoLU3RpdGNoQ291bnQYAyABKAUSEgoKQ29sb3JD",
"b3VudBgEIAEoBRIuCgdFeHRlbnRzGAUgASgLMh0uVGFuZ28uUE1SLkVtYnJv",
"aWRlcnkuRXh0ZW50cxIxCgZDb2xvcnMYBiADKAsyIS5UYW5nby5QTVIuRW1i",
"cm9pZGVyeS5TdGl0Y2hDb2xvchIuCghTdGl0Y2hlcxgHIAMoCzIcLlRhbmdv",
"LlBNUi5FbWJyb2lkZXJ5LlN0aXRjaEIgCh5jb20udHdpbmUudGFuZ28ucG1y",
"LmVtYnJvaWRlcnliBnByb3RvMw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Tango.PMR.Embroidery.ExtentsReflection.Descriptor, global::Tango.PMR.Embroidery.StitchReflection.Descriptor, global::Tango.PMR.Embroidery.StitchColorReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Embroidery.EmbroideryFile), global::Tango.PMR.Embroidery.EmbroideryFile.Parser, new[]{ "DesignName", "FileName", "StitchCount", "ColorCount", "Extents", "Colors", "Stitches" }, null, null, null)
}));
}
#endregion
}
#region Messages
public sealed partial class EmbroideryFile : pb::IMessage {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EmbroideryFile());
[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.EmbroideryFileReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public EmbroideryFile() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public EmbroideryFile(EmbroideryFile other) : this() {
designName_ = other.designName_;
fileName_ = other.fileName_;
stitchCount_ = other.stitchCount_;
colorCount_ = other.colorCount_;
Extents = other.extents_ != null ? other.Extents.Clone() : null;
colors_ = other.colors_.Clone();
stitches_ = other.stitches_.Clone();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public EmbroideryFile Clone() {
return new EmbroideryFile(this);
}
/// Field number for the "DesignName" field.
public const int DesignNameFieldNumber = 1;
private string designName_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string DesignName {
get { return designName_; }
set {
designName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "FileName" field.
public const int FileNameFieldNumber = 2;
private string fileName_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string FileName {
get { return fileName_; }
set {
fileName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "StitchCount" field.
public const int StitchCountFieldNumber = 3;
private int stitchCount_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int StitchCount {
get { return stitchCount_; }
set {
stitchCount_ = value;
}
}
/// Field number for the "ColorCount" field.
public const int ColorCountFieldNumber = 4;
private int colorCount_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int ColorCount {
get { return colorCount_; }
set {
colorCount_ = value;
}
}
/// Field number for the "Extents" field.
public const int ExtentsFieldNumber = 5;
private global::Tango.PMR.Embroidery.Extents extents_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Tango.PMR.Embroidery.Extents Extents {
get { return extents_; }
set {
extents_ = value;
}
}
/// Field number for the "Colors" field.
public const int ColorsFieldNumber = 6;
private static readonly pb::FieldCodec _repeated_colors_codec
= pb::FieldCodec.ForMessage(50, global::Tango.PMR.Embroidery.StitchColor.Parser);
private readonly pbc::RepeatedField colors_ = new pbc::RepeatedField();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField Colors {
get { return colors_; }
}
/// Field number for the "Stitches" field.
public const int StitchesFieldNumber = 7;
private static readonly pb::FieldCodec _repeated_stitches_codec
= pb::FieldCodec.ForMessage(58, global::Tango.PMR.Embroidery.Stitch.Parser);
private readonly pbc::RepeatedField stitches_ = new pbc::RepeatedField();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField Stitches {
get { return stitches_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as EmbroideryFile);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(EmbroideryFile other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (DesignName != other.DesignName) return false;
if (FileName != other.FileName) return false;
if (StitchCount != other.StitchCount) return false;
if (ColorCount != other.ColorCount) return false;
if (!object.Equals(Extents, other.Extents)) return false;
if(!colors_.Equals(other.colors_)) return false;
if(!stitches_.Equals(other.stitches_)) return false;
return true;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (DesignName.Length != 0) hash ^= DesignName.GetHashCode();
if (FileName.Length != 0) hash ^= FileName.GetHashCode();
if (StitchCount != 0) hash ^= StitchCount.GetHashCode();
if (ColorCount != 0) hash ^= ColorCount.GetHashCode();
if (extents_ != null) hash ^= Extents.GetHashCode();
hash ^= colors_.GetHashCode();
hash ^= stitches_.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 (DesignName.Length != 0) {
output.WriteRawTag(10);
output.WriteString(DesignName);
}
if (FileName.Length != 0) {
output.WriteRawTag(18);
output.WriteString(FileName);
}
if (StitchCount != 0) {
output.WriteRawTag(24);
output.WriteInt32(StitchCount);
}
if (ColorCount != 0) {
output.WriteRawTag(32);
output.WriteInt32(ColorCount);
}
if (extents_ != null) {
output.WriteRawTag(42);
output.WriteMessage(Extents);
}
colors_.WriteTo(output, _repeated_colors_codec);
stitches_.WriteTo(output, _repeated_stitches_codec);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (DesignName.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(DesignName);
}
if (FileName.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(FileName);
}
if (StitchCount != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(StitchCount);
}
if (ColorCount != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(ColorCount);
}
if (extents_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Extents);
}
size += colors_.CalculateSize(_repeated_colors_codec);
size += stitches_.CalculateSize(_repeated_stitches_codec);
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(EmbroideryFile other) {
if (other == null) {
return;
}
if (other.DesignName.Length != 0) {
DesignName = other.DesignName;
}
if (other.FileName.Length != 0) {
FileName = other.FileName;
}
if (other.StitchCount != 0) {
StitchCount = other.StitchCount;
}
if (other.ColorCount != 0) {
ColorCount = other.ColorCount;
}
if (other.extents_ != null) {
if (extents_ == null) {
extents_ = new global::Tango.PMR.Embroidery.Extents();
}
Extents.MergeFrom(other.Extents);
}
colors_.Add(other.colors_);
stitches_.Add(other.stitches_);
}
[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: {
DesignName = input.ReadString();
break;
}
case 18: {
FileName = input.ReadString();
break;
}
case 24: {
StitchCount = input.ReadInt32();
break;
}
case 32: {
ColorCount = input.ReadInt32();
break;
}
case 42: {
if (extents_ == null) {
extents_ = new global::Tango.PMR.Embroidery.Extents();
}
input.ReadMessage(extents_);
break;
}
case 50: {
colors_.AddEntriesFrom(input, _repeated_colors_codec);
break;
}
case 58: {
stitches_.AddEntriesFrom(input, _repeated_stitches_codec);
break;
}
}
}
}
}
#endregion
}
#endregion Designer generated code