< Summary

Class:Decentraland.Common.Quaternion
Assembly:Decentraland.Protocol.GeneratedCode
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/Vectors.gen.cs
Covered lines:16
Uncovered lines:79
Coverable lines:95
Total lines:1102
Line coverage:16.8% (16 of 95)
Covered branches:0
Total branches:0
Covered methods:11
Total methods:23
Method coverage:47.8% (11 of 23)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
Quaternion()0%110100%
get_Descriptor()0%2100%
Quaternion()0%110100%
Quaternion(...)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/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 {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static VectorsReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "CiFkZWNlbnRyYWxhbmQvY29tbW9uL3ZlY3RvcnMucHJvdG8SE2RlY2VudHJh",
 28            "bGFuZC5jb21tb24iKwoIUG9zaXRpb24SCQoBeBgBIAEoAhIJCgF5GAIgASgC",
 29            "EgkKAXoYAyABKAIiKgoHVmVjdG9yMxIJCgF4GAEgASgCEgkKAXkYAiABKAIS",
 30            "CQoBehgDIAEoAiIfCgdWZWN0b3IyEgkKAXgYASABKAISCQoBeRgCIAEoAiI4",
 31            "CgpRdWF0ZXJuaW9uEgkKAXgYASABKAISCQoBeRgCIAEoAhIJCgF6GAMgASgC",
 32            "EgkKAXcYBCABKAJiBnByb3RvMw=="));
 33      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 34          new pbr::FileDescriptor[] { },
 35          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 36            new pbr::GeneratedClrTypeInfo(typeof(global::Decentraland.Common.Position), global::Decentraland.Common.Posi
 37            new pbr::GeneratedClrTypeInfo(typeof(global::Decentraland.Common.Vector3), global::Decentraland.Common.Vecto
 38            new pbr::GeneratedClrTypeInfo(typeof(global::Decentraland.Common.Vector2), global::Decentraland.Common.Vecto
 39            new pbr::GeneratedClrTypeInfo(typeof(global::Decentraland.Common.Quaternion), global::Decentraland.Common.Qu
 40          }));
 41    }
 42    #endregion
 43
 44  }
 45  #region Messages
 46  public sealed partial class Position : pb::IMessage<Position>
 47  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 48      , pb::IBufferMessage
 49  #endif
 50  {
 51    private static readonly pb::MessageParser<Position> _parser = new pb::MessageParser<Position>(() => new Position());
 52    private pb::UnknownFieldSet _unknownFields;
 53    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 54    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 55    public static pb::MessageParser<Position> 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.VectorsReflection.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 Position() {
 72      OnConstruction();
 73    }
 74
 75    partial void OnConstruction();
 76
 77    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 78    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 79    public Position(Position other) : this() {
 80      x_ = other.x_;
 81      y_ = other.y_;
 82      z_ = other.z_;
 83      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 84    }
 85
 86    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 87    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 88    public Position Clone() {
 89      return new Position(this);
 90    }
 91
 92    /// <summary>Field number for the "x" field.</summary>
 93    public const int XFieldNumber = 1;
 94    private float x_;
 95    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 96    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 97    public float X {
 98      get { return x_; }
 99      set {
 100        x_ = value;
 101      }
 102    }
 103
 104    /// <summary>Field number for the "y" field.</summary>
 105    public const int YFieldNumber = 2;
 106    private float y_;
 107    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 108    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 109    public float Y {
 110      get { return y_; }
 111      set {
 112        y_ = value;
 113      }
 114    }
 115
 116    /// <summary>Field number for the "z" field.</summary>
 117    public const int ZFieldNumber = 3;
 118    private float z_;
 119    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 120    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 121    public float Z {
 122      get { return z_; }
 123      set {
 124        z_ = value;
 125      }
 126    }
 127
 128    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 129    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 130    public override bool Equals(object other) {
 131      return Equals(other as Position);
 132    }
 133
 134    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 135    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 136    public bool Equals(Position other) {
 137      if (ReferenceEquals(other, null)) {
 138        return false;
 139      }
 140      if (ReferenceEquals(other, this)) {
 141        return true;
 142      }
 143      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false;
 144      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false;
 145      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Z, other.Z)) return false;
 146      return Equals(_unknownFields, other._unknownFields);
 147    }
 148
 149    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 150    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 151    public override int GetHashCode() {
 152      int hash = 1;
 153      if (X != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X);
 154      if (Y != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y);
 155      if (Z != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Z);
 156      if (_unknownFields != null) {
 157        hash ^= _unknownFields.GetHashCode();
 158      }
 159      return hash;
 160    }
 161
 162    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 163    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 164    public override string ToString() {
 165      return pb::JsonFormatter.ToDiagnosticString(this);
 166    }
 167
 168    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 169    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 170    public void WriteTo(pb::CodedOutputStream output) {
 171    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 172      output.WriteRawMessage(this);
 173    #else
 174      if (X != 0F) {
 175        output.WriteRawTag(13);
 176        output.WriteFloat(X);
 177      }
 178      if (Y != 0F) {
 179        output.WriteRawTag(21);
 180        output.WriteFloat(Y);
 181      }
 182      if (Z != 0F) {
 183        output.WriteRawTag(29);
 184        output.WriteFloat(Z);
 185      }
 186      if (_unknownFields != null) {
 187        _unknownFields.WriteTo(output);
 188      }
 189    #endif
 190    }
 191
 192    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 193    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 194    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 195    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 196      if (X != 0F) {
 197        output.WriteRawTag(13);
 198        output.WriteFloat(X);
 199      }
 200      if (Y != 0F) {
 201        output.WriteRawTag(21);
 202        output.WriteFloat(Y);
 203      }
 204      if (Z != 0F) {
 205        output.WriteRawTag(29);
 206        output.WriteFloat(Z);
 207      }
 208      if (_unknownFields != null) {
 209        _unknownFields.WriteTo(ref output);
 210      }
 211    }
 212    #endif
 213
 214    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 215    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 216    public int CalculateSize() {
 217      int size = 0;
 218      if (X != 0F) {
 219        size += 1 + 4;
 220      }
 221      if (Y != 0F) {
 222        size += 1 + 4;
 223      }
 224      if (Z != 0F) {
 225        size += 1 + 4;
 226      }
 227      if (_unknownFields != null) {
 228        size += _unknownFields.CalculateSize();
 229      }
 230      return size;
 231    }
 232
 233    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 234    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 235    public void MergeFrom(Position other) {
 236      if (other == null) {
 237        return;
 238      }
 239      if (other.X != 0F) {
 240        X = other.X;
 241      }
 242      if (other.Y != 0F) {
 243        Y = other.Y;
 244      }
 245      if (other.Z != 0F) {
 246        Z = other.Z;
 247      }
 248      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 249    }
 250
 251    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 252    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 253    public void MergeFrom(pb::CodedInputStream input) {
 254    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 255      input.ReadRawMessage(this);
 256    #else
 257      uint tag;
 258      while ((tag = input.ReadTag()) != 0) {
 259        switch(tag) {
 260          default:
 261            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 262            break;
 263          case 13: {
 264            X = input.ReadFloat();
 265            break;
 266          }
 267          case 21: {
 268            Y = input.ReadFloat();
 269            break;
 270          }
 271          case 29: {
 272            Z = input.ReadFloat();
 273            break;
 274          }
 275        }
 276      }
 277    #endif
 278    }
 279
 280    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 281    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 282    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 283    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 284      uint tag;
 285      while ((tag = input.ReadTag()) != 0) {
 286        switch(tag) {
 287          default:
 288            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 289            break;
 290          case 13: {
 291            X = input.ReadFloat();
 292            break;
 293          }
 294          case 21: {
 295            Y = input.ReadFloat();
 296            break;
 297          }
 298          case 29: {
 299            Z = input.ReadFloat();
 300            break;
 301          }
 302        }
 303      }
 304    }
 305    #endif
 306
 307  }
 308
 309  public sealed partial class Vector3 : pb::IMessage<Vector3>
 310  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 311      , pb::IBufferMessage
 312  #endif
 313  {
 314    private static readonly pb::MessageParser<Vector3> _parser = new pb::MessageParser<Vector3>(() => new Vector3());
 315    private pb::UnknownFieldSet _unknownFields;
 316    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 317    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 318    public static pb::MessageParser<Vector3> Parser { get { return _parser; } }
 319
 320    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 321    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 322    public static pbr::MessageDescriptor Descriptor {
 323      get { return global::Decentraland.Common.VectorsReflection.Descriptor.MessageTypes[1]; }
 324    }
 325
 326    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 327    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 328    pbr::MessageDescriptor pb::IMessage.Descriptor {
 329      get { return Descriptor; }
 330    }
 331
 332    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 333    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 334    public Vector3() {
 335      OnConstruction();
 336    }
 337
 338    partial void OnConstruction();
 339
 340    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 341    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 342    public Vector3(Vector3 other) : this() {
 343      x_ = other.x_;
 344      y_ = other.y_;
 345      z_ = other.z_;
 346      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 347    }
 348
 349    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 350    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 351    public Vector3 Clone() {
 352      return new Vector3(this);
 353    }
 354
 355    /// <summary>Field number for the "x" field.</summary>
 356    public const int XFieldNumber = 1;
 357    private float x_;
 358    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 359    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 360    public float X {
 361      get { return x_; }
 362      set {
 363        x_ = value;
 364      }
 365    }
 366
 367    /// <summary>Field number for the "y" field.</summary>
 368    public const int YFieldNumber = 2;
 369    private float y_;
 370    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 371    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 372    public float Y {
 373      get { return y_; }
 374      set {
 375        y_ = value;
 376      }
 377    }
 378
 379    /// <summary>Field number for the "z" field.</summary>
 380    public const int ZFieldNumber = 3;
 381    private float z_;
 382    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 383    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 384    public float Z {
 385      get { return z_; }
 386      set {
 387        z_ = value;
 388      }
 389    }
 390
 391    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 392    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 393    public override bool Equals(object other) {
 394      return Equals(other as Vector3);
 395    }
 396
 397    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 398    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 399    public bool Equals(Vector3 other) {
 400      if (ReferenceEquals(other, null)) {
 401        return false;
 402      }
 403      if (ReferenceEquals(other, this)) {
 404        return true;
 405      }
 406      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false;
 407      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false;
 408      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Z, other.Z)) return false;
 409      return Equals(_unknownFields, other._unknownFields);
 410    }
 411
 412    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 413    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 414    public override int GetHashCode() {
 415      int hash = 1;
 416      if (X != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X);
 417      if (Y != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y);
 418      if (Z != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Z);
 419      if (_unknownFields != null) {
 420        hash ^= _unknownFields.GetHashCode();
 421      }
 422      return hash;
 423    }
 424
 425    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 426    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 427    public override string ToString() {
 428      return pb::JsonFormatter.ToDiagnosticString(this);
 429    }
 430
 431    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 432    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 433    public void WriteTo(pb::CodedOutputStream output) {
 434    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 435      output.WriteRawMessage(this);
 436    #else
 437      if (X != 0F) {
 438        output.WriteRawTag(13);
 439        output.WriteFloat(X);
 440      }
 441      if (Y != 0F) {
 442        output.WriteRawTag(21);
 443        output.WriteFloat(Y);
 444      }
 445      if (Z != 0F) {
 446        output.WriteRawTag(29);
 447        output.WriteFloat(Z);
 448      }
 449      if (_unknownFields != null) {
 450        _unknownFields.WriteTo(output);
 451      }
 452    #endif
 453    }
 454
 455    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 456    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 457    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 458    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 459      if (X != 0F) {
 460        output.WriteRawTag(13);
 461        output.WriteFloat(X);
 462      }
 463      if (Y != 0F) {
 464        output.WriteRawTag(21);
 465        output.WriteFloat(Y);
 466      }
 467      if (Z != 0F) {
 468        output.WriteRawTag(29);
 469        output.WriteFloat(Z);
 470      }
 471      if (_unknownFields != null) {
 472        _unknownFields.WriteTo(ref output);
 473      }
 474    }
 475    #endif
 476
 477    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 478    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 479    public int CalculateSize() {
 480      int size = 0;
 481      if (X != 0F) {
 482        size += 1 + 4;
 483      }
 484      if (Y != 0F) {
 485        size += 1 + 4;
 486      }
 487      if (Z != 0F) {
 488        size += 1 + 4;
 489      }
 490      if (_unknownFields != null) {
 491        size += _unknownFields.CalculateSize();
 492      }
 493      return size;
 494    }
 495
 496    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 497    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 498    public void MergeFrom(Vector3 other) {
 499      if (other == null) {
 500        return;
 501      }
 502      if (other.X != 0F) {
 503        X = other.X;
 504      }
 505      if (other.Y != 0F) {
 506        Y = other.Y;
 507      }
 508      if (other.Z != 0F) {
 509        Z = other.Z;
 510      }
 511      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 512    }
 513
 514    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 515    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 516    public void MergeFrom(pb::CodedInputStream input) {
 517    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 518      input.ReadRawMessage(this);
 519    #else
 520      uint tag;
 521      while ((tag = input.ReadTag()) != 0) {
 522        switch(tag) {
 523          default:
 524            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 525            break;
 526          case 13: {
 527            X = input.ReadFloat();
 528            break;
 529          }
 530          case 21: {
 531            Y = input.ReadFloat();
 532            break;
 533          }
 534          case 29: {
 535            Z = input.ReadFloat();
 536            break;
 537          }
 538        }
 539      }
 540    #endif
 541    }
 542
 543    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 544    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 545    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 546    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 547      uint tag;
 548      while ((tag = input.ReadTag()) != 0) {
 549        switch(tag) {
 550          default:
 551            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 552            break;
 553          case 13: {
 554            X = input.ReadFloat();
 555            break;
 556          }
 557          case 21: {
 558            Y = input.ReadFloat();
 559            break;
 560          }
 561          case 29: {
 562            Z = input.ReadFloat();
 563            break;
 564          }
 565        }
 566      }
 567    }
 568    #endif
 569
 570  }
 571
 572  public sealed partial class Vector2 : pb::IMessage<Vector2>
 573  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 574      , pb::IBufferMessage
 575  #endif
 576  {
 577    private static readonly pb::MessageParser<Vector2> _parser = new pb::MessageParser<Vector2>(() => new Vector2());
 578    private pb::UnknownFieldSet _unknownFields;
 579    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 580    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 581    public static pb::MessageParser<Vector2> Parser { get { return _parser; } }
 582
 583    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 584    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 585    public static pbr::MessageDescriptor Descriptor {
 586      get { return global::Decentraland.Common.VectorsReflection.Descriptor.MessageTypes[2]; }
 587    }
 588
 589    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 590    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 591    pbr::MessageDescriptor pb::IMessage.Descriptor {
 592      get { return Descriptor; }
 593    }
 594
 595    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 596    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 597    public Vector2() {
 598      OnConstruction();
 599    }
 600
 601    partial void OnConstruction();
 602
 603    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 604    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 605    public Vector2(Vector2 other) : this() {
 606      x_ = other.x_;
 607      y_ = other.y_;
 608      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 609    }
 610
 611    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 612    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 613    public Vector2 Clone() {
 614      return new Vector2(this);
 615    }
 616
 617    /// <summary>Field number for the "x" field.</summary>
 618    public const int XFieldNumber = 1;
 619    private float x_;
 620    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 621    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 622    public float X {
 623      get { return x_; }
 624      set {
 625        x_ = value;
 626      }
 627    }
 628
 629    /// <summary>Field number for the "y" field.</summary>
 630    public const int YFieldNumber = 2;
 631    private float y_;
 632    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 633    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 634    public float Y {
 635      get { return y_; }
 636      set {
 637        y_ = value;
 638      }
 639    }
 640
 641    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 642    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 643    public override bool Equals(object other) {
 644      return Equals(other as Vector2);
 645    }
 646
 647    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 648    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 649    public bool Equals(Vector2 other) {
 650      if (ReferenceEquals(other, null)) {
 651        return false;
 652      }
 653      if (ReferenceEquals(other, this)) {
 654        return true;
 655      }
 656      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false;
 657      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false;
 658      return Equals(_unknownFields, other._unknownFields);
 659    }
 660
 661    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 662    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 663    public override int GetHashCode() {
 664      int hash = 1;
 665      if (X != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X);
 666      if (Y != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y);
 667      if (_unknownFields != null) {
 668        hash ^= _unknownFields.GetHashCode();
 669      }
 670      return hash;
 671    }
 672
 673    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 674    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 675    public override string ToString() {
 676      return pb::JsonFormatter.ToDiagnosticString(this);
 677    }
 678
 679    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 680    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 681    public void WriteTo(pb::CodedOutputStream output) {
 682    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 683      output.WriteRawMessage(this);
 684    #else
 685      if (X != 0F) {
 686        output.WriteRawTag(13);
 687        output.WriteFloat(X);
 688      }
 689      if (Y != 0F) {
 690        output.WriteRawTag(21);
 691        output.WriteFloat(Y);
 692      }
 693      if (_unknownFields != null) {
 694        _unknownFields.WriteTo(output);
 695      }
 696    #endif
 697    }
 698
 699    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 700    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 701    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 702    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 703      if (X != 0F) {
 704        output.WriteRawTag(13);
 705        output.WriteFloat(X);
 706      }
 707      if (Y != 0F) {
 708        output.WriteRawTag(21);
 709        output.WriteFloat(Y);
 710      }
 711      if (_unknownFields != null) {
 712        _unknownFields.WriteTo(ref output);
 713      }
 714    }
 715    #endif
 716
 717    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 718    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 719    public int CalculateSize() {
 720      int size = 0;
 721      if (X != 0F) {
 722        size += 1 + 4;
 723      }
 724      if (Y != 0F) {
 725        size += 1 + 4;
 726      }
 727      if (_unknownFields != null) {
 728        size += _unknownFields.CalculateSize();
 729      }
 730      return size;
 731    }
 732
 733    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 734    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 735    public void MergeFrom(Vector2 other) {
 736      if (other == null) {
 737        return;
 738      }
 739      if (other.X != 0F) {
 740        X = other.X;
 741      }
 742      if (other.Y != 0F) {
 743        Y = other.Y;
 744      }
 745      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 746    }
 747
 748    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 749    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 750    public void MergeFrom(pb::CodedInputStream input) {
 751    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 752      input.ReadRawMessage(this);
 753    #else
 754      uint tag;
 755      while ((tag = input.ReadTag()) != 0) {
 756        switch(tag) {
 757          default:
 758            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 759            break;
 760          case 13: {
 761            X = input.ReadFloat();
 762            break;
 763          }
 764          case 21: {
 765            Y = input.ReadFloat();
 766            break;
 767          }
 768        }
 769      }
 770    #endif
 771    }
 772
 773    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 774    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 775    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 776    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 777      uint tag;
 778      while ((tag = input.ReadTag()) != 0) {
 779        switch(tag) {
 780          default:
 781            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 782            break;
 783          case 13: {
 784            X = input.ReadFloat();
 785            break;
 786          }
 787          case 21: {
 788            Y = input.ReadFloat();
 789            break;
 790          }
 791        }
 792      }
 793    }
 794    #endif
 795
 796  }
 797
 798  public sealed partial class Quaternion : pb::IMessage<Quaternion>
 799  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 800      , pb::IBufferMessage
 801  #endif
 802  {
 1803    private static readonly pb::MessageParser<Quaternion> _parser = new pb::MessageParser<Quaternion>(() => new Quaterni
 804    private pb::UnknownFieldSet _unknownFields;
 805    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 806    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1807    public static pb::MessageParser<Quaternion> Parser { get { return _parser; } }
 808
 809    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 810    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 811    public static pbr::MessageDescriptor Descriptor {
 0812      get { return global::Decentraland.Common.VectorsReflection.Descriptor.MessageTypes[3]; }
 813    }
 814
 815    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 816    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 817    pbr::MessageDescriptor pb::IMessage.Descriptor {
 0818      get { return Descriptor; }
 819    }
 820
 821    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 822    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 6823    public Quaternion() {
 824      OnConstruction();
 6825    }
 826
 827    partial void OnConstruction();
 828
 829    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 830    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0831    public Quaternion(Quaternion other) : this() {
 0832      x_ = other.x_;
 0833      y_ = other.y_;
 0834      z_ = other.z_;
 0835      w_ = other.w_;
 0836      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 0837    }
 838
 839    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 840    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 841    public Quaternion Clone() {
 0842      return new Quaternion(this);
 843    }
 844
 845    /// <summary>Field number for the "x" field.</summary>
 846    public const int XFieldNumber = 1;
 847    private float x_;
 848    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 849    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 850    public float X {
 6851      get { return x_; }
 852      set {
 6853        x_ = value;
 6854      }
 855    }
 856
 857    /// <summary>Field number for the "y" field.</summary>
 858    public const int YFieldNumber = 2;
 859    private float y_;
 860    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 861    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 862    public float Y {
 6863      get { return y_; }
 864      set {
 6865        y_ = value;
 6866      }
 867    }
 868
 869    /// <summary>Field number for the "z" field.</summary>
 870    public const int ZFieldNumber = 3;
 871    private float z_;
 872    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 873    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 874    public float Z {
 6875      get { return z_; }
 876      set {
 6877        z_ = value;
 6878      }
 879    }
 880
 881    /// <summary>Field number for the "w" field.</summary>
 882    public const int WFieldNumber = 4;
 883    private float w_;
 884    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 885    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 886    public float W {
 6887      get { return w_; }
 888      set {
 6889        w_ = value;
 6890      }
 891    }
 892
 893    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 894    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 895    public override bool Equals(object other) {
 0896      return Equals(other as Quaternion);
 897    }
 898
 899    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 900    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 901    public bool Equals(Quaternion other) {
 0902      if (ReferenceEquals(other, null)) {
 0903        return false;
 904      }
 0905      if (ReferenceEquals(other, this)) {
 0906        return true;
 907      }
 0908      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false;
 0909      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false;
 0910      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Z, other.Z)) return false;
 0911      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(W, other.W)) return false;
 0912      return Equals(_unknownFields, other._unknownFields);
 913    }
 914
 915    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 916    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 917    public override int GetHashCode() {
 0918      int hash = 1;
 0919      if (X != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X);
 0920      if (Y != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y);
 0921      if (Z != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Z);
 0922      if (W != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(W);
 0923      if (_unknownFields != null) {
 0924        hash ^= _unknownFields.GetHashCode();
 925      }
 0926      return hash;
 927    }
 928
 929    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 930    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 931    public override string ToString() {
 0932      return pb::JsonFormatter.ToDiagnosticString(this);
 933    }
 934
 935    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 936    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 937    public void WriteTo(pb::CodedOutputStream output) {
 938    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 939      output.WriteRawMessage(this);
 940    #else
 0941      if (X != 0F) {
 0942        output.WriteRawTag(13);
 0943        output.WriteFloat(X);
 944      }
 0945      if (Y != 0F) {
 0946        output.WriteRawTag(21);
 0947        output.WriteFloat(Y);
 948      }
 0949      if (Z != 0F) {
 0950        output.WriteRawTag(29);
 0951        output.WriteFloat(Z);
 952      }
 0953      if (W != 0F) {
 0954        output.WriteRawTag(37);
 0955        output.WriteFloat(W);
 956      }
 0957      if (_unknownFields != null) {
 0958        _unknownFields.WriteTo(output);
 959      }
 960    #endif
 0961    }
 962
 963    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 964    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 965    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 966    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 967      if (X != 0F) {
 968        output.WriteRawTag(13);
 969        output.WriteFloat(X);
 970      }
 971      if (Y != 0F) {
 972        output.WriteRawTag(21);
 973        output.WriteFloat(Y);
 974      }
 975      if (Z != 0F) {
 976        output.WriteRawTag(29);
 977        output.WriteFloat(Z);
 978      }
 979      if (W != 0F) {
 980        output.WriteRawTag(37);
 981        output.WriteFloat(W);
 982      }
 983      if (_unknownFields != null) {
 984        _unknownFields.WriteTo(ref output);
 985      }
 986    }
 987    #endif
 988
 989    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 990    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 991    public int CalculateSize() {
 0992      int size = 0;
 0993      if (X != 0F) {
 0994        size += 1 + 4;
 995      }
 0996      if (Y != 0F) {
 0997        size += 1 + 4;
 998      }
 0999      if (Z != 0F) {
 01000        size += 1 + 4;
 1001      }
 01002      if (W != 0F) {
 01003        size += 1 + 4;
 1004      }
 01005      if (_unknownFields != null) {
 01006        size += _unknownFields.CalculateSize();
 1007      }
 01008      return size;
 1009    }
 1010
 1011    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1012    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1013    public void MergeFrom(Quaternion other) {
 01014      if (other == null) {
 01015        return;
 1016      }
 01017      if (other.X != 0F) {
 01018        X = other.X;
 1019      }
 01020      if (other.Y != 0F) {
 01021        Y = other.Y;
 1022      }
 01023      if (other.Z != 0F) {
 01024        Z = other.Z;
 1025      }
 01026      if (other.W != 0F) {
 01027        W = other.W;
 1028      }
 01029      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 01030    }
 1031
 1032    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1033    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1034    public void MergeFrom(pb::CodedInputStream input) {
 1035    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 1036      input.ReadRawMessage(this);
 1037    #else
 1038      uint tag;
 01039      while ((tag = input.ReadTag()) != 0) {
 1040        switch(tag) {
 1041          default:
 01042            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 01043            break;
 1044          case 13: {
 01045            X = input.ReadFloat();
 01046            break;
 1047          }
 1048          case 21: {
 01049            Y = input.ReadFloat();
 01050            break;
 1051          }
 1052          case 29: {
 01053            Z = input.ReadFloat();
 01054            break;
 1055          }
 1056          case 37: {
 01057            W = input.ReadFloat();
 1058            break;
 1059          }
 1060        }
 1061      }
 1062    #endif
 01063    }
 1064
 1065    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 1066    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1067    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1068    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 1069      uint tag;
 1070      while ((tag = input.ReadTag()) != 0) {
 1071        switch(tag) {
 1072          default:
 1073            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 1074            break;
 1075          case 13: {
 1076            X = input.ReadFloat();
 1077            break;
 1078          }
 1079          case 21: {
 1080            Y = input.ReadFloat();
 1081            break;
 1082          }
 1083          case 29: {
 1084            Z = input.ReadFloat();
 1085            break;
 1086          }
 1087          case 37: {
 1088            W = input.ReadFloat();
 1089            break;
 1090          }
 1091        }
 1092      }
 1093    }
 1094    #endif
 1095
 1096  }
 1097
 1098  #endregion
 1099
 1100}
 1101
 1102#endregion Designer generated code