< 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:31
Uncovered lines:43
Coverable lines:74
Total lines:317
Line coverage:41.8% (31 of 74)
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%
ClearBillboardMode()0%2100%
ClearOppositeDirection()0%2100%
Equals(...)0%2100%
Equals(...)0%30500%
GetHashCode()0%20400%
ToString()0%2100%
WriteTo(...)0%4.024088.89%
CalculateSize()0%4.034087.5%
MergeFrom(...)0%20400%
MergeFrom(...)0%4.374071.43%

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: decentraland/sdk/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 decentraland/sdk/components/billboard.proto</summary>
 15  public static partial class BillboardReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for decentraland/sdk/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            "CitkZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvYmlsbGJvYXJkLnByb3Rv",
 28            "EhtkZWNlbnRyYWxhbmQuc2RrLmNvbXBvbmVudHMioQEKC1BCQmlsbGJvYXJk",
 29            "EkcKDmJpbGxib2FyZF9tb2RlGAEgASgOMiouZGVjZW50cmFsYW5kLnNkay5j",
 30            "b21wb25lbnRzLkJpbGxib2FyZE1vZGVIAIgBARIfChJvcHBvc2l0ZV9kaXJl",
 31            "Y3Rpb24YAiABKAhIAYgBAUIRCg9fYmlsbGJvYXJkX21vZGVCFQoTX29wcG9z",
 32            "aXRlX2RpcmVjdGlvbiouCg1CaWxsYm9hcmRNb2RlEg8KC0JNX0FMTF9BWEVT",
 33            "EAASDAoIQk1fWV9BWEUQAUIUqgIRRENMLkVDU0NvbXBvbmVudHNiBnByb3Rv",
 34            "Mw=="));
 35      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 36          new pbr::FileDescriptor[] { },
 37          new pbr::GeneratedClrTypeInfo(new[] {typeof(global::DCL.ECSComponents.BillboardMode), }, null, new pbr::Genera
 38            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBBillboard), global::DCL.ECSComponents.PBBil
 39          }));
 40    }
 41    #endregion
 42
 43  }
 44  #region Enums
 45  public enum BillboardMode {
 46    [pbr::OriginalName("BM_ALL_AXES")] BmAllAxes = 0,
 47    [pbr::OriginalName("BM_Y_AXE")] BmYAxe = 1,
 48  }
 49
 50  #endregion
 51
 52  #region Messages
 53  public sealed partial class PBBillboard : pb::IMessage<PBBillboard>
 54  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 55      , pb::IBufferMessage
 56  #endif
 57  {
 258    private static readonly pb::MessageParser<PBBillboard> _parser = new pb::MessageParser<PBBillboard>(() => new PBBill
 59    private pb::UnknownFieldSet _unknownFields;
 60    private int _hasBits0;
 61    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 62    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 063    public static pb::MessageParser<PBBillboard> Parser { get { return _parser; } }
 64
 65    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 66    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 67    public static pbr::MessageDescriptor Descriptor {
 068      get { return global::DCL.ECSComponents.BillboardReflection.Descriptor.MessageTypes[0]; }
 69    }
 70
 71    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 72    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 73    pbr::MessageDescriptor pb::IMessage.Descriptor {
 074      get { return Descriptor; }
 75    }
 76
 77    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 78    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 279    public PBBillboard() {
 80      OnConstruction();
 281    }
 82
 83    partial void OnConstruction();
 84
 85    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 86    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 087    public PBBillboard(PBBillboard other) : this() {
 088      _hasBits0 = other._hasBits0;
 089      billboardMode_ = other.billboardMode_;
 090      oppositeDirection_ = other.oppositeDirection_;
 091      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 092    }
 93
 94    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 95    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 96    public PBBillboard Clone() {
 097      return new PBBillboard(this);
 98    }
 99
 100    /// <summary>Field number for the "billboard_mode" field.</summary>
 101    public const int BillboardModeFieldNumber = 1;
 102    private global::DCL.ECSComponents.BillboardMode billboardMode_;
 103    /// <summary>
 104    /// default=BM_ALL_AXES
 105    /// </summary>
 106    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 107    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 108    public global::DCL.ECSComponents.BillboardMode BillboardMode {
 4109      get { if ((_hasBits0 & 1) != 0) { return billboardMode_; } else { return global::DCL.ECSComponents.BillboardMode.B
 110      set {
 3111        _hasBits0 |= 1;
 3112        billboardMode_ = value;
 3113      }
 114    }
 115    /// <summary>Gets whether the "billboard_mode" field is set</summary>
 116    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 117    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 118    public bool HasBillboardMode {
 0119      get { return (_hasBits0 & 1) != 0; }
 120    }
 121    /// <summary>Clears the value of the "billboard_mode" field</summary>
 122    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 123    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 124    public void ClearBillboardMode() {
 0125      _hasBits0 &= ~1;
 0126    }
 127
 128    /// <summary>Field number for the "opposite_direction" field.</summary>
 129    public const int OppositeDirectionFieldNumber = 2;
 130    private bool oppositeDirection_;
 131    /// <summary>
 132    /// default=false
 133    /// </summary>
 134    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 135    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 136    public bool OppositeDirection {
 4137      get { if ((_hasBits0 & 2) != 0) { return oppositeDirection_; } else { return false; } }
 138      set {
 3139        _hasBits0 |= 2;
 3140        oppositeDirection_ = value;
 3141      }
 142    }
 143    /// <summary>Gets whether the "opposite_direction" field is set</summary>
 144    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 145    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 146    public bool HasOppositeDirection {
 0147      get { return (_hasBits0 & 2) != 0; }
 148    }
 149    /// <summary>Clears the value of the "opposite_direction" field</summary>
 150    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 151    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 152    public void ClearOppositeDirection() {
 0153      _hasBits0 &= ~2;
 0154    }
 155
 156    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 157    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 158    public override bool Equals(object other) {
 0159      return Equals(other as PBBillboard);
 160    }
 161
 162    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 163    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 164    public bool Equals(PBBillboard other) {
 0165      if (ReferenceEquals(other, null)) {
 0166        return false;
 167      }
 0168      if (ReferenceEquals(other, this)) {
 0169        return true;
 170      }
 0171      if (BillboardMode != other.BillboardMode) return false;
 0172      if (OppositeDirection != other.OppositeDirection) return false;
 0173      return Equals(_unknownFields, other._unknownFields);
 174    }
 175
 176    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 177    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 178    public override int GetHashCode() {
 0179      int hash = 1;
 0180      if (HasBillboardMode) hash ^= BillboardMode.GetHashCode();
 0181      if (HasOppositeDirection) hash ^= OppositeDirection.GetHashCode();
 0182      if (_unknownFields != null) {
 0183        hash ^= _unknownFields.GetHashCode();
 184      }
 0185      return hash;
 186    }
 187
 188    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 189    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 190    public override string ToString() {
 0191      return pb::JsonFormatter.ToDiagnosticString(this);
 192    }
 193
 194    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 195    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 196    public void WriteTo(pb::CodedOutputStream output) {
 197    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 198      output.WriteRawMessage(this);
 199    #else
 1200      if (HasBillboardMode) {
 1201        output.WriteRawTag(8);
 1202        output.WriteEnum((int) BillboardMode);
 203      }
 1204      if (HasOppositeDirection) {
 1205        output.WriteRawTag(16);
 1206        output.WriteBool(OppositeDirection);
 207      }
 1208      if (_unknownFields != null) {
 0209        _unknownFields.WriteTo(output);
 210      }
 211    #endif
 1212    }
 213
 214    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 215    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 216    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 217    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 218      if (HasBillboardMode) {
 219        output.WriteRawTag(8);
 220        output.WriteEnum((int) BillboardMode);
 221      }
 222      if (HasOppositeDirection) {
 223        output.WriteRawTag(16);
 224        output.WriteBool(OppositeDirection);
 225      }
 226      if (_unknownFields != null) {
 227        _unknownFields.WriteTo(ref output);
 228      }
 229    }
 230    #endif
 231
 232    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 233    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 234    public int CalculateSize() {
 1235      int size = 0;
 1236      if (HasBillboardMode) {
 1237        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) BillboardMode);
 238      }
 1239      if (HasOppositeDirection) {
 1240        size += 1 + 1;
 241      }
 1242      if (_unknownFields != null) {
 0243        size += _unknownFields.CalculateSize();
 244      }
 1245      return size;
 246    }
 247
 248    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 249    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 250    public void MergeFrom(PBBillboard other) {
 0251      if (other == null) {
 0252        return;
 253      }
 0254      if (other.HasBillboardMode) {
 0255        BillboardMode = other.BillboardMode;
 256      }
 0257      if (other.HasOppositeDirection) {
 0258        OppositeDirection = other.OppositeDirection;
 259      }
 0260      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0261    }
 262
 263    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 264    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 265    public void MergeFrom(pb::CodedInputStream input) {
 266    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 267      input.ReadRawMessage(this);
 268    #else
 269      uint tag;
 3270      while ((tag = input.ReadTag()) != 0) {
 271        switch(tag) {
 272          default:
 0273            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0274            break;
 275          case 8: {
 1276            BillboardMode = (global::DCL.ECSComponents.BillboardMode) input.ReadEnum();
 1277            break;
 278          }
 279          case 16: {
 1280            OppositeDirection = input.ReadBool();
 281            break;
 282          }
 283        }
 284      }
 285    #endif
 1286    }
 287
 288    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 289    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 290    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 291    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 292      uint tag;
 293      while ((tag = input.ReadTag()) != 0) {
 294        switch(tag) {
 295          default:
 296            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 297            break;
 298          case 8: {
 299            BillboardMode = (global::DCL.ECSComponents.BillboardMode) input.ReadEnum();
 300            break;
 301          }
 302          case 16: {
 303            OppositeDirection = input.ReadBool();
 304            break;
 305          }
 306        }
 307      }
 308    }
 309    #endif
 310
 311  }
 312
 313  #endregion
 314
 315}
 316
 317#endregion Designer generated code