< Summary

Class:DCL.ECSComponents.UiStylesReflection
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:4
Coverable lines:4
Total lines:247
Line coverage:0% (0 of 4)
Covered branches:0
Total branches:0

Metrics

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

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 {
 020      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static UiStylesReflection() {
 025      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "Ch1lY3MvY29tcG9uZW50cy9VaVN0eWxlcy5wcm90bxIQZGVjZW50cmFsYW5k",
 28            "LmVjcxoiZWNzL2NvbXBvbmVudHMvY29tbW9uL0NvbG9yNC5wcm90byJaCgpQ",
 29            "QlVpU3R5bGVzEjcKEGJhY2tncm91bmRfY29sb3IYASABKAsyGC5kZWNlbnRy",
 30            "YWxhbmQuZWNzLkNvbG9yNEgAiAEBQhMKEV9iYWNrZ3JvdW5kX2NvbG9yQhSq",
 31            "AhFEQ0wuRUNTQ29tcG9uZW50c2IGcHJvdG8z"));
 032      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          }));
 037    }
 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  {
 47    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)]
 51    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 {
 56      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 {
 62      get { return Descriptor; }
 63    }
 64
 65    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 66    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 67    public PBUiStyles() {
 68      OnConstruction();
 69    }
 70
 71    partial void OnConstruction();
 72
 73    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 74    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 75    public PBUiStyles(PBUiStyles other) : this() {
 76      backgroundColor_ = other.backgroundColor_ != null ? other.backgroundColor_.Clone() : null;
 77      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 78    }
 79
 80    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 81    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 82    public PBUiStyles Clone() {
 83      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 {
 95      get { return backgroundColor_; }
 96      set {
 97        backgroundColor_ = value;
 98      }
 99    }
 100
 101    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 102    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 103    public override bool Equals(object other) {
 104      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) {
 110      if (ReferenceEquals(other, null)) {
 111        return false;
 112      }
 113      if (ReferenceEquals(other, this)) {
 114        return true;
 115      }
 116      if (!object.Equals(BackgroundColor, other.BackgroundColor)) return false;
 117      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() {
 123      int hash = 1;
 124      if (backgroundColor_ != null) hash ^= BackgroundColor.GetHashCode();
 125      if (_unknownFields != null) {
 126        hash ^= _unknownFields.GetHashCode();
 127      }
 128      return hash;
 129    }
 130
 131    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 132    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 133    public override string ToString() {
 134      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
 143      if (backgroundColor_ != null) {
 144        output.WriteRawTag(10);
 145        output.WriteMessage(BackgroundColor);
 146      }
 147      if (_unknownFields != null) {
 148        _unknownFields.WriteTo(output);
 149      }
 150    #endif
 151    }
 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() {
 170      int size = 0;
 171      if (backgroundColor_ != null) {
 172        size += 1 + pb::CodedOutputStream.ComputeMessageSize(BackgroundColor);
 173      }
 174      if (_unknownFields != null) {
 175        size += _unknownFields.CalculateSize();
 176      }
 177      return size;
 178    }
 179
 180    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 181    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 182    public void MergeFrom(PBUiStyles other) {
 183      if (other == null) {
 184        return;
 185      }
 186      if (other.backgroundColor_ != null) {
 187        if (backgroundColor_ == null) {
 188          BackgroundColor = new global::DCL.ECSComponents.Color4();
 189        }
 190        BackgroundColor.MergeFrom(other.BackgroundColor);
 191      }
 192      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 193    }
 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;
 202      while ((tag = input.ReadTag()) != 0) {
 203        switch(tag) {
 204          default:
 205            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 206            break;
 207          case 10: {
 208            if (backgroundColor_ == null) {
 209              BackgroundColor = new global::DCL.ECSComponents.Color4();
 210            }
 211            input.ReadMessage(BackgroundColor);
 212            break;
 213          }
 214        }
 215      }
 216    #endif
 217    }
 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

Methods/Properties

Descriptor()
UiStylesReflection()