< Summary

Class:Vector3
Assembly:DCL.Components.ProtobufData
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/PBFiles/Common/Vector3.cs
Covered lines:42
Uncovered lines:38
Coverable lines:80
Total lines:225
Line coverage:52.5% (42 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%2100%
Clone()0%2100%
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/PBFiles/Common/Vector3.cs

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: 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;
 12/// <summary>Holder for reflection information generated from Vector3.proto</summary>
 13public static partial class Vector3Reflection {
 14
 15  #region Descriptor
 16  /// <summary>File descriptor for Vector3.proto</summary>
 17  public static pbr::FileDescriptor Descriptor {
 18    get { return descriptor; }
 19  }
 20  private static pbr::FileDescriptor descriptor;
 21
 22  static Vector3Reflection() {
 23    byte[] descriptorData = global::System.Convert.FromBase64String(
 24        string.Concat(
 25          "Cg1WZWN0b3IzLnByb3RvIioKB1ZlY3RvcjMSCQoBeBgBIAEoAhIJCgF5GAIg",
 26          "ASgCEgkKAXoYAyABKAJiBnByb3RvMw=="));
 27    descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 28        new pbr::FileDescriptor[] { },
 29        new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 30          new pbr::GeneratedClrTypeInfo(typeof(global::Vector3), global::Vector3.Parser, new[]{ "X", "Y", "Z" }, null, n
 31        }));
 32  }
 33  #endregion
 34
 35}
 36#region Messages
 37public sealed partial class Vector3 : pb::IMessage<Vector3> {
 138  private static readonly pb::MessageParser<Vector3> _parser = new pb::MessageParser<Vector3>(() => new Vector3());
 39  private pb::UnknownFieldSet _unknownFields;
 40  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 041  public static pb::MessageParser<Vector3> Parser { get { return _parser; } }
 42
 43  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 44  public static pbr::MessageDescriptor Descriptor {
 045    get { return global::Vector3Reflection.Descriptor.MessageTypes[0]; }
 46  }
 47
 48  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 49  pbr::MessageDescriptor pb::IMessage.Descriptor {
 050    get { return Descriptor; }
 51  }
 52
 53  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 654  public Vector3() {
 55    OnConstruction();
 656  }
 57
 58  partial void OnConstruction();
 59
 60  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 061  public Vector3(Vector3 other) : this() {
 062    x_ = other.x_;
 063    y_ = other.y_;
 064    z_ = other.z_;
 065    _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 066  }
 67
 68  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 69  public Vector3 Clone() {
 070    return new Vector3(this);
 71  }
 72
 73  /// <summary>Field number for the "x" field.</summary>
 74  public const int XFieldNumber = 1;
 75  private float x_;
 76  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 77  public float X {
 078    get { return x_; }
 79    set {
 680      x_ = value;
 681    }
 82  }
 83
 84  /// <summary>Field number for the "y" field.</summary>
 85  public const int YFieldNumber = 2;
 86  private float y_;
 87  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 88  public float Y {
 089    get { return y_; }
 90    set {
 691      y_ = value;
 692    }
 93  }
 94
 95  /// <summary>Field number for the "z" field.</summary>
 96  public const int ZFieldNumber = 3;
 97  private float z_;
 98  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 99  public float Z {
 0100    get { return z_; }
 101    set {
 6102      z_ = value;
 6103    }
 104  }
 105
 106  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 107  public override bool Equals(object other) {
 0108    return Equals(other as Vector3);
 109  }
 110
 111  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 112  public bool Equals(Vector3 other) {
 2113    if (ReferenceEquals(other, null)) {
 0114      return false;
 115    }
 2116    if (ReferenceEquals(other, this)) {
 0117      return true;
 118    }
 2119    if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false;
 2120    if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false;
 2121    if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Z, other.Z)) return false;
 2122    return Equals(_unknownFields, other._unknownFields);
 123  }
 124
 125  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 126  public override int GetHashCode() {
 0127    int hash = 1;
 0128    if (X != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X);
 0129    if (Y != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y);
 0130    if (Z != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Z);
 0131    if (_unknownFields != null) {
 0132      hash ^= _unknownFields.GetHashCode();
 133    }
 0134    return hash;
 135  }
 136
 137  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 138  public override string ToString() {
 0139    return pb::JsonFormatter.ToDiagnosticString(this);
 140  }
 141
 142  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 143  public void WriteTo(pb::CodedOutputStream output) {
 2144    if (X != 0F) {
 2145      output.WriteRawTag(13);
 2146      output.WriteFloat(X);
 147    }
 2148    if (Y != 0F) {
 2149      output.WriteRawTag(21);
 2150      output.WriteFloat(Y);
 151    }
 2152    if (Z != 0F) {
 2153      output.WriteRawTag(29);
 2154      output.WriteFloat(Z);
 155    }
 2156    if (_unknownFields != null) {
 0157      _unknownFields.WriteTo(output);
 158    }
 2159  }
 160
 161  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 162  public int CalculateSize() {
 4163    int size = 0;
 4164    if (X != 0F) {
 4165      size += 1 + 4;
 166    }
 4167    if (Y != 0F) {
 4168      size += 1 + 4;
 169    }
 4170    if (Z != 0F) {
 4171      size += 1 + 4;
 172    }
 4173    if (_unknownFields != null) {
 0174      size += _unknownFields.CalculateSize();
 175    }
 4176    return size;
 177  }
 178
 179  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 180  public void MergeFrom(Vector3 other) {
 0181    if (other == null) {
 0182      return;
 183    }
 0184    if (other.X != 0F) {
 0185      X = other.X;
 186    }
 0187    if (other.Y != 0F) {
 0188      Y = other.Y;
 189    }
 0190    if (other.Z != 0F) {
 0191      Z = other.Z;
 192    }
 0193    _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0194  }
 195
 196  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 197  public void MergeFrom(pb::CodedInputStream input) {
 198    uint tag;
 8199    while ((tag = input.ReadTag()) != 0) {
 200      switch(tag) {
 201        default:
 0202          _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0203          break;
 204        case 13: {
 2205          X = input.ReadFloat();
 2206          break;
 207        }
 208        case 21: {
 2209          Y = input.ReadFloat();
 2210          break;
 211        }
 212        case 29: {
 2213          Z = input.ReadFloat();
 214          break;
 215        }
 216      }
 217    }
 2218  }
 219
 220}
 221
 222#endregion
 223
 224
 225#endregion Designer generated code