aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.CodeGeneration/Templates/Namespace.cshtml
blob: 05fd682c4ceeb41f421263afc1ed6dd9e409dd2d (plain)
1
2
3
4
5
6
7
    namespace @(Model.Name)
    {
        @foreach (var cls in Model.Classes)
        {
            <div>@cls.GenerateCode()</div>
        }
    }
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: StartDebugLogResponse.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.Debugging {

  /// <summary>Holder for reflection information generated from StartDebugLogResponse.proto</summary>
  public static partial class StartDebugLogResponseReflection {

    #region Descriptor
    /// <summary>File descriptor for StartDebugLogResponse.proto</summary>
    public static pbr::FileDescriptor Descriptor {
      get { return descriptor; }
    }
    private static pbr::FileDescriptor descriptor;

    static StartDebugLogResponseReflection() {
      byte[] descriptorData = global::System.Convert.FromBase64String(
          string.Concat(
            "ChtTdGFydERlYnVnTG9nUmVzcG9uc2UucHJvdG8SE1RhbmdvLlBNUi5EZWJ1",
            "Z2dpbmcaFkRlYnVnTG9nQ2F0ZWdvcnkucHJvdG8ivAEKFVN0YXJ0RGVidWdM",
            "b2dSZXNwb25zZRI3CghDYXRlZ29yeRgBIAEoDjIlLlRhbmdvLlBNUi5EZWJ1",
            "Z2dpbmcuRGVidWdMb2dDYXRlZ29yeRIQCghGaWxlTmFtZRgCIAEoCRISCgpM",
            "aW5lTnVtYmVyGAMgASgFEg4KBkZpbHRlchgEIAEoBRIPCgdNZXNzYWdlGAUg",
            "ASgJEhAKCE1vZHVsZUlkGAYgASgFEhEKCVBhcmFtZXRlchgHIAEoBUIfCh1j",
            "b20udHdpbmUudGFuZ28ucG1yLmRlYnVnZ2luZ2IGcHJvdG8z"));
      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
          new pbr::FileDescriptor[] { global::Tango.PMR.Debugging.DebugLogCategoryReflection.Descriptor, },
          new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
            new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Debugging.StartDebugLogResponse), global::Tango.PMR.Debugging.StartDebugLogResponse.Parser, new[]{ "Category", "FileName", "LineNumber", "Filter", "Message", "ModuleId", "Parameter" }, null, null, null)
          }));
    }
    #endregion

  }
  #region Messages
  public sealed partial class StartDebugLogResponse : pb::IMessage<StartDebugLogResponse> {
    private static readonly pb::MessageParser<StartDebugLogResponse> _parser = new pb::MessageParser<StartDebugLogResponse>(() => new StartDebugLogResponse());
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public static pb::MessageParser<StartDebugLogResponse> Parser { get { return _parser; } }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public static pbr::MessageDescriptor Descriptor {
      get { return global::Tango.PMR.Debugging.StartDebugLogResponseReflection.Descriptor.MessageTypes[0]; }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    pbr::MessageDescriptor pb::IMessage.Descriptor {
      get { return Descriptor; }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public StartDebugLogResponse() {
      OnConstruction();
    }

    partial void OnConstruction();

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public StartDebugLogResponse(StartDebugLogResponse other) : this() {
      category_ = other.category_;
      fileName_ = other.fileName_;
      lineNumber_ = other.lineNumber_;
      filter_ = other.filter_;
      message_ = other.message_;
      moduleId_ = other.moduleId_;
      parameter_ = other.parameter_;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public StartDebugLogResponse Clone() {
      return new StartDebugLogResponse(this);
    }

    /// <summary>Field number for the "Category" field.</summary>
    public const int CategoryFieldNumber = 1;
    private global::Tango.PMR.Debugging.DebugLogCategory category_ = 0;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public global::Tango.PMR.Debugging.DebugLogCategory Category {
      get { return category_; }
      set {
        category_ = value;
      }
    }

    /// <summary>Field number for the "FileName" field.</summary>
    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");
      }
    }

    /// <summary>Field number for the "LineNumber" field.</summary>
    public const int LineNumberFieldNumber = 3;
    private int lineNumber_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public int LineNumber {
      get { return lineNumber_; }
      set {
        lineNumber_ = value;
      }
    }

    /// <summary>Field number for the "Filter" field.</summary>
    public const int FilterFieldNumber = 4;
    private int filter_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public int Filter {
      get { return filter_; }
      set {
        filter_ = value;
      }
    }

    /// <summary>Field number for the "Message" field.</summary>
    public const int MessageFieldNumber = 5;
    private string message_ = "";
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public string Message {
      get { return message_; }
      set {
        message_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
      }
    }

    /// <summary>Field number for the "ModuleId" field.</summary>
    public const int ModuleIdFieldNumber = 6;
    private int moduleId_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public int ModuleId {
      get { return moduleId_; }
      set {
        moduleId_ = value;
      }
    }

    /// <summary>Field number for the "Parameter" field.</summary>
    public const int ParameterFieldNumber = 7;
    private int parameter_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public int Parameter {
      get { return parameter_; }
      set {
        parameter_ = value;
      }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public override bool Equals(object other) {
      return Equals(other as StartDebugLogResponse);
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public bool Equals(StartDebugLogResponse other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
        return true;
      }
      if (Category != other.Category) return false;
      if (FileName != other.FileName) return false;
      if (LineNumber != other.LineNumber) return false;
      if (Filter != other.Filter) return false;
      if (Message != other.Message) return false;
      if (ModuleId != other.ModuleId) return false;
      if (Parameter != other.Parameter) return false;
      return true;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public override int GetHashCode() {
      int hash = 1;
      if (Category != 0) hash ^= Category.GetHashCode();
      if (FileName.Length != 0) hash ^= FileName.GetHashCode();
      if (LineNumber != 0) hash ^= LineNumber.GetHashCode();
      if (Filter != 0) hash ^= Filter.GetHashCode();
      if (Message.Length != 0) hash ^= Message.GetHashCode();
      if (ModuleId != 0) hash ^= ModuleId.GetHashCode();
      if (Parameter != 0) hash ^= Parameter.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 (Category != 0) {
        output.WriteRawTag(8);
        output.WriteEnum((int) Category);
      }
      if (FileName.Length != 0) {
        output.WriteRawTag(18);
        output.WriteString(FileName);
      }
      if (LineNumber != 0) {
        output.WriteRawTag(24);
        output.WriteInt32(LineNumber);
      }
      if (Filter != 0) {
        output.WriteRawTag(32);
        output.WriteInt32(Filter);
      }
      if (Message.Length != 0) {
        output.WriteRawTag(42);
        output.WriteString(Message);
      }
      if (ModuleId != 0) {
        output.WriteRawTag(48);
        output.WriteInt32(ModuleId);
      }
      if (Parameter != 0) {
        output.WriteRawTag(56);
        output.WriteInt32(Parameter);
      }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public int CalculateSize() {
      int size = 0;
      if (Category != 0) {
        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Category);
      }
      if (FileName.Length != 0) {
        size += 1 + pb::CodedOutputStream.ComputeStringSize(FileName);
      }
      if (LineNumber != 0) {
        size += 1 + pb::CodedOutputStream.ComputeInt32Size(LineNumber);
      }
      if (Filter != 0) {
        size += 1 + pb::CodedOutputStream.ComputeInt32Size(Filter);
      }
      if (Message.Length != 0) {
        size += 1 + pb::CodedOutputStream.ComputeStringSize(Message);
      }
      if (ModuleId != 0) {
        size += 1 + pb::CodedOutputStream.ComputeInt32Size(ModuleId);
      }
      if (Parameter != 0) {
        size += 1 + pb::CodedOutputStream.ComputeInt32Size(Parameter);
      }
      return size;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public void MergeFrom(StartDebugLogResponse other) {
      if (other == null) {
        return;
      }
      if (other.Category != 0) {
        Category = other.Category;
      }
      if (other.FileName.Length != 0) {
        FileName = other.FileName;
      }
      if (other.LineNumber != 0) {
        LineNumber = other.LineNumber;
      }
      if (other.Filter != 0) {
        Filter = other.Filter;
      }
      if (other.Message.Length != 0) {
        Message = other.Message;
      }
      if (other.ModuleId != 0) {
        ModuleId = other.ModuleId;
      }
      if (other.Parameter != 0) {
        Parameter = other.Parameter;
      }
    }

    [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: {
            category_ = (global::Tango.PMR.Debugging.DebugLogCategory) input.ReadEnum();
            break;
          }
          case 18: {
            FileName = input.ReadString();
            break;
          }
          case 24: {
            LineNumber = input.ReadInt32();
            break;
          }
          case 32: {
            Filter = input.ReadInt32();
            break;
          }
          case 42: {
            Message = input.ReadString();
            break;
          }
          case 48: {
            ModuleId = input.ReadInt32();
            break;
          }
          case 56: {
            Parameter = input.ReadInt32();
            break;
          }
        }
      }
    }

  }

  #endregion

}

#endregion Designer generated code