< Summary

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

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
PBUiStyles()0%2100%
get_Descriptor()0%2100%
PBUiStyles()0%2100%
PBUiStyles(...)0%12300%
Clone()0%2100%
Equals(...)0%2100%
Equals(...)0%20400%
GetHashCode()0%12300%
ToString()0%2100%
WriteTo(...)0%12300%
CalculateSize()0%12300%
MergeFrom(...)0%20400%
MergeFrom(...)0%20400%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/UiStyles.gen.cs

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: ecs/components/UiStyles.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/UiStyles.proto</summary>
 15  public static partial class UiStylesReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for ecs/components/UiStyles.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static UiStylesReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "Ch1lY3MvY29tcG9uZW50cy9VaVN0eWxlcy5wcm90bxIQZGVjZW50cmFsYW5k",
 28            "LmVjcxoiZWNzL2NvbXBvbmVudHMvY29tbW9uL0NvbG9yNC5wcm90byJaCgpQ",
 29            "QlVpU3R5bGVzEjcKEGJhY2tncm91bmRfY29sb3IYASABKAsyGC5kZWNlbnRy",
 30            "YWxhbmQuZWNzLkNvbG9yNEgAiAEBQhMKEV9iYWNrZ3JvdW5kX2NvbG9yQhSq",
 31            "AhFEQ0wuRUNTQ29tcG9uZW50c2IGcHJvdG8z"));
 32      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 33          new pbr::FileDescriptor[] { global::DCL.ECSComponents.Color4Reflection.Descriptor, },
 34          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 35            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBUiStyles), global::DCL.ECSComponents.PBUiSt
 36          }));
 37    }
 38    #endregion
 39
 40  }
 41  #region Messages
 42  public sealed partial class PBUiStyles : pb::IMessage<PBUiStyles>
 43  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 44      , pb::IBufferMessage
 45  #endif
 46  {
 047    private static readonly pb::MessageParser<PBUiStyles> _parser = new pb::MessageParser<PBUiStyles>(() => new PBUiStyl
 48    private pb::UnknownFieldSet _unknownFields;
 49    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 50    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 051    public static pb::MessageParser<PBUiStyles> Parser { get { return _parser; } }
 52
 53    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 54    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 55    public static pbr::MessageDescriptor Descriptor {
 056      get { return global::DCL.ECSComponents.UiStylesReflection.Descriptor.MessageTypes[0]; }
 57    }
 58
 59    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 60    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 61    pbr::MessageDescriptor pb::IMessage.Descriptor {
 062      get { return Descriptor; }
 63    }
 64
 65    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 66    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 067    public PBUiStyles() {
 68      OnConstruction();
 069    }
 70
 71    partial void OnConstruction();
 72
 73    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 74    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 075    public PBUiStyles(PBUiStyles other) : this() {
 076      backgroundColor_ = other.backgroundColor_ != null ? other.backgroundColor_.Clone() : null;
 077      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 078    }
 79
 80    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 81    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 82    public PBUiStyles Clone() {
 083      return new PBUiStyles(this);
 84    }
 85
 86    /// <summary>Field number for the "background_color" field.</summary>
 87    public const int BackgroundColorFieldNumber = 1;
 88    private global::DCL.ECSComponents.Color4 backgroundColor_;
 89    /// <summary>
 90    /// default=(0.0, 0.0, 0.0, 0.0)
 91    /// </summary>
 92    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 93    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 94    public global::DCL.ECSComponents.Color4 BackgroundColor {
 095      get { return backgroundColor_; }
 96      set {
 097        backgroundColor_ = value;
 098      }
 99    }
 100
 101    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 102    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 103    public override bool Equals(object other) {
 0104      return Equals(other as PBUiStyles);
 105    }
 106
 107    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 108    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 109    public bool Equals(PBUiStyles other) {
 0110      if (ReferenceEquals(other, null)) {
 0111        return false;
 112      }
 0113      if (ReferenceEquals(other, this)) {
 0114        return true;
 115      }
 0116      if (!object.Equals(BackgroundColor, other.BackgroundColor)) return false;
 0117      return Equals(_unknownFields, other._unknownFields);
 118    }
 119
 120    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 121    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 122    public override int GetHashCode() {
 0123      int hash = 1;
 0124      if (backgroundColor_ != null) hash ^= BackgroundColor.GetHashCode();
 0125      if (_unknownFields != null) {
 0126        hash ^= _unknownFields.GetHashCode();
 127      }
 0128      return hash;
 129    }
 130
 131    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 132    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 133    public override string ToString() {
 0134      return pb::JsonFormatter.ToDiagnosticString(this);
 135    }
 136
 137    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 138    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 139    public void WriteTo(pb::CodedOutputStream output) {
 140    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 141      output.WriteRawMessage(this);
 142    #else
 0143      if (backgroundColor_ != null) {
 0144        output.WriteRawTag(10);
 0145        output.WriteMessage(BackgroundColor);
 146      }
 0147      if (_unknownFields != null) {
 0148        _unknownFields.WriteTo(output);
 149      }
 150    #endif
 0151    }
 152
 153    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 154    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 155    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 156    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 157      if (backgroundColor_ != null) {
 158        output.WriteRawTag(10);
 159        output.WriteMessage(BackgroundColor);
 160      }
 161      if (_unknownFields != null) {
 162        _unknownFields.WriteTo(ref output);
 163      }
 164    }
 165    #endif
 166
 167    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 168    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 169    public int CalculateSize() {
 0170      int size = 0;
 0171      if (backgroundColor_ != null) {
 0172        size += 1 + pb::CodedOutputStream.ComputeMessageSize(BackgroundColor);
 173      }
 0174      if (_unknownFields != null) {
 0175        size += _unknownFields.CalculateSize();
 176      }
 0177      return size;
 178    }
 179
 180    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 181    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 182    public void MergeFrom(PBUiStyles other) {
 0183      if (other == null) {
 0184        return;
 185      }
 0186      if (other.backgroundColor_ != null) {
 0187        if (backgroundColor_ == null) {
 0188          BackgroundColor = new global::DCL.ECSComponents.Color4();
 189        }
 0190        BackgroundColor.MergeFrom(other.BackgroundColor);
 191      }
 0192      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0193    }
 194
 195    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 196    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 197    public void MergeFrom(pb::CodedInputStream input) {
 198    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 199      input.ReadRawMessage(this);
 200    #else
 201      uint tag;
 0202      while ((tag = input.ReadTag()) != 0) {
 203        switch(tag) {
 204          default:
 0205            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0206            break;
 207          case 10: {
 0208            if (backgroundColor_ == null) {
 0209              BackgroundColor = new global::DCL.ECSComponents.Color4();
 210            }
 0211            input.ReadMessage(BackgroundColor);
 212            break;
 213          }
 214        }
 215      }
 216    #endif
 0217    }
 218
 219    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 220    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 221    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 222    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 223      uint tag;
 224      while ((tag = input.ReadTag()) != 0) {
 225        switch(tag) {
 226          default:
 227            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 228            break;
 229          case 10: {
 230            if (backgroundColor_ == null) {
 231              BackgroundColor = new global::DCL.ECSComponents.Color4();
 232            }
 233            input.ReadMessage(BackgroundColor);
 234            break;
 235          }
 236        }
 237      }
 238    }
 239    #endif
 240
 241  }
 242
 243  #endregion
 244
 245}
 246
 247#endregion Designer generated code