< Summary

Class:DCL.ECSComponents.EngineInfoReflection
Assembly:Decentraland.Protocol.GeneratedCode
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/EngineInfo.gen.cs
Covered lines:0
Uncovered lines:4
Coverable lines:4
Total lines:324
Line coverage:0% (0 of 4)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:2
Method coverage:0% (0 of 2)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
EngineInfoReflection()0%2100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/EngineInfo.gen.cs

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: decentraland/sdk/components/engine_info.proto
 4// </auto-generated>
 5#pragma warning disable 1591, 0612, 3021
 6#region Designer generated code
 7
 8using pb = global::Google.Protobuf;
 9using pbc = global::Google.Protobuf.Collections;
 10using pbr = global::Google.Protobuf.Reflection;
 11using scg = global::System.Collections.Generic;
 12namespace DCL.ECSComponents {
 13
 14  /// <summary>Holder for reflection information generated from decentraland/sdk/components/engine_info.proto</summary>
 15  public static partial class EngineInfoReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for decentraland/sdk/components/engine_info.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 020      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static EngineInfoReflection() {
 025      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "Ci1kZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvZW5naW5lX2luZm8ucHJv",
 28            "dG8SG2RlY2VudHJhbGFuZC5zZGsuY29tcG9uZW50cyJQCgxQQkVuZ2luZUlu",
 29            "Zm8SFAoMZnJhbWVfbnVtYmVyGAEgASgNEhUKDXRvdGFsX3J1bnRpbWUYAiAB",
 30            "KAISEwoLdGlja19udW1iZXIYAyABKA1CFKoCEURDTC5FQ1NDb21wb25lbnRz",
 31            "YgZwcm90bzM="));
 032      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 33          new pbr::FileDescriptor[] { },
 34          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 35            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBEngineInfo), global::DCL.ECSComponents.PBEn
 36          }));
 037    }
 38    #endregion
 39
 40  }
 41  #region Messages
 42  /// <summary>
 43  /// EngineInfo provides information about the graphics engine running the scene.
 44  /// The values of this component are written at the "physics" stage of the ADR-148. Meaning
 45  /// the tick_number and frame_number of the same frame could be used as correlation numbers
 46  /// for timestamps in other components.
 47  /// </summary>
 48  public sealed partial class PBEngineInfo : pb::IMessage<PBEngineInfo>
 49  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 50      , pb::IBufferMessage
 51  #endif
 52  {
 53    private static readonly pb::MessageParser<PBEngineInfo> _parser = new pb::MessageParser<PBEngineInfo>(() => new PBEn
 54    private pb::UnknownFieldSet _unknownFields;
 55    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 56    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 57    public static pb::MessageParser<PBEngineInfo> Parser { get { return _parser; } }
 58
 59    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 60    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 61    public static pbr::MessageDescriptor Descriptor {
 62      get { return global::DCL.ECSComponents.EngineInfoReflection.Descriptor.MessageTypes[0]; }
 63    }
 64
 65    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 66    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 67    pbr::MessageDescriptor pb::IMessage.Descriptor {
 68      get { return Descriptor; }
 69    }
 70
 71    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 72    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 73    public PBEngineInfo() {
 74      OnConstruction();
 75    }
 76
 77    partial void OnConstruction();
 78
 79    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 80    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 81    public PBEngineInfo(PBEngineInfo other) : this() {
 82      frameNumber_ = other.frameNumber_;
 83      totalRuntime_ = other.totalRuntime_;
 84      tickNumber_ = other.tickNumber_;
 85      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 86    }
 87
 88    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 89    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 90    public PBEngineInfo Clone() {
 91      return new PBEngineInfo(this);
 92    }
 93
 94    /// <summary>Field number for the "frame_number" field.</summary>
 95    public const int FrameNumberFieldNumber = 1;
 96    private uint frameNumber_;
 97    /// <summary>
 98    /// frame counter of the engine
 99    /// </summary>
 100    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 101    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 102    public uint FrameNumber {
 103      get { return frameNumber_; }
 104      set {
 105        frameNumber_ = value;
 106      }
 107    }
 108
 109    /// <summary>Field number for the "total_runtime" field.</summary>
 110    public const int TotalRuntimeFieldNumber = 2;
 111    private float totalRuntime_;
 112    /// <summary>
 113    /// total runtime of this scene in seconds
 114    /// </summary>
 115    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 116    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 117    public float TotalRuntime {
 118      get { return totalRuntime_; }
 119      set {
 120        totalRuntime_ = value;
 121      }
 122    }
 123
 124    /// <summary>Field number for the "tick_number" field.</summary>
 125    public const int TickNumberFieldNumber = 3;
 126    private uint tickNumber_;
 127    /// <summary>
 128    /// tick counter of the scene as per ADR-148
 129    /// </summary>
 130    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 131    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 132    public uint TickNumber {
 133      get { return tickNumber_; }
 134      set {
 135        tickNumber_ = value;
 136      }
 137    }
 138
 139    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 140    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 141    public override bool Equals(object other) {
 142      return Equals(other as PBEngineInfo);
 143    }
 144
 145    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 146    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 147    public bool Equals(PBEngineInfo other) {
 148      if (ReferenceEquals(other, null)) {
 149        return false;
 150      }
 151      if (ReferenceEquals(other, this)) {
 152        return true;
 153      }
 154      if (FrameNumber != other.FrameNumber) return false;
 155      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(TotalRuntime, other.TotalRuntime)) return
 156      if (TickNumber != other.TickNumber) return false;
 157      return Equals(_unknownFields, other._unknownFields);
 158    }
 159
 160    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 161    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 162    public override int GetHashCode() {
 163      int hash = 1;
 164      if (FrameNumber != 0) hash ^= FrameNumber.GetHashCode();
 165      if (TotalRuntime != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(TotalRunt
 166      if (TickNumber != 0) hash ^= TickNumber.GetHashCode();
 167      if (_unknownFields != null) {
 168        hash ^= _unknownFields.GetHashCode();
 169      }
 170      return hash;
 171    }
 172
 173    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 174    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 175    public override string ToString() {
 176      return pb::JsonFormatter.ToDiagnosticString(this);
 177    }
 178
 179    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 180    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 181    public void WriteTo(pb::CodedOutputStream output) {
 182    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 183      output.WriteRawMessage(this);
 184    #else
 185      if (FrameNumber != 0) {
 186        output.WriteRawTag(8);
 187        output.WriteUInt32(FrameNumber);
 188      }
 189      if (TotalRuntime != 0F) {
 190        output.WriteRawTag(21);
 191        output.WriteFloat(TotalRuntime);
 192      }
 193      if (TickNumber != 0) {
 194        output.WriteRawTag(24);
 195        output.WriteUInt32(TickNumber);
 196      }
 197      if (_unknownFields != null) {
 198        _unknownFields.WriteTo(output);
 199      }
 200    #endif
 201    }
 202
 203    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 204    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 205    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 206    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 207      if (FrameNumber != 0) {
 208        output.WriteRawTag(8);
 209        output.WriteUInt32(FrameNumber);
 210      }
 211      if (TotalRuntime != 0F) {
 212        output.WriteRawTag(21);
 213        output.WriteFloat(TotalRuntime);
 214      }
 215      if (TickNumber != 0) {
 216        output.WriteRawTag(24);
 217        output.WriteUInt32(TickNumber);
 218      }
 219      if (_unknownFields != null) {
 220        _unknownFields.WriteTo(ref output);
 221      }
 222    }
 223    #endif
 224
 225    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 226    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 227    public int CalculateSize() {
 228      int size = 0;
 229      if (FrameNumber != 0) {
 230        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FrameNumber);
 231      }
 232      if (TotalRuntime != 0F) {
 233        size += 1 + 4;
 234      }
 235      if (TickNumber != 0) {
 236        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TickNumber);
 237      }
 238      if (_unknownFields != null) {
 239        size += _unknownFields.CalculateSize();
 240      }
 241      return size;
 242    }
 243
 244    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 245    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 246    public void MergeFrom(PBEngineInfo other) {
 247      if (other == null) {
 248        return;
 249      }
 250      if (other.FrameNumber != 0) {
 251        FrameNumber = other.FrameNumber;
 252      }
 253      if (other.TotalRuntime != 0F) {
 254        TotalRuntime = other.TotalRuntime;
 255      }
 256      if (other.TickNumber != 0) {
 257        TickNumber = other.TickNumber;
 258      }
 259      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 260    }
 261
 262    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 263    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 264    public void MergeFrom(pb::CodedInputStream input) {
 265    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 266      input.ReadRawMessage(this);
 267    #else
 268      uint tag;
 269      while ((tag = input.ReadTag()) != 0) {
 270        switch(tag) {
 271          default:
 272            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 273            break;
 274          case 8: {
 275            FrameNumber = input.ReadUInt32();
 276            break;
 277          }
 278          case 21: {
 279            TotalRuntime = input.ReadFloat();
 280            break;
 281          }
 282          case 24: {
 283            TickNumber = input.ReadUInt32();
 284            break;
 285          }
 286        }
 287      }
 288    #endif
 289    }
 290
 291    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 292    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 293    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 294    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 295      uint tag;
 296      while ((tag = input.ReadTag()) != 0) {
 297        switch(tag) {
 298          default:
 299            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 300            break;
 301          case 8: {
 302            FrameNumber = input.ReadUInt32();
 303            break;
 304          }
 305          case 21: {
 306            TotalRuntime = input.ReadFloat();
 307            break;
 308          }
 309          case 24: {
 310            TickNumber = input.ReadUInt32();
 311            break;
 312          }
 313        }
 314      }
 315    }
 316    #endif
 317
 318  }
 319
 320  #endregion
 321
 322}
 323
 324#endregion Designer generated code