< 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:281
Line coverage:40% (22 of 55)
Covered branches:0
Total branches:0
Covered methods:9
Total methods:19
Method coverage:47.3% (9 of 19)

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  /// <summary>
 45  /// BillboardMode indicates one or more axis for automatic rotation, in OR-able bit flag form.
 46  /// Only the values below and the (BM_X | BM_Y) combination are valid.
 47  /// </summary>
 48  public enum BillboardMode {
 49    [pbr::OriginalName("BM_NONE")] BmNone = 0,
 50    [pbr::OriginalName("BM_X")] BmX = 1,
 51    [pbr::OriginalName("BM_Y")] BmY = 2,
 52    [pbr::OriginalName("BM_Z")] BmZ = 4,
 53    /// <summary>
 54    /// bitwise combination BM_X | BM_Y | BM_Z
 55    /// </summary>
 56    [pbr::OriginalName("BM_ALL")] BmAll = 7,
 57  }
 58
 59  #endregion
 60
 61  #region Messages
 62  /// <summary>
 63  /// The Billboard component makes an Entity automatically reorient its rotation to face the camera.
 64  /// As the name indicates, it’s used to display in-game billboards and frequently combined with
 65  /// the TextShape component.
 66  ///
 67  /// Billboard only affects the Entity's rotation. Its scale and position are still determined by its
 68  /// Transform.
 69  /// </summary>
 70  public sealed partial class PBBillboard : pb::IMessage<PBBillboard>
 71  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 72      , pb::IBufferMessage
 73  #endif
 74  {
 275    private static readonly pb::MessageParser<PBBillboard> _parser = new pb::MessageParser<PBBillboard>(() => new PBBill
 76    private pb::UnknownFieldSet _unknownFields;
 77    private int _hasBits0;
 78    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 79    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 180    public static pb::MessageParser<PBBillboard> Parser { get { return _parser; } }
 81
 82    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 83    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 84    public static pbr::MessageDescriptor Descriptor {
 085      get { return global::DCL.ECSComponents.BillboardReflection.Descriptor.MessageTypes[0]; }
 86    }
 87
 88    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 89    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 90    pbr::MessageDescriptor pb::IMessage.Descriptor {
 091      get { return Descriptor; }
 92    }
 93
 94    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 95    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 396    public PBBillboard() {
 97      OnConstruction();
 398    }
 99
 100    partial void OnConstruction();
 101
 102    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 103    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0104    public PBBillboard(PBBillboard other) : this() {
 0105      _hasBits0 = other._hasBits0;
 0106      billboardMode_ = other.billboardMode_;
 0107      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 0108    }
 109
 110    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 111    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 112    public PBBillboard Clone() {
 0113      return new PBBillboard(this);
 114    }
 115
 116    /// <summary>Field number for the "billboard_mode" field.</summary>
 117    public const int BillboardModeFieldNumber = 1;
 118    private global::DCL.ECSComponents.BillboardMode billboardMode_;
 119    /// <summary>
 120    /// the BillboardMode (default: BM_ALL)
 121    /// </summary>
 122    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 123    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 124    public global::DCL.ECSComponents.BillboardMode BillboardMode {
 10125      get { if ((_hasBits0 & 1) != 0) { return billboardMode_; } else { return global::DCL.ECSComponents.BillboardMode.B
 126      set {
 3127        _hasBits0 |= 1;
 3128        billboardMode_ = value;
 3129      }
 130    }
 131    /// <summary>Gets whether the "billboard_mode" field is set</summary>
 132    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 133    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 134    public bool HasBillboardMode {
 3135      get { return (_hasBits0 & 1) != 0; }
 136    }
 137    /// <summary>Clears the value of the "billboard_mode" field</summary>
 138    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 139    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 140    public void ClearBillboardMode() {
 0141      _hasBits0 &= ~1;
 0142    }
 143
 144    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 145    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 146    public override bool Equals(object other) {
 0147      return Equals(other as PBBillboard);
 148    }
 149
 150    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 151    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 152    public bool Equals(PBBillboard other) {
 0153      if (ReferenceEquals(other, null)) {
 0154        return false;
 155      }
 0156      if (ReferenceEquals(other, this)) {
 0157        return true;
 158      }
 0159      if (BillboardMode != other.BillboardMode) return false;
 0160      return Equals(_unknownFields, other._unknownFields);
 161    }
 162
 163    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 164    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 165    public override int GetHashCode() {
 0166      int hash = 1;
 0167      if (HasBillboardMode) hash ^= BillboardMode.GetHashCode();
 0168      if (_unknownFields != null) {
 0169        hash ^= _unknownFields.GetHashCode();
 170      }
 0171      return hash;
 172    }
 173
 174    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 175    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 176    public override string ToString() {
 0177      return pb::JsonFormatter.ToDiagnosticString(this);
 178    }
 179
 180    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 181    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 182    public void WriteTo(pb::CodedOutputStream output) {
 183    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 184      output.WriteRawMessage(this);
 185    #else
 1186      if (HasBillboardMode) {
 1187        output.WriteRawTag(8);
 1188        output.WriteEnum((int) BillboardMode);
 189      }
 1190      if (_unknownFields != null) {
 0191        _unknownFields.WriteTo(output);
 192      }
 193    #endif
 1194    }
 195
 196    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 197    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 198    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 199    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 200      if (HasBillboardMode) {
 201        output.WriteRawTag(8);
 202        output.WriteEnum((int) BillboardMode);
 203      }
 204      if (_unknownFields != null) {
 205        _unknownFields.WriteTo(ref output);
 206      }
 207    }
 208    #endif
 209
 210    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 211    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 212    public int CalculateSize() {
 1213      int size = 0;
 1214      if (HasBillboardMode) {
 1215        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) BillboardMode);
 216      }
 1217      if (_unknownFields != null) {
 0218        size += _unknownFields.CalculateSize();
 219      }
 1220      return size;
 221    }
 222
 223    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 224    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 225    public void MergeFrom(PBBillboard other) {
 0226      if (other == null) {
 0227        return;
 228      }
 0229      if (other.HasBillboardMode) {
 0230        BillboardMode = other.BillboardMode;
 231      }
 0232      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0233    }
 234
 235    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 236    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 237    public void MergeFrom(pb::CodedInputStream input) {
 238    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 239      input.ReadRawMessage(this);
 240    #else
 241      uint tag;
 2242      while ((tag = input.ReadTag()) != 0) {
 243        switch(tag) {
 244          default:
 0245            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0246            break;
 247          case 8: {
 1248            BillboardMode = (global::DCL.ECSComponents.BillboardMode) input.ReadEnum();
 249            break;
 250          }
 251        }
 252      }
 253    #endif
 1254    }
 255
 256    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 257    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 258    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 259    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 260      uint tag;
 261      while ((tag = input.ReadTag()) != 0) {
 262        switch(tag) {
 263          default:
 264            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 265            break;
 266          case 8: {
 267            BillboardMode = (global::DCL.ECSComponents.BillboardMode) input.ReadEnum();
 268            break;
 269          }
 270        }
 271      }
 272    }
 273    #endif
 274
 275  }
 276
 277  #endregion
 278
 279}
 280
 281#endregion Designer generated code