< Summary

Class:DCL.ECSComponents.BillboardReflection
Assembly:Decentraland.Protocol.GeneratedCode
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/Billboard.gen.cs
Covered lines:0
Uncovered lines:4
Coverable lines:4
Total lines:266
Line coverage:0% (0 of 4)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
BillboardReflection()0%2100%

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 {
 020      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static BillboardReflection() {
 025      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "CitkZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvYmlsbGJvYXJkLnByb3Rv",
 28            "EhtkZWNlbnRyYWxhbmQuc2RrLmNvbXBvbmVudHMiaQoLUEJCaWxsYm9hcmQS",
 29            "RwoOYmlsbGJvYXJkX21vZGUYASABKA4yKi5kZWNlbnRyYWxhbmQuc2RrLmNv",
 30            "bXBvbmVudHMuQmlsbGJvYXJkTW9kZUgAiAEBQhEKD19iaWxsYm9hcmRfbW9k",
 31            "ZSpGCg1CaWxsYm9hcmRNb2RlEgsKB0JNX05PTkUQABIICgRCTV9YEAESCAoE",
 32            "Qk1fWRACEggKBEJNX1oQBBIKCgZCTV9BTEwQB0IUqgIRRENMLkVDU0NvbXBv",
 33            "bmVudHNiBnByb3RvMw=="));
 034      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          }));
 039    }
 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  {
 60    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)]
 65    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 {
 70      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 {
 76      get { return Descriptor; }
 77    }
 78
 79    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 80    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 81    public PBBillboard() {
 82      OnConstruction();
 83    }
 84
 85    partial void OnConstruction();
 86
 87    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 88    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 89    public PBBillboard(PBBillboard other) : this() {
 90      _hasBits0 = other._hasBits0;
 91      billboardMode_ = other.billboardMode_;
 92      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 93    }
 94
 95    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 96    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 97    public PBBillboard Clone() {
 98      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 {
 110      get { if ((_hasBits0 & 1) != 0) { return billboardMode_; } else { return global::DCL.ECSComponents.BillboardMode.B
 111      set {
 112        _hasBits0 |= 1;
 113        billboardMode_ = value;
 114      }
 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 {
 120      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() {
 126      _hasBits0 &= ~1;
 127    }
 128
 129    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 130    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 131    public override bool Equals(object other) {
 132      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) {
 138      if (ReferenceEquals(other, null)) {
 139        return false;
 140      }
 141      if (ReferenceEquals(other, this)) {
 142        return true;
 143      }
 144      if (BillboardMode != other.BillboardMode) return false;
 145      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() {
 151      int hash = 1;
 152      if (HasBillboardMode) hash ^= BillboardMode.GetHashCode();
 153      if (_unknownFields != null) {
 154        hash ^= _unknownFields.GetHashCode();
 155      }
 156      return hash;
 157    }
 158
 159    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 160    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 161    public override string ToString() {
 162      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
 171      if (HasBillboardMode) {
 172        output.WriteRawTag(8);
 173        output.WriteEnum((int) BillboardMode);
 174      }
 175      if (_unknownFields != null) {
 176        _unknownFields.WriteTo(output);
 177      }
 178    #endif
 179    }
 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() {
 198      int size = 0;
 199      if (HasBillboardMode) {
 200        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) BillboardMode);
 201      }
 202      if (_unknownFields != null) {
 203        size += _unknownFields.CalculateSize();
 204      }
 205      return size;
 206    }
 207
 208    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 209    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 210    public void MergeFrom(PBBillboard other) {
 211      if (other == null) {
 212        return;
 213      }
 214      if (other.HasBillboardMode) {
 215        BillboardMode = other.BillboardMode;
 216      }
 217      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 218    }
 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;
 227      while ((tag = input.ReadTag()) != 0) {
 228        switch(tag) {
 229          default:
 230            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 231            break;
 232          case 8: {
 233            BillboardMode = (global::DCL.ECSComponents.BillboardMode) input.ReadEnum();
 234            break;
 235          }
 236        }
 237      }
 238    #endif
 239    }
 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

Methods/Properties

Descriptor()
BillboardReflection()