< Summary

Class:DCL.ECSComponents.PBSphereShape
Assembly:DCL.ECSComponents.ProtobufData
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/PBFiles/SphereShape.cs
Covered lines:13
Uncovered lines:80
Coverable lines:93
Total lines:359
Line coverage:13.9% (13 of 93)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
PBSphereShape()0%110100%
get_Descriptor()0%2100%
PBSphereShape()0%110100%
PBSphereShape(...)0%2100%
Clone()0%2100%
ClearWithCollisions()0%2100%
ClearIsPointerBlocker()0%2100%
ClearVisible()0%2100%
Equals(...)0%110100%
Equals(...)0%19.856027.27%
GetHashCode()0%6.65060%
ToString()0%2100%
WriteTo(...)0%30500%
CalculateSize()0%30500%
MergeFrom(...)0%30500%
MergeFrom(...)0%30500%

File(s)

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

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: SphereShape.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 SphereShape.proto</summary>
 15  public static partial class SphereShapeReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for SphereShape.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static SphereShapeReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "ChFTcGhlcmVTaGFwZS5wcm90bxIQZGVjZW50cmFsYW5kLmVjcyKbAQoNUEJT",
 28            "cGhlcmVTaGFwZRIcCg93aXRoX2NvbGxpc2lvbnMYASABKAhIAIgBARIfChJp",
 29            "c19wb2ludGVyX2Jsb2NrZXIYAiABKAhIAYgBARIUCgd2aXNpYmxlGAMgASgI",
 30            "SAKIAQFCEgoQX3dpdGhfY29sbGlzaW9uc0IVChNfaXNfcG9pbnRlcl9ibG9j",
 31            "a2VyQgoKCF92aXNpYmxlQhSqAhFEQ0wuRUNTQ29tcG9uZW50c2IGcHJvdG8z"));
 32      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 33          new pbr::FileDescriptor[] { },
 34          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 35            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBSphereShape), global::DCL.ECSComponents.PBS
 36          }));
 37    }
 38    #endregion
 39
 40  }
 41  #region Messages
 42  public sealed partial class PBSphereShape : pb::IMessage<PBSphereShape>
 43  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 44      , pb::IBufferMessage
 45  #endif
 46  {
 147    private static readonly pb::MessageParser<PBSphereShape> _parser = new pb::MessageParser<PBSphereShape>(() => new PB
 48    private pb::UnknownFieldSet _unknownFields;
 49    private int _hasBits0;
 50    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 51    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 052    public static pb::MessageParser<PBSphereShape> Parser { get { return _parser; } }
 53
 54    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 55    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 56    public static pbr::MessageDescriptor Descriptor {
 057      get { return global::DCL.ECSComponents.SphereShapeReflection.Descriptor.MessageTypes[0]; }
 58    }
 59
 60    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 61    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 62    pbr::MessageDescriptor pb::IMessage.Descriptor {
 063      get { return Descriptor; }
 64    }
 65
 66    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 67    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 168    public PBSphereShape() {
 69      OnConstruction();
 170    }
 71
 72    partial void OnConstruction();
 73
 74    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 75    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 076    public PBSphereShape(PBSphereShape other) : this() {
 077      _hasBits0 = other._hasBits0;
 078      withCollisions_ = other.withCollisions_;
 079      isPointerBlocker_ = other.isPointerBlocker_;
 080      visible_ = other.visible_;
 081      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 082    }
 83
 84    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 85    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 86    public PBSphereShape Clone() {
 087      return new PBSphereShape(this);
 88    }
 89
 90    /// <summary>Field number for the "with_collisions" field.</summary>
 91    public const int WithCollisionsFieldNumber = 1;
 92    private bool withCollisions_;
 93    /// <summary>
 94    /// @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366
 95    /// </summary>
 96    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 97    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 98    public bool WithCollisions {
 099      get { if ((_hasBits0 & 1) != 0) { return withCollisions_; } else { return false; } }
 100      set {
 0101        _hasBits0 |= 1;
 0102        withCollisions_ = value;
 0103      }
 104    }
 105    /// <summary>Gets whether the "with_collisions" field is set</summary>
 106    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 107    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 108    public bool HasWithCollisions {
 0109      get { return (_hasBits0 & 1) != 0; }
 110    }
 111    /// <summary>Clears the value of the "with_collisions" field</summary>
 112    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 113    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 114    public void ClearWithCollisions() {
 0115      _hasBits0 &= ~1;
 0116    }
 117
 118    /// <summary>Field number for the "is_pointer_blocker" field.</summary>
 119    public const int IsPointerBlockerFieldNumber = 2;
 120    private bool isPointerBlocker_;
 121    /// <summary>
 122    /// @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366
 123    /// </summary>
 124    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 125    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 126    public bool IsPointerBlocker {
 0127      get { if ((_hasBits0 & 2) != 0) { return isPointerBlocker_; } else { return false; } }
 128      set {
 0129        _hasBits0 |= 2;
 0130        isPointerBlocker_ = value;
 0131      }
 132    }
 133    /// <summary>Gets whether the "is_pointer_blocker" field is set</summary>
 134    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 135    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 136    public bool HasIsPointerBlocker {
 0137      get { return (_hasBits0 & 2) != 0; }
 138    }
 139    /// <summary>Clears the value of the "is_pointer_blocker" field</summary>
 140    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 141    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 142    public void ClearIsPointerBlocker() {
 0143      _hasBits0 &= ~2;
 0144    }
 145
 146    /// <summary>Field number for the "visible" field.</summary>
 147    public const int VisibleFieldNumber = 3;
 148    private bool visible_;
 149    /// <summary>
 150    /// @deprecated use HiddenComponent instead https://github.com/decentraland/sdk/issues/353
 151    /// </summary>
 152    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 153    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 154    public bool Visible {
 0155      get { if ((_hasBits0 & 4) != 0) { return visible_; } else { return false; } }
 156      set {
 0157        _hasBits0 |= 4;
 0158        visible_ = value;
 0159      }
 160    }
 161    /// <summary>Gets whether the "visible" field is set</summary>
 162    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 163    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 164    public bool HasVisible {
 0165      get { return (_hasBits0 & 4) != 0; }
 166    }
 167    /// <summary>Clears the value of the "visible" field</summary>
 168    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 169    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 170    public void ClearVisible() {
 0171      _hasBits0 &= ~4;
 0172    }
 173
 174    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 175    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 176    public override bool Equals(object other) {
 18177      return Equals(other as PBSphereShape);
 178    }
 179
 180    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 181    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 182    public bool Equals(PBSphereShape other) {
 18183      if (ReferenceEquals(other, null)) {
 0184        return false;
 185      }
 18186      if (ReferenceEquals(other, this)) {
 18187        return true;
 188      }
 0189      if (WithCollisions != other.WithCollisions) return false;
 0190      if (IsPointerBlocker != other.IsPointerBlocker) return false;
 0191      if (Visible != other.Visible) return false;
 0192      return Equals(_unknownFields, other._unknownFields);
 193    }
 194
 195    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 196    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 197    public override int GetHashCode() {
 41198      int hash = 1;
 41199      if (HasWithCollisions) hash ^= WithCollisions.GetHashCode();
 41200      if (HasIsPointerBlocker) hash ^= IsPointerBlocker.GetHashCode();
 41201      if (HasVisible) hash ^= Visible.GetHashCode();
 41202      if (_unknownFields != null) {
 0203        hash ^= _unknownFields.GetHashCode();
 204      }
 41205      return hash;
 206    }
 207
 208    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 209    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 210    public override string ToString() {
 0211      return pb::JsonFormatter.ToDiagnosticString(this);
 212    }
 213
 214    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 215    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 216    public void WriteTo(pb::CodedOutputStream output) {
 217    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 218      output.WriteRawMessage(this);
 219    #else
 0220      if (HasWithCollisions) {
 0221        output.WriteRawTag(8);
 0222        output.WriteBool(WithCollisions);
 223      }
 0224      if (HasIsPointerBlocker) {
 0225        output.WriteRawTag(16);
 0226        output.WriteBool(IsPointerBlocker);
 227      }
 0228      if (HasVisible) {
 0229        output.WriteRawTag(24);
 0230        output.WriteBool(Visible);
 231      }
 0232      if (_unknownFields != null) {
 0233        _unknownFields.WriteTo(output);
 234      }
 235    #endif
 0236    }
 237
 238    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 239    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 240    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 241    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 242      if (HasWithCollisions) {
 243        output.WriteRawTag(8);
 244        output.WriteBool(WithCollisions);
 245      }
 246      if (HasIsPointerBlocker) {
 247        output.WriteRawTag(16);
 248        output.WriteBool(IsPointerBlocker);
 249      }
 250      if (HasVisible) {
 251        output.WriteRawTag(24);
 252        output.WriteBool(Visible);
 253      }
 254      if (_unknownFields != null) {
 255        _unknownFields.WriteTo(ref output);
 256      }
 257    }
 258    #endif
 259
 260    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 261    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 262    public int CalculateSize() {
 0263      int size = 0;
 0264      if (HasWithCollisions) {
 0265        size += 1 + 1;
 266      }
 0267      if (HasIsPointerBlocker) {
 0268        size += 1 + 1;
 269      }
 0270      if (HasVisible) {
 0271        size += 1 + 1;
 272      }
 0273      if (_unknownFields != null) {
 0274        size += _unknownFields.CalculateSize();
 275      }
 0276      return size;
 277    }
 278
 279    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 280    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 281    public void MergeFrom(PBSphereShape other) {
 0282      if (other == null) {
 0283        return;
 284      }
 0285      if (other.HasWithCollisions) {
 0286        WithCollisions = other.WithCollisions;
 287      }
 0288      if (other.HasIsPointerBlocker) {
 0289        IsPointerBlocker = other.IsPointerBlocker;
 290      }
 0291      if (other.HasVisible) {
 0292        Visible = other.Visible;
 293      }
 0294      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0295    }
 296
 297    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 298    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 299    public void MergeFrom(pb::CodedInputStream input) {
 300    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 301      input.ReadRawMessage(this);
 302    #else
 303      uint tag;
 0304      while ((tag = input.ReadTag()) != 0) {
 305        switch(tag) {
 306          default:
 0307            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0308            break;
 309          case 8: {
 0310            WithCollisions = input.ReadBool();
 0311            break;
 312          }
 313          case 16: {
 0314            IsPointerBlocker = input.ReadBool();
 0315            break;
 316          }
 317          case 24: {
 0318            Visible = input.ReadBool();
 319            break;
 320          }
 321        }
 322      }
 323    #endif
 0324    }
 325
 326    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 327    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 328    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 329    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 330      uint tag;
 331      while ((tag = input.ReadTag()) != 0) {
 332        switch(tag) {
 333          default:
 334            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 335            break;
 336          case 8: {
 337            WithCollisions = input.ReadBool();
 338            break;
 339          }
 340          case 16: {
 341            IsPointerBlocker = input.ReadBool();
 342            break;
 343          }
 344          case 24: {
 345            Visible = input.ReadBool();
 346            break;
 347          }
 348        }
 349      }
 350    }
 351    #endif
 352
 353  }
 354
 355  #endregion
 356
 357}
 358
 359#endregion Designer generated code