< Summary

Class:DCL.ECSComponents.UiTextReflection
Assembly:Decentraland.Protocol.GeneratedCode
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/UiText.gen.cs
Covered lines:0
Uncovered lines:4
Coverable lines:4
Total lines:451
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/Scripts/MainScripts/DCL/DecentralandProtocol/UiText.gen.cs

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: decentraland/sdk/components/ui_text.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 decentraland/sdk/components/ui_text.proto</summary>
 15  public static partial class UiTextReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for decentraland/sdk/components/ui_text.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            "CilkZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvdWlfdGV4dC5wcm90bxIb",
 28            "ZGVjZW50cmFsYW5kLnNkay5jb21wb25lbnRzGiBkZWNlbnRyYWxhbmQvY29t",
 29            "bW9uL2NvbG9ycy5wcm90bxouZGVjZW50cmFsYW5kL3Nkay9jb21wb25lbnRz",
 30            "L2NvbW1vbi90ZXh0cy5wcm90byKbAgoIUEJVaVRleHQSDQoFdmFsdWUYASAB",
 31            "KAkSLwoFY29sb3IYAiABKAsyGy5kZWNlbnRyYWxhbmQuY29tbW9uLkNvbG9y",
 32            "NEgAiAEBEkoKCnRleHRfYWxpZ24YAyABKA4yMS5kZWNlbnRyYWxhbmQuc2Rr",
 33            "LmNvbXBvbmVudHMuY29tbW9uLlRleHRBbGlnbk1vZGVIAYgBARI7CgRmb250",
 34            "GAQgASgOMiguZGVjZW50cmFsYW5kLnNkay5jb21wb25lbnRzLmNvbW1vbi5G",
 35            "b250SAKIAQESFgoJZm9udF9zaXplGAUgASgFSAOIAQFCCAoGX2NvbG9yQg0K",
 36            "C190ZXh0X2FsaWduQgcKBV9mb250QgwKCl9mb250X3NpemVCFKoCEURDTC5F",
 37            "Q1NDb21wb25lbnRzYgZwcm90bzM="));
 038      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 39          new pbr::FileDescriptor[] { global::Decentraland.Common.ColorsReflection.Descriptor, global::DCL.ECSComponents
 40          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 41            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBUiText), global::DCL.ECSComponents.PBUiText
 42          }));
 043    }
 44    #endregion
 45
 46  }
 47  #region Messages
 48  public sealed partial class PBUiText : pb::IMessage<PBUiText>
 49  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 50      , pb::IBufferMessage
 51  #endif
 52  {
 53    private static readonly pb::MessageParser<PBUiText> _parser = new pb::MessageParser<PBUiText>(() => new PBUiText());
 54    private pb::UnknownFieldSet _unknownFields;
 55    private int _hasBits0;
 56    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 57    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 58    public static pb::MessageParser<PBUiText> Parser { get { return _parser; } }
 59
 60    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 61    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 62    public static pbr::MessageDescriptor Descriptor {
 63      get { return global::DCL.ECSComponents.UiTextReflection.Descriptor.MessageTypes[0]; }
 64    }
 65
 66    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 67    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 68    pbr::MessageDescriptor pb::IMessage.Descriptor {
 69      get { return Descriptor; }
 70    }
 71
 72    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 73    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 74    public PBUiText() {
 75      OnConstruction();
 76    }
 77
 78    partial void OnConstruction();
 79
 80    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 81    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 82    public PBUiText(PBUiText other) : this() {
 83      _hasBits0 = other._hasBits0;
 84      value_ = other.value_;
 85      color_ = other.color_ != null ? other.color_.Clone() : null;
 86      textAlign_ = other.textAlign_;
 87      font_ = other.font_;
 88      fontSize_ = other.fontSize_;
 89      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 90    }
 91
 92    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 93    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 94    public PBUiText Clone() {
 95      return new PBUiText(this);
 96    }
 97
 98    /// <summary>Field number for the "value" field.</summary>
 99    public const int ValueFieldNumber = 1;
 100    private string value_ = "";
 101    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 102    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 103    public string Value {
 104      get { return value_; }
 105      set {
 106        value_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 107      }
 108    }
 109
 110    /// <summary>Field number for the "color" field.</summary>
 111    public const int ColorFieldNumber = 2;
 112    private global::Decentraland.Common.Color4 color_;
 113    /// <summary>
 114    /// default=(1.0,1.0,1.0,1.0)
 115    /// </summary>
 116    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 117    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 118    public global::Decentraland.Common.Color4 Color {
 119      get { return color_; }
 120      set {
 121        color_ = value;
 122      }
 123    }
 124
 125    /// <summary>Field number for the "text_align" field.</summary>
 126    public const int TextAlignFieldNumber = 3;
 127    private global::DCL.ECSComponents.TextAlignMode textAlign_;
 128    /// <summary>
 129    /// default='center'
 130    /// </summary>
 131    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 132    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 133    public global::DCL.ECSComponents.TextAlignMode TextAlign {
 134      get { if ((_hasBits0 & 1) != 0) { return textAlign_; } else { return global::DCL.ECSComponents.TextAlignMode.TamTo
 135      set {
 136        _hasBits0 |= 1;
 137        textAlign_ = value;
 138      }
 139    }
 140    /// <summary>Gets whether the "text_align" field is set</summary>
 141    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 142    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 143    public bool HasTextAlign {
 144      get { return (_hasBits0 & 1) != 0; }
 145    }
 146    /// <summary>Clears the value of the "text_align" field</summary>
 147    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 148    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 149    public void ClearTextAlign() {
 150      _hasBits0 &= ~1;
 151    }
 152
 153    /// <summary>Field number for the "font" field.</summary>
 154    public const int FontFieldNumber = 4;
 155    private global::DCL.ECSComponents.Font font_;
 156    /// <summary>
 157    /// default=0
 158    /// </summary>
 159    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 160    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 161    public global::DCL.ECSComponents.Font Font {
 162      get { if ((_hasBits0 & 2) != 0) { return font_; } else { return global::DCL.ECSComponents.Font.FSansSerif; } }
 163      set {
 164        _hasBits0 |= 2;
 165        font_ = value;
 166      }
 167    }
 168    /// <summary>Gets whether the "font" field is set</summary>
 169    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 170    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 171    public bool HasFont {
 172      get { return (_hasBits0 & 2) != 0; }
 173    }
 174    /// <summary>Clears the value of the "font" field</summary>
 175    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 176    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 177    public void ClearFont() {
 178      _hasBits0 &= ~2;
 179    }
 180
 181    /// <summary>Field number for the "font_size" field.</summary>
 182    public const int FontSizeFieldNumber = 5;
 183    private int fontSize_;
 184    /// <summary>
 185    /// default=10
 186    /// </summary>
 187    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 188    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 189    public int FontSize {
 190      get { if ((_hasBits0 & 4) != 0) { return fontSize_; } else { return 0; } }
 191      set {
 192        _hasBits0 |= 4;
 193        fontSize_ = value;
 194      }
 195    }
 196    /// <summary>Gets whether the "font_size" field is set</summary>
 197    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 198    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 199    public bool HasFontSize {
 200      get { return (_hasBits0 & 4) != 0; }
 201    }
 202    /// <summary>Clears the value of the "font_size" field</summary>
 203    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 204    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 205    public void ClearFontSize() {
 206      _hasBits0 &= ~4;
 207    }
 208
 209    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 210    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 211    public override bool Equals(object other) {
 212      return Equals(other as PBUiText);
 213    }
 214
 215    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 216    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 217    public bool Equals(PBUiText other) {
 218      if (ReferenceEquals(other, null)) {
 219        return false;
 220      }
 221      if (ReferenceEquals(other, this)) {
 222        return true;
 223      }
 224      if (Value != other.Value) return false;
 225      if (!object.Equals(Color, other.Color)) return false;
 226      if (TextAlign != other.TextAlign) return false;
 227      if (Font != other.Font) return false;
 228      if (FontSize != other.FontSize) return false;
 229      return Equals(_unknownFields, other._unknownFields);
 230    }
 231
 232    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 233    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 234    public override int GetHashCode() {
 235      int hash = 1;
 236      if (Value.Length != 0) hash ^= Value.GetHashCode();
 237      if (color_ != null) hash ^= Color.GetHashCode();
 238      if (HasTextAlign) hash ^= TextAlign.GetHashCode();
 239      if (HasFont) hash ^= Font.GetHashCode();
 240      if (HasFontSize) hash ^= FontSize.GetHashCode();
 241      if (_unknownFields != null) {
 242        hash ^= _unknownFields.GetHashCode();
 243      }
 244      return hash;
 245    }
 246
 247    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 248    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 249    public override string ToString() {
 250      return pb::JsonFormatter.ToDiagnosticString(this);
 251    }
 252
 253    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 254    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 255    public void WriteTo(pb::CodedOutputStream output) {
 256    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 257      output.WriteRawMessage(this);
 258    #else
 259      if (Value.Length != 0) {
 260        output.WriteRawTag(10);
 261        output.WriteString(Value);
 262      }
 263      if (color_ != null) {
 264        output.WriteRawTag(18);
 265        output.WriteMessage(Color);
 266      }
 267      if (HasTextAlign) {
 268        output.WriteRawTag(24);
 269        output.WriteEnum((int) TextAlign);
 270      }
 271      if (HasFont) {
 272        output.WriteRawTag(32);
 273        output.WriteEnum((int) Font);
 274      }
 275      if (HasFontSize) {
 276        output.WriteRawTag(40);
 277        output.WriteInt32(FontSize);
 278      }
 279      if (_unknownFields != null) {
 280        _unknownFields.WriteTo(output);
 281      }
 282    #endif
 283    }
 284
 285    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 286    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 287    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 288    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 289      if (Value.Length != 0) {
 290        output.WriteRawTag(10);
 291        output.WriteString(Value);
 292      }
 293      if (color_ != null) {
 294        output.WriteRawTag(18);
 295        output.WriteMessage(Color);
 296      }
 297      if (HasTextAlign) {
 298        output.WriteRawTag(24);
 299        output.WriteEnum((int) TextAlign);
 300      }
 301      if (HasFont) {
 302        output.WriteRawTag(32);
 303        output.WriteEnum((int) Font);
 304      }
 305      if (HasFontSize) {
 306        output.WriteRawTag(40);
 307        output.WriteInt32(FontSize);
 308      }
 309      if (_unknownFields != null) {
 310        _unknownFields.WriteTo(ref output);
 311      }
 312    }
 313    #endif
 314
 315    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 316    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 317    public int CalculateSize() {
 318      int size = 0;
 319      if (Value.Length != 0) {
 320        size += 1 + pb::CodedOutputStream.ComputeStringSize(Value);
 321      }
 322      if (color_ != null) {
 323        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Color);
 324      }
 325      if (HasTextAlign) {
 326        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) TextAlign);
 327      }
 328      if (HasFont) {
 329        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Font);
 330      }
 331      if (HasFontSize) {
 332        size += 1 + pb::CodedOutputStream.ComputeInt32Size(FontSize);
 333      }
 334      if (_unknownFields != null) {
 335        size += _unknownFields.CalculateSize();
 336      }
 337      return size;
 338    }
 339
 340    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 341    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 342    public void MergeFrom(PBUiText other) {
 343      if (other == null) {
 344        return;
 345      }
 346      if (other.Value.Length != 0) {
 347        Value = other.Value;
 348      }
 349      if (other.color_ != null) {
 350        if (color_ == null) {
 351          Color = new global::Decentraland.Common.Color4();
 352        }
 353        Color.MergeFrom(other.Color);
 354      }
 355      if (other.HasTextAlign) {
 356        TextAlign = other.TextAlign;
 357      }
 358      if (other.HasFont) {
 359        Font = other.Font;
 360      }
 361      if (other.HasFontSize) {
 362        FontSize = other.FontSize;
 363      }
 364      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 365    }
 366
 367    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 368    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 369    public void MergeFrom(pb::CodedInputStream input) {
 370    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 371      input.ReadRawMessage(this);
 372    #else
 373      uint tag;
 374      while ((tag = input.ReadTag()) != 0) {
 375        switch(tag) {
 376          default:
 377            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 378            break;
 379          case 10: {
 380            Value = input.ReadString();
 381            break;
 382          }
 383          case 18: {
 384            if (color_ == null) {
 385              Color = new global::Decentraland.Common.Color4();
 386            }
 387            input.ReadMessage(Color);
 388            break;
 389          }
 390          case 24: {
 391            TextAlign = (global::DCL.ECSComponents.TextAlignMode) input.ReadEnum();
 392            break;
 393          }
 394          case 32: {
 395            Font = (global::DCL.ECSComponents.Font) input.ReadEnum();
 396            break;
 397          }
 398          case 40: {
 399            FontSize = input.ReadInt32();
 400            break;
 401          }
 402        }
 403      }
 404    #endif
 405    }
 406
 407    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 408    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 409    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 410    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 411      uint tag;
 412      while ((tag = input.ReadTag()) != 0) {
 413        switch(tag) {
 414          default:
 415            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 416            break;
 417          case 10: {
 418            Value = input.ReadString();
 419            break;
 420          }
 421          case 18: {
 422            if (color_ == null) {
 423              Color = new global::Decentraland.Common.Color4();
 424            }
 425            input.ReadMessage(Color);
 426            break;
 427          }
 428          case 24: {
 429            TextAlign = (global::DCL.ECSComponents.TextAlignMode) input.ReadEnum();
 430            break;
 431          }
 432          case 32: {
 433            Font = (global::DCL.ECSComponents.Font) input.ReadEnum();
 434            break;
 435          }
 436          case 40: {
 437            FontSize = input.ReadInt32();
 438            break;
 439          }
 440        }
 441      }
 442    }
 443    #endif
 444
 445  }
 446
 447  #endregion
 448
 449}
 450
 451#endregion Designer generated code

Methods/Properties

Descriptor()
UiTextReflection()