< Summary

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

Metrics

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

File(s)

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

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: PlaneShape.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 PlaneShape.proto</summary>
 15  public static partial class PlaneShapeReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for PlaneShape.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 020      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static PlaneShapeReflection() {
 025      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "ChBQbGFuZVNoYXBlLnByb3RvEhBkZWNlbnRyYWxhbmQuZWNzIqcBCgxQQlBs",
 28            "YW5lU2hhcGUSHAoPd2l0aF9jb2xsaXNpb25zGAEgASgISACIAQESHwoSaXNf",
 29            "cG9pbnRlcl9ibG9ja2VyGAIgASgISAGIAQESFAoHdmlzaWJsZRgDIAEoCEgC",
 30            "iAEBEgsKA3V2cxgEIAMoAkISChBfd2l0aF9jb2xsaXNpb25zQhUKE19pc19w",
 31            "b2ludGVyX2Jsb2NrZXJCCgoIX3Zpc2libGVCFKoCEURDTC5FQ1NDb21wb25l",
 32            "bnRzYgZwcm90bzM="));
 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.PBPlaneShape), global::DCL.ECSComponents.PBPl
 37          }));
 038    }
 39    #endregion
 40
 41  }
 42  #region Messages
 43  public sealed partial class PBPlaneShape : pb::IMessage<PBPlaneShape>
 44  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 45      , pb::IBufferMessage
 46  #endif
 47  {
 48    private static readonly pb::MessageParser<PBPlaneShape> _parser = new pb::MessageParser<PBPlaneShape>(() => new PBPl
 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<PBPlaneShape> 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.PlaneShapeReflection.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 PBPlaneShape() {
 70      OnConstruction();
 71    }
 72
 73    partial void OnConstruction();
 74
 75    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 76    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 77    public PBPlaneShape(PBPlaneShape other) : this() {
 78      _hasBits0 = other._hasBits0;
 79      withCollisions_ = other.withCollisions_;
 80      isPointerBlocker_ = other.isPointerBlocker_;
 81      visible_ = other.visible_;
 82      uvs_ = other.uvs_.Clone();
 83      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 84    }
 85
 86    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 87    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 88    public PBPlaneShape Clone() {
 89      return new PBPlaneShape(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 "uvs" field.</summary>
 177    public const int UvsFieldNumber = 4;
 178    private static readonly pb::FieldCodec<float> _repeated_uvs_codec
 179        = pb::FieldCodec.ForFloat(34);
 180    private readonly pbc::RepeatedField<float> uvs_ = new pbc::RepeatedField<float>();
 181    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 182    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 183    public pbc::RepeatedField<float> Uvs {
 184      get { return uvs_; }
 185    }
 186
 187    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 188    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 189    public override bool Equals(object other) {
 190      return Equals(other as PBPlaneShape);
 191    }
 192
 193    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 194    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 195    public bool Equals(PBPlaneShape other) {
 196      if (ReferenceEquals(other, null)) {
 197        return false;
 198      }
 199      if (ReferenceEquals(other, this)) {
 200        return true;
 201      }
 202      if (WithCollisions != other.WithCollisions) return false;
 203      if (IsPointerBlocker != other.IsPointerBlocker) return false;
 204      if (Visible != other.Visible) return false;
 205      if(!uvs_.Equals(other.uvs_)) return false;
 206      return Equals(_unknownFields, other._unknownFields);
 207    }
 208
 209    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 210    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 211    public override int GetHashCode() {
 212      int hash = 1;
 213      if (HasWithCollisions) hash ^= WithCollisions.GetHashCode();
 214      if (HasIsPointerBlocker) hash ^= IsPointerBlocker.GetHashCode();
 215      if (HasVisible) hash ^= Visible.GetHashCode();
 216      hash ^= uvs_.GetHashCode();
 217      if (_unknownFields != null) {
 218        hash ^= _unknownFields.GetHashCode();
 219      }
 220      return hash;
 221    }
 222
 223    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 224    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 225    public override string ToString() {
 226      return pb::JsonFormatter.ToDiagnosticString(this);
 227    }
 228
 229    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 230    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 231    public void WriteTo(pb::CodedOutputStream output) {
 232    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 233      output.WriteRawMessage(this);
 234    #else
 235      if (HasWithCollisions) {
 236        output.WriteRawTag(8);
 237        output.WriteBool(WithCollisions);
 238      }
 239      if (HasIsPointerBlocker) {
 240        output.WriteRawTag(16);
 241        output.WriteBool(IsPointerBlocker);
 242      }
 243      if (HasVisible) {
 244        output.WriteRawTag(24);
 245        output.WriteBool(Visible);
 246      }
 247      uvs_.WriteTo(output, _repeated_uvs_codec);
 248      if (_unknownFields != null) {
 249        _unknownFields.WriteTo(output);
 250      }
 251    #endif
 252    }
 253
 254    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 255    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 256    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 257    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 258      if (HasWithCollisions) {
 259        output.WriteRawTag(8);
 260        output.WriteBool(WithCollisions);
 261      }
 262      if (HasIsPointerBlocker) {
 263        output.WriteRawTag(16);
 264        output.WriteBool(IsPointerBlocker);
 265      }
 266      if (HasVisible) {
 267        output.WriteRawTag(24);
 268        output.WriteBool(Visible);
 269      }
 270      uvs_.WriteTo(ref output, _repeated_uvs_codec);
 271      if (_unknownFields != null) {
 272        _unknownFields.WriteTo(ref output);
 273      }
 274    }
 275    #endif
 276
 277    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 278    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 279    public int CalculateSize() {
 280      int size = 0;
 281      if (HasWithCollisions) {
 282        size += 1 + 1;
 283      }
 284      if (HasIsPointerBlocker) {
 285        size += 1 + 1;
 286      }
 287      if (HasVisible) {
 288        size += 1 + 1;
 289      }
 290      size += uvs_.CalculateSize(_repeated_uvs_codec);
 291      if (_unknownFields != null) {
 292        size += _unknownFields.CalculateSize();
 293      }
 294      return size;
 295    }
 296
 297    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 298    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 299    public void MergeFrom(PBPlaneShape other) {
 300      if (other == null) {
 301        return;
 302      }
 303      if (other.HasWithCollisions) {
 304        WithCollisions = other.WithCollisions;
 305      }
 306      if (other.HasIsPointerBlocker) {
 307        IsPointerBlocker = other.IsPointerBlocker;
 308      }
 309      if (other.HasVisible) {
 310        Visible = other.Visible;
 311      }
 312      uvs_.Add(other.uvs_);
 313      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 314    }
 315
 316    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 317    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 318    public void MergeFrom(pb::CodedInputStream input) {
 319    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 320      input.ReadRawMessage(this);
 321    #else
 322      uint tag;
 323      while ((tag = input.ReadTag()) != 0) {
 324        switch(tag) {
 325          default:
 326            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 327            break;
 328          case 8: {
 329            WithCollisions = input.ReadBool();
 330            break;
 331          }
 332          case 16: {
 333            IsPointerBlocker = input.ReadBool();
 334            break;
 335          }
 336          case 24: {
 337            Visible = input.ReadBool();
 338            break;
 339          }
 340          case 34:
 341          case 37: {
 342            uvs_.AddEntriesFrom(input, _repeated_uvs_codec);
 343            break;
 344          }
 345        }
 346      }
 347    #endif
 348    }
 349
 350    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 351    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 352    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 353    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 354      uint tag;
 355      while ((tag = input.ReadTag()) != 0) {
 356        switch(tag) {
 357          default:
 358            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 359            break;
 360          case 8: {
 361            WithCollisions = input.ReadBool();
 362            break;
 363          }
 364          case 16: {
 365            IsPointerBlocker = input.ReadBool();
 366            break;
 367          }
 368          case 24: {
 369            Visible = input.ReadBool();
 370            break;
 371          }
 372          case 34:
 373          case 37: {
 374            uvs_.AddEntriesFrom(ref input, _repeated_uvs_codec);
 375            break;
 376          }
 377        }
 378      }
 379    }
 380    #endif
 381
 382  }
 383
 384  #endregion
 385
 386}
 387
 388#endregion Designer generated code