< Summary

Class:DCL.ECSComponents.PBPlaneShape
Assembly:DCL.ECSComponents.ProtobufData
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/PBFiles/PlaneShape.cs
Covered lines:16
Uncovered lines:88
Coverable lines:104
Total lines:388
Line coverage:15.3% (16 of 104)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
PBPlaneShape()0%110100%
get_Descriptor()0%2100%
PBPlaneShape(...)0%2100%
Clone()0%2100%
ClearWithCollisions()0%2100%
ClearIsPointerBlocker()0%2100%
ClearVisible()0%2100%
PBPlaneShape()0%110100%
Equals(...)0%110100%
Equals(...)0%29.37023.08%
GetHashCode()0%6.25063.64%
ToString()0%2100%
WriteTo(...)0%30500%
CalculateSize()0%30500%
MergeFrom(...)0%30500%
MergeFrom(...)0%72800%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/PBFiles/PlaneShape.cs

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: PlaneShape.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 PlaneShape.proto</summary>
 15  public static partial class PlaneShapeReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for PlaneShape.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static PlaneShapeReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "ChBQbGFuZVNoYXBlLnByb3RvEhBkZWNlbnRyYWxhbmQuZWNzIqcBCgxQQlBs",
 28            "YW5lU2hhcGUSHAoPd2l0aF9jb2xsaXNpb25zGAEgASgISACIAQESHwoSaXNf",
 29            "cG9pbnRlcl9ibG9ja2VyGAIgASgISAGIAQESFAoHdmlzaWJsZRgDIAEoCEgC",
 30            "iAEBEgsKA3V2cxgEIAMoAkISChBfd2l0aF9jb2xsaXNpb25zQhUKE19pc19w",
 31            "b2ludGVyX2Jsb2NrZXJCCgoIX3Zpc2libGVCFKoCEURDTC5FQ1NDb21wb25l",
 32            "bnRzYgZwcm90bzM="));
 33      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 34          new pbr::FileDescriptor[] { },
 35          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 36            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBPlaneShape), global::DCL.ECSComponents.PBPl
 37          }));
 38    }
 39    #endregion
 40
 41  }
 42  #region Messages
 43  public sealed partial class PBPlaneShape : pb::IMessage<PBPlaneShape>
 44  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 45      , pb::IBufferMessage
 46  #endif
 47  {
 148    private static readonly pb::MessageParser<PBPlaneShape> _parser = new pb::MessageParser<PBPlaneShape>(() => new PBPl
 49    private pb::UnknownFieldSet _unknownFields;
 50    private int _hasBits0;
 51    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 52    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 053    public static pb::MessageParser<PBPlaneShape> Parser { get { return _parser; } }
 54
 55    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 56    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 57    public static pbr::MessageDescriptor Descriptor {
 058      get { return global::DCL.ECSComponents.PlaneShapeReflection.Descriptor.MessageTypes[0]; }
 59    }
 60
 61    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 62    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 63    pbr::MessageDescriptor pb::IMessage.Descriptor {
 064      get { return Descriptor; }
 65    }
 66
 67    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 68    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 169    public PBPlaneShape() {
 70      OnConstruction();
 171    }
 72
 73    partial void OnConstruction();
 74
 75    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 76    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 077    public PBPlaneShape(PBPlaneShape other) : this() {
 078      _hasBits0 = other._hasBits0;
 079      withCollisions_ = other.withCollisions_;
 080      isPointerBlocker_ = other.isPointerBlocker_;
 081      visible_ = other.visible_;
 082      uvs_ = other.uvs_.Clone();
 083      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 084    }
 85
 86    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 87    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 88    public PBPlaneShape Clone() {
 089      return new PBPlaneShape(this);
 90    }
 91
 92    /// <summary>Field number for the "with_collisions" field.</summary>
 93    public const int WithCollisionsFieldNumber = 1;
 94    private bool withCollisions_;
 95    /// <summary>
 96    /// @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366
 97    /// </summary>
 98    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 99    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 100    public bool WithCollisions {
 0101      get { if ((_hasBits0 & 1) != 0) { return withCollisions_; } else { return false; } }
 102      set {
 0103        _hasBits0 |= 1;
 0104        withCollisions_ = value;
 0105      }
 106    }
 107    /// <summary>Gets whether the "with_collisions" field is set</summary>
 108    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 109    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 110    public bool HasWithCollisions {
 0111      get { return (_hasBits0 & 1) != 0; }
 112    }
 113    /// <summary>Clears the value of the "with_collisions" field</summary>
 114    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 115    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 116    public void ClearWithCollisions() {
 0117      _hasBits0 &= ~1;
 0118    }
 119
 120    /// <summary>Field number for the "is_pointer_blocker" field.</summary>
 121    public const int IsPointerBlockerFieldNumber = 2;
 122    private bool isPointerBlocker_;
 123    /// <summary>
 124    /// @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366
 125    /// </summary>
 126    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 127    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 128    public bool IsPointerBlocker {
 0129      get { if ((_hasBits0 & 2) != 0) { return isPointerBlocker_; } else { return false; } }
 130      set {
 0131        _hasBits0 |= 2;
 0132        isPointerBlocker_ = value;
 0133      }
 134    }
 135    /// <summary>Gets whether the "is_pointer_blocker" field is set</summary>
 136    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 137    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 138    public bool HasIsPointerBlocker {
 0139      get { return (_hasBits0 & 2) != 0; }
 140    }
 141    /// <summary>Clears the value of the "is_pointer_blocker" field</summary>
 142    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 143    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 144    public void ClearIsPointerBlocker() {
 0145      _hasBits0 &= ~2;
 0146    }
 147
 148    /// <summary>Field number for the "visible" field.</summary>
 149    public const int VisibleFieldNumber = 3;
 150    private bool visible_;
 151    /// <summary>
 152    /// @deprecated use HiddenComponent instead https://github.com/decentraland/sdk/issues/353
 153    /// </summary>
 154    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 155    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 156    public bool Visible {
 0157      get { if ((_hasBits0 & 4) != 0) { return visible_; } else { return false; } }
 158      set {
 0159        _hasBits0 |= 4;
 0160        visible_ = value;
 0161      }
 162    }
 163    /// <summary>Gets whether the "visible" field is set</summary>
 164    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 165    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 166    public bool HasVisible {
 0167      get { return (_hasBits0 & 4) != 0; }
 168    }
 169    /// <summary>Clears the value of the "visible" field</summary>
 170    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 171    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 172    public void ClearVisible() {
 0173      _hasBits0 &= ~4;
 0174    }
 175
 176    /// <summary>Field number for the "uvs" field.</summary>
 177    public const int UvsFieldNumber = 4;
 1178    private static readonly pb::FieldCodec<float> _repeated_uvs_codec
 179        = pb::FieldCodec.ForFloat(34);
 1180    private readonly pbc::RepeatedField<float> uvs_ = new pbc::RepeatedField<float>();
 181    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 182    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 183    public pbc::RepeatedField<float> Uvs {
 0184      get { return uvs_; }
 185    }
 186
 187    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 188    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 189    public override bool Equals(object other) {
 18190      return Equals(other as PBPlaneShape);
 191    }
 192
 193    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 194    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 195    public bool Equals(PBPlaneShape other) {
 18196      if (ReferenceEquals(other, null)) {
 0197        return false;
 198      }
 18199      if (ReferenceEquals(other, this)) {
 18200        return true;
 201      }
 0202      if (WithCollisions != other.WithCollisions) return false;
 0203      if (IsPointerBlocker != other.IsPointerBlocker) return false;
 0204      if (Visible != other.Visible) return false;
 0205      if(!uvs_.Equals(other.uvs_)) return false;
 0206      return Equals(_unknownFields, other._unknownFields);
 207    }
 208
 209    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 210    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 211    public override int GetHashCode() {
 41212      int hash = 1;
 41213      if (HasWithCollisions) hash ^= WithCollisions.GetHashCode();
 41214      if (HasIsPointerBlocker) hash ^= IsPointerBlocker.GetHashCode();
 41215      if (HasVisible) hash ^= Visible.GetHashCode();
 41216      hash ^= uvs_.GetHashCode();
 41217      if (_unknownFields != null) {
 0218        hash ^= _unknownFields.GetHashCode();
 219      }
 41220      return hash;
 221    }
 222
 223    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 224    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 225    public override string ToString() {
 0226      return pb::JsonFormatter.ToDiagnosticString(this);
 227    }
 228
 229    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 230    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 231    public void WriteTo(pb::CodedOutputStream output) {
 232    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 233      output.WriteRawMessage(this);
 234    #else
 0235      if (HasWithCollisions) {
 0236        output.WriteRawTag(8);
 0237        output.WriteBool(WithCollisions);
 238      }
 0239      if (HasIsPointerBlocker) {
 0240        output.WriteRawTag(16);
 0241        output.WriteBool(IsPointerBlocker);
 242      }
 0243      if (HasVisible) {
 0244        output.WriteRawTag(24);
 0245        output.WriteBool(Visible);
 246      }
 0247      uvs_.WriteTo(output, _repeated_uvs_codec);
 0248      if (_unknownFields != null) {
 0249        _unknownFields.WriteTo(output);
 250      }
 251    #endif
 0252    }
 253
 254    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 255    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 256    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 257    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 258      if (HasWithCollisions) {
 259        output.WriteRawTag(8);
 260        output.WriteBool(WithCollisions);
 261      }
 262      if (HasIsPointerBlocker) {
 263        output.WriteRawTag(16);
 264        output.WriteBool(IsPointerBlocker);
 265      }
 266      if (HasVisible) {
 267        output.WriteRawTag(24);
 268        output.WriteBool(Visible);
 269      }
 270      uvs_.WriteTo(ref output, _repeated_uvs_codec);
 271      if (_unknownFields != null) {
 272        _unknownFields.WriteTo(ref output);
 273      }
 274    }
 275    #endif
 276
 277    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 278    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 279    public int CalculateSize() {
 0280      int size = 0;
 0281      if (HasWithCollisions) {
 0282        size += 1 + 1;
 283      }
 0284      if (HasIsPointerBlocker) {
 0285        size += 1 + 1;
 286      }
 0287      if (HasVisible) {
 0288        size += 1 + 1;
 289      }
 0290      size += uvs_.CalculateSize(_repeated_uvs_codec);
 0291      if (_unknownFields != null) {
 0292        size += _unknownFields.CalculateSize();
 293      }
 0294      return size;
 295    }
 296
 297    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 298    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 299    public void MergeFrom(PBPlaneShape other) {
 0300      if (other == null) {
 0301        return;
 302      }
 0303      if (other.HasWithCollisions) {
 0304        WithCollisions = other.WithCollisions;
 305      }
 0306      if (other.HasIsPointerBlocker) {
 0307        IsPointerBlocker = other.IsPointerBlocker;
 308      }
 0309      if (other.HasVisible) {
 0310        Visible = other.Visible;
 311      }
 0312      uvs_.Add(other.uvs_);
 0313      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0314    }
 315
 316    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 317    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 318    public void MergeFrom(pb::CodedInputStream input) {
 319    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 320      input.ReadRawMessage(this);
 321    #else
 322      uint tag;
 0323      while ((tag = input.ReadTag()) != 0) {
 324        switch(tag) {
 325          default:
 0326            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0327            break;
 328          case 8: {
 0329            WithCollisions = input.ReadBool();
 0330            break;
 331          }
 332          case 16: {
 0333            IsPointerBlocker = input.ReadBool();
 0334            break;
 335          }
 336          case 24: {
 0337            Visible = input.ReadBool();
 0338            break;
 339          }
 340          case 34:
 341          case 37: {
 0342            uvs_.AddEntriesFrom(input, _repeated_uvs_codec);
 343            break;
 344          }
 345        }
 346      }
 347    #endif
 0348    }
 349
 350    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 351    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 352    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 353    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 354      uint tag;
 355      while ((tag = input.ReadTag()) != 0) {
 356        switch(tag) {
 357          default:
 358            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 359            break;
 360          case 8: {
 361            WithCollisions = input.ReadBool();
 362            break;
 363          }
 364          case 16: {
 365            IsPointerBlocker = input.ReadBool();
 366            break;
 367          }
 368          case 24: {
 369            Visible = input.ReadBool();
 370            break;
 371          }
 372          case 34:
 373          case 37: {
 374            uvs_.AddEntriesFrom(ref input, _repeated_uvs_codec);
 375            break;
 376          }
 377        }
 378      }
 379    }
 380    #endif
 381
 382  }
 383
 384  #endregion
 385
 386}
 387
 388#endregion Designer generated code