< Summary

Class:DCL.ECSComponents.PlaneShapeReflection
Assembly:DCL.Components.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:251
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            "ChBQbGFuZVNoYXBlLnByb3RvEhBkZWNlbnRyYWxhbmQuZWNzImEKDFBCUGxh",
 28            "bmVTaGFwZRIXCg93aXRoX2NvbGxpc2lvbnMYASABKAgSGgoSaXNfcG9pbnRl",
 29            "cl9ibG9ja2VyGAIgASgIEg8KB3Zpc2libGUYAyABKAgSCwoDdXZzGAQgAygC",
 30            "QhSqAhFEQ0wuRUNTQ29tcG9uZW50c2IGcHJvdG8z"));
 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.PBPlaneShape), global::DCL.ECSComponents.PBPl
 35          }));
 036    }
 37    #endregion
 38
 39  }
 40  #region Messages
 41  public sealed partial class PBPlaneShape : pb::IMessage<PBPlaneShape> {
 42    private static readonly pb::MessageParser<PBPlaneShape> _parser = new pb::MessageParser<PBPlaneShape>(() => new PBPl
 43    private pb::UnknownFieldSet _unknownFields;
 44    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 45    public static pb::MessageParser<PBPlaneShape> Parser { get { return _parser; } }
 46
 47    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 48    public static pbr::MessageDescriptor Descriptor {
 49      get { return global::DCL.ECSComponents.PlaneShapeReflection.Descriptor.MessageTypes[0]; }
 50    }
 51
 52    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 53    pbr::MessageDescriptor pb::IMessage.Descriptor {
 54      get { return Descriptor; }
 55    }
 56
 57    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 58    public PBPlaneShape() {
 59      OnConstruction();
 60    }
 61
 62    partial void OnConstruction();
 63
 64    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 65    public PBPlaneShape(PBPlaneShape other) : this() {
 66      withCollisions_ = other.withCollisions_;
 67      isPointerBlocker_ = other.isPointerBlocker_;
 68      visible_ = other.visible_;
 69      uvs_ = other.uvs_.Clone();
 70      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 71    }
 72
 73    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 74    public PBPlaneShape Clone() {
 75      return new PBPlaneShape(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 {
 83      get { return withCollisions_; }
 84      set {
 85        withCollisions_ = value;
 86      }
 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 {
 94      get { return isPointerBlocker_; }
 95      set {
 96        isPointerBlocker_ = value;
 97      }
 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 {
 105      get { return visible_; }
 106      set {
 107        visible_ = value;
 108      }
 109    }
 110
 111    /// <summary>Field number for the "uvs" field.</summary>
 112    public const int UvsFieldNumber = 4;
 113    private static readonly pb::FieldCodec<float> _repeated_uvs_codec
 114        = pb::FieldCodec.ForFloat(34);
 115    private readonly pbc::RepeatedField<float> uvs_ = new pbc::RepeatedField<float>();
 116    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 117    public pbc::RepeatedField<float> Uvs {
 118      get { return uvs_; }
 119    }
 120
 121    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 122    public override bool Equals(object other) {
 123      return Equals(other as PBPlaneShape);
 124    }
 125
 126    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 127    public bool Equals(PBPlaneShape other) {
 128      if (ReferenceEquals(other, null)) {
 129        return false;
 130      }
 131      if (ReferenceEquals(other, this)) {
 132        return true;
 133      }
 134      if (WithCollisions != other.WithCollisions) return false;
 135      if (IsPointerBlocker != other.IsPointerBlocker) return false;
 136      if (Visible != other.Visible) return false;
 137      if(!uvs_.Equals(other.uvs_)) return false;
 138      return Equals(_unknownFields, other._unknownFields);
 139    }
 140
 141    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 142    public override int GetHashCode() {
 143      int hash = 1;
 144      if (WithCollisions != false) hash ^= WithCollisions.GetHashCode();
 145      if (IsPointerBlocker != false) hash ^= IsPointerBlocker.GetHashCode();
 146      if (Visible != false) hash ^= Visible.GetHashCode();
 147      hash ^= uvs_.GetHashCode();
 148      if (_unknownFields != null) {
 149        hash ^= _unknownFields.GetHashCode();
 150      }
 151      return hash;
 152    }
 153
 154    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 155    public override string ToString() {
 156      return pb::JsonFormatter.ToDiagnosticString(this);
 157    }
 158
 159    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 160    public void WriteTo(pb::CodedOutputStream output) {
 161      if (WithCollisions != false) {
 162        output.WriteRawTag(8);
 163        output.WriteBool(WithCollisions);
 164      }
 165      if (IsPointerBlocker != false) {
 166        output.WriteRawTag(16);
 167        output.WriteBool(IsPointerBlocker);
 168      }
 169      if (Visible != false) {
 170        output.WriteRawTag(24);
 171        output.WriteBool(Visible);
 172      }
 173      uvs_.WriteTo(output, _repeated_uvs_codec);
 174      if (_unknownFields != null) {
 175        _unknownFields.WriteTo(output);
 176      }
 177    }
 178
 179    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 180    public int CalculateSize() {
 181      int size = 0;
 182      if (WithCollisions != false) {
 183        size += 1 + 1;
 184      }
 185      if (IsPointerBlocker != false) {
 186        size += 1 + 1;
 187      }
 188      if (Visible != false) {
 189        size += 1 + 1;
 190      }
 191      size += uvs_.CalculateSize(_repeated_uvs_codec);
 192      if (_unknownFields != null) {
 193        size += _unknownFields.CalculateSize();
 194      }
 195      return size;
 196    }
 197
 198    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 199    public void MergeFrom(PBPlaneShape other) {
 200      if (other == null) {
 201        return;
 202      }
 203      if (other.WithCollisions != false) {
 204        WithCollisions = other.WithCollisions;
 205      }
 206      if (other.IsPointerBlocker != false) {
 207        IsPointerBlocker = other.IsPointerBlocker;
 208      }
 209      if (other.Visible != false) {
 210        Visible = other.Visible;
 211      }
 212      uvs_.Add(other.uvs_);
 213      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 214    }
 215
 216    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 217    public void MergeFrom(pb::CodedInputStream input) {
 218      uint tag;
 219      while ((tag = input.ReadTag()) != 0) {
 220        switch(tag) {
 221          default:
 222            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 223            break;
 224          case 8: {
 225            WithCollisions = input.ReadBool();
 226            break;
 227          }
 228          case 16: {
 229            IsPointerBlocker = input.ReadBool();
 230            break;
 231          }
 232          case 24: {
 233            Visible = input.ReadBool();
 234            break;
 235          }
 236          case 34:
 237          case 37: {
 238            uvs_.AddEntriesFrom(input, _repeated_uvs_codec);
 239            break;
 240          }
 241        }
 242      }
 243    }
 244
 245  }
 246
 247  #endregion
 248
 249}
 250
 251#endregion Designer generated code