< Summary

Class:DCL.ECSComponents.BillboardReflection
Assembly:DCL.ECSComponents.ProtobufData
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/Billboard.gen.cs
Covered lines:0
Uncovered lines:4
Coverable lines:4
Total lines:317
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/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 {
 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            "EhtkZWNlbnRyYWxhbmQuc2RrLmNvbXBvbmVudHMioQEKC1BCQmlsbGJvYXJk",
 29            "EkcKDmJpbGxib2FyZF9tb2RlGAEgASgOMiouZGVjZW50cmFsYW5kLnNkay5j",
 30            "b21wb25lbnRzLkJpbGxib2FyZE1vZGVIAIgBARIfChJvcHBvc2l0ZV9kaXJl",
 31            "Y3Rpb24YAiABKAhIAYgBAUIRCg9fYmlsbGJvYXJkX21vZGVCFQoTX29wcG9z",
 32            "aXRlX2RpcmVjdGlvbiouCg1CaWxsYm9hcmRNb2RlEg8KC0JNX0FMTF9BWEVT",
 33            "EAASDAoIQk1fWV9BWEUQAUIUqgIRRENMLkVDU0NvbXBvbmVudHNiBnByb3Rv",
 34            "Mw=="));
 035      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          }));
 040    }
 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  {
 58    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)]
 63    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 {
 68      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 {
 74      get { return Descriptor; }
 75    }
 76
 77    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 78    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 79    public PBBillboard() {
 80      OnConstruction();
 81    }
 82
 83    partial void OnConstruction();
 84
 85    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 86    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 87    public PBBillboard(PBBillboard other) : this() {
 88      _hasBits0 = other._hasBits0;
 89      billboardMode_ = other.billboardMode_;
 90      oppositeDirection_ = other.oppositeDirection_;
 91      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 92    }
 93
 94    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 95    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 96    public PBBillboard Clone() {
 97      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 {
 109      get { if ((_hasBits0 & 1) != 0) { return billboardMode_; } else { return global::DCL.ECSComponents.BillboardMode.B
 110      set {
 111        _hasBits0 |= 1;
 112        billboardMode_ = value;
 113      }
 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 {
 119      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() {
 125      _hasBits0 &= ~1;
 126    }
 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 {
 137      get { if ((_hasBits0 & 2) != 0) { return oppositeDirection_; } else { return false; } }
 138      set {
 139        _hasBits0 |= 2;
 140        oppositeDirection_ = value;
 141      }
 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 {
 147      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() {
 153      _hasBits0 &= ~2;
 154    }
 155
 156    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 157    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 158    public override bool Equals(object other) {
 159      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) {
 165      if (ReferenceEquals(other, null)) {
 166        return false;
 167      }
 168      if (ReferenceEquals(other, this)) {
 169        return true;
 170      }
 171      if (BillboardMode != other.BillboardMode) return false;
 172      if (OppositeDirection != other.OppositeDirection) return false;
 173      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() {
 179      int hash = 1;
 180      if (HasBillboardMode) hash ^= BillboardMode.GetHashCode();
 181      if (HasOppositeDirection) hash ^= OppositeDirection.GetHashCode();
 182      if (_unknownFields != null) {
 183        hash ^= _unknownFields.GetHashCode();
 184      }
 185      return hash;
 186    }
 187
 188    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 189    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 190    public override string ToString() {
 191      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
 200      if (HasBillboardMode) {
 201        output.WriteRawTag(8);
 202        output.WriteEnum((int) BillboardMode);
 203      }
 204      if (HasOppositeDirection) {
 205        output.WriteRawTag(16);
 206        output.WriteBool(OppositeDirection);
 207      }
 208      if (_unknownFields != null) {
 209        _unknownFields.WriteTo(output);
 210      }
 211    #endif
 212    }
 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() {
 235      int size = 0;
 236      if (HasBillboardMode) {
 237        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) BillboardMode);
 238      }
 239      if (HasOppositeDirection) {
 240        size += 1 + 1;
 241      }
 242      if (_unknownFields != null) {
 243        size += _unknownFields.CalculateSize();
 244      }
 245      return size;
 246    }
 247
 248    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 249    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 250    public void MergeFrom(PBBillboard other) {
 251      if (other == null) {
 252        return;
 253      }
 254      if (other.HasBillboardMode) {
 255        BillboardMode = other.BillboardMode;
 256      }
 257      if (other.HasOppositeDirection) {
 258        OppositeDirection = other.OppositeDirection;
 259      }
 260      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 261    }
 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;
 270      while ((tag = input.ReadTag()) != 0) {
 271        switch(tag) {
 272          default:
 273            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 274            break;
 275          case 8: {
 276            BillboardMode = (global::DCL.ECSComponents.BillboardMode) input.ReadEnum();
 277            break;
 278          }
 279          case 16: {
 280            OppositeDirection = input.ReadBool();
 281            break;
 282          }
 283        }
 284      }
 285    #endif
 286    }
 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

Methods/Properties

Descriptor()
BillboardReflection()