< Summary

Class:Vector3
Assembly:DCL.ECSComponents.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:303
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>
 38#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 39    , pb::IBufferMessage
 40#endif
 41{
 142  private static readonly pb::MessageParser<Vector3> _parser = new pb::MessageParser<Vector3>(() => new Vector3());
 43  private pb::UnknownFieldSet _unknownFields;
 44  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 45  [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 046  public static pb::MessageParser<Vector3> Parser { get { return _parser; } }
 47
 48  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 49  [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 50  public static pbr::MessageDescriptor Descriptor {
 051    get { return global::Vector3Reflection.Descriptor.MessageTypes[0]; }
 52  }
 53
 54  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 55  [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 56  pbr::MessageDescriptor pb::IMessage.Descriptor {
 057    get { return Descriptor; }
 58  }
 59
 60  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 61  [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 662  public Vector3() {
 63    OnConstruction();
 664  }
 65
 66  partial void OnConstruction();
 67
 68  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 69  [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 070  public Vector3(Vector3 other) : this() {
 071    x_ = other.x_;
 072    y_ = other.y_;
 073    z_ = other.z_;
 074    _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 075  }
 76
 77  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 78  [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 79  public Vector3 Clone() {
 080    return new Vector3(this);
 81  }
 82
 83  /// <summary>Field number for the "x" field.</summary>
 84  public const int XFieldNumber = 1;
 85  private float x_;
 86  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 87  [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 88  public float X {
 089    get { return x_; }
 90    set {
 691      x_ = value;
 692    }
 93  }
 94
 95  /// <summary>Field number for the "y" field.</summary>
 96  public const int YFieldNumber = 2;
 97  private float y_;
 98  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 99  [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 100  public float Y {
 0101    get { return y_; }
 102    set {
 6103      y_ = value;
 6104    }
 105  }
 106
 107  /// <summary>Field number for the "z" field.</summary>
 108  public const int ZFieldNumber = 3;
 109  private float z_;
 110  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 111  [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 112  public float Z {
 0113    get { return z_; }
 114    set {
 6115      z_ = value;
 6116    }
 117  }
 118
 119  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 120  [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 121  public override bool Equals(object other) {
 0122    return Equals(other as Vector3);
 123  }
 124
 125  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 126  [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 127  public bool Equals(Vector3 other) {
 2128    if (ReferenceEquals(other, null)) {
 0129      return false;
 130    }
 2131    if (ReferenceEquals(other, this)) {
 0132      return true;
 133    }
 2134    if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false;
 2135    if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false;
 2136    if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Z, other.Z)) return false;
 2137    return Equals(_unknownFields, other._unknownFields);
 138  }
 139
 140  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 141  [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 142  public override int GetHashCode() {
 0143    int hash = 1;
 0144    if (X != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X);
 0145    if (Y != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y);
 0146    if (Z != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Z);
 0147    if (_unknownFields != null) {
 0148      hash ^= _unknownFields.GetHashCode();
 149    }
 0150    return hash;
 151  }
 152
 153  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 154  [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 155  public override string ToString() {
 0156    return pb::JsonFormatter.ToDiagnosticString(this);
 157  }
 158
 159  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 160  [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 161  public void WriteTo(pb::CodedOutputStream output) {
 162  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 163    output.WriteRawMessage(this);
 164  #else
 2165    if (X != 0F) {
 2166      output.WriteRawTag(13);
 2167      output.WriteFloat(X);
 168    }
 2169    if (Y != 0F) {
 2170      output.WriteRawTag(21);
 2171      output.WriteFloat(Y);
 172    }
 2173    if (Z != 0F) {
 2174      output.WriteRawTag(29);
 2175      output.WriteFloat(Z);
 176    }
 2177    if (_unknownFields != null) {
 0178      _unknownFields.WriteTo(output);
 179    }
 180  #endif
 2181  }
 182
 183  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 184  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 185  [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 186  void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 187    if (X != 0F) {
 188      output.WriteRawTag(13);
 189      output.WriteFloat(X);
 190    }
 191    if (Y != 0F) {
 192      output.WriteRawTag(21);
 193      output.WriteFloat(Y);
 194    }
 195    if (Z != 0F) {
 196      output.WriteRawTag(29);
 197      output.WriteFloat(Z);
 198    }
 199    if (_unknownFields != null) {
 200      _unknownFields.WriteTo(ref output);
 201    }
 202  }
 203  #endif
 204
 205  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 206  [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 207  public int CalculateSize() {
 4208    int size = 0;
 4209    if (X != 0F) {
 4210      size += 1 + 4;
 211    }
 4212    if (Y != 0F) {
 4213      size += 1 + 4;
 214    }
 4215    if (Z != 0F) {
 4216      size += 1 + 4;
 217    }
 4218    if (_unknownFields != null) {
 0219      size += _unknownFields.CalculateSize();
 220    }
 4221    return size;
 222  }
 223
 224  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 225  [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 226  public void MergeFrom(Vector3 other) {
 0227    if (other == null) {
 0228      return;
 229    }
 0230    if (other.X != 0F) {
 0231      X = other.X;
 232    }
 0233    if (other.Y != 0F) {
 0234      Y = other.Y;
 235    }
 0236    if (other.Z != 0F) {
 0237      Z = other.Z;
 238    }
 0239    _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0240  }
 241
 242  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 243  [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 244  public void MergeFrom(pb::CodedInputStream input) {
 245  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 246    input.ReadRawMessage(this);
 247  #else
 248    uint tag;
 8249    while ((tag = input.ReadTag()) != 0) {
 250      switch(tag) {
 251        default:
 0252          _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0253          break;
 254        case 13: {
 2255          X = input.ReadFloat();
 2256          break;
 257        }
 258        case 21: {
 2259          Y = input.ReadFloat();
 2260          break;
 261        }
 262        case 29: {
 2263          Z = input.ReadFloat();
 264          break;
 265        }
 266      }
 267    }
 268  #endif
 2269  }
 270
 271  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 272  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 273  [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 274  void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 275    uint tag;
 276    while ((tag = input.ReadTag()) != 0) {
 277      switch(tag) {
 278        default:
 279          _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 280          break;
 281        case 13: {
 282          X = input.ReadFloat();
 283          break;
 284        }
 285        case 21: {
 286          Y = input.ReadFloat();
 287          break;
 288        }
 289        case 29: {
 290          Z = input.ReadFloat();
 291          break;
 292        }
 293      }
 294    }
 295  }
 296  #endif
 297
 298}
 299
 300#endregion
 301
 302
 303#endregion Designer generated code