< Summary

Class:DCL.ECSComponents.PBVisibilityComponent
Assembly:Decentraland.Protocol.GeneratedCode
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/VisibilityComponent.gen.cs
Covered lines:8
Uncovered lines:47
Coverable lines:55
Total lines:252
Line coverage:14.5% (8 of 55)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
PBVisibilityComponent()0%110100%
get_Descriptor()0%2100%
PBVisibilityComponent()0%110100%
PBVisibilityComponent(...)0%2100%
Clone()0%2100%
ClearVisible()0%2100%
Equals(...)0%2100%
Equals(...)0%20400%
GetHashCode()0%12300%
ToString()0%2100%
WriteTo(...)0%12300%
CalculateSize()0%12300%
MergeFrom(...)0%12300%
MergeFrom(...)0%12300%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/VisibilityComponent.gen.cs

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: decentraland/sdk/components/visibility_component.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 decentraland/sdk/components/visibility_component.proto</
 15  public static partial class VisibilityComponentReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for decentraland/sdk/components/visibility_component.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static VisibilityComponentReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "CjZkZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvdmlzaWJpbGl0eV9jb21w",
 28            "b25lbnQucHJvdG8SG2RlY2VudHJhbGFuZC5zZGsuY29tcG9uZW50cyI5ChVQ",
 29            "QlZpc2liaWxpdHlDb21wb25lbnQSFAoHdmlzaWJsZRgBIAEoCEgAiAEBQgoK",
 30            "CF92aXNpYmxlQhSqAhFEQ0wuRUNTQ29tcG9uZW50c2IGcHJvdG8z"));
 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.PBVisibilityComponent), global::DCL.ECSCompon
 35          }));
 36    }
 37    #endregion
 38
 39  }
 40  #region Messages
 41  public sealed partial class PBVisibilityComponent : pb::IMessage<PBVisibilityComponent>
 42  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 43      , pb::IBufferMessage
 44  #endif
 45  {
 146    private static readonly pb::MessageParser<PBVisibilityComponent> _parser = new pb::MessageParser<PBVisibilityCompone
 47    private pb::UnknownFieldSet _unknownFields;
 48    private int _hasBits0;
 49    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 50    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 051    public static pb::MessageParser<PBVisibilityComponent> Parser { get { return _parser; } }
 52
 53    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 54    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 55    public static pbr::MessageDescriptor Descriptor {
 056      get { return global::DCL.ECSComponents.VisibilityComponentReflection.Descriptor.MessageTypes[0]; }
 57    }
 58
 59    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 60    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 61    pbr::MessageDescriptor pb::IMessage.Descriptor {
 062      get { return Descriptor; }
 63    }
 64
 65    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 66    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 267    public PBVisibilityComponent() {
 68      OnConstruction();
 269    }
 70
 71    partial void OnConstruction();
 72
 73    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 74    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 075    public PBVisibilityComponent(PBVisibilityComponent other) : this() {
 076      _hasBits0 = other._hasBits0;
 077      visible_ = other.visible_;
 078      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 079    }
 80
 81    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 82    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 83    public PBVisibilityComponent Clone() {
 084      return new PBVisibilityComponent(this);
 85    }
 86
 87    /// <summary>Field number for the "visible" field.</summary>
 88    public const int VisibleFieldNumber = 1;
 89    private bool visible_;
 90    /// <summary>
 91    /// default=true
 92    /// </summary>
 93    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 94    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 95    public bool Visible {
 496      get { if ((_hasBits0 & 1) != 0) { return visible_; } else { return false; } }
 97      set {
 298        _hasBits0 |= 1;
 299        visible_ = value;
 2100      }
 101    }
 102    /// <summary>Gets whether the "visible" field is set</summary>
 103    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 104    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 105    public bool HasVisible {
 2106      get { return (_hasBits0 & 1) != 0; }
 107    }
 108    /// <summary>Clears the value of the "visible" field</summary>
 109    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 110    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 111    public void ClearVisible() {
 0112      _hasBits0 &= ~1;
 0113    }
 114
 115    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 116    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 117    public override bool Equals(object other) {
 0118      return Equals(other as PBVisibilityComponent);
 119    }
 120
 121    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 122    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 123    public bool Equals(PBVisibilityComponent other) {
 0124      if (ReferenceEquals(other, null)) {
 0125        return false;
 126      }
 0127      if (ReferenceEquals(other, this)) {
 0128        return true;
 129      }
 0130      if (Visible != other.Visible) return false;
 0131      return Equals(_unknownFields, other._unknownFields);
 132    }
 133
 134    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 135    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 136    public override int GetHashCode() {
 0137      int hash = 1;
 0138      if (HasVisible) hash ^= Visible.GetHashCode();
 0139      if (_unknownFields != null) {
 0140        hash ^= _unknownFields.GetHashCode();
 141      }
 0142      return hash;
 143    }
 144
 145    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 146    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 147    public override string ToString() {
 0148      return pb::JsonFormatter.ToDiagnosticString(this);
 149    }
 150
 151    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 152    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 153    public void WriteTo(pb::CodedOutputStream output) {
 154    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 155      output.WriteRawMessage(this);
 156    #else
 0157      if (HasVisible) {
 0158        output.WriteRawTag(8);
 0159        output.WriteBool(Visible);
 160      }
 0161      if (_unknownFields != null) {
 0162        _unknownFields.WriteTo(output);
 163      }
 164    #endif
 0165    }
 166
 167    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 168    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 169    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 170    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 171      if (HasVisible) {
 172        output.WriteRawTag(8);
 173        output.WriteBool(Visible);
 174      }
 175      if (_unknownFields != null) {
 176        _unknownFields.WriteTo(ref output);
 177      }
 178    }
 179    #endif
 180
 181    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 182    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 183    public int CalculateSize() {
 0184      int size = 0;
 0185      if (HasVisible) {
 0186        size += 1 + 1;
 187      }
 0188      if (_unknownFields != null) {
 0189        size += _unknownFields.CalculateSize();
 190      }
 0191      return size;
 192    }
 193
 194    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 195    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 196    public void MergeFrom(PBVisibilityComponent other) {
 0197      if (other == null) {
 0198        return;
 199      }
 0200      if (other.HasVisible) {
 0201        Visible = other.Visible;
 202      }
 0203      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0204    }
 205
 206    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 207    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 208    public void MergeFrom(pb::CodedInputStream input) {
 209    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 210      input.ReadRawMessage(this);
 211    #else
 212      uint tag;
 0213      while ((tag = input.ReadTag()) != 0) {
 214        switch(tag) {
 215          default:
 0216            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0217            break;
 218          case 8: {
 0219            Visible = input.ReadBool();
 220            break;
 221          }
 222        }
 223      }
 224    #endif
 0225    }
 226
 227    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 228    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 229    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 230    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 231      uint tag;
 232      while ((tag = input.ReadTag()) != 0) {
 233        switch(tag) {
 234          default:
 235            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 236            break;
 237          case 8: {
 238            Visible = input.ReadBool();
 239            break;
 240          }
 241        }
 242      }
 243    }
 244    #endif
 245
 246  }
 247
 248  #endregion
 249
 250}
 251
 252#endregion Designer generated code