< Summary

Class:DCL.ECSComponents.PBCylinderShape
Assembly:DCL.ECSComponents.ProtobufData
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/PBFiles/CylinderShape.cs
Covered lines:60
Uncovered lines:71
Coverable lines:131
Total lines:467
Line coverage:45.8% (60 of 131)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
PBCylinderShape()0%110100%
get_Descriptor()0%2100%
PBCylinderShape()0%110100%
PBCylinderShape(...)0%2100%
Clone()0%2100%
ClearWithCollisions()0%2100%
ClearIsPointerBlocker()0%2100%
ClearVisible()0%2100%
ClearRadiusTop()0%2100%
ClearRadiusBottom()0%2100%
Equals(...)0%110100%
Equals(...)0%40.778020%
GetHashCode()0%10.867057.14%
ToString()0%2100%
WriteTo(...)0%7.017094.44%
CalculateSize()0%56700%
MergeFrom(...)0%56700%
MergeFrom(...)0%8.238084.62%

File(s)

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

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: CylinderShape.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 CylinderShape.proto</summary>
 15  public static partial class CylinderShapeReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for CylinderShape.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static CylinderShapeReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "ChNDeWxpbmRlclNoYXBlLnByb3RvEhBkZWNlbnRyYWxhbmQuZWNzIvMBCg9Q",
 28            "QkN5bGluZGVyU2hhcGUSHAoPd2l0aF9jb2xsaXNpb25zGAEgASgISACIAQES",
 29            "HwoSaXNfcG9pbnRlcl9ibG9ja2VyGAIgASgISAGIAQESFAoHdmlzaWJsZRgD",
 30            "IAEoCEgCiAEBEhcKCnJhZGl1c190b3AYBCABKAJIA4gBARIaCg1yYWRpdXNf",
 31            "Ym90dG9tGAUgASgCSASIAQFCEgoQX3dpdGhfY29sbGlzaW9uc0IVChNfaXNf",
 32            "cG9pbnRlcl9ibG9ja2VyQgoKCF92aXNpYmxlQg0KC19yYWRpdXNfdG9wQhAK",
 33            "Dl9yYWRpdXNfYm90dG9tQhSqAhFEQ0wuRUNTQ29tcG9uZW50c2IGcHJvdG8z"));
 34      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 35          new pbr::FileDescriptor[] { },
 36          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 37            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBCylinderShape), global::DCL.ECSComponents.P
 38          }));
 39    }
 40    #endregion
 41
 42  }
 43  #region Messages
 44  public sealed partial class PBCylinderShape : pb::IMessage<PBCylinderShape>
 45  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 46      , pb::IBufferMessage
 47  #endif
 48  {
 449    private static readonly pb::MessageParser<PBCylinderShape> _parser = new pb::MessageParser<PBCylinderShape>(() => ne
 50    private pb::UnknownFieldSet _unknownFields;
 51    private int _hasBits0;
 52    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 53    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 054    public static pb::MessageParser<PBCylinderShape> Parser { get { return _parser; } }
 55
 56    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 57    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 58    public static pbr::MessageDescriptor Descriptor {
 059      get { return global::DCL.ECSComponents.CylinderShapeReflection.Descriptor.MessageTypes[0]; }
 60    }
 61
 62    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 63    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 64    pbr::MessageDescriptor pb::IMessage.Descriptor {
 065      get { return Descriptor; }
 66    }
 67
 68    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 69    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 170    public PBCylinderShape() {
 71      OnConstruction();
 172    }
 73
 74    partial void OnConstruction();
 75
 76    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 77    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 078    public PBCylinderShape(PBCylinderShape other) : this() {
 079      _hasBits0 = other._hasBits0;
 080      withCollisions_ = other.withCollisions_;
 081      isPointerBlocker_ = other.isPointerBlocker_;
 082      visible_ = other.visible_;
 083      radiusTop_ = other.radiusTop_;
 084      radiusBottom_ = other.radiusBottom_;
 085      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 086    }
 87
 88    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 89    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 90    public PBCylinderShape Clone() {
 091      return new PBCylinderShape(this);
 92    }
 93
 94    /// <summary>Field number for the "with_collisions" field.</summary>
 95    public const int WithCollisionsFieldNumber = 1;
 96    private bool withCollisions_;
 97    /// <summary>
 98    /// @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366
 99    /// </summary>
 100    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 101    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 102    public bool WithCollisions {
 0103      get { if ((_hasBits0 & 1) != 0) { return withCollisions_; } else { return false; } }
 104      set {
 6105        _hasBits0 |= 1;
 6106        withCollisions_ = value;
 6107      }
 108    }
 109    /// <summary>Gets whether the "with_collisions" field is set</summary>
 110    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 111    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 112    public bool HasWithCollisions {
 0113      get { return (_hasBits0 & 1) != 0; }
 114    }
 115    /// <summary>Clears the value of the "with_collisions" field</summary>
 116    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 117    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 118    public void ClearWithCollisions() {
 0119      _hasBits0 &= ~1;
 0120    }
 121
 122    /// <summary>Field number for the "is_pointer_blocker" field.</summary>
 123    public const int IsPointerBlockerFieldNumber = 2;
 124    private bool isPointerBlocker_;
 125    /// <summary>
 126    /// @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366
 127    /// </summary>
 128    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 129    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 130    public bool IsPointerBlocker {
 0131      get { if ((_hasBits0 & 2) != 0) { return isPointerBlocker_; } else { return false; } }
 132      set {
 6133        _hasBits0 |= 2;
 6134        isPointerBlocker_ = value;
 6135      }
 136    }
 137    /// <summary>Gets whether the "is_pointer_blocker" field is set</summary>
 138    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 139    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 140    public bool HasIsPointerBlocker {
 0141      get { return (_hasBits0 & 2) != 0; }
 142    }
 143    /// <summary>Clears the value of the "is_pointer_blocker" field</summary>
 144    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 145    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 146    public void ClearIsPointerBlocker() {
 0147      _hasBits0 &= ~2;
 0148    }
 149
 150    /// <summary>Field number for the "visible" field.</summary>
 151    public const int VisibleFieldNumber = 3;
 152    private bool visible_;
 153    /// <summary>
 154    /// @deprecated use HiddenComponent instead https://github.com/decentraland/sdk/issues/353
 155    /// </summary>
 156    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 157    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 158    public bool Visible {
 0159      get { if ((_hasBits0 & 4) != 0) { return visible_; } else { return false; } }
 160      set {
 6161        _hasBits0 |= 4;
 6162        visible_ = value;
 6163      }
 164    }
 165    /// <summary>Gets whether the "visible" field is set</summary>
 166    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 167    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 168    public bool HasVisible {
 0169      get { return (_hasBits0 & 4) != 0; }
 170    }
 171    /// <summary>Clears the value of the "visible" field</summary>
 172    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 173    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 174    public void ClearVisible() {
 0175      _hasBits0 &= ~4;
 0176    }
 177
 178    /// <summary>Field number for the "radius_top" field.</summary>
 179    public const int RadiusTopFieldNumber = 4;
 180    private float radiusTop_;
 181    /// <summary>
 182    /// default=1.0
 183    /// </summary>
 184    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 185    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 186    public float RadiusTop {
 18187      get { if ((_hasBits0 & 8) != 0) { return radiusTop_; } else { return 0F; } }
 188      set {
 6189        _hasBits0 |= 8;
 6190        radiusTop_ = value;
 6191      }
 192    }
 193    /// <summary>Gets whether the "radius_top" field is set</summary>
 194    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 195    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 196    public bool HasRadiusTop {
 0197      get { return (_hasBits0 & 8) != 0; }
 198    }
 199    /// <summary>Clears the value of the "radius_top" field</summary>
 200    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 201    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 202    public void ClearRadiusTop() {
 0203      _hasBits0 &= ~8;
 0204    }
 205
 206    /// <summary>Field number for the "radius_bottom" field.</summary>
 207    public const int RadiusBottomFieldNumber = 5;
 208    private float radiusBottom_;
 209    /// <summary>
 210    /// default=1.0
 211    /// </summary>
 212    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 213    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 214    public float RadiusBottom {
 18215      get { if ((_hasBits0 & 16) != 0) { return radiusBottom_; } else { return 0F; } }
 216      set {
 6217        _hasBits0 |= 16;
 6218        radiusBottom_ = value;
 6219      }
 220    }
 221    /// <summary>Gets whether the "radius_bottom" field is set</summary>
 222    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 223    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 224    public bool HasRadiusBottom {
 0225      get { return (_hasBits0 & 16) != 0; }
 226    }
 227    /// <summary>Clears the value of the "radius_bottom" field</summary>
 228    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 229    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 230    public void ClearRadiusBottom() {
 0231      _hasBits0 &= ~16;
 0232    }
 233
 234    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 235    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 236    public override bool Equals(object other) {
 18237      return Equals(other as PBCylinderShape);
 238    }
 239
 240    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 241    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 242    public bool Equals(PBCylinderShape other) {
 18243      if (ReferenceEquals(other, null)) {
 0244        return false;
 245      }
 18246      if (ReferenceEquals(other, this)) {
 18247        return true;
 248      }
 0249      if (WithCollisions != other.WithCollisions) return false;
 0250      if (IsPointerBlocker != other.IsPointerBlocker) return false;
 0251      if (Visible != other.Visible) return false;
 0252      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(RadiusTop, other.RadiusTop)) return false
 0253      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(RadiusBottom, other.RadiusBottom)) return
 0254      return Equals(_unknownFields, other._unknownFields);
 255    }
 256
 257    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 258    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 259    public override int GetHashCode() {
 41260      int hash = 1;
 41261      if (HasWithCollisions) hash ^= WithCollisions.GetHashCode();
 41262      if (HasIsPointerBlocker) hash ^= IsPointerBlocker.GetHashCode();
 41263      if (HasVisible) hash ^= Visible.GetHashCode();
 41264      if (HasRadiusTop) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(RadiusTop);
 41265      if (HasRadiusBottom) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(RadiusBottom
 41266      if (_unknownFields != null) {
 0267        hash ^= _unknownFields.GetHashCode();
 268      }
 41269      return hash;
 270    }
 271
 272    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 273    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 274    public override string ToString() {
 0275      return pb::JsonFormatter.ToDiagnosticString(this);
 276    }
 277
 278    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 279    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 280    public void WriteTo(pb::CodedOutputStream output) {
 281    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 282      output.WriteRawMessage(this);
 283    #else
 4284      if (HasWithCollisions) {
 3285        output.WriteRawTag(8);
 3286        output.WriteBool(WithCollisions);
 287      }
 4288      if (HasIsPointerBlocker) {
 3289        output.WriteRawTag(16);
 3290        output.WriteBool(IsPointerBlocker);
 291      }
 4292      if (HasVisible) {
 3293        output.WriteRawTag(24);
 3294        output.WriteBool(Visible);
 295      }
 4296      if (HasRadiusTop) {
 3297        output.WriteRawTag(37);
 3298        output.WriteFloat(RadiusTop);
 299      }
 4300      if (HasRadiusBottom) {
 3301        output.WriteRawTag(45);
 3302        output.WriteFloat(RadiusBottom);
 303      }
 4304      if (_unknownFields != null) {
 0305        _unknownFields.WriteTo(output);
 306      }
 307    #endif
 4308    }
 309
 310    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 311    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 312    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 313    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 314      if (HasWithCollisions) {
 315        output.WriteRawTag(8);
 316        output.WriteBool(WithCollisions);
 317      }
 318      if (HasIsPointerBlocker) {
 319        output.WriteRawTag(16);
 320        output.WriteBool(IsPointerBlocker);
 321      }
 322      if (HasVisible) {
 323        output.WriteRawTag(24);
 324        output.WriteBool(Visible);
 325      }
 326      if (HasRadiusTop) {
 327        output.WriteRawTag(37);
 328        output.WriteFloat(RadiusTop);
 329      }
 330      if (HasRadiusBottom) {
 331        output.WriteRawTag(45);
 332        output.WriteFloat(RadiusBottom);
 333      }
 334      if (_unknownFields != null) {
 335        _unknownFields.WriteTo(ref output);
 336      }
 337    }
 338    #endif
 339
 340    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 341    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 342    public int CalculateSize() {
 0343      int size = 0;
 0344      if (HasWithCollisions) {
 0345        size += 1 + 1;
 346      }
 0347      if (HasIsPointerBlocker) {
 0348        size += 1 + 1;
 349      }
 0350      if (HasVisible) {
 0351        size += 1 + 1;
 352      }
 0353      if (HasRadiusTop) {
 0354        size += 1 + 4;
 355      }
 0356      if (HasRadiusBottom) {
 0357        size += 1 + 4;
 358      }
 0359      if (_unknownFields != null) {
 0360        size += _unknownFields.CalculateSize();
 361      }
 0362      return size;
 363    }
 364
 365    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 366    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 367    public void MergeFrom(PBCylinderShape other) {
 0368      if (other == null) {
 0369        return;
 370      }
 0371      if (other.HasWithCollisions) {
 0372        WithCollisions = other.WithCollisions;
 373      }
 0374      if (other.HasIsPointerBlocker) {
 0375        IsPointerBlocker = other.IsPointerBlocker;
 376      }
 0377      if (other.HasVisible) {
 0378        Visible = other.Visible;
 379      }
 0380      if (other.HasRadiusTop) {
 0381        RadiusTop = other.RadiusTop;
 382      }
 0383      if (other.HasRadiusBottom) {
 0384        RadiusBottom = other.RadiusBottom;
 385      }
 0386      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0387    }
 388
 389    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 390    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 391    public void MergeFrom(pb::CodedInputStream input) {
 392    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 393      input.ReadRawMessage(this);
 394    #else
 395      uint tag;
 18396      while ((tag = input.ReadTag()) != 0) {
 397        switch(tag) {
 398          default:
 0399            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0400            break;
 401          case 8: {
 3402            WithCollisions = input.ReadBool();
 3403            break;
 404          }
 405          case 16: {
 3406            IsPointerBlocker = input.ReadBool();
 3407            break;
 408          }
 409          case 24: {
 3410            Visible = input.ReadBool();
 3411            break;
 412          }
 413          case 37: {
 3414            RadiusTop = input.ReadFloat();
 3415            break;
 416          }
 417          case 45: {
 3418            RadiusBottom = input.ReadFloat();
 419            break;
 420          }
 421        }
 422      }
 423    #endif
 3424    }
 425
 426    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 427    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 428    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 429    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 430      uint tag;
 431      while ((tag = input.ReadTag()) != 0) {
 432        switch(tag) {
 433          default:
 434            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 435            break;
 436          case 8: {
 437            WithCollisions = input.ReadBool();
 438            break;
 439          }
 440          case 16: {
 441            IsPointerBlocker = input.ReadBool();
 442            break;
 443          }
 444          case 24: {
 445            Visible = input.ReadBool();
 446            break;
 447          }
 448          case 37: {
 449            RadiusTop = input.ReadFloat();
 450            break;
 451          }
 452          case 45: {
 453            RadiusBottom = input.ReadFloat();
 454            break;
 455          }
 456        }
 457      }
 458    }
 459    #endif
 460
 461  }
 462
 463  #endregion
 464
 465}
 466
 467#endregion Designer generated code