< Summary

Class:Color3Reflection
Assembly:DCL.Components.ProtobufData
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/PBFiles/Common/Color3.cs
Covered lines:0
Uncovered lines:4
Coverable lines:4
Total lines:225
Line coverage:0% (0 of 4)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
Color3Reflection()0%2100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/PBFiles/Common/Color3.cs

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: 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;
 12/// <summary>Holder for reflection information generated from Color3.proto</summary>
 13public static partial class Color3Reflection {
 14
 15  #region Descriptor
 16  /// <summary>File descriptor for Color3.proto</summary>
 17  public static pbr::FileDescriptor Descriptor {
 018    get { return descriptor; }
 19  }
 20  private static pbr::FileDescriptor descriptor;
 21
 22  static Color3Reflection() {
 023    byte[] descriptorData = global::System.Convert.FromBase64String(
 24        string.Concat(
 25          "CgxDb2xvcjMucHJvdG8iKQoGQ29sb3IzEgkKAXIYASABKAISCQoBZxgCIAEo",
 26          "AhIJCgFiGAMgASgCYgZwcm90bzM="));
 027    descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 28        new pbr::FileDescriptor[] { },
 29        new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 30          new pbr::GeneratedClrTypeInfo(typeof(global::Color3), global::Color3.Parser, new[]{ "R", "G", "B" }, null, nul
 31        }));
 032  }
 33  #endregion
 34
 35}
 36#region Messages
 37public sealed partial class Color3 : pb::IMessage<Color3> {
 38  private static readonly pb::MessageParser<Color3> _parser = new pb::MessageParser<Color3>(() => new Color3());
 39  private pb::UnknownFieldSet _unknownFields;
 40  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 41  public static pb::MessageParser<Color3> Parser { get { return _parser; } }
 42
 43  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 44  public static pbr::MessageDescriptor Descriptor {
 45    get { return global::Color3Reflection.Descriptor.MessageTypes[0]; }
 46  }
 47
 48  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 49  pbr::MessageDescriptor pb::IMessage.Descriptor {
 50    get { return Descriptor; }
 51  }
 52
 53  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 54  public Color3() {
 55    OnConstruction();
 56  }
 57
 58  partial void OnConstruction();
 59
 60  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 61  public Color3(Color3 other) : this() {
 62    r_ = other.r_;
 63    g_ = other.g_;
 64    b_ = other.b_;
 65    _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 66  }
 67
 68  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 69  public Color3 Clone() {
 70    return new Color3(this);
 71  }
 72
 73  /// <summary>Field number for the "r" field.</summary>
 74  public const int RFieldNumber = 1;
 75  private float r_;
 76  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 77  public float R {
 78    get { return r_; }
 79    set {
 80      r_ = value;
 81    }
 82  }
 83
 84  /// <summary>Field number for the "g" field.</summary>
 85  public const int GFieldNumber = 2;
 86  private float g_;
 87  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 88  public float G {
 89    get { return g_; }
 90    set {
 91      g_ = value;
 92    }
 93  }
 94
 95  /// <summary>Field number for the "b" field.</summary>
 96  public const int BFieldNumber = 3;
 97  private float b_;
 98  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 99  public float B {
 100    get { return b_; }
 101    set {
 102      b_ = value;
 103    }
 104  }
 105
 106  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 107  public override bool Equals(object other) {
 108    return Equals(other as Color3);
 109  }
 110
 111  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 112  public bool Equals(Color3 other) {
 113    if (ReferenceEquals(other, null)) {
 114      return false;
 115    }
 116    if (ReferenceEquals(other, this)) {
 117      return true;
 118    }
 119    if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(R, other.R)) return false;
 120    if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(G, other.G)) return false;
 121    if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(B, other.B)) return false;
 122    return Equals(_unknownFields, other._unknownFields);
 123  }
 124
 125  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 126  public override int GetHashCode() {
 127    int hash = 1;
 128    if (R != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(R);
 129    if (G != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(G);
 130    if (B != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(B);
 131    if (_unknownFields != null) {
 132      hash ^= _unknownFields.GetHashCode();
 133    }
 134    return hash;
 135  }
 136
 137  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 138  public override string ToString() {
 139    return pb::JsonFormatter.ToDiagnosticString(this);
 140  }
 141
 142  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 143  public void WriteTo(pb::CodedOutputStream output) {
 144    if (R != 0F) {
 145      output.WriteRawTag(13);
 146      output.WriteFloat(R);
 147    }
 148    if (G != 0F) {
 149      output.WriteRawTag(21);
 150      output.WriteFloat(G);
 151    }
 152    if (B != 0F) {
 153      output.WriteRawTag(29);
 154      output.WriteFloat(B);
 155    }
 156    if (_unknownFields != null) {
 157      _unknownFields.WriteTo(output);
 158    }
 159  }
 160
 161  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 162  public int CalculateSize() {
 163    int size = 0;
 164    if (R != 0F) {
 165      size += 1 + 4;
 166    }
 167    if (G != 0F) {
 168      size += 1 + 4;
 169    }
 170    if (B != 0F) {
 171      size += 1 + 4;
 172    }
 173    if (_unknownFields != null) {
 174      size += _unknownFields.CalculateSize();
 175    }
 176    return size;
 177  }
 178
 179  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 180  public void MergeFrom(Color3 other) {
 181    if (other == null) {
 182      return;
 183    }
 184    if (other.R != 0F) {
 185      R = other.R;
 186    }
 187    if (other.G != 0F) {
 188      G = other.G;
 189    }
 190    if (other.B != 0F) {
 191      B = other.B;
 192    }
 193    _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 194  }
 195
 196  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 197  public void MergeFrom(pb::CodedInputStream input) {
 198    uint tag;
 199    while ((tag = input.ReadTag()) != 0) {
 200      switch(tag) {
 201        default:
 202          _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 203          break;
 204        case 13: {
 205          R = input.ReadFloat();
 206          break;
 207        }
 208        case 21: {
 209          G = input.ReadFloat();
 210          break;
 211        }
 212        case 29: {
 213          B = input.ReadFloat();
 214          break;
 215        }
 216      }
 217    }
 218  }
 219
 220}
 221
 222#endregion
 223
 224
 225#endregion Designer generated code

Methods/Properties

Descriptor()
Color3Reflection()