< Summary

Class:Decentraland.Common.BorderRect
Assembly:Decentraland.Protocol.GeneratedCode
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/BorderRect.gen.cs
Covered lines:0
Uncovered lines:95
Coverable lines:95
Total lines:348
Line coverage:0% (0 of 95)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
BorderRect()0%2100%
get_Descriptor()0%2100%
BorderRect()0%2100%
BorderRect(...)0%2100%
Clone()0%2100%
Equals(...)0%2100%
Equals(...)0%56700%
GetHashCode()0%42600%
ToString()0%2100%
WriteTo(...)0%42600%
CalculateSize()0%42600%
MergeFrom(...)0%42600%
MergeFrom(...)0%56700%

File(s)

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

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: decentraland/common/border_rect.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 Decentraland.Common {
 13
 14  /// <summary>Holder for reflection information generated from decentraland/common/border_rect.proto</summary>
 15  public static partial class BorderRectReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for decentraland/common/border_rect.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static BorderRectReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "CiVkZWNlbnRyYWxhbmQvY29tbW9uL2JvcmRlcl9yZWN0LnByb3RvEhNkZWNl",
 28            "bnRyYWxhbmQuY29tbW9uIkYKCkJvcmRlclJlY3QSCwoDdG9wGAEgASgCEgwK",
 29            "BGxlZnQYAiABKAISDQoFcmlnaHQYAyABKAISDgoGYm90dG9tGAQgASgCYgZw",
 30            "cm90bzM="));
 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::Decentraland.Common.BorderRect), global::Decentraland.Common.Bo
 35          }));
 36    }
 37    #endregion
 38
 39  }
 40  #region Messages
 41  /// <summary>
 42  /// Defines indents from respective edges
 43  /// </summary>
 44  public sealed partial class BorderRect : pb::IMessage<BorderRect>
 45  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 46      , pb::IBufferMessage
 47  #endif
 48  {
 049    private static readonly pb::MessageParser<BorderRect> _parser = new pb::MessageParser<BorderRect>(() => new BorderRe
 50    private pb::UnknownFieldSet _unknownFields;
 51    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 52    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 053    public static pb::MessageParser<BorderRect> Parser { get { return _parser; } }
 54
 55    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 56    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 57    public static pbr::MessageDescriptor Descriptor {
 058      get { return global::Decentraland.Common.BorderRectReflection.Descriptor.MessageTypes[0]; }
 59    }
 60
 61    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 62    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 63    pbr::MessageDescriptor pb::IMessage.Descriptor {
 064      get { return Descriptor; }
 65    }
 66
 67    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 68    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 069    public BorderRect() {
 70      OnConstruction();
 071    }
 72
 73    partial void OnConstruction();
 74
 75    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 76    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 077    public BorderRect(BorderRect other) : this() {
 078      top_ = other.top_;
 079      left_ = other.left_;
 080      right_ = other.right_;
 081      bottom_ = other.bottom_;
 082      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 083    }
 84
 85    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 86    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 87    public BorderRect Clone() {
 088      return new BorderRect(this);
 89    }
 90
 91    /// <summary>Field number for the "top" field.</summary>
 92    public const int TopFieldNumber = 1;
 93    private float top_;
 94    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 95    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 96    public float Top {
 097      get { return top_; }
 98      set {
 099        top_ = value;
 0100      }
 101    }
 102
 103    /// <summary>Field number for the "left" field.</summary>
 104    public const int LeftFieldNumber = 2;
 105    private float left_;
 106    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 107    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 108    public float Left {
 0109      get { return left_; }
 110      set {
 0111        left_ = value;
 0112      }
 113    }
 114
 115    /// <summary>Field number for the "right" field.</summary>
 116    public const int RightFieldNumber = 3;
 117    private float right_;
 118    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 119    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 120    public float Right {
 0121      get { return right_; }
 122      set {
 0123        right_ = value;
 0124      }
 125    }
 126
 127    /// <summary>Field number for the "bottom" field.</summary>
 128    public const int BottomFieldNumber = 4;
 129    private float bottom_;
 130    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 131    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 132    public float Bottom {
 0133      get { return bottom_; }
 134      set {
 0135        bottom_ = value;
 0136      }
 137    }
 138
 139    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 140    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 141    public override bool Equals(object other) {
 0142      return Equals(other as BorderRect);
 143    }
 144
 145    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 146    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 147    public bool Equals(BorderRect other) {
 0148      if (ReferenceEquals(other, null)) {
 0149        return false;
 150      }
 0151      if (ReferenceEquals(other, this)) {
 0152        return true;
 153      }
 0154      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Top, other.Top)) return false;
 0155      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Left, other.Left)) return false;
 0156      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Right, other.Right)) return false;
 0157      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Bottom, other.Bottom)) return false;
 0158      return Equals(_unknownFields, other._unknownFields);
 159    }
 160
 161    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 162    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 163    public override int GetHashCode() {
 0164      int hash = 1;
 0165      if (Top != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Top);
 0166      if (Left != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Left);
 0167      if (Right != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Right);
 0168      if (Bottom != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Bottom);
 0169      if (_unknownFields != null) {
 0170        hash ^= _unknownFields.GetHashCode();
 171      }
 0172      return hash;
 173    }
 174
 175    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 176    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 177    public override string ToString() {
 0178      return pb::JsonFormatter.ToDiagnosticString(this);
 179    }
 180
 181    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 182    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 183    public void WriteTo(pb::CodedOutputStream output) {
 184    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 185      output.WriteRawMessage(this);
 186    #else
 0187      if (Top != 0F) {
 0188        output.WriteRawTag(13);
 0189        output.WriteFloat(Top);
 190      }
 0191      if (Left != 0F) {
 0192        output.WriteRawTag(21);
 0193        output.WriteFloat(Left);
 194      }
 0195      if (Right != 0F) {
 0196        output.WriteRawTag(29);
 0197        output.WriteFloat(Right);
 198      }
 0199      if (Bottom != 0F) {
 0200        output.WriteRawTag(37);
 0201        output.WriteFloat(Bottom);
 202      }
 0203      if (_unknownFields != null) {
 0204        _unknownFields.WriteTo(output);
 205      }
 206    #endif
 0207    }
 208
 209    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 210    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 211    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 212    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 213      if (Top != 0F) {
 214        output.WriteRawTag(13);
 215        output.WriteFloat(Top);
 216      }
 217      if (Left != 0F) {
 218        output.WriteRawTag(21);
 219        output.WriteFloat(Left);
 220      }
 221      if (Right != 0F) {
 222        output.WriteRawTag(29);
 223        output.WriteFloat(Right);
 224      }
 225      if (Bottom != 0F) {
 226        output.WriteRawTag(37);
 227        output.WriteFloat(Bottom);
 228      }
 229      if (_unknownFields != null) {
 230        _unknownFields.WriteTo(ref output);
 231      }
 232    }
 233    #endif
 234
 235    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 236    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 237    public int CalculateSize() {
 0238      int size = 0;
 0239      if (Top != 0F) {
 0240        size += 1 + 4;
 241      }
 0242      if (Left != 0F) {
 0243        size += 1 + 4;
 244      }
 0245      if (Right != 0F) {
 0246        size += 1 + 4;
 247      }
 0248      if (Bottom != 0F) {
 0249        size += 1 + 4;
 250      }
 0251      if (_unknownFields != null) {
 0252        size += _unknownFields.CalculateSize();
 253      }
 0254      return size;
 255    }
 256
 257    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 258    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 259    public void MergeFrom(BorderRect other) {
 0260      if (other == null) {
 0261        return;
 262      }
 0263      if (other.Top != 0F) {
 0264        Top = other.Top;
 265      }
 0266      if (other.Left != 0F) {
 0267        Left = other.Left;
 268      }
 0269      if (other.Right != 0F) {
 0270        Right = other.Right;
 271      }
 0272      if (other.Bottom != 0F) {
 0273        Bottom = other.Bottom;
 274      }
 0275      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0276    }
 277
 278    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 279    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 280    public void MergeFrom(pb::CodedInputStream input) {
 281    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 282      input.ReadRawMessage(this);
 283    #else
 284      uint tag;
 0285      while ((tag = input.ReadTag()) != 0) {
 286        switch(tag) {
 287          default:
 0288            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0289            break;
 290          case 13: {
 0291            Top = input.ReadFloat();
 0292            break;
 293          }
 294          case 21: {
 0295            Left = input.ReadFloat();
 0296            break;
 297          }
 298          case 29: {
 0299            Right = input.ReadFloat();
 0300            break;
 301          }
 302          case 37: {
 0303            Bottom = input.ReadFloat();
 304            break;
 305          }
 306        }
 307      }
 308    #endif
 0309    }
 310
 311    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 312    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 313    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 314    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 315      uint tag;
 316      while ((tag = input.ReadTag()) != 0) {
 317        switch(tag) {
 318          default:
 319            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 320            break;
 321          case 13: {
 322            Top = input.ReadFloat();
 323            break;
 324          }
 325          case 21: {
 326            Left = input.ReadFloat();
 327            break;
 328          }
 329          case 29: {
 330            Right = input.ReadFloat();
 331            break;
 332          }
 333          case 37: {
 334            Bottom = input.ReadFloat();
 335            break;
 336          }
 337        }
 338      }
 339    }
 340    #endif
 341
 342  }
 343
 344  #endregion
 345
 346}
 347
 348#endregion Designer generated code