< Summary

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

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
VisibilityComponentReflection()0%2100%

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 {
 020      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static VisibilityComponentReflection() {
 025      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "CjZkZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvdmlzaWJpbGl0eV9jb21w",
 28            "b25lbnQucHJvdG8SG2RlY2VudHJhbGFuZC5zZGsuY29tcG9uZW50cyI5ChVQ",
 29            "QlZpc2liaWxpdHlDb21wb25lbnQSFAoHdmlzaWJsZRgBIAEoCEgAiAEBQgoK",
 30            "CF92aXNpYmxlQhSqAhFEQ0wuRUNTQ29tcG9uZW50c2IGcHJvdG8z"));
 031      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          }));
 036    }
 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  {
 46    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)]
 51    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 {
 56      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 {
 62      get { return Descriptor; }
 63    }
 64
 65    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 66    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 67    public PBVisibilityComponent() {
 68      OnConstruction();
 69    }
 70
 71    partial void OnConstruction();
 72
 73    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 74    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 75    public PBVisibilityComponent(PBVisibilityComponent other) : this() {
 76      _hasBits0 = other._hasBits0;
 77      visible_ = other.visible_;
 78      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 79    }
 80
 81    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 82    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 83    public PBVisibilityComponent Clone() {
 84      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 {
 96      get { if ((_hasBits0 & 1) != 0) { return visible_; } else { return false; } }
 97      set {
 98        _hasBits0 |= 1;
 99        visible_ = value;
 100      }
 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 {
 106      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() {
 112      _hasBits0 &= ~1;
 113    }
 114
 115    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 116    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 117    public override bool Equals(object other) {
 118      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) {
 124      if (ReferenceEquals(other, null)) {
 125        return false;
 126      }
 127      if (ReferenceEquals(other, this)) {
 128        return true;
 129      }
 130      if (Visible != other.Visible) return false;
 131      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() {
 137      int hash = 1;
 138      if (HasVisible) hash ^= Visible.GetHashCode();
 139      if (_unknownFields != null) {
 140        hash ^= _unknownFields.GetHashCode();
 141      }
 142      return hash;
 143    }
 144
 145    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 146    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 147    public override string ToString() {
 148      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
 157      if (HasVisible) {
 158        output.WriteRawTag(8);
 159        output.WriteBool(Visible);
 160      }
 161      if (_unknownFields != null) {
 162        _unknownFields.WriteTo(output);
 163      }
 164    #endif
 165    }
 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() {
 184      int size = 0;
 185      if (HasVisible) {
 186        size += 1 + 1;
 187      }
 188      if (_unknownFields != null) {
 189        size += _unknownFields.CalculateSize();
 190      }
 191      return size;
 192    }
 193
 194    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 195    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 196    public void MergeFrom(PBVisibilityComponent other) {
 197      if (other == null) {
 198        return;
 199      }
 200      if (other.HasVisible) {
 201        Visible = other.Visible;
 202      }
 203      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 204    }
 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;
 213      while ((tag = input.ReadTag()) != 0) {
 214        switch(tag) {
 215          default:
 216            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 217            break;
 218          case 8: {
 219            Visible = input.ReadBool();
 220            break;
 221          }
 222        }
 223      }
 224    #endif
 225    }
 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