< Summary

Class:DCL.ECSComponents.PBCylinderShape
Assembly:DCL.Components.ProtobufData
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/PBFiles/CylinderShape.cs
Covered lines:39
Uncovered lines:71
Coverable lines:110
Total lines:287
Line coverage:35.4% (39 of 110)
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%
Equals(...)0%110100%
Equals(...)0%40.778020%
GetHashCode()0%10.867057.14%
ToString()0%2100%
WriteTo(...)0%7.237083.33%
CalculateSize()0%56700%
MergeFrom(...)0%56700%
MergeFrom(...)0%9.868069.23%

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            "ChNDeWxpbmRlclNoYXBlLnByb3RvEhBkZWNlbnRyYWxhbmQuZWNzIoIBCg9Q",
 28            "QkN5bGluZGVyU2hhcGUSFwoPd2l0aF9jb2xsaXNpb25zGAEgASgIEhoKEmlz",
 29            "X3BvaW50ZXJfYmxvY2tlchgCIAEoCBIPCgd2aXNpYmxlGAMgASgIEhIKCnJh",
 30            "ZGl1c190b3AYBCABKAISFQoNcmFkaXVzX2JvdHRvbRgFIAEoAkIUqgIRRENM",
 31            "LkVDU0NvbXBvbmVudHNiBnByb3RvMw=="));
 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.PBCylinderShape), global::DCL.ECSComponents.P
 36          }));
 37    }
 38    #endregion
 39
 40  }
 41  #region Messages
 42  public sealed partial class PBCylinderShape : pb::IMessage<PBCylinderShape> {
 443    private static readonly pb::MessageParser<PBCylinderShape> _parser = new pb::MessageParser<PBCylinderShape>(() => ne
 44    private pb::UnknownFieldSet _unknownFields;
 45    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 046    public static pb::MessageParser<PBCylinderShape> Parser { get { return _parser; } }
 47
 48    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 49    public static pbr::MessageDescriptor Descriptor {
 050      get { return global::DCL.ECSComponents.CylinderShapeReflection.Descriptor.MessageTypes[0]; }
 51    }
 52
 53    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 54    pbr::MessageDescriptor pb::IMessage.Descriptor {
 055      get { return Descriptor; }
 56    }
 57
 58    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 159    public PBCylinderShape() {
 60      OnConstruction();
 161    }
 62
 63    partial void OnConstruction();
 64
 65    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 066    public PBCylinderShape(PBCylinderShape other) : this() {
 067      withCollisions_ = other.withCollisions_;
 068      isPointerBlocker_ = other.isPointerBlocker_;
 069      visible_ = other.visible_;
 070      radiusTop_ = other.radiusTop_;
 071      radiusBottom_ = other.radiusBottom_;
 072      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 073    }
 74
 75    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 76    public PBCylinderShape Clone() {
 077      return new PBCylinderShape(this);
 78    }
 79
 80    /// <summary>Field number for the "with_collisions" field.</summary>
 81    public const int WithCollisionsFieldNumber = 1;
 82    private bool withCollisions_;
 83    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 84    public bool WithCollisions {
 085      get { return withCollisions_; }
 86      set {
 087        withCollisions_ = value;
 088      }
 89    }
 90
 91    /// <summary>Field number for the "is_pointer_blocker" field.</summary>
 92    public const int IsPointerBlockerFieldNumber = 2;
 93    private bool isPointerBlocker_;
 94    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 95    public bool IsPointerBlocker {
 096      get { return isPointerBlocker_; }
 97      set {
 098        isPointerBlocker_ = value;
 099      }
 100    }
 101
 102    /// <summary>Field number for the "visible" field.</summary>
 103    public const int VisibleFieldNumber = 3;
 104    private bool visible_;
 105    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 106    public bool Visible {
 0107      get { return visible_; }
 108      set {
 0109        visible_ = value;
 0110      }
 111    }
 112
 113    /// <summary>Field number for the "radius_top" field.</summary>
 114    public const int RadiusTopFieldNumber = 4;
 115    private float radiusTop_;
 116    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 117    public float RadiusTop {
 0118      get { return radiusTop_; }
 119      set {
 0120        radiusTop_ = value;
 0121      }
 122    }
 123
 124    /// <summary>Field number for the "radius_bottom" field.</summary>
 125    public const int RadiusBottomFieldNumber = 5;
 126    private float radiusBottom_;
 127    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 128    public float RadiusBottom {
 0129      get { return radiusBottom_; }
 130      set {
 0131        radiusBottom_ = value;
 0132      }
 133    }
 134
 135    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 136    public override bool Equals(object other) {
 18137      return Equals(other as PBCylinderShape);
 138    }
 139
 140    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 141    public bool Equals(PBCylinderShape other) {
 18142      if (ReferenceEquals(other, null)) {
 0143        return false;
 144      }
 18145      if (ReferenceEquals(other, this)) {
 18146        return true;
 147      }
 0148      if (WithCollisions != other.WithCollisions) return false;
 0149      if (IsPointerBlocker != other.IsPointerBlocker) return false;
 0150      if (Visible != other.Visible) return false;
 0151      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(RadiusTop, other.RadiusTop)) return false
 0152      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(RadiusBottom, other.RadiusBottom)) return
 0153      return Equals(_unknownFields, other._unknownFields);
 154    }
 155
 156    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 157    public override int GetHashCode() {
 41158      int hash = 1;
 41159      if (WithCollisions != false) hash ^= WithCollisions.GetHashCode();
 41160      if (IsPointerBlocker != false) hash ^= IsPointerBlocker.GetHashCode();
 41161      if (Visible != false) hash ^= Visible.GetHashCode();
 41162      if (RadiusTop != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(RadiusTop);
 41163      if (RadiusBottom != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(RadiusBot
 41164      if (_unknownFields != null) {
 0165        hash ^= _unknownFields.GetHashCode();
 166      }
 41167      return hash;
 168    }
 169
 170    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 171    public override string ToString() {
 0172      return pb::JsonFormatter.ToDiagnosticString(this);
 173    }
 174
 175    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 176    public void WriteTo(pb::CodedOutputStream output) {
 4177      if (WithCollisions != false) {
 1178        output.WriteRawTag(8);
 1179        output.WriteBool(WithCollisions);
 180      }
 4181      if (IsPointerBlocker != false) {
 1182        output.WriteRawTag(16);
 1183        output.WriteBool(IsPointerBlocker);
 184      }
 4185      if (Visible != false) {
 0186        output.WriteRawTag(24);
 0187        output.WriteBool(Visible);
 188      }
 4189      if (RadiusTop != 0F) {
 2190        output.WriteRawTag(37);
 2191        output.WriteFloat(RadiusTop);
 192      }
 4193      if (RadiusBottom != 0F) {
 2194        output.WriteRawTag(45);
 2195        output.WriteFloat(RadiusBottom);
 196      }
 4197      if (_unknownFields != null) {
 0198        _unknownFields.WriteTo(output);
 199      }
 4200    }
 201
 202    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 203    public int CalculateSize() {
 0204      int size = 0;
 0205      if (WithCollisions != false) {
 0206        size += 1 + 1;
 207      }
 0208      if (IsPointerBlocker != false) {
 0209        size += 1 + 1;
 210      }
 0211      if (Visible != false) {
 0212        size += 1 + 1;
 213      }
 0214      if (RadiusTop != 0F) {
 0215        size += 1 + 4;
 216      }
 0217      if (RadiusBottom != 0F) {
 0218        size += 1 + 4;
 219      }
 0220      if (_unknownFields != null) {
 0221        size += _unknownFields.CalculateSize();
 222      }
 0223      return size;
 224    }
 225
 226    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 227    public void MergeFrom(PBCylinderShape other) {
 0228      if (other == null) {
 0229        return;
 230      }
 0231      if (other.WithCollisions != false) {
 0232        WithCollisions = other.WithCollisions;
 233      }
 0234      if (other.IsPointerBlocker != false) {
 0235        IsPointerBlocker = other.IsPointerBlocker;
 236      }
 0237      if (other.Visible != false) {
 0238        Visible = other.Visible;
 239      }
 0240      if (other.RadiusTop != 0F) {
 0241        RadiusTop = other.RadiusTop;
 242      }
 0243      if (other.RadiusBottom != 0F) {
 0244        RadiusBottom = other.RadiusBottom;
 245      }
 0246      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0247    }
 248
 249    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 250    public void MergeFrom(pb::CodedInputStream input) {
 251      uint tag;
 9252      while ((tag = input.ReadTag()) != 0) {
 253        switch(tag) {
 254          default:
 0255            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0256            break;
 257          case 8: {
 1258            WithCollisions = input.ReadBool();
 1259            break;
 260          }
 261          case 16: {
 1262            IsPointerBlocker = input.ReadBool();
 1263            break;
 264          }
 265          case 24: {
 0266            Visible = input.ReadBool();
 0267            break;
 268          }
 269          case 37: {
 2270            RadiusTop = input.ReadFloat();
 2271            break;
 272          }
 273          case 45: {
 2274            RadiusBottom = input.ReadFloat();
 275            break;
 276          }
 277        }
 278      }
 3279    }
 280
 281  }
 282
 283  #endregion
 284
 285}
 286
 287#endregion Designer generated code