< Summary

Class:DCL.ECSComponents.PBEngineInfo
Assembly:Decentraland.Protocol.GeneratedCode
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/EngineInfo.gen.cs
Covered lines:12
Uncovered lines:68
Coverable lines:80
Total lines:324
Line coverage:15% (12 of 80)
Covered branches:0
Total branches:0
Covered methods:8
Total methods:21
Method coverage:38% (8 of 21)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
PBEngineInfo()0%110100%
get_Descriptor()0%2100%
PBEngineInfo()0%110100%
PBEngineInfo(...)0%2100%
Clone()0%2100%
Equals(...)0%2100%
Equals(...)0%42600%
GetHashCode()0%30500%
ToString()0%2100%
WriteTo(...)0%30500%
CalculateSize()0%30500%
MergeFrom(...)0%30500%
MergeFrom(...)0%30500%

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 {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static EngineInfoReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "Ci1kZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvZW5naW5lX2luZm8ucHJv",
 28            "dG8SG2RlY2VudHJhbGFuZC5zZGsuY29tcG9uZW50cyJQCgxQQkVuZ2luZUlu",
 29            "Zm8SFAoMZnJhbWVfbnVtYmVyGAEgASgNEhUKDXRvdGFsX3J1bnRpbWUYAiAB",
 30            "KAISEwoLdGlja19udW1iZXIYAyABKA1CFKoCEURDTC5FQ1NDb21wb25lbnRz",
 31            "YgZwcm90bzM="));
 32      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          }));
 37    }
 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  {
 153    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)]
 057    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 {
 062      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 {
 068      get { return Descriptor; }
 69    }
 70
 71    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 72    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 273    public PBEngineInfo() {
 74      OnConstruction();
 275    }
 76
 77    partial void OnConstruction();
 78
 79    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 80    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 081    public PBEngineInfo(PBEngineInfo other) : this() {
 082      frameNumber_ = other.frameNumber_;
 083      totalRuntime_ = other.totalRuntime_;
 084      tickNumber_ = other.tickNumber_;
 085      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 086    }
 87
 88    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 89    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 90    public PBEngineInfo Clone() {
 091      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 {
 2103      get { return frameNumber_; }
 104      set {
 2105        frameNumber_ = value;
 2106      }
 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 {
 2118      get { return totalRuntime_; }
 119      set {
 2120        totalRuntime_ = value;
 2121      }
 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 {
 2133      get { return tickNumber_; }
 134      set {
 2135        tickNumber_ = value;
 2136      }
 137    }
 138
 139    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 140    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 141    public override bool Equals(object other) {
 0142      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) {
 0148      if (ReferenceEquals(other, null)) {
 0149        return false;
 150      }
 0151      if (ReferenceEquals(other, this)) {
 0152        return true;
 153      }
 0154      if (FrameNumber != other.FrameNumber) return false;
 0155      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(TotalRuntime, other.TotalRuntime)) return
 0156      if (TickNumber != other.TickNumber) return false;
 0157      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() {
 0163      int hash = 1;
 0164      if (FrameNumber != 0) hash ^= FrameNumber.GetHashCode();
 0165      if (TotalRuntime != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(TotalRunt
 0166      if (TickNumber != 0) hash ^= TickNumber.GetHashCode();
 0167      if (_unknownFields != null) {
 0168        hash ^= _unknownFields.GetHashCode();
 169      }
 0170      return hash;
 171    }
 172
 173    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 174    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 175    public override string ToString() {
 0176      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
 0185      if (FrameNumber != 0) {
 0186        output.WriteRawTag(8);
 0187        output.WriteUInt32(FrameNumber);
 188      }
 0189      if (TotalRuntime != 0F) {
 0190        output.WriteRawTag(21);
 0191        output.WriteFloat(TotalRuntime);
 192      }
 0193      if (TickNumber != 0) {
 0194        output.WriteRawTag(24);
 0195        output.WriteUInt32(TickNumber);
 196      }
 0197      if (_unknownFields != null) {
 0198        _unknownFields.WriteTo(output);
 199      }
 200    #endif
 0201    }
 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() {
 0228      int size = 0;
 0229      if (FrameNumber != 0) {
 0230        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FrameNumber);
 231      }
 0232      if (TotalRuntime != 0F) {
 0233        size += 1 + 4;
 234      }
 0235      if (TickNumber != 0) {
 0236        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TickNumber);
 237      }
 0238      if (_unknownFields != null) {
 0239        size += _unknownFields.CalculateSize();
 240      }
 0241      return size;
 242    }
 243
 244    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 245    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 246    public void MergeFrom(PBEngineInfo other) {
 0247      if (other == null) {
 0248        return;
 249      }
 0250      if (other.FrameNumber != 0) {
 0251        FrameNumber = other.FrameNumber;
 252      }
 0253      if (other.TotalRuntime != 0F) {
 0254        TotalRuntime = other.TotalRuntime;
 255      }
 0256      if (other.TickNumber != 0) {
 0257        TickNumber = other.TickNumber;
 258      }
 0259      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0260    }
 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;
 0269      while ((tag = input.ReadTag()) != 0) {
 270        switch(tag) {
 271          default:
 0272            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0273            break;
 274          case 8: {
 0275            FrameNumber = input.ReadUInt32();
 0276            break;
 277          }
 278          case 21: {
 0279            TotalRuntime = input.ReadFloat();
 0280            break;
 281          }
 282          case 24: {
 0283            TickNumber = input.ReadUInt32();
 284            break;
 285          }
 286        }
 287      }
 288    #endif
 0289    }
 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