< Summary

Class:DCL.ECSComponents.PBGLTFShape
Assembly:DCL.Components.ProtobufData
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/PBFiles/GLTFShape.cs
Covered lines:34
Uncovered lines:62
Coverable lines:96
Total lines:258
Line coverage:35.4% (34 of 96)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
PBGLTFShape()0%110100%
get_Descriptor()0%2100%
PBGLTFShape(...)0%2100%
Clone()0%2100%
PBGLTFShape()0%110100%
Equals(...)0%110100%
Equals(...)0%29.37023.08%
GetHashCode()0%8.66058.33%
ToString()0%2100%
WriteTo(...)0%6.296080%
CalculateSize()0%42600%
MergeFrom(...)0%42600%
MergeFrom(...)0%9.367063.64%

File(s)

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

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: GLTFShape.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 GLTFShape.proto</summary>
 15  public static partial class GLTFShapeReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for GLTFShape.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static GLTFShapeReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "Cg9HTFRGU2hhcGUucHJvdG8SEGRlY2VudHJhbGFuZC5lY3MiYAoLUEJHTFRG",
 28            "U2hhcGUSFwoPd2l0aF9jb2xsaXNpb25zGAEgASgIEhoKEmlzX3BvaW50ZXJf",
 29            "YmxvY2tlchgCIAEoCBIPCgd2aXNpYmxlGAMgASgIEgsKA3NyYxgEIAEoCUIU",
 30            "qgIRRENMLkVDU0NvbXBvbmVudHNiBnByb3RvMw=="));
 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.PBGLTFShape), global::DCL.ECSComponents.PBGLT
 35          }));
 36    }
 37    #endregion
 38
 39  }
 40  #region Messages
 41  public sealed partial class PBGLTFShape : pb::IMessage<PBGLTFShape> {
 442    private static readonly pb::MessageParser<PBGLTFShape> _parser = new pb::MessageParser<PBGLTFShape>(() => new PBGLTF
 43    private pb::UnknownFieldSet _unknownFields;
 44    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 045    public static pb::MessageParser<PBGLTFShape> Parser { get { return _parser; } }
 46
 47    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 48    public static pbr::MessageDescriptor Descriptor {
 049      get { return global::DCL.ECSComponents.GLTFShapeReflection.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 PBGLTFShape() {
 59      OnConstruction();
 160    }
 61
 62    partial void OnConstruction();
 63
 64    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 065    public PBGLTFShape(PBGLTFShape other) : this() {
 066      withCollisions_ = other.withCollisions_;
 067      isPointerBlocker_ = other.isPointerBlocker_;
 068      visible_ = other.visible_;
 069      src_ = other.src_;
 070      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 071    }
 72
 73    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 74    public PBGLTFShape Clone() {
 075      return new PBGLTFShape(this);
 76    }
 77
 78    /// <summary>Field number for the "with_collisions" field.</summary>
 79    public const int WithCollisionsFieldNumber = 1;
 80    private bool withCollisions_;
 81    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 82    public bool WithCollisions {
 083      get { return withCollisions_; }
 84      set {
 085        withCollisions_ = value;
 086      }
 87    }
 88
 89    /// <summary>Field number for the "is_pointer_blocker" field.</summary>
 90    public const int IsPointerBlockerFieldNumber = 2;
 91    private bool isPointerBlocker_;
 92    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 93    public bool IsPointerBlocker {
 094      get { return isPointerBlocker_; }
 95      set {
 096        isPointerBlocker_ = value;
 097      }
 98    }
 99
 100    /// <summary>Field number for the "visible" field.</summary>
 101    public const int VisibleFieldNumber = 3;
 102    private bool visible_;
 103    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 104    public bool Visible {
 0105      get { return visible_; }
 106      set {
 0107        visible_ = value;
 0108      }
 109    }
 110
 111    /// <summary>Field number for the "src" field.</summary>
 112    public const int SrcFieldNumber = 4;
 1113    private string src_ = "";
 114    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 115    public string Src {
 0116      get { return src_; }
 117      set {
 0118        src_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 0119      }
 120    }
 121
 122    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 123    public override bool Equals(object other) {
 12124      return Equals(other as PBGLTFShape);
 125    }
 126
 127    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 128    public bool Equals(PBGLTFShape other) {
 12129      if (ReferenceEquals(other, null)) {
 0130        return false;
 131      }
 12132      if (ReferenceEquals(other, this)) {
 12133        return true;
 134      }
 0135      if (WithCollisions != other.WithCollisions) return false;
 0136      if (IsPointerBlocker != other.IsPointerBlocker) return false;
 0137      if (Visible != other.Visible) return false;
 0138      if (Src != other.Src) return false;
 0139      return Equals(_unknownFields, other._unknownFields);
 140    }
 141
 142    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 143    public override int GetHashCode() {
 16144      int hash = 1;
 16145      if (WithCollisions != false) hash ^= WithCollisions.GetHashCode();
 16146      if (IsPointerBlocker != false) hash ^= IsPointerBlocker.GetHashCode();
 16147      if (Visible != false) hash ^= Visible.GetHashCode();
 16148      if (Src.Length != 0) hash ^= Src.GetHashCode();
 16149      if (_unknownFields != null) {
 0150        hash ^= _unknownFields.GetHashCode();
 151      }
 16152      return hash;
 153    }
 154
 155    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 156    public override string ToString() {
 0157      return pb::JsonFormatter.ToDiagnosticString(this);
 158    }
 159
 160    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 161    public void WriteTo(pb::CodedOutputStream output) {
 4162      if (WithCollisions != false) {
 1163        output.WriteRawTag(8);
 1164        output.WriteBool(WithCollisions);
 165      }
 4166      if (IsPointerBlocker != false) {
 1167        output.WriteRawTag(16);
 1168        output.WriteBool(IsPointerBlocker);
 169      }
 4170      if (Visible != false) {
 0171        output.WriteRawTag(24);
 0172        output.WriteBool(Visible);
 173      }
 4174      if (Src.Length != 0) {
 3175        output.WriteRawTag(34);
 3176        output.WriteString(Src);
 177      }
 4178      if (_unknownFields != null) {
 0179        _unknownFields.WriteTo(output);
 180      }
 4181    }
 182
 183    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 184    public int CalculateSize() {
 0185      int size = 0;
 0186      if (WithCollisions != false) {
 0187        size += 1 + 1;
 188      }
 0189      if (IsPointerBlocker != false) {
 0190        size += 1 + 1;
 191      }
 0192      if (Visible != false) {
 0193        size += 1 + 1;
 194      }
 0195      if (Src.Length != 0) {
 0196        size += 1 + pb::CodedOutputStream.ComputeStringSize(Src);
 197      }
 0198      if (_unknownFields != null) {
 0199        size += _unknownFields.CalculateSize();
 200      }
 0201      return size;
 202    }
 203
 204    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 205    public void MergeFrom(PBGLTFShape other) {
 0206      if (other == null) {
 0207        return;
 208      }
 0209      if (other.WithCollisions != false) {
 0210        WithCollisions = other.WithCollisions;
 211      }
 0212      if (other.IsPointerBlocker != false) {
 0213        IsPointerBlocker = other.IsPointerBlocker;
 214      }
 0215      if (other.Visible != false) {
 0216        Visible = other.Visible;
 217      }
 0218      if (other.Src.Length != 0) {
 0219        Src = other.Src;
 220      }
 0221      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0222    }
 223
 224    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 225    public void MergeFrom(pb::CodedInputStream input) {
 226      uint tag;
 8227      while ((tag = input.ReadTag()) != 0) {
 228        switch(tag) {
 229          default:
 0230            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0231            break;
 232          case 8: {
 1233            WithCollisions = input.ReadBool();
 1234            break;
 235          }
 236          case 16: {
 1237            IsPointerBlocker = input.ReadBool();
 1238            break;
 239          }
 240          case 24: {
 0241            Visible = input.ReadBool();
 0242            break;
 243          }
 244          case 34: {
 3245            Src = input.ReadString();
 246            break;
 247          }
 248        }
 249      }
 3250    }
 251
 252  }
 253
 254  #endregion
 255
 256}
 257
 258#endregion Designer generated code