< Summary

Class:DCL.ECSComponents.PBBillboard
Assembly:DCL.Components.ProtobufData
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/PBFiles/Billboard.cs
Covered lines:30
Uncovered lines:50
Coverable lines:80
Total lines:229
Line coverage:37.5% (30 of 80)
Covered branches:0
Total branches:0

Metrics

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

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/PBFiles/Billboard.cs

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: Billboard.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 Billboard.proto</summary>
 15  public static partial class BillboardReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for Billboard.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static BillboardReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "Cg9CaWxsYm9hcmQucHJvdG8SEGRlY2VudHJhbGFuZC5lY3MiLgoLUEJCaWxs",
 28            "Ym9hcmQSCQoBeBgBIAEoCBIJCgF5GAIgASgIEgkKAXoYAyABKAhCFKoCEURD",
 29            "TC5FQ1NDb21wb25lbnRzYgZwcm90bzM="));
 30      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 31          new pbr::FileDescriptor[] { },
 32          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 33            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBBillboard), global::DCL.ECSComponents.PBBil
 34          }));
 35    }
 36    #endregion
 37
 38  }
 39  #region Messages
 40  public sealed partial class PBBillboard : pb::IMessage<PBBillboard> {
 241    private static readonly pb::MessageParser<PBBillboard> _parser = new pb::MessageParser<PBBillboard>(() => new PBBill
 42    private pb::UnknownFieldSet _unknownFields;
 43    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 044    public static pb::MessageParser<PBBillboard> Parser { get { return _parser; } }
 45
 46    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 47    public static pbr::MessageDescriptor Descriptor {
 048      get { return global::DCL.ECSComponents.BillboardReflection.Descriptor.MessageTypes[0]; }
 49    }
 50
 51    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 52    pbr::MessageDescriptor pb::IMessage.Descriptor {
 053      get { return Descriptor; }
 54    }
 55
 56    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 257    public PBBillboard() {
 58      OnConstruction();
 259    }
 60
 61    partial void OnConstruction();
 62
 63    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 064    public PBBillboard(PBBillboard other) : this() {
 065      x_ = other.x_;
 066      y_ = other.y_;
 067      z_ = other.z_;
 068      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 069    }
 70
 71    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 72    public PBBillboard Clone() {
 073      return new PBBillboard(this);
 74    }
 75
 76    /// <summary>Field number for the "x" field.</summary>
 77    public const int XFieldNumber = 1;
 78    private bool x_;
 79    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 80    public bool X {
 281      get { return x_; }
 82      set {
 283        x_ = value;
 284      }
 85    }
 86
 87    /// <summary>Field number for the "y" field.</summary>
 88    public const int YFieldNumber = 2;
 89    private bool y_;
 90    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 91    public bool Y {
 292      get { return y_; }
 93      set {
 294        y_ = value;
 295      }
 96    }
 97
 98    /// <summary>Field number for the "z" field.</summary>
 99    public const int ZFieldNumber = 3;
 100    private bool z_;
 101    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 102    public bool Z {
 2103      get { return z_; }
 104      set {
 2105        z_ = value;
 2106      }
 107    }
 108
 109    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 110    public override bool Equals(object other) {
 0111      return Equals(other as PBBillboard);
 112    }
 113
 114    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 115    public bool Equals(PBBillboard other) {
 0116      if (ReferenceEquals(other, null)) {
 0117        return false;
 118      }
 0119      if (ReferenceEquals(other, this)) {
 0120        return true;
 121      }
 0122      if (X != other.X) return false;
 0123      if (Y != other.Y) return false;
 0124      if (Z != other.Z) return false;
 0125      return Equals(_unknownFields, other._unknownFields);
 126    }
 127
 128    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 129    public override int GetHashCode() {
 0130      int hash = 1;
 0131      if (X != false) hash ^= X.GetHashCode();
 0132      if (Y != false) hash ^= Y.GetHashCode();
 0133      if (Z != false) hash ^= Z.GetHashCode();
 0134      if (_unknownFields != null) {
 0135        hash ^= _unknownFields.GetHashCode();
 136      }
 0137      return hash;
 138    }
 139
 140    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 141    public override string ToString() {
 0142      return pb::JsonFormatter.ToDiagnosticString(this);
 143    }
 144
 145    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 146    public void WriteTo(pb::CodedOutputStream output) {
 1147      if (X != false) {
 1148        output.WriteRawTag(8);
 1149        output.WriteBool(X);
 150      }
 1151      if (Y != false) {
 0152        output.WriteRawTag(16);
 0153        output.WriteBool(Y);
 154      }
 1155      if (Z != false) {
 0156        output.WriteRawTag(24);
 0157        output.WriteBool(Z);
 158      }
 1159      if (_unknownFields != null) {
 0160        _unknownFields.WriteTo(output);
 161      }
 1162    }
 163
 164    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 165    public int CalculateSize() {
 1166      int size = 0;
 1167      if (X != false) {
 1168        size += 1 + 1;
 169      }
 1170      if (Y != false) {
 0171        size += 1 + 1;
 172      }
 1173      if (Z != false) {
 0174        size += 1 + 1;
 175      }
 1176      if (_unknownFields != null) {
 0177        size += _unknownFields.CalculateSize();
 178      }
 1179      return size;
 180    }
 181
 182    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 183    public void MergeFrom(PBBillboard other) {
 0184      if (other == null) {
 0185        return;
 186      }
 0187      if (other.X != false) {
 0188        X = other.X;
 189      }
 0190      if (other.Y != false) {
 0191        Y = other.Y;
 192      }
 0193      if (other.Z != false) {
 0194        Z = other.Z;
 195      }
 0196      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0197    }
 198
 199    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 200    public void MergeFrom(pb::CodedInputStream input) {
 201      uint tag;
 2202      while ((tag = input.ReadTag()) != 0) {
 203        switch(tag) {
 204          default:
 0205            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0206            break;
 207          case 8: {
 1208            X = input.ReadBool();
 1209            break;
 210          }
 211          case 16: {
 0212            Y = input.ReadBool();
 0213            break;
 214          }
 215          case 24: {
 0216            Z = input.ReadBool();
 217            break;
 218          }
 219        }
 220      }
 1221    }
 222
 223  }
 224
 225  #endregion
 226
 227}
 228
 229#endregion Designer generated code