< Summary

Class:DCL.ECSComponents.GLTFShapeReflection
Assembly:DCL.ECSComponents.ProtobufData
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/PBFiles/GLTFShape.cs
Covered lines:0
Uncovered lines:4
Coverable lines:4
Total lines:397
Line coverage:0% (0 of 4)
Covered branches:0
Total branches:0

Metrics

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

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 {
 020      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static GLTFShapeReflection() {
 025      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "Cg9HTFRGU2hhcGUucHJvdG8SEGRlY2VudHJhbGFuZC5lY3MipgEKC1BCR0xU",
 28            "RlNoYXBlEhwKD3dpdGhfY29sbGlzaW9ucxgBIAEoCEgAiAEBEh8KEmlzX3Bv",
 29            "aW50ZXJfYmxvY2tlchgCIAEoCEgBiAEBEhQKB3Zpc2libGUYAyABKAhIAogB",
 30            "ARILCgNzcmMYBCABKAlCEgoQX3dpdGhfY29sbGlzaW9uc0IVChNfaXNfcG9p",
 31            "bnRlcl9ibG9ja2VyQgoKCF92aXNpYmxlQhSqAhFEQ0wuRUNTQ29tcG9uZW50",
 32            "c2IGcHJvdG8z"));
 033      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 34          new pbr::FileDescriptor[] { },
 35          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 36            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBGLTFShape), global::DCL.ECSComponents.PBGLT
 37          }));
 038    }
 39    #endregion
 40
 41  }
 42  #region Messages
 43  public sealed partial class PBGLTFShape : pb::IMessage<PBGLTFShape>
 44  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 45      , pb::IBufferMessage
 46  #endif
 47  {
 48    private static readonly pb::MessageParser<PBGLTFShape> _parser = new pb::MessageParser<PBGLTFShape>(() => new PBGLTF
 49    private pb::UnknownFieldSet _unknownFields;
 50    private int _hasBits0;
 51    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 52    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 53    public static pb::MessageParser<PBGLTFShape> Parser { get { return _parser; } }
 54
 55    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 56    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 57    public static pbr::MessageDescriptor Descriptor {
 58      get { return global::DCL.ECSComponents.GLTFShapeReflection.Descriptor.MessageTypes[0]; }
 59    }
 60
 61    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 62    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 63    pbr::MessageDescriptor pb::IMessage.Descriptor {
 64      get { return Descriptor; }
 65    }
 66
 67    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 68    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 69    public PBGLTFShape() {
 70      OnConstruction();
 71    }
 72
 73    partial void OnConstruction();
 74
 75    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 76    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 77    public PBGLTFShape(PBGLTFShape other) : this() {
 78      _hasBits0 = other._hasBits0;
 79      withCollisions_ = other.withCollisions_;
 80      isPointerBlocker_ = other.isPointerBlocker_;
 81      visible_ = other.visible_;
 82      src_ = other.src_;
 83      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 84    }
 85
 86    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 87    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 88    public PBGLTFShape Clone() {
 89      return new PBGLTFShape(this);
 90    }
 91
 92    /// <summary>Field number for the "with_collisions" field.</summary>
 93    public const int WithCollisionsFieldNumber = 1;
 94    private bool withCollisions_;
 95    /// <summary>
 96    /// @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366
 97    /// </summary>
 98    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 99    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 100    public bool WithCollisions {
 101      get { if ((_hasBits0 & 1) != 0) { return withCollisions_; } else { return false; } }
 102      set {
 103        _hasBits0 |= 1;
 104        withCollisions_ = value;
 105      }
 106    }
 107    /// <summary>Gets whether the "with_collisions" field is set</summary>
 108    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 109    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 110    public bool HasWithCollisions {
 111      get { return (_hasBits0 & 1) != 0; }
 112    }
 113    /// <summary>Clears the value of the "with_collisions" field</summary>
 114    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 115    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 116    public void ClearWithCollisions() {
 117      _hasBits0 &= ~1;
 118    }
 119
 120    /// <summary>Field number for the "is_pointer_blocker" field.</summary>
 121    public const int IsPointerBlockerFieldNumber = 2;
 122    private bool isPointerBlocker_;
 123    /// <summary>
 124    /// @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366
 125    /// </summary>
 126    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 127    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 128    public bool IsPointerBlocker {
 129      get { if ((_hasBits0 & 2) != 0) { return isPointerBlocker_; } else { return false; } }
 130      set {
 131        _hasBits0 |= 2;
 132        isPointerBlocker_ = value;
 133      }
 134    }
 135    /// <summary>Gets whether the "is_pointer_blocker" field is set</summary>
 136    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 137    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 138    public bool HasIsPointerBlocker {
 139      get { return (_hasBits0 & 2) != 0; }
 140    }
 141    /// <summary>Clears the value of the "is_pointer_blocker" field</summary>
 142    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 143    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 144    public void ClearIsPointerBlocker() {
 145      _hasBits0 &= ~2;
 146    }
 147
 148    /// <summary>Field number for the "visible" field.</summary>
 149    public const int VisibleFieldNumber = 3;
 150    private bool visible_;
 151    /// <summary>
 152    /// @deprecated use HiddenComponent instead https://github.com/decentraland/sdk/issues/353
 153    /// </summary>
 154    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 155    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 156    public bool Visible {
 157      get { if ((_hasBits0 & 4) != 0) { return visible_; } else { return false; } }
 158      set {
 159        _hasBits0 |= 4;
 160        visible_ = value;
 161      }
 162    }
 163    /// <summary>Gets whether the "visible" field is set</summary>
 164    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 165    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 166    public bool HasVisible {
 167      get { return (_hasBits0 & 4) != 0; }
 168    }
 169    /// <summary>Clears the value of the "visible" field</summary>
 170    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 171    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 172    public void ClearVisible() {
 173      _hasBits0 &= ~4;
 174    }
 175
 176    /// <summary>Field number for the "src" field.</summary>
 177    public const int SrcFieldNumber = 4;
 178    private string src_ = "";
 179    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 180    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 181    public string Src {
 182      get { return src_; }
 183      set {
 184        src_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 185      }
 186    }
 187
 188    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 189    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 190    public override bool Equals(object other) {
 191      return Equals(other as PBGLTFShape);
 192    }
 193
 194    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 195    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 196    public bool Equals(PBGLTFShape other) {
 197      if (ReferenceEquals(other, null)) {
 198        return false;
 199      }
 200      if (ReferenceEquals(other, this)) {
 201        return true;
 202      }
 203      if (WithCollisions != other.WithCollisions) return false;
 204      if (IsPointerBlocker != other.IsPointerBlocker) return false;
 205      if (Visible != other.Visible) return false;
 206      if (Src != other.Src) return false;
 207      return Equals(_unknownFields, other._unknownFields);
 208    }
 209
 210    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 211    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 212    public override int GetHashCode() {
 213      int hash = 1;
 214      if (HasWithCollisions) hash ^= WithCollisions.GetHashCode();
 215      if (HasIsPointerBlocker) hash ^= IsPointerBlocker.GetHashCode();
 216      if (HasVisible) hash ^= Visible.GetHashCode();
 217      if (Src.Length != 0) hash ^= Src.GetHashCode();
 218      if (_unknownFields != null) {
 219        hash ^= _unknownFields.GetHashCode();
 220      }
 221      return hash;
 222    }
 223
 224    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 225    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 226    public override string ToString() {
 227      return pb::JsonFormatter.ToDiagnosticString(this);
 228    }
 229
 230    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 231    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 232    public void WriteTo(pb::CodedOutputStream output) {
 233    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 234      output.WriteRawMessage(this);
 235    #else
 236      if (HasWithCollisions) {
 237        output.WriteRawTag(8);
 238        output.WriteBool(WithCollisions);
 239      }
 240      if (HasIsPointerBlocker) {
 241        output.WriteRawTag(16);
 242        output.WriteBool(IsPointerBlocker);
 243      }
 244      if (HasVisible) {
 245        output.WriteRawTag(24);
 246        output.WriteBool(Visible);
 247      }
 248      if (Src.Length != 0) {
 249        output.WriteRawTag(34);
 250        output.WriteString(Src);
 251      }
 252      if (_unknownFields != null) {
 253        _unknownFields.WriteTo(output);
 254      }
 255    #endif
 256    }
 257
 258    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 259    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 260    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 261    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 262      if (HasWithCollisions) {
 263        output.WriteRawTag(8);
 264        output.WriteBool(WithCollisions);
 265      }
 266      if (HasIsPointerBlocker) {
 267        output.WriteRawTag(16);
 268        output.WriteBool(IsPointerBlocker);
 269      }
 270      if (HasVisible) {
 271        output.WriteRawTag(24);
 272        output.WriteBool(Visible);
 273      }
 274      if (Src.Length != 0) {
 275        output.WriteRawTag(34);
 276        output.WriteString(Src);
 277      }
 278      if (_unknownFields != null) {
 279        _unknownFields.WriteTo(ref output);
 280      }
 281    }
 282    #endif
 283
 284    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 285    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 286    public int CalculateSize() {
 287      int size = 0;
 288      if (HasWithCollisions) {
 289        size += 1 + 1;
 290      }
 291      if (HasIsPointerBlocker) {
 292        size += 1 + 1;
 293      }
 294      if (HasVisible) {
 295        size += 1 + 1;
 296      }
 297      if (Src.Length != 0) {
 298        size += 1 + pb::CodedOutputStream.ComputeStringSize(Src);
 299      }
 300      if (_unknownFields != null) {
 301        size += _unknownFields.CalculateSize();
 302      }
 303      return size;
 304    }
 305
 306    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 307    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 308    public void MergeFrom(PBGLTFShape other) {
 309      if (other == null) {
 310        return;
 311      }
 312      if (other.HasWithCollisions) {
 313        WithCollisions = other.WithCollisions;
 314      }
 315      if (other.HasIsPointerBlocker) {
 316        IsPointerBlocker = other.IsPointerBlocker;
 317      }
 318      if (other.HasVisible) {
 319        Visible = other.Visible;
 320      }
 321      if (other.Src.Length != 0) {
 322        Src = other.Src;
 323      }
 324      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 325    }
 326
 327    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 328    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 329    public void MergeFrom(pb::CodedInputStream input) {
 330    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 331      input.ReadRawMessage(this);
 332    #else
 333      uint tag;
 334      while ((tag = input.ReadTag()) != 0) {
 335        switch(tag) {
 336          default:
 337            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 338            break;
 339          case 8: {
 340            WithCollisions = input.ReadBool();
 341            break;
 342          }
 343          case 16: {
 344            IsPointerBlocker = input.ReadBool();
 345            break;
 346          }
 347          case 24: {
 348            Visible = input.ReadBool();
 349            break;
 350          }
 351          case 34: {
 352            Src = input.ReadString();
 353            break;
 354          }
 355        }
 356      }
 357    #endif
 358    }
 359
 360    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 361    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 362    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 363    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 364      uint tag;
 365      while ((tag = input.ReadTag()) != 0) {
 366        switch(tag) {
 367          default:
 368            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 369            break;
 370          case 8: {
 371            WithCollisions = input.ReadBool();
 372            break;
 373          }
 374          case 16: {
 375            IsPointerBlocker = input.ReadBool();
 376            break;
 377          }
 378          case 24: {
 379            Visible = input.ReadBool();
 380            break;
 381          }
 382          case 34: {
 383            Src = input.ReadString();
 384            break;
 385          }
 386        }
 387      }
 388    }
 389    #endif
 390
 391  }
 392
 393  #endregion
 394
 395}
 396
 397#endregion Designer generated code

Methods/Properties

Descriptor()
GLTFShapeReflection()