< Summary

Class:Decentraland.Common.BorderRectReflection
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:4
Coverable lines:4
Total lines:348
Line coverage:0% (0 of 4)
Covered branches:0
Total branches:0

Metrics

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

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 {
 020      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static BorderRectReflection() {
 025      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "CiVkZWNlbnRyYWxhbmQvY29tbW9uL2JvcmRlcl9yZWN0LnByb3RvEhNkZWNl",
 28            "bnRyYWxhbmQuY29tbW9uIkYKCkJvcmRlclJlY3QSCwoDdG9wGAEgASgCEgwK",
 29            "BGxlZnQYAiABKAISDQoFcmlnaHQYAyABKAISDgoGYm90dG9tGAQgASgCYgZw",
 30            "cm90bzM="));
 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::Decentraland.Common.BorderRect), global::Decentraland.Common.Bo
 35          }));
 036    }
 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  {
 49    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)]
 53    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 {
 58      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 {
 64      get { return Descriptor; }
 65    }
 66
 67    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 68    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 69    public BorderRect() {
 70      OnConstruction();
 71    }
 72
 73    partial void OnConstruction();
 74
 75    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 76    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 77    public BorderRect(BorderRect other) : this() {
 78      top_ = other.top_;
 79      left_ = other.left_;
 80      right_ = other.right_;
 81      bottom_ = other.bottom_;
 82      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 83    }
 84
 85    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 86    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 87    public BorderRect Clone() {
 88      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 {
 97      get { return top_; }
 98      set {
 99        top_ = value;
 100      }
 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 {
 109      get { return left_; }
 110      set {
 111        left_ = value;
 112      }
 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 {
 121      get { return right_; }
 122      set {
 123        right_ = value;
 124      }
 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 {
 133      get { return bottom_; }
 134      set {
 135        bottom_ = value;
 136      }
 137    }
 138
 139    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 140    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 141    public override bool Equals(object other) {
 142      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) {
 148      if (ReferenceEquals(other, null)) {
 149        return false;
 150      }
 151      if (ReferenceEquals(other, this)) {
 152        return true;
 153      }
 154      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Top, other.Top)) return false;
 155      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Left, other.Left)) return false;
 156      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Right, other.Right)) return false;
 157      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Bottom, other.Bottom)) return false;
 158      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() {
 164      int hash = 1;
 165      if (Top != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Top);
 166      if (Left != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Left);
 167      if (Right != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Right);
 168      if (Bottom != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Bottom);
 169      if (_unknownFields != null) {
 170        hash ^= _unknownFields.GetHashCode();
 171      }
 172      return hash;
 173    }
 174
 175    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 176    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 177    public override string ToString() {
 178      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
 187      if (Top != 0F) {
 188        output.WriteRawTag(13);
 189        output.WriteFloat(Top);
 190      }
 191      if (Left != 0F) {
 192        output.WriteRawTag(21);
 193        output.WriteFloat(Left);
 194      }
 195      if (Right != 0F) {
 196        output.WriteRawTag(29);
 197        output.WriteFloat(Right);
 198      }
 199      if (Bottom != 0F) {
 200        output.WriteRawTag(37);
 201        output.WriteFloat(Bottom);
 202      }
 203      if (_unknownFields != null) {
 204        _unknownFields.WriteTo(output);
 205      }
 206    #endif
 207    }
 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() {
 238      int size = 0;
 239      if (Top != 0F) {
 240        size += 1 + 4;
 241      }
 242      if (Left != 0F) {
 243        size += 1 + 4;
 244      }
 245      if (Right != 0F) {
 246        size += 1 + 4;
 247      }
 248      if (Bottom != 0F) {
 249        size += 1 + 4;
 250      }
 251      if (_unknownFields != null) {
 252        size += _unknownFields.CalculateSize();
 253      }
 254      return size;
 255    }
 256
 257    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 258    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 259    public void MergeFrom(BorderRect other) {
 260      if (other == null) {
 261        return;
 262      }
 263      if (other.Top != 0F) {
 264        Top = other.Top;
 265      }
 266      if (other.Left != 0F) {
 267        Left = other.Left;
 268      }
 269      if (other.Right != 0F) {
 270        Right = other.Right;
 271      }
 272      if (other.Bottom != 0F) {
 273        Bottom = other.Bottom;
 274      }
 275      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 276    }
 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;
 285      while ((tag = input.ReadTag()) != 0) {
 286        switch(tag) {
 287          default:
 288            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 289            break;
 290          case 13: {
 291            Top = input.ReadFloat();
 292            break;
 293          }
 294          case 21: {
 295            Left = input.ReadFloat();
 296            break;
 297          }
 298          case 29: {
 299            Right = input.ReadFloat();
 300            break;
 301          }
 302          case 37: {
 303            Bottom = input.ReadFloat();
 304            break;
 305          }
 306        }
 307      }
 308    #endif
 309    }
 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