< Summary

Class:DCL.ECSComponents.PBBillboard
Assembly:DCL.ECSComponents.ProtobufData
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/Billboard.gen.cs
Covered lines:42
Uncovered lines:51
Coverable lines:93
Total lines:358
Line coverage:45.1% (42 of 93)
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%
ClearX()0%2100%
ClearY()0%2100%
ClearZ()0%2100%
Equals(...)0%2100%
Equals(...)0%42600%
GetHashCode()0%30500%
ToString()0%2100%
WriteTo(...)0%5.015091.67%
CalculateSize()0%5.025090%
MergeFrom(...)0%30500%
MergeFrom(...)0%5.275077.78%

File(s)

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

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: ecs/components/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 ecs/components/Billboard.proto</summary>
 15  public static partial class BillboardReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for ecs/components/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            "Ch5lY3MvY29tcG9uZW50cy9CaWxsYm9hcmQucHJvdG8SEGRlY2VudHJhbGFu",
 28            "ZC5lY3MiTwoLUEJCaWxsYm9hcmQSDgoBeBgBIAEoCEgAiAEBEg4KAXkYAiAB",
 29            "KAhIAYgBARIOCgF6GAMgASgISAKIAQFCBAoCX3hCBAoCX3lCBAoCX3pCFKoC",
 30            "EURDTC5FQ1NDb21wb25lbnRzYgZwcm90bzM="));
 31      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 32          new pbr::FileDescriptor[] { },
 33          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 34            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBBillboard), global::DCL.ECSComponents.PBBil
 35          }));
 36    }
 37    #endregion
 38
 39  }
 40  #region Messages
 41  public sealed partial class PBBillboard : pb::IMessage<PBBillboard>
 42  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 43      , pb::IBufferMessage
 44  #endif
 45  {
 246    private static readonly pb::MessageParser<PBBillboard> _parser = new pb::MessageParser<PBBillboard>(() => new PBBill
 47    private pb::UnknownFieldSet _unknownFields;
 48    private int _hasBits0;
 49    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 50    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 051    public static pb::MessageParser<PBBillboard> Parser { get { return _parser; } }
 52
 53    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 54    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 55    public static pbr::MessageDescriptor Descriptor {
 056      get { return global::DCL.ECSComponents.BillboardReflection.Descriptor.MessageTypes[0]; }
 57    }
 58
 59    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 60    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 61    pbr::MessageDescriptor pb::IMessage.Descriptor {
 062      get { return Descriptor; }
 63    }
 64
 65    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 66    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 267    public PBBillboard() {
 68      OnConstruction();
 269    }
 70
 71    partial void OnConstruction();
 72
 73    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 74    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 075    public PBBillboard(PBBillboard other) : this() {
 076      _hasBits0 = other._hasBits0;
 077      x_ = other.x_;
 078      y_ = other.y_;
 079      z_ = other.z_;
 080      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 081    }
 82
 83    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 84    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 85    public PBBillboard Clone() {
 086      return new PBBillboard(this);
 87    }
 88
 89    /// <summary>Field number for the "x" field.</summary>
 90    public const int XFieldNumber = 1;
 91    private bool x_;
 92    /// <summary>
 93    /// default=true
 94    /// </summary>
 95    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 96    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 97    public bool X {
 498      get { if ((_hasBits0 & 1) != 0) { return x_; } else { return false; } }
 99      set {
 3100        _hasBits0 |= 1;
 3101        x_ = value;
 3102      }
 103    }
 104    /// <summary>Gets whether the "x" field is set</summary>
 105    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 106    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 107    public bool HasX {
 0108      get { return (_hasBits0 & 1) != 0; }
 109    }
 110    /// <summary>Clears the value of the "x" field</summary>
 111    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 112    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 113    public void ClearX() {
 0114      _hasBits0 &= ~1;
 0115    }
 116
 117    /// <summary>Field number for the "y" field.</summary>
 118    public const int YFieldNumber = 2;
 119    private bool y_;
 120    /// <summary>
 121    /// default=true
 122    /// </summary>
 123    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 124    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 125    public bool Y {
 4126      get { if ((_hasBits0 & 2) != 0) { return y_; } else { return false; } }
 127      set {
 3128        _hasBits0 |= 2;
 3129        y_ = value;
 3130      }
 131    }
 132    /// <summary>Gets whether the "y" field is set</summary>
 133    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 134    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 135    public bool HasY {
 0136      get { return (_hasBits0 & 2) != 0; }
 137    }
 138    /// <summary>Clears the value of the "y" field</summary>
 139    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 140    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 141    public void ClearY() {
 0142      _hasBits0 &= ~2;
 0143    }
 144
 145    /// <summary>Field number for the "z" field.</summary>
 146    public const int ZFieldNumber = 3;
 147    private bool z_;
 148    /// <summary>
 149    /// default=true
 150    /// </summary>
 151    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 152    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 153    public bool Z {
 4154      get { if ((_hasBits0 & 4) != 0) { return z_; } else { return false; } }
 155      set {
 3156        _hasBits0 |= 4;
 3157        z_ = value;
 3158      }
 159    }
 160    /// <summary>Gets whether the "z" field is set</summary>
 161    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 162    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 163    public bool HasZ {
 0164      get { return (_hasBits0 & 4) != 0; }
 165    }
 166    /// <summary>Clears the value of the "z" field</summary>
 167    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 168    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 169    public void ClearZ() {
 0170      _hasBits0 &= ~4;
 0171    }
 172
 173    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 174    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 175    public override bool Equals(object other) {
 0176      return Equals(other as PBBillboard);
 177    }
 178
 179    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 180    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 181    public bool Equals(PBBillboard other) {
 0182      if (ReferenceEquals(other, null)) {
 0183        return false;
 184      }
 0185      if (ReferenceEquals(other, this)) {
 0186        return true;
 187      }
 0188      if (X != other.X) return false;
 0189      if (Y != other.Y) return false;
 0190      if (Z != other.Z) return false;
 0191      return Equals(_unknownFields, other._unknownFields);
 192    }
 193
 194    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 195    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 196    public override int GetHashCode() {
 0197      int hash = 1;
 0198      if (HasX) hash ^= X.GetHashCode();
 0199      if (HasY) hash ^= Y.GetHashCode();
 0200      if (HasZ) hash ^= Z.GetHashCode();
 0201      if (_unknownFields != null) {
 0202        hash ^= _unknownFields.GetHashCode();
 203      }
 0204      return hash;
 205    }
 206
 207    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 208    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 209    public override string ToString() {
 0210      return pb::JsonFormatter.ToDiagnosticString(this);
 211    }
 212
 213    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 214    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 215    public void WriteTo(pb::CodedOutputStream output) {
 216    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 217      output.WriteRawMessage(this);
 218    #else
 1219      if (HasX) {
 1220        output.WriteRawTag(8);
 1221        output.WriteBool(X);
 222      }
 1223      if (HasY) {
 1224        output.WriteRawTag(16);
 1225        output.WriteBool(Y);
 226      }
 1227      if (HasZ) {
 1228        output.WriteRawTag(24);
 1229        output.WriteBool(Z);
 230      }
 1231      if (_unknownFields != null) {
 0232        _unknownFields.WriteTo(output);
 233      }
 234    #endif
 1235    }
 236
 237    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 238    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 239    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 240    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 241      if (HasX) {
 242        output.WriteRawTag(8);
 243        output.WriteBool(X);
 244      }
 245      if (HasY) {
 246        output.WriteRawTag(16);
 247        output.WriteBool(Y);
 248      }
 249      if (HasZ) {
 250        output.WriteRawTag(24);
 251        output.WriteBool(Z);
 252      }
 253      if (_unknownFields != null) {
 254        _unknownFields.WriteTo(ref output);
 255      }
 256    }
 257    #endif
 258
 259    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 260    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 261    public int CalculateSize() {
 1262      int size = 0;
 1263      if (HasX) {
 1264        size += 1 + 1;
 265      }
 1266      if (HasY) {
 1267        size += 1 + 1;
 268      }
 1269      if (HasZ) {
 1270        size += 1 + 1;
 271      }
 1272      if (_unknownFields != null) {
 0273        size += _unknownFields.CalculateSize();
 274      }
 1275      return size;
 276    }
 277
 278    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 279    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 280    public void MergeFrom(PBBillboard other) {
 0281      if (other == null) {
 0282        return;
 283      }
 0284      if (other.HasX) {
 0285        X = other.X;
 286      }
 0287      if (other.HasY) {
 0288        Y = other.Y;
 289      }
 0290      if (other.HasZ) {
 0291        Z = other.Z;
 292      }
 0293      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0294    }
 295
 296    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 297    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 298    public void MergeFrom(pb::CodedInputStream input) {
 299    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 300      input.ReadRawMessage(this);
 301    #else
 302      uint tag;
 4303      while ((tag = input.ReadTag()) != 0) {
 304        switch(tag) {
 305          default:
 0306            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0307            break;
 308          case 8: {
 1309            X = input.ReadBool();
 1310            break;
 311          }
 312          case 16: {
 1313            Y = input.ReadBool();
 1314            break;
 315          }
 316          case 24: {
 1317            Z = input.ReadBool();
 318            break;
 319          }
 320        }
 321      }
 322    #endif
 1323    }
 324
 325    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 326    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 327    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 328    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 329      uint tag;
 330      while ((tag = input.ReadTag()) != 0) {
 331        switch(tag) {
 332          default:
 333            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 334            break;
 335          case 8: {
 336            X = input.ReadBool();
 337            break;
 338          }
 339          case 16: {
 340            Y = input.ReadBool();
 341            break;
 342          }
 343          case 24: {
 344            Z = input.ReadBool();
 345            break;
 346          }
 347        }
 348      }
 349    }
 350    #endif
 351
 352  }
 353
 354  #endregion
 355
 356}
 357
 358#endregion Designer generated code