< Summary

Class:DCL.ECSComponents.PBBillboard
Assembly:Decentraland.Protocol.GeneratedCode
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/Billboard.gen.cs
Covered lines:22
Uncovered lines:33
Coverable lines:55
Total lines:266
Line coverage:40% (22 of 55)
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%
Equals(...)0%2100%
Equals(...)0%20400%
GetHashCode()0%12300%
ToString()0%2100%
WriteTo(...)0%3.043083.33%
CalculateSize()0%3.043083.33%
MergeFrom(...)0%12300%
MergeFrom(...)0%3.583060%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/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            "EhtkZWNlbnRyYWxhbmQuc2RrLmNvbXBvbmVudHMiaQoLUEJCaWxsYm9hcmQS",
 29            "RwoOYmlsbGJvYXJkX21vZGUYASABKA4yKi5kZWNlbnRyYWxhbmQuc2RrLmNv",
 30            "bXBvbmVudHMuQmlsbGJvYXJkTW9kZUgAiAEBQhEKD19iaWxsYm9hcmRfbW9k",
 31            "ZSpGCg1CaWxsYm9hcmRNb2RlEgsKB0JNX05PTkUQABIICgRCTV9YEAESCAoE",
 32            "Qk1fWRACEggKBEJNX1oQBBIKCgZCTV9BTEwQB0IUqgIRRENMLkVDU0NvbXBv",
 33            "bmVudHNiBnByb3RvMw=="));
 34      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 35          new pbr::FileDescriptor[] { },
 36          new pbr::GeneratedClrTypeInfo(new[] {typeof(global::DCL.ECSComponents.BillboardMode), }, null, new pbr::Genera
 37            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBBillboard), global::DCL.ECSComponents.PBBil
 38          }));
 39    }
 40    #endregion
 41
 42  }
 43  #region Enums
 44  public enum BillboardMode {
 45    [pbr::OriginalName("BM_NONE")] BmNone = 0,
 46    [pbr::OriginalName("BM_X")] BmX = 1,
 47    [pbr::OriginalName("BM_Y")] BmY = 2,
 48    [pbr::OriginalName("BM_Z")] BmZ = 4,
 49    [pbr::OriginalName("BM_ALL")] BmAll = 7,
 50  }
 51
 52  #endregion
 53
 54  #region Messages
 55  public sealed partial class PBBillboard : pb::IMessage<PBBillboard>
 56  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 57      , pb::IBufferMessage
 58  #endif
 59  {
 260    private static readonly pb::MessageParser<PBBillboard> _parser = new pb::MessageParser<PBBillboard>(() => new PBBill
 61    private pb::UnknownFieldSet _unknownFields;
 62    private int _hasBits0;
 63    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 64    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 165    public static pb::MessageParser<PBBillboard> Parser { get { return _parser; } }
 66
 67    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 68    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 69    public static pbr::MessageDescriptor Descriptor {
 070      get { return global::DCL.ECSComponents.BillboardReflection.Descriptor.MessageTypes[0]; }
 71    }
 72
 73    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 74    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 75    pbr::MessageDescriptor pb::IMessage.Descriptor {
 076      get { return Descriptor; }
 77    }
 78
 79    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 80    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 381    public PBBillboard() {
 82      OnConstruction();
 383    }
 84
 85    partial void OnConstruction();
 86
 87    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 88    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 089    public PBBillboard(PBBillboard other) : this() {
 090      _hasBits0 = other._hasBits0;
 091      billboardMode_ = other.billboardMode_;
 092      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 093    }
 94
 95    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 96    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 97    public PBBillboard Clone() {
 098      return new PBBillboard(this);
 99    }
 100
 101    /// <summary>Field number for the "billboard_mode" field.</summary>
 102    public const int BillboardModeFieldNumber = 1;
 103    private global::DCL.ECSComponents.BillboardMode billboardMode_;
 104    /// <summary>
 105    /// default=BM_ALL
 106    /// </summary>
 107    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 108    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 109    public global::DCL.ECSComponents.BillboardMode BillboardMode {
 10110      get { if ((_hasBits0 & 1) != 0) { return billboardMode_; } else { return global::DCL.ECSComponents.BillboardMode.B
 111      set {
 3112        _hasBits0 |= 1;
 3113        billboardMode_ = value;
 3114      }
 115    }
 116    /// <summary>Gets whether the "billboard_mode" field is set</summary>
 117    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 118    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 119    public bool HasBillboardMode {
 2120      get { return (_hasBits0 & 1) != 0; }
 121    }
 122    /// <summary>Clears the value of the "billboard_mode" field</summary>
 123    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 124    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 125    public void ClearBillboardMode() {
 0126      _hasBits0 &= ~1;
 0127    }
 128
 129    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 130    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 131    public override bool Equals(object other) {
 0132      return Equals(other as PBBillboard);
 133    }
 134
 135    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 136    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 137    public bool Equals(PBBillboard other) {
 0138      if (ReferenceEquals(other, null)) {
 0139        return false;
 140      }
 0141      if (ReferenceEquals(other, this)) {
 0142        return true;
 143      }
 0144      if (BillboardMode != other.BillboardMode) return false;
 0145      return Equals(_unknownFields, other._unknownFields);
 146    }
 147
 148    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 149    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 150    public override int GetHashCode() {
 0151      int hash = 1;
 0152      if (HasBillboardMode) hash ^= BillboardMode.GetHashCode();
 0153      if (_unknownFields != null) {
 0154        hash ^= _unknownFields.GetHashCode();
 155      }
 0156      return hash;
 157    }
 158
 159    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 160    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 161    public override string ToString() {
 0162      return pb::JsonFormatter.ToDiagnosticString(this);
 163    }
 164
 165    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 166    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 167    public void WriteTo(pb::CodedOutputStream output) {
 168    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 169      output.WriteRawMessage(this);
 170    #else
 1171      if (HasBillboardMode) {
 1172        output.WriteRawTag(8);
 1173        output.WriteEnum((int) BillboardMode);
 174      }
 1175      if (_unknownFields != null) {
 0176        _unknownFields.WriteTo(output);
 177      }
 178    #endif
 1179    }
 180
 181    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 182    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 183    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 184    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 185      if (HasBillboardMode) {
 186        output.WriteRawTag(8);
 187        output.WriteEnum((int) BillboardMode);
 188      }
 189      if (_unknownFields != null) {
 190        _unknownFields.WriteTo(ref output);
 191      }
 192    }
 193    #endif
 194
 195    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 196    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 197    public int CalculateSize() {
 1198      int size = 0;
 1199      if (HasBillboardMode) {
 1200        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) BillboardMode);
 201      }
 1202      if (_unknownFields != null) {
 0203        size += _unknownFields.CalculateSize();
 204      }
 1205      return size;
 206    }
 207
 208    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 209    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 210    public void MergeFrom(PBBillboard other) {
 0211      if (other == null) {
 0212        return;
 213      }
 0214      if (other.HasBillboardMode) {
 0215        BillboardMode = other.BillboardMode;
 216      }
 0217      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0218    }
 219
 220    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 221    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 222    public void MergeFrom(pb::CodedInputStream input) {
 223    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 224      input.ReadRawMessage(this);
 225    #else
 226      uint tag;
 2227      while ((tag = input.ReadTag()) != 0) {
 228        switch(tag) {
 229          default:
 0230            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0231            break;
 232          case 8: {
 1233            BillboardMode = (global::DCL.ECSComponents.BillboardMode) input.ReadEnum();
 234            break;
 235          }
 236        }
 237      }
 238    #endif
 1239    }
 240
 241    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 242    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 243    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 244    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 245      uint tag;
 246      while ((tag = input.ReadTag()) != 0) {
 247        switch(tag) {
 248          default:
 249            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 250            break;
 251          case 8: {
 252            BillboardMode = (global::DCL.ECSComponents.BillboardMode) input.ReadEnum();
 253            break;
 254          }
 255        }
 256      }
 257    }
 258    #endif
 259
 260  }
 261
 262  #endregion
 263
 264}
 265
 266#endregion Designer generated code