< Summary

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

Metrics

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

File(s)

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

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: decentraland/common/vectors.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/vectors.proto</summary>
 15  public static partial class VectorsReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for decentraland/common/vectors.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 020      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static VectorsReflection() {
 025      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "CiFkZWNlbnRyYWxhbmQvY29tbW9uL3ZlY3RvcnMucHJvdG8SE2RlY2VudHJh",
 28            "bGFuZC5jb21tb24iKwoIUG9zaXRpb24SCQoBeBgBIAEoAhIJCgF5GAIgASgC",
 29            "EgkKAXoYAyABKAIiKgoHVmVjdG9yMxIJCgF4GAEgASgCEgkKAXkYAiABKAIS",
 30            "CQoBehgDIAEoAiIfCgdWZWN0b3IyEgkKAXgYASABKAISCQoBeRgCIAEoAmIG",
 31            "cHJvdG8z"));
 032      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.Position), global::Decentraland.Common.Posi
 36            new pbr::GeneratedClrTypeInfo(typeof(global::Decentraland.Common.Vector3), global::Decentraland.Common.Vecto
 37            new pbr::GeneratedClrTypeInfo(typeof(global::Decentraland.Common.Vector2), global::Decentraland.Common.Vecto
 38          }));
 039    }
 40    #endregion
 41
 42  }
 43  #region Messages
 44  public sealed partial class Position : pb::IMessage<Position>
 45  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 46      , pb::IBufferMessage
 47  #endif
 48  {
 49    private static readonly pb::MessageParser<Position> _parser = new pb::MessageParser<Position>(() => new Position());
 50    private pb::UnknownFieldSet _unknownFields;
 51    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 52    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 53    public static pb::MessageParser<Position> 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.VectorsReflection.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 Position() {
 70      OnConstruction();
 71    }
 72
 73    partial void OnConstruction();
 74
 75    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 76    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 77    public Position(Position other) : this() {
 78      x_ = other.x_;
 79      y_ = other.y_;
 80      z_ = other.z_;
 81      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 82    }
 83
 84    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 85    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 86    public Position Clone() {
 87      return new Position(this);
 88    }
 89
 90    /// <summary>Field number for the "x" field.</summary>
 91    public const int XFieldNumber = 1;
 92    private float x_;
 93    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 94    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 95    public float X {
 96      get { return x_; }
 97      set {
 98        x_ = value;
 99      }
 100    }
 101
 102    /// <summary>Field number for the "y" field.</summary>
 103    public const int YFieldNumber = 2;
 104    private float y_;
 105    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 106    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 107    public float Y {
 108      get { return y_; }
 109      set {
 110        y_ = value;
 111      }
 112    }
 113
 114    /// <summary>Field number for the "z" field.</summary>
 115    public const int ZFieldNumber = 3;
 116    private float z_;
 117    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 118    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 119    public float Z {
 120      get { return z_; }
 121      set {
 122        z_ = value;
 123      }
 124    }
 125
 126    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 127    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 128    public override bool Equals(object other) {
 129      return Equals(other as Position);
 130    }
 131
 132    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 133    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 134    public bool Equals(Position other) {
 135      if (ReferenceEquals(other, null)) {
 136        return false;
 137      }
 138      if (ReferenceEquals(other, this)) {
 139        return true;
 140      }
 141      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false;
 142      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false;
 143      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Z, other.Z)) return false;
 144      return Equals(_unknownFields, other._unknownFields);
 145    }
 146
 147    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 148    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 149    public override int GetHashCode() {
 150      int hash = 1;
 151      if (X != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X);
 152      if (Y != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y);
 153      if (Z != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Z);
 154      if (_unknownFields != null) {
 155        hash ^= _unknownFields.GetHashCode();
 156      }
 157      return hash;
 158    }
 159
 160    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 161    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 162    public override string ToString() {
 163      return pb::JsonFormatter.ToDiagnosticString(this);
 164    }
 165
 166    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 167    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 168    public void WriteTo(pb::CodedOutputStream output) {
 169    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 170      output.WriteRawMessage(this);
 171    #else
 172      if (X != 0F) {
 173        output.WriteRawTag(13);
 174        output.WriteFloat(X);
 175      }
 176      if (Y != 0F) {
 177        output.WriteRawTag(21);
 178        output.WriteFloat(Y);
 179      }
 180      if (Z != 0F) {
 181        output.WriteRawTag(29);
 182        output.WriteFloat(Z);
 183      }
 184      if (_unknownFields != null) {
 185        _unknownFields.WriteTo(output);
 186      }
 187    #endif
 188    }
 189
 190    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 191    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 192    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 193    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 194      if (X != 0F) {
 195        output.WriteRawTag(13);
 196        output.WriteFloat(X);
 197      }
 198      if (Y != 0F) {
 199        output.WriteRawTag(21);
 200        output.WriteFloat(Y);
 201      }
 202      if (Z != 0F) {
 203        output.WriteRawTag(29);
 204        output.WriteFloat(Z);
 205      }
 206      if (_unknownFields != null) {
 207        _unknownFields.WriteTo(ref output);
 208      }
 209    }
 210    #endif
 211
 212    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 213    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 214    public int CalculateSize() {
 215      int size = 0;
 216      if (X != 0F) {
 217        size += 1 + 4;
 218      }
 219      if (Y != 0F) {
 220        size += 1 + 4;
 221      }
 222      if (Z != 0F) {
 223        size += 1 + 4;
 224      }
 225      if (_unknownFields != null) {
 226        size += _unknownFields.CalculateSize();
 227      }
 228      return size;
 229    }
 230
 231    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 232    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 233    public void MergeFrom(Position other) {
 234      if (other == null) {
 235        return;
 236      }
 237      if (other.X != 0F) {
 238        X = other.X;
 239      }
 240      if (other.Y != 0F) {
 241        Y = other.Y;
 242      }
 243      if (other.Z != 0F) {
 244        Z = other.Z;
 245      }
 246      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 247    }
 248
 249    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 250    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 251    public void MergeFrom(pb::CodedInputStream input) {
 252    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 253      input.ReadRawMessage(this);
 254    #else
 255      uint tag;
 256      while ((tag = input.ReadTag()) != 0) {
 257        switch(tag) {
 258          default:
 259            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 260            break;
 261          case 13: {
 262            X = input.ReadFloat();
 263            break;
 264          }
 265          case 21: {
 266            Y = input.ReadFloat();
 267            break;
 268          }
 269          case 29: {
 270            Z = input.ReadFloat();
 271            break;
 272          }
 273        }
 274      }
 275    #endif
 276    }
 277
 278    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 279    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 280    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 281    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 282      uint tag;
 283      while ((tag = input.ReadTag()) != 0) {
 284        switch(tag) {
 285          default:
 286            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 287            break;
 288          case 13: {
 289            X = input.ReadFloat();
 290            break;
 291          }
 292          case 21: {
 293            Y = input.ReadFloat();
 294            break;
 295          }
 296          case 29: {
 297            Z = input.ReadFloat();
 298            break;
 299          }
 300        }
 301      }
 302    }
 303    #endif
 304
 305  }
 306
 307  public sealed partial class Vector3 : pb::IMessage<Vector3>
 308  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 309      , pb::IBufferMessage
 310  #endif
 311  {
 312    private static readonly pb::MessageParser<Vector3> _parser = new pb::MessageParser<Vector3>(() => new Vector3());
 313    private pb::UnknownFieldSet _unknownFields;
 314    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 315    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 316    public static pb::MessageParser<Vector3> Parser { get { return _parser; } }
 317
 318    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 319    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 320    public static pbr::MessageDescriptor Descriptor {
 321      get { return global::Decentraland.Common.VectorsReflection.Descriptor.MessageTypes[1]; }
 322    }
 323
 324    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 325    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 326    pbr::MessageDescriptor pb::IMessage.Descriptor {
 327      get { return Descriptor; }
 328    }
 329
 330    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 331    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 332    public Vector3() {
 333      OnConstruction();
 334    }
 335
 336    partial void OnConstruction();
 337
 338    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 339    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 340    public Vector3(Vector3 other) : this() {
 341      x_ = other.x_;
 342      y_ = other.y_;
 343      z_ = other.z_;
 344      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 345    }
 346
 347    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 348    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 349    public Vector3 Clone() {
 350      return new Vector3(this);
 351    }
 352
 353    /// <summary>Field number for the "x" field.</summary>
 354    public const int XFieldNumber = 1;
 355    private float x_;
 356    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 357    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 358    public float X {
 359      get { return x_; }
 360      set {
 361        x_ = value;
 362      }
 363    }
 364
 365    /// <summary>Field number for the "y" field.</summary>
 366    public const int YFieldNumber = 2;
 367    private float y_;
 368    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 369    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 370    public float Y {
 371      get { return y_; }
 372      set {
 373        y_ = value;
 374      }
 375    }
 376
 377    /// <summary>Field number for the "z" field.</summary>
 378    public const int ZFieldNumber = 3;
 379    private float z_;
 380    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 381    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 382    public float Z {
 383      get { return z_; }
 384      set {
 385        z_ = value;
 386      }
 387    }
 388
 389    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 390    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 391    public override bool Equals(object other) {
 392      return Equals(other as Vector3);
 393    }
 394
 395    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 396    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 397    public bool Equals(Vector3 other) {
 398      if (ReferenceEquals(other, null)) {
 399        return false;
 400      }
 401      if (ReferenceEquals(other, this)) {
 402        return true;
 403      }
 404      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false;
 405      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false;
 406      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Z, other.Z)) return false;
 407      return Equals(_unknownFields, other._unknownFields);
 408    }
 409
 410    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 411    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 412    public override int GetHashCode() {
 413      int hash = 1;
 414      if (X != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X);
 415      if (Y != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y);
 416      if (Z != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Z);
 417      if (_unknownFields != null) {
 418        hash ^= _unknownFields.GetHashCode();
 419      }
 420      return hash;
 421    }
 422
 423    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 424    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 425    public override string ToString() {
 426      return pb::JsonFormatter.ToDiagnosticString(this);
 427    }
 428
 429    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 430    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 431    public void WriteTo(pb::CodedOutputStream output) {
 432    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 433      output.WriteRawMessage(this);
 434    #else
 435      if (X != 0F) {
 436        output.WriteRawTag(13);
 437        output.WriteFloat(X);
 438      }
 439      if (Y != 0F) {
 440        output.WriteRawTag(21);
 441        output.WriteFloat(Y);
 442      }
 443      if (Z != 0F) {
 444        output.WriteRawTag(29);
 445        output.WriteFloat(Z);
 446      }
 447      if (_unknownFields != null) {
 448        _unknownFields.WriteTo(output);
 449      }
 450    #endif
 451    }
 452
 453    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 454    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 455    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 456    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 457      if (X != 0F) {
 458        output.WriteRawTag(13);
 459        output.WriteFloat(X);
 460      }
 461      if (Y != 0F) {
 462        output.WriteRawTag(21);
 463        output.WriteFloat(Y);
 464      }
 465      if (Z != 0F) {
 466        output.WriteRawTag(29);
 467        output.WriteFloat(Z);
 468      }
 469      if (_unknownFields != null) {
 470        _unknownFields.WriteTo(ref output);
 471      }
 472    }
 473    #endif
 474
 475    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 476    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 477    public int CalculateSize() {
 478      int size = 0;
 479      if (X != 0F) {
 480        size += 1 + 4;
 481      }
 482      if (Y != 0F) {
 483        size += 1 + 4;
 484      }
 485      if (Z != 0F) {
 486        size += 1 + 4;
 487      }
 488      if (_unknownFields != null) {
 489        size += _unknownFields.CalculateSize();
 490      }
 491      return size;
 492    }
 493
 494    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 495    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 496    public void MergeFrom(Vector3 other) {
 497      if (other == null) {
 498        return;
 499      }
 500      if (other.X != 0F) {
 501        X = other.X;
 502      }
 503      if (other.Y != 0F) {
 504        Y = other.Y;
 505      }
 506      if (other.Z != 0F) {
 507        Z = other.Z;
 508      }
 509      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 510    }
 511
 512    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 513    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 514    public void MergeFrom(pb::CodedInputStream input) {
 515    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 516      input.ReadRawMessage(this);
 517    #else
 518      uint tag;
 519      while ((tag = input.ReadTag()) != 0) {
 520        switch(tag) {
 521          default:
 522            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 523            break;
 524          case 13: {
 525            X = input.ReadFloat();
 526            break;
 527          }
 528          case 21: {
 529            Y = input.ReadFloat();
 530            break;
 531          }
 532          case 29: {
 533            Z = input.ReadFloat();
 534            break;
 535          }
 536        }
 537      }
 538    #endif
 539    }
 540
 541    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 542    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 543    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 544    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 545      uint tag;
 546      while ((tag = input.ReadTag()) != 0) {
 547        switch(tag) {
 548          default:
 549            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 550            break;
 551          case 13: {
 552            X = input.ReadFloat();
 553            break;
 554          }
 555          case 21: {
 556            Y = input.ReadFloat();
 557            break;
 558          }
 559          case 29: {
 560            Z = input.ReadFloat();
 561            break;
 562          }
 563        }
 564      }
 565    }
 566    #endif
 567
 568  }
 569
 570  public sealed partial class Vector2 : pb::IMessage<Vector2>
 571  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 572      , pb::IBufferMessage
 573  #endif
 574  {
 575    private static readonly pb::MessageParser<Vector2> _parser = new pb::MessageParser<Vector2>(() => new Vector2());
 576    private pb::UnknownFieldSet _unknownFields;
 577    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 578    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 579    public static pb::MessageParser<Vector2> Parser { get { return _parser; } }
 580
 581    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 582    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 583    public static pbr::MessageDescriptor Descriptor {
 584      get { return global::Decentraland.Common.VectorsReflection.Descriptor.MessageTypes[2]; }
 585    }
 586
 587    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 588    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 589    pbr::MessageDescriptor pb::IMessage.Descriptor {
 590      get { return Descriptor; }
 591    }
 592
 593    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 594    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 595    public Vector2() {
 596      OnConstruction();
 597    }
 598
 599    partial void OnConstruction();
 600
 601    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 602    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 603    public Vector2(Vector2 other) : this() {
 604      x_ = other.x_;
 605      y_ = other.y_;
 606      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 607    }
 608
 609    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 610    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 611    public Vector2 Clone() {
 612      return new Vector2(this);
 613    }
 614
 615    /// <summary>Field number for the "x" field.</summary>
 616    public const int XFieldNumber = 1;
 617    private float x_;
 618    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 619    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 620    public float X {
 621      get { return x_; }
 622      set {
 623        x_ = value;
 624      }
 625    }
 626
 627    /// <summary>Field number for the "y" field.</summary>
 628    public const int YFieldNumber = 2;
 629    private float y_;
 630    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 631    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 632    public float Y {
 633      get { return y_; }
 634      set {
 635        y_ = value;
 636      }
 637    }
 638
 639    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 640    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 641    public override bool Equals(object other) {
 642      return Equals(other as Vector2);
 643    }
 644
 645    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 646    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 647    public bool Equals(Vector2 other) {
 648      if (ReferenceEquals(other, null)) {
 649        return false;
 650      }
 651      if (ReferenceEquals(other, this)) {
 652        return true;
 653      }
 654      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false;
 655      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false;
 656      return Equals(_unknownFields, other._unknownFields);
 657    }
 658
 659    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 660    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 661    public override int GetHashCode() {
 662      int hash = 1;
 663      if (X != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X);
 664      if (Y != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y);
 665      if (_unknownFields != null) {
 666        hash ^= _unknownFields.GetHashCode();
 667      }
 668      return hash;
 669    }
 670
 671    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 672    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 673    public override string ToString() {
 674      return pb::JsonFormatter.ToDiagnosticString(this);
 675    }
 676
 677    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 678    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 679    public void WriteTo(pb::CodedOutputStream output) {
 680    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 681      output.WriteRawMessage(this);
 682    #else
 683      if (X != 0F) {
 684        output.WriteRawTag(13);
 685        output.WriteFloat(X);
 686      }
 687      if (Y != 0F) {
 688        output.WriteRawTag(21);
 689        output.WriteFloat(Y);
 690      }
 691      if (_unknownFields != null) {
 692        _unknownFields.WriteTo(output);
 693      }
 694    #endif
 695    }
 696
 697    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 698    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 699    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 700    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 701      if (X != 0F) {
 702        output.WriteRawTag(13);
 703        output.WriteFloat(X);
 704      }
 705      if (Y != 0F) {
 706        output.WriteRawTag(21);
 707        output.WriteFloat(Y);
 708      }
 709      if (_unknownFields != null) {
 710        _unknownFields.WriteTo(ref output);
 711      }
 712    }
 713    #endif
 714
 715    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 716    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 717    public int CalculateSize() {
 718      int size = 0;
 719      if (X != 0F) {
 720        size += 1 + 4;
 721      }
 722      if (Y != 0F) {
 723        size += 1 + 4;
 724      }
 725      if (_unknownFields != null) {
 726        size += _unknownFields.CalculateSize();
 727      }
 728      return size;
 729    }
 730
 731    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 732    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 733    public void MergeFrom(Vector2 other) {
 734      if (other == null) {
 735        return;
 736      }
 737      if (other.X != 0F) {
 738        X = other.X;
 739      }
 740      if (other.Y != 0F) {
 741        Y = other.Y;
 742      }
 743      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 744    }
 745
 746    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 747    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 748    public void MergeFrom(pb::CodedInputStream input) {
 749    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 750      input.ReadRawMessage(this);
 751    #else
 752      uint tag;
 753      while ((tag = input.ReadTag()) != 0) {
 754        switch(tag) {
 755          default:
 756            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 757            break;
 758          case 13: {
 759            X = input.ReadFloat();
 760            break;
 761          }
 762          case 21: {
 763            Y = input.ReadFloat();
 764            break;
 765          }
 766        }
 767      }
 768    #endif
 769    }
 770
 771    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 772    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 773    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 774    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 775      uint tag;
 776      while ((tag = input.ReadTag()) != 0) {
 777        switch(tag) {
 778          default:
 779            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 780            break;
 781          case 13: {
 782            X = input.ReadFloat();
 783            break;
 784          }
 785          case 21: {
 786            Y = input.ReadFloat();
 787            break;
 788          }
 789        }
 790      }
 791    }
 792    #endif
 793
 794  }
 795
 796  #endregion
 797
 798}
 799
 800#endregion Designer generated code

Methods/Properties

Descriptor()
VectorsReflection()