< Summary

Class:Decentraland.Common.Rect
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:653
Line coverage:0% (0 of 95)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:23
Method coverage:0% (0 of 23)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
Rect()0%2100%
get_Descriptor()0%2100%
Rect()0%2100%
Rect(...)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            "BGxlZnQYAiABKAISDQoFcmlnaHQYAyABKAISDgoGYm90dG9tGAQgASgCIjsK",
 30            "BFJlY3QSCQoBeBgBIAEoAhIJCgF5GAIgASgCEg0KBXdpZHRoGAMgASgCEg4K",
 31            "BmhlaWdodBgEIAEoAmIGcHJvdG8z"));
 32      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 33          new pbr::FileDescriptor[] { },
 34          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 35            new pbr::GeneratedClrTypeInfo(typeof(global::Decentraland.Common.BorderRect), global::Decentraland.Common.Bo
 36            new pbr::GeneratedClrTypeInfo(typeof(global::Decentraland.Common.Rect), global::Decentraland.Common.Rect.Par
 37          }));
 38    }
 39    #endregion
 40
 41  }
 42  #region Messages
 43  /// <summary>
 44  /// Defines indents from respective edges
 45  /// </summary>
 46  public sealed partial class BorderRect : pb::IMessage<BorderRect>
 47  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 48      , pb::IBufferMessage
 49  #endif
 50  {
 51    private static readonly pb::MessageParser<BorderRect> _parser = new pb::MessageParser<BorderRect>(() => new BorderRe
 52    private pb::UnknownFieldSet _unknownFields;
 53    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 54    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 55    public static pb::MessageParser<BorderRect> Parser { get { return _parser; } }
 56
 57    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 58    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 59    public static pbr::MessageDescriptor Descriptor {
 60      get { return global::Decentraland.Common.BorderRectReflection.Descriptor.MessageTypes[0]; }
 61    }
 62
 63    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 64    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 65    pbr::MessageDescriptor pb::IMessage.Descriptor {
 66      get { return Descriptor; }
 67    }
 68
 69    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 70    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 71    public BorderRect() {
 72      OnConstruction();
 73    }
 74
 75    partial void OnConstruction();
 76
 77    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 78    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 79    public BorderRect(BorderRect other) : this() {
 80      top_ = other.top_;
 81      left_ = other.left_;
 82      right_ = other.right_;
 83      bottom_ = other.bottom_;
 84      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 85    }
 86
 87    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 88    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 89    public BorderRect Clone() {
 90      return new BorderRect(this);
 91    }
 92
 93    /// <summary>Field number for the "top" field.</summary>
 94    public const int TopFieldNumber = 1;
 95    private float top_;
 96    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 97    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 98    public float Top {
 99      get { return top_; }
 100      set {
 101        top_ = value;
 102      }
 103    }
 104
 105    /// <summary>Field number for the "left" field.</summary>
 106    public const int LeftFieldNumber = 2;
 107    private float left_;
 108    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 109    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 110    public float Left {
 111      get { return left_; }
 112      set {
 113        left_ = value;
 114      }
 115    }
 116
 117    /// <summary>Field number for the "right" field.</summary>
 118    public const int RightFieldNumber = 3;
 119    private float right_;
 120    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 121    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 122    public float Right {
 123      get { return right_; }
 124      set {
 125        right_ = value;
 126      }
 127    }
 128
 129    /// <summary>Field number for the "bottom" field.</summary>
 130    public const int BottomFieldNumber = 4;
 131    private float bottom_;
 132    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 133    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 134    public float Bottom {
 135      get { return bottom_; }
 136      set {
 137        bottom_ = value;
 138      }
 139    }
 140
 141    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 142    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 143    public override bool Equals(object other) {
 144      return Equals(other as BorderRect);
 145    }
 146
 147    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 148    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 149    public bool Equals(BorderRect other) {
 150      if (ReferenceEquals(other, null)) {
 151        return false;
 152      }
 153      if (ReferenceEquals(other, this)) {
 154        return true;
 155      }
 156      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Top, other.Top)) return false;
 157      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Left, other.Left)) return false;
 158      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Right, other.Right)) return false;
 159      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Bottom, other.Bottom)) return false;
 160      return Equals(_unknownFields, other._unknownFields);
 161    }
 162
 163    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 164    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 165    public override int GetHashCode() {
 166      int hash = 1;
 167      if (Top != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Top);
 168      if (Left != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Left);
 169      if (Right != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Right);
 170      if (Bottom != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Bottom);
 171      if (_unknownFields != null) {
 172        hash ^= _unknownFields.GetHashCode();
 173      }
 174      return hash;
 175    }
 176
 177    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 178    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 179    public override string ToString() {
 180      return pb::JsonFormatter.ToDiagnosticString(this);
 181    }
 182
 183    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 184    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 185    public void WriteTo(pb::CodedOutputStream output) {
 186    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 187      output.WriteRawMessage(this);
 188    #else
 189      if (Top != 0F) {
 190        output.WriteRawTag(13);
 191        output.WriteFloat(Top);
 192      }
 193      if (Left != 0F) {
 194        output.WriteRawTag(21);
 195        output.WriteFloat(Left);
 196      }
 197      if (Right != 0F) {
 198        output.WriteRawTag(29);
 199        output.WriteFloat(Right);
 200      }
 201      if (Bottom != 0F) {
 202        output.WriteRawTag(37);
 203        output.WriteFloat(Bottom);
 204      }
 205      if (_unknownFields != null) {
 206        _unknownFields.WriteTo(output);
 207      }
 208    #endif
 209    }
 210
 211    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 212    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 213    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 214    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 215      if (Top != 0F) {
 216        output.WriteRawTag(13);
 217        output.WriteFloat(Top);
 218      }
 219      if (Left != 0F) {
 220        output.WriteRawTag(21);
 221        output.WriteFloat(Left);
 222      }
 223      if (Right != 0F) {
 224        output.WriteRawTag(29);
 225        output.WriteFloat(Right);
 226      }
 227      if (Bottom != 0F) {
 228        output.WriteRawTag(37);
 229        output.WriteFloat(Bottom);
 230      }
 231      if (_unknownFields != null) {
 232        _unknownFields.WriteTo(ref output);
 233      }
 234    }
 235    #endif
 236
 237    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 238    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 239    public int CalculateSize() {
 240      int size = 0;
 241      if (Top != 0F) {
 242        size += 1 + 4;
 243      }
 244      if (Left != 0F) {
 245        size += 1 + 4;
 246      }
 247      if (Right != 0F) {
 248        size += 1 + 4;
 249      }
 250      if (Bottom != 0F) {
 251        size += 1 + 4;
 252      }
 253      if (_unknownFields != null) {
 254        size += _unknownFields.CalculateSize();
 255      }
 256      return size;
 257    }
 258
 259    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 260    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 261    public void MergeFrom(BorderRect other) {
 262      if (other == null) {
 263        return;
 264      }
 265      if (other.Top != 0F) {
 266        Top = other.Top;
 267      }
 268      if (other.Left != 0F) {
 269        Left = other.Left;
 270      }
 271      if (other.Right != 0F) {
 272        Right = other.Right;
 273      }
 274      if (other.Bottom != 0F) {
 275        Bottom = other.Bottom;
 276      }
 277      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 278    }
 279
 280    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 281    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 282    public void MergeFrom(pb::CodedInputStream input) {
 283    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 284      input.ReadRawMessage(this);
 285    #else
 286      uint tag;
 287      while ((tag = input.ReadTag()) != 0) {
 288        switch(tag) {
 289          default:
 290            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 291            break;
 292          case 13: {
 293            Top = input.ReadFloat();
 294            break;
 295          }
 296          case 21: {
 297            Left = input.ReadFloat();
 298            break;
 299          }
 300          case 29: {
 301            Right = input.ReadFloat();
 302            break;
 303          }
 304          case 37: {
 305            Bottom = input.ReadFloat();
 306            break;
 307          }
 308        }
 309      }
 310    #endif
 311    }
 312
 313    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 314    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 315    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 316    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 317      uint tag;
 318      while ((tag = input.ReadTag()) != 0) {
 319        switch(tag) {
 320          default:
 321            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 322            break;
 323          case 13: {
 324            Top = input.ReadFloat();
 325            break;
 326          }
 327          case 21: {
 328            Left = input.ReadFloat();
 329            break;
 330          }
 331          case 29: {
 332            Right = input.ReadFloat();
 333            break;
 334          }
 335          case 37: {
 336            Bottom = input.ReadFloat();
 337            break;
 338          }
 339        }
 340      }
 341    }
 342    #endif
 343
 344  }
 345
 346  /// <summary>
 347  /// Defines a rect with x, y, width and height
 348  /// </summary>
 349  public sealed partial class Rect : pb::IMessage<Rect>
 350  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 351      , pb::IBufferMessage
 352  #endif
 353  {
 0354    private static readonly pb::MessageParser<Rect> _parser = new pb::MessageParser<Rect>(() => new Rect());
 355    private pb::UnknownFieldSet _unknownFields;
 356    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 357    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0358    public static pb::MessageParser<Rect> Parser { get { return _parser; } }
 359
 360    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 361    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 362    public static pbr::MessageDescriptor Descriptor {
 0363      get { return global::Decentraland.Common.BorderRectReflection.Descriptor.MessageTypes[1]; }
 364    }
 365
 366    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 367    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 368    pbr::MessageDescriptor pb::IMessage.Descriptor {
 0369      get { return Descriptor; }
 370    }
 371
 372    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 373    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0374    public Rect() {
 375      OnConstruction();
 0376    }
 377
 378    partial void OnConstruction();
 379
 380    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 381    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0382    public Rect(Rect other) : this() {
 0383      x_ = other.x_;
 0384      y_ = other.y_;
 0385      width_ = other.width_;
 0386      height_ = other.height_;
 0387      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 0388    }
 389
 390    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 391    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 392    public Rect Clone() {
 0393      return new Rect(this);
 394    }
 395
 396    /// <summary>Field number for the "x" field.</summary>
 397    public const int XFieldNumber = 1;
 398    private float x_;
 399    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 400    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 401    public float X {
 0402      get { return x_; }
 403      set {
 0404        x_ = value;
 0405      }
 406    }
 407
 408    /// <summary>Field number for the "y" field.</summary>
 409    public const int YFieldNumber = 2;
 410    private float y_;
 411    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 412    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 413    public float Y {
 0414      get { return y_; }
 415      set {
 0416        y_ = value;
 0417      }
 418    }
 419
 420    /// <summary>Field number for the "width" field.</summary>
 421    public const int WidthFieldNumber = 3;
 422    private float width_;
 423    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 424    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 425    public float Width {
 0426      get { return width_; }
 427      set {
 0428        width_ = value;
 0429      }
 430    }
 431
 432    /// <summary>Field number for the "height" field.</summary>
 433    public const int HeightFieldNumber = 4;
 434    private float height_;
 435    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 436    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 437    public float Height {
 0438      get { return height_; }
 439      set {
 0440        height_ = value;
 0441      }
 442    }
 443
 444    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 445    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 446    public override bool Equals(object other) {
 0447      return Equals(other as Rect);
 448    }
 449
 450    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 451    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 452    public bool Equals(Rect other) {
 0453      if (ReferenceEquals(other, null)) {
 0454        return false;
 455      }
 0456      if (ReferenceEquals(other, this)) {
 0457        return true;
 458      }
 0459      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false;
 0460      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false;
 0461      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Width, other.Width)) return false;
 0462      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Height, other.Height)) return false;
 0463      return Equals(_unknownFields, other._unknownFields);
 464    }
 465
 466    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 467    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 468    public override int GetHashCode() {
 0469      int hash = 1;
 0470      if (X != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X);
 0471      if (Y != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y);
 0472      if (Width != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Width);
 0473      if (Height != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Height);
 0474      if (_unknownFields != null) {
 0475        hash ^= _unknownFields.GetHashCode();
 476      }
 0477      return hash;
 478    }
 479
 480    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 481    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 482    public override string ToString() {
 0483      return pb::JsonFormatter.ToDiagnosticString(this);
 484    }
 485
 486    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 487    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 488    public void WriteTo(pb::CodedOutputStream output) {
 489    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 490      output.WriteRawMessage(this);
 491    #else
 0492      if (X != 0F) {
 0493        output.WriteRawTag(13);
 0494        output.WriteFloat(X);
 495      }
 0496      if (Y != 0F) {
 0497        output.WriteRawTag(21);
 0498        output.WriteFloat(Y);
 499      }
 0500      if (Width != 0F) {
 0501        output.WriteRawTag(29);
 0502        output.WriteFloat(Width);
 503      }
 0504      if (Height != 0F) {
 0505        output.WriteRawTag(37);
 0506        output.WriteFloat(Height);
 507      }
 0508      if (_unknownFields != null) {
 0509        _unknownFields.WriteTo(output);
 510      }
 511    #endif
 0512    }
 513
 514    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 515    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 516    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 517    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 518      if (X != 0F) {
 519        output.WriteRawTag(13);
 520        output.WriteFloat(X);
 521      }
 522      if (Y != 0F) {
 523        output.WriteRawTag(21);
 524        output.WriteFloat(Y);
 525      }
 526      if (Width != 0F) {
 527        output.WriteRawTag(29);
 528        output.WriteFloat(Width);
 529      }
 530      if (Height != 0F) {
 531        output.WriteRawTag(37);
 532        output.WriteFloat(Height);
 533      }
 534      if (_unknownFields != null) {
 535        _unknownFields.WriteTo(ref output);
 536      }
 537    }
 538    #endif
 539
 540    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 541    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 542    public int CalculateSize() {
 0543      int size = 0;
 0544      if (X != 0F) {
 0545        size += 1 + 4;
 546      }
 0547      if (Y != 0F) {
 0548        size += 1 + 4;
 549      }
 0550      if (Width != 0F) {
 0551        size += 1 + 4;
 552      }
 0553      if (Height != 0F) {
 0554        size += 1 + 4;
 555      }
 0556      if (_unknownFields != null) {
 0557        size += _unknownFields.CalculateSize();
 558      }
 0559      return size;
 560    }
 561
 562    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 563    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 564    public void MergeFrom(Rect other) {
 0565      if (other == null) {
 0566        return;
 567      }
 0568      if (other.X != 0F) {
 0569        X = other.X;
 570      }
 0571      if (other.Y != 0F) {
 0572        Y = other.Y;
 573      }
 0574      if (other.Width != 0F) {
 0575        Width = other.Width;
 576      }
 0577      if (other.Height != 0F) {
 0578        Height = other.Height;
 579      }
 0580      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0581    }
 582
 583    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 584    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 585    public void MergeFrom(pb::CodedInputStream input) {
 586    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 587      input.ReadRawMessage(this);
 588    #else
 589      uint tag;
 0590      while ((tag = input.ReadTag()) != 0) {
 591        switch(tag) {
 592          default:
 0593            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0594            break;
 595          case 13: {
 0596            X = input.ReadFloat();
 0597            break;
 598          }
 599          case 21: {
 0600            Y = input.ReadFloat();
 0601            break;
 602          }
 603          case 29: {
 0604            Width = input.ReadFloat();
 0605            break;
 606          }
 607          case 37: {
 0608            Height = input.ReadFloat();
 609            break;
 610          }
 611        }
 612      }
 613    #endif
 0614    }
 615
 616    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 617    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 618    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 619    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 620      uint tag;
 621      while ((tag = input.ReadTag()) != 0) {
 622        switch(tag) {
 623          default:
 624            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 625            break;
 626          case 13: {
 627            X = input.ReadFloat();
 628            break;
 629          }
 630          case 21: {
 631            Y = input.ReadFloat();
 632            break;
 633          }
 634          case 29: {
 635            Width = input.ReadFloat();
 636            break;
 637          }
 638          case 37: {
 639            Height = input.ReadFloat();
 640            break;
 641          }
 642        }
 643      }
 644    }
 645    #endif
 646
 647  }
 648
 649  #endregion
 650
 651}
 652
 653#endregion Designer generated code