< Summary

Class:DCL.ECSComponents.PBSphereShape
Assembly:DCL.Components.ProtobufData
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/PBFiles/SphereShape.cs
Covered lines:13
Uncovered lines:67
Coverable lines:80
Total lines:230
Line coverage:16.2% (13 of 80)
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%
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            "ChFTcGhlcmVTaGFwZS5wcm90bxIQZGVjZW50cmFsYW5kLmVjcyJVCg1QQlNw",
 28            "aGVyZVNoYXBlEhcKD3dpdGhfY29sbGlzaW9ucxgBIAEoCBIaChJpc19wb2lu",
 29            "dGVyX2Jsb2NrZXIYAiABKAgSDwoHdmlzaWJsZRgDIAEoCEIUqgIRRENMLkVD",
 30            "U0NvbXBvbmVudHNiBnByb3RvMw=="));
 31      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 32          new pbr::FileDescriptor[] { },
 33          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 34            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBSphereShape), global::DCL.ECSComponents.PBS
 35          }));
 36    }
 37    #endregion
 38
 39  }
 40  #region Messages
 41  public sealed partial class PBSphereShape : pb::IMessage<PBSphereShape> {
 142    private static readonly pb::MessageParser<PBSphereShape> _parser = new pb::MessageParser<PBSphereShape>(() => new PB
 43    private pb::UnknownFieldSet _unknownFields;
 44    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 045    public static pb::MessageParser<PBSphereShape> Parser { get { return _parser; } }
 46
 47    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 48    public static pbr::MessageDescriptor Descriptor {
 049      get { return global::DCL.ECSComponents.SphereShapeReflection.Descriptor.MessageTypes[0]; }
 50    }
 51
 52    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 53    pbr::MessageDescriptor pb::IMessage.Descriptor {
 054      get { return Descriptor; }
 55    }
 56
 57    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 158    public PBSphereShape() {
 59      OnConstruction();
 160    }
 61
 62    partial void OnConstruction();
 63
 64    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 065    public PBSphereShape(PBSphereShape other) : this() {
 066      withCollisions_ = other.withCollisions_;
 067      isPointerBlocker_ = other.isPointerBlocker_;
 068      visible_ = other.visible_;
 069      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 070    }
 71
 72    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 73    public PBSphereShape Clone() {
 074      return new PBSphereShape(this);
 75    }
 76
 77    /// <summary>Field number for the "with_collisions" field.</summary>
 78    public const int WithCollisionsFieldNumber = 1;
 79    private bool withCollisions_;
 80    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 81    public bool WithCollisions {
 082      get { return withCollisions_; }
 83      set {
 084        withCollisions_ = value;
 085      }
 86    }
 87
 88    /// <summary>Field number for the "is_pointer_blocker" field.</summary>
 89    public const int IsPointerBlockerFieldNumber = 2;
 90    private bool isPointerBlocker_;
 91    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 92    public bool IsPointerBlocker {
 093      get { return isPointerBlocker_; }
 94      set {
 095        isPointerBlocker_ = value;
 096      }
 97    }
 98
 99    /// <summary>Field number for the "visible" field.</summary>
 100    public const int VisibleFieldNumber = 3;
 101    private bool visible_;
 102    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 103    public bool Visible {
 0104      get { return visible_; }
 105      set {
 0106        visible_ = value;
 0107      }
 108    }
 109
 110    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 111    public override bool Equals(object other) {
 18112      return Equals(other as PBSphereShape);
 113    }
 114
 115    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 116    public bool Equals(PBSphereShape other) {
 18117      if (ReferenceEquals(other, null)) {
 0118        return false;
 119      }
 18120      if (ReferenceEquals(other, this)) {
 18121        return true;
 122      }
 0123      if (WithCollisions != other.WithCollisions) return false;
 0124      if (IsPointerBlocker != other.IsPointerBlocker) return false;
 0125      if (Visible != other.Visible) return false;
 0126      return Equals(_unknownFields, other._unknownFields);
 127    }
 128
 129    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 130    public override int GetHashCode() {
 41131      int hash = 1;
 41132      if (WithCollisions != false) hash ^= WithCollisions.GetHashCode();
 41133      if (IsPointerBlocker != false) hash ^= IsPointerBlocker.GetHashCode();
 41134      if (Visible != false) hash ^= Visible.GetHashCode();
 41135      if (_unknownFields != null) {
 0136        hash ^= _unknownFields.GetHashCode();
 137      }
 41138      return hash;
 139    }
 140
 141    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 142    public override string ToString() {
 0143      return pb::JsonFormatter.ToDiagnosticString(this);
 144    }
 145
 146    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 147    public void WriteTo(pb::CodedOutputStream output) {
 0148      if (WithCollisions != false) {
 0149        output.WriteRawTag(8);
 0150        output.WriteBool(WithCollisions);
 151      }
 0152      if (IsPointerBlocker != false) {
 0153        output.WriteRawTag(16);
 0154        output.WriteBool(IsPointerBlocker);
 155      }
 0156      if (Visible != false) {
 0157        output.WriteRawTag(24);
 0158        output.WriteBool(Visible);
 159      }
 0160      if (_unknownFields != null) {
 0161        _unknownFields.WriteTo(output);
 162      }
 0163    }
 164
 165    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 166    public int CalculateSize() {
 0167      int size = 0;
 0168      if (WithCollisions != false) {
 0169        size += 1 + 1;
 170      }
 0171      if (IsPointerBlocker != false) {
 0172        size += 1 + 1;
 173      }
 0174      if (Visible != false) {
 0175        size += 1 + 1;
 176      }
 0177      if (_unknownFields != null) {
 0178        size += _unknownFields.CalculateSize();
 179      }
 0180      return size;
 181    }
 182
 183    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 184    public void MergeFrom(PBSphereShape other) {
 0185      if (other == null) {
 0186        return;
 187      }
 0188      if (other.WithCollisions != false) {
 0189        WithCollisions = other.WithCollisions;
 190      }
 0191      if (other.IsPointerBlocker != false) {
 0192        IsPointerBlocker = other.IsPointerBlocker;
 193      }
 0194      if (other.Visible != false) {
 0195        Visible = other.Visible;
 196      }
 0197      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0198    }
 199
 200    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 201    public void MergeFrom(pb::CodedInputStream input) {
 202      uint tag;
 0203      while ((tag = input.ReadTag()) != 0) {
 204        switch(tag) {
 205          default:
 0206            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0207            break;
 208          case 8: {
 0209            WithCollisions = input.ReadBool();
 0210            break;
 211          }
 212          case 16: {
 0213            IsPointerBlocker = input.ReadBool();
 0214            break;
 215          }
 216          case 24: {
 0217            Visible = input.ReadBool();
 218            break;
 219          }
 220        }
 221      }
 0222    }
 223
 224  }
 225
 226  #endregion
 227
 228}
 229
 230#endregion Designer generated code