< Summary

Class:DCL.ECSComponents.PBUiText
Assembly:DCL.ECSComponents.ProtobufData
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/PBFiles/UiText.cs
Covered lines:35
Uncovered lines:35
Coverable lines:70
Total lines:280
Line coverage:50% (35 of 70)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
PBUiText()0%110100%
get_Descriptor()0%2100%
PBUiText(...)0%12300%
Clone()0%2100%
PBUiText()0%110100%
Equals(...)0%110100%
Equals(...)0%12.415033.33%
GetHashCode()0%20400%
ToString()0%2100%
WriteTo(...)0%4.024088.89%
CalculateSize()0%4.034087.5%
MergeFrom(...)0%30500%
MergeFrom(...)0%5.275077.78%

File(s)

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

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: UiText.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 UiText.proto</summary>
 15  public static partial class UiTextReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for UiText.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static UiTextReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "CgxVaVRleHQucHJvdG8SEGRlY2VudHJhbGFuZC5lY3MaE2NvbW1vbi9Db2xv",
 28            "cjMucHJvdG8iNQoIUEJVaVRleHQSDAoEdGV4dBgBIAEoCRIbCgp0ZXh0X2Nv",
 29            "bG9yGAIgASgLMgcuQ29sb3IzQhSqAhFEQ0wuRUNTQ29tcG9uZW50c2IGcHJv",
 30            "dG8z"));
 31      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 32          new pbr::FileDescriptor[] { global::Color3Reflection.Descriptor, },
 33          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 34            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBUiText), global::DCL.ECSComponents.PBUiText
 35          }));
 36    }
 37    #endregion
 38
 39  }
 40  #region Messages
 41  public sealed partial class PBUiText : pb::IMessage<PBUiText>
 42  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 43      , pb::IBufferMessage
 44  #endif
 45  {
 246    private static readonly pb::MessageParser<PBUiText> _parser = new pb::MessageParser<PBUiText>(() => new PBUiText());
 47    private pb::UnknownFieldSet _unknownFields;
 48    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 49    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 050    public static pb::MessageParser<PBUiText> 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.UiTextReflection.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)]
 266    public PBUiText() {
 67      OnConstruction();
 268    }
 69
 70    partial void OnConstruction();
 71
 72    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 73    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 074    public PBUiText(PBUiText other) : this() {
 075      text_ = other.text_;
 076      textColor_ = other.textColor_ != null ? other.textColor_.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 PBUiText Clone() {
 083      return new PBUiText(this);
 84    }
 85
 86    /// <summary>Field number for the "text" field.</summary>
 87    public const int TextFieldNumber = 1;
 288    private string text_ = "";
 89    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 90    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 91    public string Text {
 092      get { return text_; }
 93      set {
 294        text_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 295      }
 96    }
 97
 98    /// <summary>Field number for the "text_color" field.</summary>
 99    public const int TextColorFieldNumber = 2;
 100    private global::Color3 textColor_;
 101    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 102    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 103    public global::Color3 TextColor {
 6104      get { return textColor_; }
 105      set {
 2106        textColor_ = value;
 2107      }
 108    }
 109
 110    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 111    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 112    public override bool Equals(object other) {
 1113      return Equals(other as PBUiText);
 114    }
 115
 116    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 117    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 118    public bool Equals(PBUiText other) {
 1119      if (ReferenceEquals(other, null)) {
 0120        return false;
 121      }
 1122      if (ReferenceEquals(other, this)) {
 1123        return true;
 124      }
 0125      if (Text != other.Text) return false;
 0126      if (!object.Equals(TextColor, other.TextColor)) return false;
 0127      return Equals(_unknownFields, other._unknownFields);
 128    }
 129
 130    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 131    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 132    public override int GetHashCode() {
 0133      int hash = 1;
 0134      if (Text.Length != 0) hash ^= Text.GetHashCode();
 0135      if (textColor_ != null) hash ^= TextColor.GetHashCode();
 0136      if (_unknownFields != null) {
 0137        hash ^= _unknownFields.GetHashCode();
 138      }
 0139      return hash;
 140    }
 141
 142    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 143    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 144    public override string ToString() {
 0145      return pb::JsonFormatter.ToDiagnosticString(this);
 146    }
 147
 148    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 149    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 150    public void WriteTo(pb::CodedOutputStream output) {
 151    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 152      output.WriteRawMessage(this);
 153    #else
 2154      if (Text.Length != 0) {
 1155        output.WriteRawTag(10);
 1156        output.WriteString(Text);
 157      }
 2158      if (textColor_ != null) {
 1159        output.WriteRawTag(18);
 1160        output.WriteMessage(TextColor);
 161      }
 2162      if (_unknownFields != null) {
 0163        _unknownFields.WriteTo(output);
 164      }
 165    #endif
 2166    }
 167
 168    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 169    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 170    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 171    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 172      if (Text.Length != 0) {
 173        output.WriteRawTag(10);
 174        output.WriteString(Text);
 175      }
 176      if (textColor_ != null) {
 177        output.WriteRawTag(18);
 178        output.WriteMessage(TextColor);
 179      }
 180      if (_unknownFields != null) {
 181        _unknownFields.WriteTo(ref output);
 182      }
 183    }
 184    #endif
 185
 186    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 187    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 188    public int CalculateSize() {
 2189      int size = 0;
 2190      if (Text.Length != 0) {
 1191        size += 1 + pb::CodedOutputStream.ComputeStringSize(Text);
 192      }
 2193      if (textColor_ != null) {
 1194        size += 1 + pb::CodedOutputStream.ComputeMessageSize(TextColor);
 195      }
 2196      if (_unknownFields != null) {
 0197        size += _unknownFields.CalculateSize();
 198      }
 2199      return size;
 200    }
 201
 202    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 203    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 204    public void MergeFrom(PBUiText other) {
 0205      if (other == null) {
 0206        return;
 207      }
 0208      if (other.Text.Length != 0) {
 0209        Text = other.Text;
 210      }
 0211      if (other.textColor_ != null) {
 0212        if (textColor_ == null) {
 0213          TextColor = new global::Color3();
 214        }
 0215        TextColor.MergeFrom(other.TextColor);
 216      }
 0217      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0218    }
 219
 220    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 221    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 222    public void MergeFrom(pb::CodedInputStream input) {
 223    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 224      input.ReadRawMessage(this);
 225    #else
 226      uint tag;
 3227      while ((tag = input.ReadTag()) != 0) {
 228        switch(tag) {
 229          default:
 0230            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0231            break;
 232          case 10: {
 1233            Text = input.ReadString();
 1234            break;
 235          }
 236          case 18: {
 1237            if (textColor_ == null) {
 1238              TextColor = new global::Color3();
 239            }
 1240            input.ReadMessage(TextColor);
 241            break;
 242          }
 243        }
 244      }
 245    #endif
 1246    }
 247
 248    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 249    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 250    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 251    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 252      uint tag;
 253      while ((tag = input.ReadTag()) != 0) {
 254        switch(tag) {
 255          default:
 256            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 257            break;
 258          case 10: {
 259            Text = input.ReadString();
 260            break;
 261          }
 262          case 18: {
 263            if (textColor_ == null) {
 264              TextColor = new global::Color3();
 265            }
 266            input.ReadMessage(TextColor);
 267            break;
 268          }
 269        }
 270      }
 271    }
 272    #endif
 273
 274  }
 275
 276  #endregion
 277
 278}
 279
 280#endregion Designer generated code