// Generated by the protocol buffer compiler. DO NOT EDIT! // source: FileInfo.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.IO { /// Holder for reflection information generated from FileInfo.proto public static partial class FileInfoReflection { #region Descriptor /// File descriptor for FileInfo.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static FileInfoReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "Cg5GaWxlSW5mby5wcm90bxIMVGFuZ28uUE1SLklPGhNGaWxlQXR0cmlidXRl", "LnByb3RvIp4BCghGaWxlSW5mbxIMCgROYW1lGAEgASgJEhAKCEZ1bGxQYXRo", "GAIgASgJEg4KBkxlbmd0aBgDIAEoAxIYChBMYXN0TW9kaWZpZWREYXRlGAQg", "ASgFEhgKEExhc3RNb2RpZmllZFRpbWUYBSABKAUSLgoJQXR0cmlidXRlGAYg", "ASgOMhsuVGFuZ28uUE1SLklPLkZpbGVBdHRyaWJ1dGVCGAoWY29tLnR3aW5l", "LnRhbmdvLnBtci5pb2IGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Tango.PMR.IO.FileAttributeReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.IO.FileInfo), global::Tango.PMR.IO.FileInfo.Parser, new[]{ "Name", "FullPath", "Length", "LastModifiedDate", "LastModifiedTime", "Attribute" }, null, null, null) })); } #endregion } #region Messages public sealed partial class FileInfo : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FileInfo()); [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.IO.FileInfoReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public FileInfo() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public FileInfo(FileInfo other) : this() { name_ = other.name_; fullPath_ = other.fullPath_; length_ = other.length_; lastModifiedDate_ = other.lastModifiedDate_; lastModifiedTime_ = other.lastModifiedTime_; attribute_ = other.attribute_; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public FileInfo Clone() { return new FileInfo(this); } /// Field number for the "Name" field. 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"); } } /// Field number for the "FullPath" field. public const int FullPathFieldNumber = 2; private string fullPath_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string FullPath { get { return fullPath_; } set { fullPath_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "Length" field. public const int LengthFieldNumber = 3; private long length_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public long Length { get { return length_; } set { length_ = value; } } /// Field number for the "LastModifiedDate" field. public const int LastModifiedDateFieldNumber = 4; private int lastModifiedDate_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int LastModifiedDate { get { return lastModifiedDate_; } set { lastModifiedDate_ = value; } } /// Field number for the "LastModifiedTime" field. public const int LastModifiedTimeFieldNumber = 5; private int lastModifiedTime_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int LastModifiedTime { get { return lastModifiedTime_; } set { lastModifiedTime_ = value; } } /// Field number for the "Attribute" field. public const int AttributeFieldNumber = 6; private global::Tango.PMR.IO.FileAttribute attribute_ = 0; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Tango.PMR.IO.FileAttribute Attribute { get { return attribute_; } set { attribute_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as FileInfo); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(FileInfo other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Name != other.Name) return false; if (FullPath != other.FullPath) return false; if (Length != other.Length) return false; if (LastModifiedDate != other.LastModifiedDate) return false; if (LastModifiedTime != other.LastModifiedTime) return false; if (Attribute != other.Attribute) return false; return true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (Name.Length != 0) hash ^= Name.GetHashCode(); if (FullPath.Length != 0) hash ^= FullPath.GetHashCode(); if (Length != 0L) hash ^= Length.GetHashCode(); if (LastModifiedDate != 0) hash ^= LastModifiedDate.GetHashCode(); if (LastModifiedTime != 0) hash ^= LastModifiedTime.GetHashCode(); if (Attribute != 0) hash ^= Attribute.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 (FullPath.Length != 0) { output.WriteRawTag(18); output.WriteString(FullPath); } if (Length != 0L) { output.WriteRawTag(24); output.WriteInt64(Length); } if (LastModifiedDate != 0) { output.WriteRawTag(32); output.WriteInt32(LastModifiedDate); } if (LastModifiedTime != 0) { output.WriteRawTag(40); output.WriteInt32(LastModifiedTime); } if (Attribute != 0) { output.WriteRawTag(48); output.WriteEnum((int) Attribute); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (Name.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); } if (FullPath.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(FullPath); } if (Length != 0L) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(Length); } if (LastModifiedDate != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(LastModifiedDate); } if (LastModifiedTime != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(LastModifiedTime); } if (Attribute != 0) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Attribute); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(FileInfo other) { if (other == null) { return; } if (other.Name.Length != 0) { Name = other.Name; } if (other.FullPath.Length != 0) { FullPath = other.FullPath; } if (other.Length != 0L) { Length = other.Length; } if (other.LastModifiedDate != 0) { LastModifiedDate = other.LastModifiedDate; } if (other.LastModifiedTime != 0) { LastModifiedTime = other.LastModifiedTime; } if (other.Attribute != 0) { Attribute = other.Attribute; } } [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: { FullPath = input.ReadString(); break; } case 24: { Length = input.ReadInt64(); break; } case 32: { LastModifiedDate = input.ReadInt32(); break; } case 40: { LastModifiedTime = input.ReadInt32(); break; } case 48: { attribute_ = (global::Tango.PMR.IO.FileAttribute) input.ReadEnum(); break; } } } } } #endregion } #endregion Designer generated code