< Summary

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

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
Color3()0%110100%
get_Descriptor()0%2100%
Color3()0%110100%
Color3(...)0%110100%
Clone()0%2100%
Equals(...)0%2100%
Equals(...)0%6.736072.73%
GetHashCode()0%6.65060%
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/Color3.gen.cs

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: ecs/components/common/Color3.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/Color3.proto</summary>
 15  public static partial class Color3Reflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for ecs/components/common/Color3.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static Color3Reflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "CiJlY3MvY29tcG9uZW50cy9jb21tb24vQ29sb3IzLnByb3RvEhBkZWNlbnRy",
 28            "YWxhbmQuZWNzIikKBkNvbG9yMxIJCgFyGAEgASgCEgkKAWcYAiABKAISCQoB",
 29            "YhgDIAEoAkIUqgIRRENMLkVDU0NvbXBvbmVudHNiBnByb3RvMw=="));
 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.Color3), global::DCL.ECSComponents.Color3.Par
 34          }));
 35    }
 36    #endregion
 37
 38  }
 39  #region Messages
 40  public sealed partial class Color3 : pb::IMessage<Color3>
 41  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 42      , pb::IBufferMessage
 43  #endif
 44  {
 145    private static readonly pb::MessageParser<Color3> _parser = new pb::MessageParser<Color3>(() => new Color3());
 46    private pb::UnknownFieldSet _unknownFields;
 47    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 48    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 049    public static pb::MessageParser<Color3> 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.Color3Reflection.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)]
 165    public Color3() {
 66      OnConstruction();
 167    }
 68
 69    partial void OnConstruction();
 70
 71    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 72    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 473    public Color3(Color3 other) : this() {
 474      r_ = other.r_;
 475      g_ = other.g_;
 476      b_ = other.b_;
 477      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 478    }
 79
 80    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 81    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 82    public Color3 Clone() {
 083      return new Color3(this);
 84    }
 85
 86    /// <summary>Field number for the "r" field.</summary>
 87    public const int RFieldNumber = 1;
 88    private float r_;
 89    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 90    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 91    public float R {
 392      get { return r_; }
 93      set {
 094        r_ = value;
 095      }
 96    }
 97
 98    /// <summary>Field number for the "g" field.</summary>
 99    public const int GFieldNumber = 2;
 100    private float g_;
 101    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 102    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 103    public float G {
 3104      get { return g_; }
 105      set {
 0106        g_ = value;
 0107      }
 108    }
 109
 110    /// <summary>Field number for the "b" field.</summary>
 111    public const int BFieldNumber = 3;
 112    private float b_;
 113    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 114    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 115    public float B {
 3116      get { return b_; }
 117      set {
 0118        b_ = value;
 0119      }
 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 Color3);
 126    }
 127
 128    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 129    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 130    public bool Equals(Color3 other) {
 12131      if (ReferenceEquals(other, null)) {
 0132        return false;
 133      }
 12134      if (ReferenceEquals(other, this)) {
 2135        return true;
 136      }
 15137      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(R, other.R)) return false;
 5138      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(G, other.G)) return false;
 5139      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(B, other.B)) return false;
 5140      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() {
 3146      int hash = 1;
 3147      if (R != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(R);
 3148      if (G != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(G);
 3149      if (B != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(B);
 3150      if (_unknownFields != null) {
 0151        hash ^= _unknownFields.GetHashCode();
 152      }
 3153      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
 5168      if (R != 0F) {
 4169        output.WriteRawTag(13);
 4170        output.WriteFloat(R);
 171      }
 5172      if (G != 0F) {
 4173        output.WriteRawTag(21);
 4174        output.WriteFloat(G);
 175      }
 5176      if (B != 0F) {
 4177        output.WriteRawTag(29);
 4178        output.WriteFloat(B);
 179      }
 5180      if (_unknownFields != null) {
 0181        _unknownFields.WriteTo(output);
 182      }
 183    #endif
 5184    }
 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 (R != 0F) {
 191        output.WriteRawTag(13);
 192        output.WriteFloat(R);
 193      }
 194      if (G != 0F) {
 195        output.WriteRawTag(21);
 196        output.WriteFloat(G);
 197      }
 198      if (B != 0F) {
 199        output.WriteRawTag(29);
 200        output.WriteFloat(B);
 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() {
 10211      int size = 0;
 10212      if (R != 0F) {
 8213        size += 1 + 4;
 214      }
 10215      if (G != 0F) {
 8216        size += 1 + 4;
 217      }
 10218      if (B != 0F) {
 8219        size += 1 + 4;
 220      }
 10221      if (_unknownFields != null) {
 0222        size += _unknownFields.CalculateSize();
 223      }
 10224      return size;
 225    }
 226
 227    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 228    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 229    public void MergeFrom(Color3 other) {
 0230      if (other == null) {
 0231        return;
 232      }
 0233      if (other.R != 0F) {
 0234        R = other.R;
 235      }
 0236      if (other.G != 0F) {
 0237        G = other.G;
 238      }
 0239      if (other.B != 0F) {
 0240        B = other.B;
 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;
 17252      while ((tag = input.ReadTag()) != 0) {
 253        switch(tag) {
 254          default:
 0255            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0256            break;
 257          case 13: {
 4258            R = input.ReadFloat();
 4259            break;
 260          }
 261          case 21: {
 4262            G = input.ReadFloat();
 4263            break;
 264          }
 265          case 29: {
 4266            B = input.ReadFloat();
 267            break;
 268          }
 269        }
 270      }
 271    #endif
 5272    }
 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            R = input.ReadFloat();
 286            break;
 287          }
 288          case 21: {
 289            G = input.ReadFloat();
 290            break;
 291          }
 292          case 29: {
 293            B = input.ReadFloat();
 294            break;
 295          }
 296        }
 297      }
 298    }
 299    #endif
 300
 301  }
 302
 303  #endregion
 304
 305}
 306
 307#endregion Designer generated code