< Summary

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

Metrics

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

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 {
 020      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static UiTextReflection() {
 025      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "CgxVaVRleHQucHJvdG8SEGRlY2VudHJhbGFuZC5lY3MaE2NvbW1vbi9Db2xv",
 28            "cjMucHJvdG8iNQoIUEJVaVRleHQSDAoEdGV4dBgBIAEoCRIbCgp0ZXh0X2Nv",
 29            "bG9yGAIgASgLMgcuQ29sb3IzQhSqAhFEQ0wuRUNTQ29tcG9uZW50c2IGcHJv",
 30            "dG8z"));
 031      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          }));
 036    }
 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  {
 46    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)]
 50    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 {
 55      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 {
 61      get { return Descriptor; }
 62    }
 63
 64    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 65    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 66    public PBUiText() {
 67      OnConstruction();
 68    }
 69
 70    partial void OnConstruction();
 71
 72    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 73    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 74    public PBUiText(PBUiText other) : this() {
 75      text_ = other.text_;
 76      textColor_ = other.textColor_ != null ? other.textColor_.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 PBUiText Clone() {
 83      return new PBUiText(this);
 84    }
 85
 86    /// <summary>Field number for the "text" field.</summary>
 87    public const int TextFieldNumber = 1;
 88    private string text_ = "";
 89    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 90    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 91    public string Text {
 92      get { return text_; }
 93      set {
 94        text_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 95      }
 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 {
 104      get { return textColor_; }
 105      set {
 106        textColor_ = value;
 107      }
 108    }
 109
 110    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 111    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 112    public override bool Equals(object other) {
 113      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) {
 119      if (ReferenceEquals(other, null)) {
 120        return false;
 121      }
 122      if (ReferenceEquals(other, this)) {
 123        return true;
 124      }
 125      if (Text != other.Text) return false;
 126      if (!object.Equals(TextColor, other.TextColor)) return false;
 127      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() {
 133      int hash = 1;
 134      if (Text.Length != 0) hash ^= Text.GetHashCode();
 135      if (textColor_ != null) hash ^= TextColor.GetHashCode();
 136      if (_unknownFields != null) {
 137        hash ^= _unknownFields.GetHashCode();
 138      }
 139      return hash;
 140    }
 141
 142    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 143    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 144    public override string ToString() {
 145      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
 154      if (Text.Length != 0) {
 155        output.WriteRawTag(10);
 156        output.WriteString(Text);
 157      }
 158      if (textColor_ != null) {
 159        output.WriteRawTag(18);
 160        output.WriteMessage(TextColor);
 161      }
 162      if (_unknownFields != null) {
 163        _unknownFields.WriteTo(output);
 164      }
 165    #endif
 166    }
 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() {
 189      int size = 0;
 190      if (Text.Length != 0) {
 191        size += 1 + pb::CodedOutputStream.ComputeStringSize(Text);
 192      }
 193      if (textColor_ != null) {
 194        size += 1 + pb::CodedOutputStream.ComputeMessageSize(TextColor);
 195      }
 196      if (_unknownFields != null) {
 197        size += _unknownFields.CalculateSize();
 198      }
 199      return size;
 200    }
 201
 202    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 203    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 204    public void MergeFrom(PBUiText other) {
 205      if (other == null) {
 206        return;
 207      }
 208      if (other.Text.Length != 0) {
 209        Text = other.Text;
 210      }
 211      if (other.textColor_ != null) {
 212        if (textColor_ == null) {
 213          TextColor = new global::Color3();
 214        }
 215        TextColor.MergeFrom(other.TextColor);
 216      }
 217      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 218    }
 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;
 227      while ((tag = input.ReadTag()) != 0) {
 228        switch(tag) {
 229          default:
 230            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 231            break;
 232          case 10: {
 233            Text = input.ReadString();
 234            break;
 235          }
 236          case 18: {
 237            if (textColor_ == null) {
 238              TextColor = new global::Color3();
 239            }
 240            input.ReadMessage(TextColor);
 241            break;
 242          }
 243        }
 244      }
 245    #endif
 246    }
 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

Methods/Properties

Descriptor()
UiTextReflection()