< Summary

Class:DCL.ECSComponents.Vector3
Assembly:DCL.ECSComponents.ProtobufData
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/Vector3.gen.cs
Covered lines:49
Uncovered lines:31
Coverable lines:80
Total lines:307
Line coverage:61.2% (49 of 80)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
Vector3()0%110100%
get_Descriptor()0%2100%
Vector3()0%110100%
Vector3(...)0%110100%
Clone()0%110100%
Equals(...)0%2100%
Equals(...)0%9.386054.55%
GetHashCode()0%30500%
ToString()0%2100%
WriteTo(...)0%5.015091.67%
CalculateSize()0%5.025090%
MergeFrom(...)0%30500%
MergeFrom(...)0%5.275077.78%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/Vector3.gen.cs

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: ecs/components/common/Vector3.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 DCL.ECSComponents {
 13
 14  /// <summary>Holder for reflection information generated from ecs/components/common/Vector3.proto</summary>
 15  public static partial class Vector3Reflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for ecs/components/common/Vector3.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static Vector3Reflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "CiNlY3MvY29tcG9uZW50cy9jb21tb24vVmVjdG9yMy5wcm90bxIQZGVjZW50",
 28            "cmFsYW5kLmVjcyIqCgdWZWN0b3IzEgkKAXgYASABKAISCQoBeRgCIAEoAhIJ",
 29            "CgF6GAMgASgCQhSqAhFEQ0wuRUNTQ29tcG9uZW50c2IGcHJvdG8z"));
 30      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 31          new pbr::FileDescriptor[] { },
 32          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 33            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.Vector3), global::DCL.ECSComponents.Vector3.P
 34          }));
 35    }
 36    #endregion
 37
 38  }
 39  #region Messages
 40  public sealed partial class Vector3 : pb::IMessage<Vector3>
 41  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 42      , pb::IBufferMessage
 43  #endif
 44  {
 145    private static readonly pb::MessageParser<Vector3> _parser = new pb::MessageParser<Vector3>(() => new Vector3());
 46    private pb::UnknownFieldSet _unknownFields;
 47    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 48    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 049    public static pb::MessageParser<Vector3> Parser { get { return _parser; } }
 50
 51    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 52    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 53    public static pbr::MessageDescriptor Descriptor {
 054      get { return global::DCL.ECSComponents.Vector3Reflection.Descriptor.MessageTypes[0]; }
 55    }
 56
 57    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 58    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 59    pbr::MessageDescriptor pb::IMessage.Descriptor {
 060      get { return Descriptor; }
 61    }
 62
 63    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 64    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 665    public Vector3() {
 66      OnConstruction();
 667    }
 68
 69    partial void OnConstruction();
 70
 71    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 72    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 973    public Vector3(Vector3 other) : this() {
 974      x_ = other.x_;
 975      y_ = other.y_;
 976      z_ = other.z_;
 977      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 978    }
 79
 80    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 81    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 82    public Vector3 Clone() {
 983      return new Vector3(this);
 84    }
 85
 86    /// <summary>Field number for the "x" field.</summary>
 87    public const int XFieldNumber = 1;
 88    private float x_;
 89    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 90    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 91    public float X {
 092      get { return x_; }
 93      set {
 694        x_ = value;
 695      }
 96    }
 97
 98    /// <summary>Field number for the "y" field.</summary>
 99    public const int YFieldNumber = 2;
 100    private float y_;
 101    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 102    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 103    public float Y {
 0104      get { return y_; }
 105      set {
 6106        y_ = value;
 6107      }
 108    }
 109
 110    /// <summary>Field number for the "z" field.</summary>
 111    public const int ZFieldNumber = 3;
 112    private float z_;
 113    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 114    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 115    public float Z {
 0116      get { return z_; }
 117      set {
 6118        z_ = value;
 6119      }
 120    }
 121
 122    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 123    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 124    public override bool Equals(object other) {
 0125      return Equals(other as Vector3);
 126    }
 127
 128    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 129    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 130    public bool Equals(Vector3 other) {
 2131      if (ReferenceEquals(other, null)) {
 0132        return false;
 133      }
 2134      if (ReferenceEquals(other, this)) {
 0135        return true;
 136      }
 2137      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false;
 2138      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false;
 2139      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Z, other.Z)) return false;
 2140      return Equals(_unknownFields, other._unknownFields);
 141    }
 142
 143    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 144    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 145    public override int GetHashCode() {
 0146      int hash = 1;
 0147      if (X != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X);
 0148      if (Y != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y);
 0149      if (Z != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Z);
 0150      if (_unknownFields != null) {
 0151        hash ^= _unknownFields.GetHashCode();
 152      }
 0153      return hash;
 154    }
 155
 156    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 157    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 158    public override string ToString() {
 0159      return pb::JsonFormatter.ToDiagnosticString(this);
 160    }
 161
 162    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 163    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 164    public void WriteTo(pb::CodedOutputStream output) {
 165    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 166      output.WriteRawMessage(this);
 167    #else
 2168      if (X != 0F) {
 2169        output.WriteRawTag(13);
 2170        output.WriteFloat(X);
 171      }
 2172      if (Y != 0F) {
 2173        output.WriteRawTag(21);
 2174        output.WriteFloat(Y);
 175      }
 2176      if (Z != 0F) {
 2177        output.WriteRawTag(29);
 2178        output.WriteFloat(Z);
 179      }
 2180      if (_unknownFields != null) {
 0181        _unknownFields.WriteTo(output);
 182      }
 183    #endif
 2184    }
 185
 186    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 187    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 188    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 189    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 190      if (X != 0F) {
 191        output.WriteRawTag(13);
 192        output.WriteFloat(X);
 193      }
 194      if (Y != 0F) {
 195        output.WriteRawTag(21);
 196        output.WriteFloat(Y);
 197      }
 198      if (Z != 0F) {
 199        output.WriteRawTag(29);
 200        output.WriteFloat(Z);
 201      }
 202      if (_unknownFields != null) {
 203        _unknownFields.WriteTo(ref output);
 204      }
 205    }
 206    #endif
 207
 208    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 209    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 210    public int CalculateSize() {
 4211      int size = 0;
 4212      if (X != 0F) {
 4213        size += 1 + 4;
 214      }
 4215      if (Y != 0F) {
 4216        size += 1 + 4;
 217      }
 4218      if (Z != 0F) {
 4219        size += 1 + 4;
 220      }
 4221      if (_unknownFields != null) {
 0222        size += _unknownFields.CalculateSize();
 223      }
 4224      return size;
 225    }
 226
 227    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 228    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 229    public void MergeFrom(Vector3 other) {
 0230      if (other == null) {
 0231        return;
 232      }
 0233      if (other.X != 0F) {
 0234        X = other.X;
 235      }
 0236      if (other.Y != 0F) {
 0237        Y = other.Y;
 238      }
 0239      if (other.Z != 0F) {
 0240        Z = other.Z;
 241      }
 0242      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0243    }
 244
 245    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 246    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 247    public void MergeFrom(pb::CodedInputStream input) {
 248    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 249      input.ReadRawMessage(this);
 250    #else
 251      uint tag;
 8252      while ((tag = input.ReadTag()) != 0) {
 253        switch(tag) {
 254          default:
 0255            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0256            break;
 257          case 13: {
 2258            X = input.ReadFloat();
 2259            break;
 260          }
 261          case 21: {
 2262            Y = input.ReadFloat();
 2263            break;
 264          }
 265          case 29: {
 2266            Z = input.ReadFloat();
 267            break;
 268          }
 269        }
 270      }
 271    #endif
 2272    }
 273
 274    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 275    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 276    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 277    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 278      uint tag;
 279      while ((tag = input.ReadTag()) != 0) {
 280        switch(tag) {
 281          default:
 282            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 283            break;
 284          case 13: {
 285            X = input.ReadFloat();
 286            break;
 287          }
 288          case 21: {
 289            Y = input.ReadFloat();
 290            break;
 291          }
 292          case 29: {
 293            Z = input.ReadFloat();
 294            break;
 295          }
 296        }
 297      }
 298    }
 299    #endif
 300
 301  }
 302
 303  #endregion
 304
 305}
 306
 307#endregion Designer generated code