< Summary

Class:DCL.ECSComponents.Color4
Assembly:DCL.ECSComponents.ProtobufData
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/Color4.gen.cs
Covered lines:0
Uncovered lines:95
Coverable lines:95
Total lines:345
Line coverage:0% (0 of 95)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
Color4()0%2100%
get_Descriptor()0%2100%
Color4()0%2100%
Color4(...)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/DCLPlugins/ECS7/ProtocolBuffers/Generated/Color4.gen.cs

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: ecs/components/common/Color4.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/Color4.proto</summary>
 15  public static partial class Color4Reflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for ecs/components/common/Color4.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static Color4Reflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "CiJlY3MvY29tcG9uZW50cy9jb21tb24vQ29sb3I0LnByb3RvEhBkZWNlbnRy",
 28            "YWxhbmQuZWNzIjQKBkNvbG9yNBIJCgFyGAEgASgCEgkKAWcYAiABKAISCQoB",
 29            "YhgDIAEoAhIJCgFhGAQgASgCQhSqAhFEQ0wuRUNTQ29tcG9uZW50c2IGcHJv",
 30            "dG8z"));
 31      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 32          new pbr::FileDescriptor[] { },
 33          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 34            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.Color4), global::DCL.ECSComponents.Color4.Par
 35          }));
 36    }
 37    #endregion
 38
 39  }
 40  #region Messages
 41  public sealed partial class Color4 : pb::IMessage<Color4>
 42  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 43      , pb::IBufferMessage
 44  #endif
 45  {
 046    private static readonly pb::MessageParser<Color4> _parser = new pb::MessageParser<Color4>(() => new Color4());
 47    private pb::UnknownFieldSet _unknownFields;
 48    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 49    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 050    public static pb::MessageParser<Color4> Parser { get { return _parser; } }
 51
 52    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 53    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 54    public static pbr::MessageDescriptor Descriptor {
 055      get { return global::DCL.ECSComponents.Color4Reflection.Descriptor.MessageTypes[0]; }
 56    }
 57
 58    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 59    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 60    pbr::MessageDescriptor pb::IMessage.Descriptor {
 061      get { return Descriptor; }
 62    }
 63
 64    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 65    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 066    public Color4() {
 67      OnConstruction();
 068    }
 69
 70    partial void OnConstruction();
 71
 72    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 73    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 074    public Color4(Color4 other) : this() {
 075      r_ = other.r_;
 076      g_ = other.g_;
 077      b_ = other.b_;
 078      a_ = other.a_;
 079      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 080    }
 81
 82    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 83    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 84    public Color4 Clone() {
 085      return new Color4(this);
 86    }
 87
 88    /// <summary>Field number for the "r" field.</summary>
 89    public const int RFieldNumber = 1;
 90    private float r_;
 91    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 92    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 93    public float R {
 094      get { return r_; }
 95      set {
 096        r_ = value;
 097      }
 98    }
 99
 100    /// <summary>Field number for the "g" field.</summary>
 101    public const int GFieldNumber = 2;
 102    private float g_;
 103    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 104    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 105    public float G {
 0106      get { return g_; }
 107      set {
 0108        g_ = value;
 0109      }
 110    }
 111
 112    /// <summary>Field number for the "b" field.</summary>
 113    public const int BFieldNumber = 3;
 114    private float b_;
 115    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 116    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 117    public float B {
 0118      get { return b_; }
 119      set {
 0120        b_ = value;
 0121      }
 122    }
 123
 124    /// <summary>Field number for the "a" field.</summary>
 125    public const int AFieldNumber = 4;
 126    private float a_;
 127    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 128    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 129    public float A {
 0130      get { return a_; }
 131      set {
 0132        a_ = value;
 0133      }
 134    }
 135
 136    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 137    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 138    public override bool Equals(object other) {
 0139      return Equals(other as Color4);
 140    }
 141
 142    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 143    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 144    public bool Equals(Color4 other) {
 0145      if (ReferenceEquals(other, null)) {
 0146        return false;
 147      }
 0148      if (ReferenceEquals(other, this)) {
 0149        return true;
 150      }
 0151      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(R, other.R)) return false;
 0152      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(G, other.G)) return false;
 0153      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(B, other.B)) return false;
 0154      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(A, other.A)) return false;
 0155      return Equals(_unknownFields, other._unknownFields);
 156    }
 157
 158    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 159    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 160    public override int GetHashCode() {
 0161      int hash = 1;
 0162      if (R != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(R);
 0163      if (G != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(G);
 0164      if (B != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(B);
 0165      if (A != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(A);
 0166      if (_unknownFields != null) {
 0167        hash ^= _unknownFields.GetHashCode();
 168      }
 0169      return hash;
 170    }
 171
 172    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 173    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 174    public override string ToString() {
 0175      return pb::JsonFormatter.ToDiagnosticString(this);
 176    }
 177
 178    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 179    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 180    public void WriteTo(pb::CodedOutputStream output) {
 181    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 182      output.WriteRawMessage(this);
 183    #else
 0184      if (R != 0F) {
 0185        output.WriteRawTag(13);
 0186        output.WriteFloat(R);
 187      }
 0188      if (G != 0F) {
 0189        output.WriteRawTag(21);
 0190        output.WriteFloat(G);
 191      }
 0192      if (B != 0F) {
 0193        output.WriteRawTag(29);
 0194        output.WriteFloat(B);
 195      }
 0196      if (A != 0F) {
 0197        output.WriteRawTag(37);
 0198        output.WriteFloat(A);
 199      }
 0200      if (_unknownFields != null) {
 0201        _unknownFields.WriteTo(output);
 202      }
 203    #endif
 0204    }
 205
 206    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 207    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 208    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 209    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 210      if (R != 0F) {
 211        output.WriteRawTag(13);
 212        output.WriteFloat(R);
 213      }
 214      if (G != 0F) {
 215        output.WriteRawTag(21);
 216        output.WriteFloat(G);
 217      }
 218      if (B != 0F) {
 219        output.WriteRawTag(29);
 220        output.WriteFloat(B);
 221      }
 222      if (A != 0F) {
 223        output.WriteRawTag(37);
 224        output.WriteFloat(A);
 225      }
 226      if (_unknownFields != null) {
 227        _unknownFields.WriteTo(ref output);
 228      }
 229    }
 230    #endif
 231
 232    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 233    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 234    public int CalculateSize() {
 0235      int size = 0;
 0236      if (R != 0F) {
 0237        size += 1 + 4;
 238      }
 0239      if (G != 0F) {
 0240        size += 1 + 4;
 241      }
 0242      if (B != 0F) {
 0243        size += 1 + 4;
 244      }
 0245      if (A != 0F) {
 0246        size += 1 + 4;
 247      }
 0248      if (_unknownFields != null) {
 0249        size += _unknownFields.CalculateSize();
 250      }
 0251      return size;
 252    }
 253
 254    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 255    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 256    public void MergeFrom(Color4 other) {
 0257      if (other == null) {
 0258        return;
 259      }
 0260      if (other.R != 0F) {
 0261        R = other.R;
 262      }
 0263      if (other.G != 0F) {
 0264        G = other.G;
 265      }
 0266      if (other.B != 0F) {
 0267        B = other.B;
 268      }
 0269      if (other.A != 0F) {
 0270        A = other.A;
 271      }
 0272      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0273    }
 274
 275    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 276    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 277    public void MergeFrom(pb::CodedInputStream input) {
 278    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 279      input.ReadRawMessage(this);
 280    #else
 281      uint tag;
 0282      while ((tag = input.ReadTag()) != 0) {
 283        switch(tag) {
 284          default:
 0285            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0286            break;
 287          case 13: {
 0288            R = input.ReadFloat();
 0289            break;
 290          }
 291          case 21: {
 0292            G = input.ReadFloat();
 0293            break;
 294          }
 295          case 29: {
 0296            B = input.ReadFloat();
 0297            break;
 298          }
 299          case 37: {
 0300            A = input.ReadFloat();
 301            break;
 302          }
 303        }
 304      }
 305    #endif
 0306    }
 307
 308    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 309    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 310    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 311    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 312      uint tag;
 313      while ((tag = input.ReadTag()) != 0) {
 314        switch(tag) {
 315          default:
 316            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 317            break;
 318          case 13: {
 319            R = input.ReadFloat();
 320            break;
 321          }
 322          case 21: {
 323            G = input.ReadFloat();
 324            break;
 325          }
 326          case 29: {
 327            B = input.ReadFloat();
 328            break;
 329          }
 330          case 37: {
 331            A = input.ReadFloat();
 332            break;
 333          }
 334        }
 335      }
 336    }
 337    #endif
 338
 339  }
 340
 341  #endregion
 342
 343}
 344
 345#endregion Designer generated code