< Summary

Class:DCL.ECSComponents.PBTextShape
Assembly:Decentraland.Protocol.GeneratedCode
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/TextShape.gen.cs
Covered lines:91
Uncovered lines:341
Coverable lines:432
Total lines:1281
Line coverage:21% (91 of 432)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
PBTextShape()0%110100%
get_Descriptor()0%2100%
PBTextShape(...)0%56700%
Clone()0%2100%
PBTextShape()0%110100%
ClearFont()0%2100%
ClearFontSize()0%2100%
ClearFontAutoSize()0%2100%
ClearTextAlign()0%2100%
ClearWidth()0%2100%
ClearHeight()0%2100%
ClearPaddingTop()0%2100%
ClearPaddingRight()0%2100%
ClearPaddingBottom()0%2100%
ClearPaddingLeft()0%2100%
ClearLineSpacing()0%2100%
ClearLineCount()0%2100%
ClearTextWrapping()0%2100%
ClearShadowBlur()0%2100%
ClearShadowOffsetX()0%2100%
ClearShadowOffsetY()0%2100%
ClearOutlineWidth()0%2100%
Equals(...)0%2100%
Equals(...)0%435.0124010.64%
GetHashCode()0%5522300%
ToString()0%2100%
WriteTo(...)0%5522300%
CalculateSize()0%5522300%
MergeFrom(...)0%7022600%
MergeFrom(...)0%11223300%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/TextShape.gen.cs

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: decentraland/sdk/components/text_shape.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/text_shape.proto</summary>
 15  public static partial class TextShapeReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for decentraland/sdk/components/text_shape.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static TextShapeReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "CixkZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvdGV4dF9zaGFwZS5wcm90",
 28            "bxIbZGVjZW50cmFsYW5kLnNkay5jb21wb25lbnRzGiBkZWNlbnRyYWxhbmQv",
 29            "Y29tbW9uL2NvbG9ycy5wcm90bxouZGVjZW50cmFsYW5kL3Nkay9jb21wb25l",
 30            "bnRzL2NvbW1vbi90ZXh0cy5wcm90byKbCAoLUEJUZXh0U2hhcGUSDAoEdGV4",
 31            "dBgBIAEoCRI7CgRmb250GAIgASgOMiguZGVjZW50cmFsYW5kLnNkay5jb21w",
 32            "b25lbnRzLmNvbW1vbi5Gb250SACIAQESFgoJZm9udF9zaXplGAMgASgCSAGI",
 33            "AQESGwoOZm9udF9hdXRvX3NpemUYBCABKAhIAogBARJKCgp0ZXh0X2FsaWdu",
 34            "GAUgASgOMjEuZGVjZW50cmFsYW5kLnNkay5jb21wb25lbnRzLmNvbW1vbi5U",
 35            "ZXh0QWxpZ25Nb2RlSAOIAQESEgoFd2lkdGgYBiABKAJIBIgBARITCgZoZWln",
 36            "aHQYByABKAJIBYgBARIYCgtwYWRkaW5nX3RvcBgIIAEoAkgGiAEBEhoKDXBh",
 37            "ZGRpbmdfcmlnaHQYCSABKAJIB4gBARIbCg5wYWRkaW5nX2JvdHRvbRgKIAEo",
 38            "AkgIiAEBEhkKDHBhZGRpbmdfbGVmdBgLIAEoAkgJiAEBEhkKDGxpbmVfc3Bh",
 39            "Y2luZxgMIAEoAkgKiAEBEhcKCmxpbmVfY291bnQYDSABKAVIC4gBARIaCg10",
 40            "ZXh0X3dyYXBwaW5nGA4gASgISAyIAQESGAoLc2hhZG93X2JsdXIYDyABKAJI",
 41            "DYgBARIcCg9zaGFkb3dfb2Zmc2V0X3gYECABKAJIDogBARIcCg9zaGFkb3df",
 42            "b2Zmc2V0X3kYESABKAJID4gBARIaCg1vdXRsaW5lX3dpZHRoGBIgASgCSBCI",
 43            "AQESNgoMc2hhZG93X2NvbG9yGBMgASgLMhsuZGVjZW50cmFsYW5kLmNvbW1v",
 44            "bi5Db2xvcjNIEYgBARI3Cg1vdXRsaW5lX2NvbG9yGBQgASgLMhsuZGVjZW50",
 45            "cmFsYW5kLmNvbW1vbi5Db2xvcjNIEogBARI0Cgp0ZXh0X2NvbG9yGBUgASgL",
 46            "MhsuZGVjZW50cmFsYW5kLmNvbW1vbi5Db2xvcjRIE4gBAUIHCgVfZm9udEIM",
 47            "CgpfZm9udF9zaXplQhEKD19mb250X2F1dG9fc2l6ZUINCgtfdGV4dF9hbGln",
 48            "bkIICgZfd2lkdGhCCQoHX2hlaWdodEIOCgxfcGFkZGluZ190b3BCEAoOX3Bh",
 49            "ZGRpbmdfcmlnaHRCEQoPX3BhZGRpbmdfYm90dG9tQg8KDV9wYWRkaW5nX2xl",
 50            "ZnRCDwoNX2xpbmVfc3BhY2luZ0INCgtfbGluZV9jb3VudEIQCg5fdGV4dF93",
 51            "cmFwcGluZ0IOCgxfc2hhZG93X2JsdXJCEgoQX3NoYWRvd19vZmZzZXRfeEIS",
 52            "ChBfc2hhZG93X29mZnNldF95QhAKDl9vdXRsaW5lX3dpZHRoQg8KDV9zaGFk",
 53            "b3dfY29sb3JCEAoOX291dGxpbmVfY29sb3JCDQoLX3RleHRfY29sb3JCFKoC",
 54            "EURDTC5FQ1NDb21wb25lbnRzYgZwcm90bzM="));
 55      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 56          new pbr::FileDescriptor[] { global::Decentraland.Common.ColorsReflection.Descriptor, global::DCL.ECSComponents
 57          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 58            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBTextShape), global::DCL.ECSComponents.PBTex
 59          }));
 60    }
 61    #endregion
 62
 63  }
 64  #region Messages
 65  public sealed partial class PBTextShape : pb::IMessage<PBTextShape>
 66  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 67      , pb::IBufferMessage
 68  #endif
 69  {
 170    private static readonly pb::MessageParser<PBTextShape> _parser = new pb::MessageParser<PBTextShape>(() => new PBText
 71    private pb::UnknownFieldSet _unknownFields;
 72    private int _hasBits0;
 73    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 74    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 075    public static pb::MessageParser<PBTextShape> Parser { get { return _parser; } }
 76
 77    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 78    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 79    public static pbr::MessageDescriptor Descriptor {
 080      get { return global::DCL.ECSComponents.TextShapeReflection.Descriptor.MessageTypes[0]; }
 81    }
 82
 83    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 84    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 85    pbr::MessageDescriptor pb::IMessage.Descriptor {
 086      get { return Descriptor; }
 87    }
 88
 89    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 90    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 2191    public PBTextShape() {
 92      OnConstruction();
 2193    }
 94
 95    partial void OnConstruction();
 96
 97    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 98    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 099    public PBTextShape(PBTextShape other) : this() {
 0100      _hasBits0 = other._hasBits0;
 0101      text_ = other.text_;
 0102      font_ = other.font_;
 0103      fontSize_ = other.fontSize_;
 0104      fontAutoSize_ = other.fontAutoSize_;
 0105      textAlign_ = other.textAlign_;
 0106      width_ = other.width_;
 0107      height_ = other.height_;
 0108      paddingTop_ = other.paddingTop_;
 0109      paddingRight_ = other.paddingRight_;
 0110      paddingBottom_ = other.paddingBottom_;
 0111      paddingLeft_ = other.paddingLeft_;
 0112      lineSpacing_ = other.lineSpacing_;
 0113      lineCount_ = other.lineCount_;
 0114      textWrapping_ = other.textWrapping_;
 0115      shadowBlur_ = other.shadowBlur_;
 0116      shadowOffsetX_ = other.shadowOffsetX_;
 0117      shadowOffsetY_ = other.shadowOffsetY_;
 0118      outlineWidth_ = other.outlineWidth_;
 0119      shadowColor_ = other.shadowColor_ != null ? other.shadowColor_.Clone() : null;
 0120      outlineColor_ = other.outlineColor_ != null ? other.outlineColor_.Clone() : null;
 0121      textColor_ = other.textColor_ != null ? other.textColor_.Clone() : null;
 0122      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 0123    }
 124
 125    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 126    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 127    public PBTextShape Clone() {
 0128      return new PBTextShape(this);
 129    }
 130
 131    /// <summary>Field number for the "text" field.</summary>
 132    public const int TextFieldNumber = 1;
 21133    private string text_ = "";
 134    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 135    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 136    public string Text {
 23137      get { return text_; }
 138      set {
 2139        text_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 2140      }
 141    }
 142
 143    /// <summary>Field number for the "font" field.</summary>
 144    public const int FontFieldNumber = 2;
 145    private global::DCL.ECSComponents.Font font_;
 146    /// <summary>
 147    /// default=F_SANS_SERIF
 148    /// </summary>
 149    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 150    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 151    public global::DCL.ECSComponents.Font Font {
 2152      get { if ((_hasBits0 & 1) != 0) { return font_; } else { return global::DCL.ECSComponents.Font.FSansSerif; } }
 153      set {
 1154        _hasBits0 |= 1;
 1155        font_ = value;
 1156      }
 157    }
 158    /// <summary>Gets whether the "font" field is set</summary>
 159    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 160    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 161    public bool HasFont {
 21162      get { return (_hasBits0 & 1) != 0; }
 163    }
 164    /// <summary>Clears the value of the "font" field</summary>
 165    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 166    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 167    public void ClearFont() {
 0168      _hasBits0 &= ~1;
 0169    }
 170
 171    /// <summary>Field number for the "font_size" field.</summary>
 172    public const int FontSizeFieldNumber = 3;
 173    private float fontSize_;
 174    /// <summary>
 175    /// default=10
 176    /// </summary>
 177    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 178    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 179    public float FontSize {
 2180      get { if ((_hasBits0 & 2) != 0) { return fontSize_; } else { return 0F; } }
 181      set {
 1182        _hasBits0 |= 2;
 1183        fontSize_ = value;
 1184      }
 185    }
 186    /// <summary>Gets whether the "font_size" field is set</summary>
 187    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 188    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 189    public bool HasFontSize {
 21190      get { return (_hasBits0 & 2) != 0; }
 191    }
 192    /// <summary>Clears the value of the "font_size" field</summary>
 193    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 194    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 195    public void ClearFontSize() {
 0196      _hasBits0 &= ~2;
 0197    }
 198
 199    /// <summary>Field number for the "font_auto_size" field.</summary>
 200    public const int FontAutoSizeFieldNumber = 4;
 201    private bool fontAutoSize_;
 202    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 203    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 204    public bool FontAutoSize {
 4205      get { if ((_hasBits0 & 4) != 0) { return fontAutoSize_; } else { return false; } }
 206      set {
 2207        _hasBits0 |= 4;
 2208        fontAutoSize_ = value;
 2209      }
 210    }
 211    /// <summary>Gets whether the "font_auto_size" field is set</summary>
 212    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 213    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 214    public bool HasFontAutoSize {
 25215      get { return (_hasBits0 & 4) != 0; }
 216    }
 217    /// <summary>Clears the value of the "font_auto_size" field</summary>
 218    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 219    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 220    public void ClearFontAutoSize() {
 0221      _hasBits0 &= ~4;
 0222    }
 223
 224    /// <summary>Field number for the "text_align" field.</summary>
 225    public const int TextAlignFieldNumber = 5;
 226    private global::DCL.ECSComponents.TextAlignMode textAlign_;
 227    /// <summary>
 228    /// default=TAM_CENTER_CENTER
 229    /// </summary>
 230    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 231    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 232    public global::DCL.ECSComponents.TextAlignMode TextAlign {
 8233      get { if ((_hasBits0 & 8) != 0) { return textAlign_; } else { return global::DCL.ECSComponents.TextAlignMode.TamTo
 234      set {
 4235        _hasBits0 |= 8;
 4236        textAlign_ = value;
 4237      }
 238    }
 239    /// <summary>Gets whether the "text_align" field is set</summary>
 240    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 241    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 242    public bool HasTextAlign {
 21243      get { return (_hasBits0 & 8) != 0; }
 244    }
 245    /// <summary>Clears the value of the "text_align" field</summary>
 246    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 247    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 248    public void ClearTextAlign() {
 0249      _hasBits0 &= ~8;
 0250    }
 251
 252    /// <summary>Field number for the "width" field.</summary>
 253    public const int WidthFieldNumber = 6;
 254    private float width_;
 255    /// <summary>
 256    /// default=1
 257    /// </summary>
 258    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 259    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 260    public float Width {
 8261      get { if ((_hasBits0 & 16) != 0) { return width_; } else { return 0F; } }
 262      set {
 4263        _hasBits0 |= 16;
 4264        width_ = value;
 4265      }
 266    }
 267    /// <summary>Gets whether the "width" field is set</summary>
 268    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 269    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 270    public bool HasWidth {
 4271      get { return (_hasBits0 & 16) != 0; }
 272    }
 273    /// <summary>Clears the value of the "width" field</summary>
 274    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 275    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 276    public void ClearWidth() {
 0277      _hasBits0 &= ~16;
 0278    }
 279
 280    /// <summary>Field number for the "height" field.</summary>
 281    public const int HeightFieldNumber = 7;
 282    private float height_;
 283    /// <summary>
 284    /// default=1
 285    /// </summary>
 286    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 287    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 288    public float Height {
 8289      get { if ((_hasBits0 & 32) != 0) { return height_; } else { return 0F; } }
 290      set {
 4291        _hasBits0 |= 32;
 4292        height_ = value;
 4293      }
 294    }
 295    /// <summary>Gets whether the "height" field is set</summary>
 296    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 297    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 298    public bool HasHeight {
 4299      get { return (_hasBits0 & 32) != 0; }
 300    }
 301    /// <summary>Clears the value of the "height" field</summary>
 302    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 303    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 304    public void ClearHeight() {
 0305      _hasBits0 &= ~32;
 0306    }
 307
 308    /// <summary>Field number for the "padding_top" field.</summary>
 309    public const int PaddingTopFieldNumber = 8;
 310    private float paddingTop_;
 311    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 312    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 313    public float PaddingTop {
 4314      get { if ((_hasBits0 & 64) != 0) { return paddingTop_; } else { return 0F; } }
 315      set {
 1316        _hasBits0 |= 64;
 1317        paddingTop_ = value;
 1318      }
 319    }
 320    /// <summary>Gets whether the "padding_top" field is set</summary>
 321    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 322    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 323    public bool HasPaddingTop {
 21324      get { return (_hasBits0 & 64) != 0; }
 325    }
 326    /// <summary>Clears the value of the "padding_top" field</summary>
 327    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 328    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 329    public void ClearPaddingTop() {
 0330      _hasBits0 &= ~64;
 0331    }
 332
 333    /// <summary>Field number for the "padding_right" field.</summary>
 334    public const int PaddingRightFieldNumber = 9;
 335    private float paddingRight_;
 336    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 337    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 338    public float PaddingRight {
 4339      get { if ((_hasBits0 & 128) != 0) { return paddingRight_; } else { return 0F; } }
 340      set {
 1341        _hasBits0 |= 128;
 1342        paddingRight_ = value;
 1343      }
 344    }
 345    /// <summary>Gets whether the "padding_right" field is set</summary>
 346    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 347    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 348    public bool HasPaddingRight {
 21349      get { return (_hasBits0 & 128) != 0; }
 350    }
 351    /// <summary>Clears the value of the "padding_right" field</summary>
 352    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 353    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 354    public void ClearPaddingRight() {
 0355      _hasBits0 &= ~128;
 0356    }
 357
 358    /// <summary>Field number for the "padding_bottom" field.</summary>
 359    public const int PaddingBottomFieldNumber = 10;
 360    private float paddingBottom_;
 361    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 362    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 363    public float PaddingBottom {
 4364      get { if ((_hasBits0 & 256) != 0) { return paddingBottom_; } else { return 0F; } }
 365      set {
 1366        _hasBits0 |= 256;
 1367        paddingBottom_ = value;
 1368      }
 369    }
 370    /// <summary>Gets whether the "padding_bottom" field is set</summary>
 371    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 372    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 373    public bool HasPaddingBottom {
 21374      get { return (_hasBits0 & 256) != 0; }
 375    }
 376    /// <summary>Clears the value of the "padding_bottom" field</summary>
 377    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 378    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 379    public void ClearPaddingBottom() {
 0380      _hasBits0 &= ~256;
 0381    }
 382
 383    /// <summary>Field number for the "padding_left" field.</summary>
 384    public const int PaddingLeftFieldNumber = 11;
 385    private float paddingLeft_;
 386    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 387    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 388    public float PaddingLeft {
 4389      get { if ((_hasBits0 & 512) != 0) { return paddingLeft_; } else { return 0F; } }
 390      set {
 1391        _hasBits0 |= 512;
 1392        paddingLeft_ = value;
 1393      }
 394    }
 395    /// <summary>Gets whether the "padding_left" field is set</summary>
 396    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 397    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 398    public bool HasPaddingLeft {
 21399      get { return (_hasBits0 & 512) != 0; }
 400    }
 401    /// <summary>Clears the value of the "padding_left" field</summary>
 402    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 403    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 404    public void ClearPaddingLeft() {
 0405      _hasBits0 &= ~512;
 0406    }
 407
 408    /// <summary>Field number for the "line_spacing" field.</summary>
 409    public const int LineSpacingFieldNumber = 12;
 410    private float lineSpacing_;
 411    /// <summary>
 412    /// The amount of additional spacing to add between each lines of text.
 413    /// </summary>
 414    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 415    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 416    public float LineSpacing {
 2417      get { if ((_hasBits0 & 1024) != 0) { return lineSpacing_; } else { return 0F; } }
 418      set {
 1419        _hasBits0 |= 1024;
 1420        lineSpacing_ = value;
 1421      }
 422    }
 423    /// <summary>Gets whether the "line_spacing" field is set</summary>
 424    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 425    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 426    public bool HasLineSpacing {
 21427      get { return (_hasBits0 & 1024) != 0; }
 428    }
 429    /// <summary>Clears the value of the "line_spacing" field</summary>
 430    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 431    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 432    public void ClearLineSpacing() {
 0433      _hasBits0 &= ~1024;
 0434    }
 435
 436    /// <summary>Field number for the "line_count" field.</summary>
 437    public const int LineCountFieldNumber = 13;
 438    private int lineCount_;
 439    /// <summary>
 440    /// Allows control over how many lines of text are displayed.
 441    /// </summary>
 442    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 443    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 444    public int LineCount {
 4445      get { if ((_hasBits0 & 2048) != 0) { return lineCount_; } else { return 0; } }
 446      set {
 1447        _hasBits0 |= 2048;
 1448        lineCount_ = value;
 1449      }
 450    }
 451    /// <summary>Gets whether the "line_count" field is set</summary>
 452    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 453    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 454    public bool HasLineCount {
 22455      get { return (_hasBits0 & 2048) != 0; }
 456    }
 457    /// <summary>Clears the value of the "line_count" field</summary>
 458    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 459    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 460    public void ClearLineCount() {
 0461      _hasBits0 &= ~2048;
 0462    }
 463
 464    /// <summary>Field number for the "text_wrapping" field.</summary>
 465    public const int TextWrappingFieldNumber = 14;
 466    private bool textWrapping_;
 467    /// <summary>
 468    /// Enables text wrapping
 469    /// </summary>
 470    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 471    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 472    public bool TextWrapping {
 20473      get { if ((_hasBits0 & 4096) != 0) { return textWrapping_; } else { return false; } }
 474      set {
 5475        _hasBits0 |= 4096;
 5476        textWrapping_ = value;
 5477      }
 478    }
 479    /// <summary>Gets whether the "text_wrapping" field is set</summary>
 480    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 481    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 482    public bool HasTextWrapping {
 42483      get { return (_hasBits0 & 4096) != 0; }
 484    }
 485    /// <summary>Clears the value of the "text_wrapping" field</summary>
 486    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 487    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 488    public void ClearTextWrapping() {
 0489      _hasBits0 &= ~4096;
 0490    }
 491
 492    /// <summary>Field number for the "shadow_blur" field.</summary>
 493    public const int ShadowBlurFieldNumber = 15;
 494    private float shadowBlur_;
 495    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 496    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 497    public float ShadowBlur {
 0498      get { if ((_hasBits0 & 8192) != 0) { return shadowBlur_; } else { return 0F; } }
 499      set {
 0500        _hasBits0 |= 8192;
 0501        shadowBlur_ = value;
 0502      }
 503    }
 504    /// <summary>Gets whether the "shadow_blur" field is set</summary>
 505    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 506    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 507    public bool HasShadowBlur {
 20508      get { return (_hasBits0 & 8192) != 0; }
 509    }
 510    /// <summary>Clears the value of the "shadow_blur" field</summary>
 511    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 512    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 513    public void ClearShadowBlur() {
 0514      _hasBits0 &= ~8192;
 0515    }
 516
 517    /// <summary>Field number for the "shadow_offset_x" field.</summary>
 518    public const int ShadowOffsetXFieldNumber = 16;
 519    private float shadowOffsetX_;
 520    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 521    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 522    public float ShadowOffsetX {
 0523      get { if ((_hasBits0 & 16384) != 0) { return shadowOffsetX_; } else { return 0F; } }
 524      set {
 0525        _hasBits0 |= 16384;
 0526        shadowOffsetX_ = value;
 0527      }
 528    }
 529    /// <summary>Gets whether the "shadow_offset_x" field is set</summary>
 530    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 531    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 532    public bool HasShadowOffsetX {
 20533      get { return (_hasBits0 & 16384) != 0; }
 534    }
 535    /// <summary>Clears the value of the "shadow_offset_x" field</summary>
 536    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 537    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 538    public void ClearShadowOffsetX() {
 0539      _hasBits0 &= ~16384;
 0540    }
 541
 542    /// <summary>Field number for the "shadow_offset_y" field.</summary>
 543    public const int ShadowOffsetYFieldNumber = 17;
 544    private float shadowOffsetY_;
 545    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 546    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 547    public float ShadowOffsetY {
 0548      get { if ((_hasBits0 & 32768) != 0) { return shadowOffsetY_; } else { return 0F; } }
 549      set {
 0550        _hasBits0 |= 32768;
 0551        shadowOffsetY_ = value;
 0552      }
 553    }
 554    /// <summary>Gets whether the "shadow_offset_y" field is set</summary>
 555    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 556    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 557    public bool HasShadowOffsetY {
 20558      get { return (_hasBits0 & 32768) != 0; }
 559    }
 560    /// <summary>Clears the value of the "shadow_offset_y" field</summary>
 561    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 562    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 563    public void ClearShadowOffsetY() {
 0564      _hasBits0 &= ~32768;
 0565    }
 566
 567    /// <summary>Field number for the "outline_width" field.</summary>
 568    public const int OutlineWidthFieldNumber = 18;
 569    private float outlineWidth_;
 570    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 571    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 572    public float OutlineWidth {
 4573      get { if ((_hasBits0 & 65536) != 0) { return outlineWidth_; } else { return 0F; } }
 574      set {
 1575        _hasBits0 |= 65536;
 1576        outlineWidth_ = value;
 1577      }
 578    }
 579    /// <summary>Gets whether the "outline_width" field is set</summary>
 580    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 581    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 582    public bool HasOutlineWidth {
 20583      get { return (_hasBits0 & 65536) != 0; }
 584    }
 585    /// <summary>Clears the value of the "outline_width" field</summary>
 586    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 587    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 588    public void ClearOutlineWidth() {
 0589      _hasBits0 &= ~65536;
 0590    }
 591
 592    /// <summary>Field number for the "shadow_color" field.</summary>
 593    public const int ShadowColorFieldNumber = 19;
 594    private global::Decentraland.Common.Color3 shadowColor_;
 595    /// <summary>
 596    /// default=(1.0,1.0,1.0)
 597    /// </summary>
 598    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 599    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 600    public global::Decentraland.Common.Color3 ShadowColor {
 20601      get { return shadowColor_; }
 602      set {
 0603        shadowColor_ = value;
 0604      }
 605    }
 606
 607    /// <summary>Field number for the "outline_color" field.</summary>
 608    public const int OutlineColorFieldNumber = 20;
 609    private global::Decentraland.Common.Color3 outlineColor_;
 610    /// <summary>
 611    /// default=(1.0,1.0,1.0)
 612    /// </summary>
 613    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 614    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 615    public global::Decentraland.Common.Color3 OutlineColor {
 23616      get { return outlineColor_; }
 617      set {
 1618        outlineColor_ = value;
 1619      }
 620    }
 621
 622    /// <summary>Field number for the "text_color" field.</summary>
 623    public const int TextColorFieldNumber = 21;
 624    private global::Decentraland.Common.Color4 textColor_;
 625    /// <summary>
 626    /// default=(1.0,1.0,1.0)
 627    /// </summary>
 628    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 629    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 630    public global::Decentraland.Common.Color4 TextColor {
 21631      get { return textColor_; }
 632      set {
 2633        textColor_ = value;
 2634      }
 635    }
 636
 637    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 638    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 639    public override bool Equals(object other) {
 0640      return Equals(other as PBTextShape);
 641    }
 642
 643    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 644    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 645    public bool Equals(PBTextShape other) {
 21646      if (ReferenceEquals(other, null)) {
 20647        return false;
 648      }
 1649      if (ReferenceEquals(other, this)) {
 0650        return true;
 651      }
 2652      if (Text != other.Text) return false;
 0653      if (Font != other.Font) return false;
 0654      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(FontSize, other.FontSize)) return false;
 0655      if (FontAutoSize != other.FontAutoSize) return false;
 0656      if (TextAlign != other.TextAlign) return false;
 0657      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Width, other.Width)) return false;
 0658      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Height, other.Height)) return false;
 0659      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(PaddingTop, other.PaddingTop)) return fal
 0660      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(PaddingRight, other.PaddingRight)) return
 0661      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(PaddingBottom, other.PaddingBottom)) retu
 0662      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(PaddingLeft, other.PaddingLeft)) return f
 0663      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(LineSpacing, other.LineSpacing)) return f
 0664      if (LineCount != other.LineCount) return false;
 0665      if (TextWrapping != other.TextWrapping) return false;
 0666      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(ShadowBlur, other.ShadowBlur)) return fal
 0667      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(ShadowOffsetX, other.ShadowOffsetX)) retu
 0668      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(ShadowOffsetY, other.ShadowOffsetY)) retu
 0669      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(OutlineWidth, other.OutlineWidth)) return
 0670      if (!object.Equals(ShadowColor, other.ShadowColor)) return false;
 0671      if (!object.Equals(OutlineColor, other.OutlineColor)) return false;
 0672      if (!object.Equals(TextColor, other.TextColor)) return false;
 0673      return Equals(_unknownFields, other._unknownFields);
 674    }
 675
 676    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 677    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 678    public override int GetHashCode() {
 0679      int hash = 1;
 0680      if (Text.Length != 0) hash ^= Text.GetHashCode();
 0681      if (HasFont) hash ^= Font.GetHashCode();
 0682      if (HasFontSize) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(FontSize);
 0683      if (HasFontAutoSize) hash ^= FontAutoSize.GetHashCode();
 0684      if (HasTextAlign) hash ^= TextAlign.GetHashCode();
 0685      if (HasWidth) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Width);
 0686      if (HasHeight) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Height);
 0687      if (HasPaddingTop) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(PaddingTop);
 0688      if (HasPaddingRight) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(PaddingRight
 0689      if (HasPaddingBottom) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(PaddingBott
 0690      if (HasPaddingLeft) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(PaddingLeft);
 0691      if (HasLineSpacing) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(LineSpacing);
 0692      if (HasLineCount) hash ^= LineCount.GetHashCode();
 0693      if (HasTextWrapping) hash ^= TextWrapping.GetHashCode();
 0694      if (HasShadowBlur) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ShadowBlur);
 0695      if (HasShadowOffsetX) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ShadowOffse
 0696      if (HasShadowOffsetY) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ShadowOffse
 0697      if (HasOutlineWidth) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(OutlineWidth
 0698      if (shadowColor_ != null) hash ^= ShadowColor.GetHashCode();
 0699      if (outlineColor_ != null) hash ^= OutlineColor.GetHashCode();
 0700      if (textColor_ != null) hash ^= TextColor.GetHashCode();
 0701      if (_unknownFields != null) {
 0702        hash ^= _unknownFields.GetHashCode();
 703      }
 0704      return hash;
 705    }
 706
 707    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 708    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 709    public override string ToString() {
 0710      return pb::JsonFormatter.ToDiagnosticString(this);
 711    }
 712
 713    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 714    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 715    public void WriteTo(pb::CodedOutputStream output) {
 716    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 717      output.WriteRawMessage(this);
 718    #else
 0719      if (Text.Length != 0) {
 0720        output.WriteRawTag(10);
 0721        output.WriteString(Text);
 722      }
 0723      if (HasFont) {
 0724        output.WriteRawTag(16);
 0725        output.WriteEnum((int) Font);
 726      }
 0727      if (HasFontSize) {
 0728        output.WriteRawTag(29);
 0729        output.WriteFloat(FontSize);
 730      }
 0731      if (HasFontAutoSize) {
 0732        output.WriteRawTag(32);
 0733        output.WriteBool(FontAutoSize);
 734      }
 0735      if (HasTextAlign) {
 0736        output.WriteRawTag(40);
 0737        output.WriteEnum((int) TextAlign);
 738      }
 0739      if (HasWidth) {
 0740        output.WriteRawTag(53);
 0741        output.WriteFloat(Width);
 742      }
 0743      if (HasHeight) {
 0744        output.WriteRawTag(61);
 0745        output.WriteFloat(Height);
 746      }
 0747      if (HasPaddingTop) {
 0748        output.WriteRawTag(69);
 0749        output.WriteFloat(PaddingTop);
 750      }
 0751      if (HasPaddingRight) {
 0752        output.WriteRawTag(77);
 0753        output.WriteFloat(PaddingRight);
 754      }
 0755      if (HasPaddingBottom) {
 0756        output.WriteRawTag(85);
 0757        output.WriteFloat(PaddingBottom);
 758      }
 0759      if (HasPaddingLeft) {
 0760        output.WriteRawTag(93);
 0761        output.WriteFloat(PaddingLeft);
 762      }
 0763      if (HasLineSpacing) {
 0764        output.WriteRawTag(101);
 0765        output.WriteFloat(LineSpacing);
 766      }
 0767      if (HasLineCount) {
 0768        output.WriteRawTag(104);
 0769        output.WriteInt32(LineCount);
 770      }
 0771      if (HasTextWrapping) {
 0772        output.WriteRawTag(112);
 0773        output.WriteBool(TextWrapping);
 774      }
 0775      if (HasShadowBlur) {
 0776        output.WriteRawTag(125);
 0777        output.WriteFloat(ShadowBlur);
 778      }
 0779      if (HasShadowOffsetX) {
 0780        output.WriteRawTag(133, 1);
 0781        output.WriteFloat(ShadowOffsetX);
 782      }
 0783      if (HasShadowOffsetY) {
 0784        output.WriteRawTag(141, 1);
 0785        output.WriteFloat(ShadowOffsetY);
 786      }
 0787      if (HasOutlineWidth) {
 0788        output.WriteRawTag(149, 1);
 0789        output.WriteFloat(OutlineWidth);
 790      }
 0791      if (shadowColor_ != null) {
 0792        output.WriteRawTag(154, 1);
 0793        output.WriteMessage(ShadowColor);
 794      }
 0795      if (outlineColor_ != null) {
 0796        output.WriteRawTag(162, 1);
 0797        output.WriteMessage(OutlineColor);
 798      }
 0799      if (textColor_ != null) {
 0800        output.WriteRawTag(170, 1);
 0801        output.WriteMessage(TextColor);
 802      }
 0803      if (_unknownFields != null) {
 0804        _unknownFields.WriteTo(output);
 805      }
 806    #endif
 0807    }
 808
 809    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 810    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 811    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 812    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 813      if (Text.Length != 0) {
 814        output.WriteRawTag(10);
 815        output.WriteString(Text);
 816      }
 817      if (HasFont) {
 818        output.WriteRawTag(16);
 819        output.WriteEnum((int) Font);
 820      }
 821      if (HasFontSize) {
 822        output.WriteRawTag(29);
 823        output.WriteFloat(FontSize);
 824      }
 825      if (HasFontAutoSize) {
 826        output.WriteRawTag(32);
 827        output.WriteBool(FontAutoSize);
 828      }
 829      if (HasTextAlign) {
 830        output.WriteRawTag(40);
 831        output.WriteEnum((int) TextAlign);
 832      }
 833      if (HasWidth) {
 834        output.WriteRawTag(53);
 835        output.WriteFloat(Width);
 836      }
 837      if (HasHeight) {
 838        output.WriteRawTag(61);
 839        output.WriteFloat(Height);
 840      }
 841      if (HasPaddingTop) {
 842        output.WriteRawTag(69);
 843        output.WriteFloat(PaddingTop);
 844      }
 845      if (HasPaddingRight) {
 846        output.WriteRawTag(77);
 847        output.WriteFloat(PaddingRight);
 848      }
 849      if (HasPaddingBottom) {
 850        output.WriteRawTag(85);
 851        output.WriteFloat(PaddingBottom);
 852      }
 853      if (HasPaddingLeft) {
 854        output.WriteRawTag(93);
 855        output.WriteFloat(PaddingLeft);
 856      }
 857      if (HasLineSpacing) {
 858        output.WriteRawTag(101);
 859        output.WriteFloat(LineSpacing);
 860      }
 861      if (HasLineCount) {
 862        output.WriteRawTag(104);
 863        output.WriteInt32(LineCount);
 864      }
 865      if (HasTextWrapping) {
 866        output.WriteRawTag(112);
 867        output.WriteBool(TextWrapping);
 868      }
 869      if (HasShadowBlur) {
 870        output.WriteRawTag(125);
 871        output.WriteFloat(ShadowBlur);
 872      }
 873      if (HasShadowOffsetX) {
 874        output.WriteRawTag(133, 1);
 875        output.WriteFloat(ShadowOffsetX);
 876      }
 877      if (HasShadowOffsetY) {
 878        output.WriteRawTag(141, 1);
 879        output.WriteFloat(ShadowOffsetY);
 880      }
 881      if (HasOutlineWidth) {
 882        output.WriteRawTag(149, 1);
 883        output.WriteFloat(OutlineWidth);
 884      }
 885      if (shadowColor_ != null) {
 886        output.WriteRawTag(154, 1);
 887        output.WriteMessage(ShadowColor);
 888      }
 889      if (outlineColor_ != null) {
 890        output.WriteRawTag(162, 1);
 891        output.WriteMessage(OutlineColor);
 892      }
 893      if (textColor_ != null) {
 894        output.WriteRawTag(170, 1);
 895        output.WriteMessage(TextColor);
 896      }
 897      if (_unknownFields != null) {
 898        _unknownFields.WriteTo(ref output);
 899      }
 900    }
 901    #endif
 902
 903    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 904    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 905    public int CalculateSize() {
 0906      int size = 0;
 0907      if (Text.Length != 0) {
 0908        size += 1 + pb::CodedOutputStream.ComputeStringSize(Text);
 909      }
 0910      if (HasFont) {
 0911        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Font);
 912      }
 0913      if (HasFontSize) {
 0914        size += 1 + 4;
 915      }
 0916      if (HasFontAutoSize) {
 0917        size += 1 + 1;
 918      }
 0919      if (HasTextAlign) {
 0920        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) TextAlign);
 921      }
 0922      if (HasWidth) {
 0923        size += 1 + 4;
 924      }
 0925      if (HasHeight) {
 0926        size += 1 + 4;
 927      }
 0928      if (HasPaddingTop) {
 0929        size += 1 + 4;
 930      }
 0931      if (HasPaddingRight) {
 0932        size += 1 + 4;
 933      }
 0934      if (HasPaddingBottom) {
 0935        size += 1 + 4;
 936      }
 0937      if (HasPaddingLeft) {
 0938        size += 1 + 4;
 939      }
 0940      if (HasLineSpacing) {
 0941        size += 1 + 4;
 942      }
 0943      if (HasLineCount) {
 0944        size += 1 + pb::CodedOutputStream.ComputeInt32Size(LineCount);
 945      }
 0946      if (HasTextWrapping) {
 0947        size += 1 + 1;
 948      }
 0949      if (HasShadowBlur) {
 0950        size += 1 + 4;
 951      }
 0952      if (HasShadowOffsetX) {
 0953        size += 2 + 4;
 954      }
 0955      if (HasShadowOffsetY) {
 0956        size += 2 + 4;
 957      }
 0958      if (HasOutlineWidth) {
 0959        size += 2 + 4;
 960      }
 0961      if (shadowColor_ != null) {
 0962        size += 2 + pb::CodedOutputStream.ComputeMessageSize(ShadowColor);
 963      }
 0964      if (outlineColor_ != null) {
 0965        size += 2 + pb::CodedOutputStream.ComputeMessageSize(OutlineColor);
 966      }
 0967      if (textColor_ != null) {
 0968        size += 2 + pb::CodedOutputStream.ComputeMessageSize(TextColor);
 969      }
 0970      if (_unknownFields != null) {
 0971        size += _unknownFields.CalculateSize();
 972      }
 0973      return size;
 974    }
 975
 976    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 977    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 978    public void MergeFrom(PBTextShape other) {
 0979      if (other == null) {
 0980        return;
 981      }
 0982      if (other.Text.Length != 0) {
 0983        Text = other.Text;
 984      }
 0985      if (other.HasFont) {
 0986        Font = other.Font;
 987      }
 0988      if (other.HasFontSize) {
 0989        FontSize = other.FontSize;
 990      }
 0991      if (other.HasFontAutoSize) {
 0992        FontAutoSize = other.FontAutoSize;
 993      }
 0994      if (other.HasTextAlign) {
 0995        TextAlign = other.TextAlign;
 996      }
 0997      if (other.HasWidth) {
 0998        Width = other.Width;
 999      }
 01000      if (other.HasHeight) {
 01001        Height = other.Height;
 1002      }
 01003      if (other.HasPaddingTop) {
 01004        PaddingTop = other.PaddingTop;
 1005      }
 01006      if (other.HasPaddingRight) {
 01007        PaddingRight = other.PaddingRight;
 1008      }
 01009      if (other.HasPaddingBottom) {
 01010        PaddingBottom = other.PaddingBottom;
 1011      }
 01012      if (other.HasPaddingLeft) {
 01013        PaddingLeft = other.PaddingLeft;
 1014      }
 01015      if (other.HasLineSpacing) {
 01016        LineSpacing = other.LineSpacing;
 1017      }
 01018      if (other.HasLineCount) {
 01019        LineCount = other.LineCount;
 1020      }
 01021      if (other.HasTextWrapping) {
 01022        TextWrapping = other.TextWrapping;
 1023      }
 01024      if (other.HasShadowBlur) {
 01025        ShadowBlur = other.ShadowBlur;
 1026      }
 01027      if (other.HasShadowOffsetX) {
 01028        ShadowOffsetX = other.ShadowOffsetX;
 1029      }
 01030      if (other.HasShadowOffsetY) {
 01031        ShadowOffsetY = other.ShadowOffsetY;
 1032      }
 01033      if (other.HasOutlineWidth) {
 01034        OutlineWidth = other.OutlineWidth;
 1035      }
 01036      if (other.shadowColor_ != null) {
 01037        if (shadowColor_ == null) {
 01038          ShadowColor = new global::Decentraland.Common.Color3();
 1039        }
 01040        ShadowColor.MergeFrom(other.ShadowColor);
 1041      }
 01042      if (other.outlineColor_ != null) {
 01043        if (outlineColor_ == null) {
 01044          OutlineColor = new global::Decentraland.Common.Color3();
 1045        }
 01046        OutlineColor.MergeFrom(other.OutlineColor);
 1047      }
 01048      if (other.textColor_ != null) {
 01049        if (textColor_ == null) {
 01050          TextColor = new global::Decentraland.Common.Color4();
 1051        }
 01052        TextColor.MergeFrom(other.TextColor);
 1053      }
 01054      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 01055    }
 1056
 1057    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1058    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1059    public void MergeFrom(pb::CodedInputStream input) {
 1060    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 1061      input.ReadRawMessage(this);
 1062    #else
 1063      uint tag;
 01064      while ((tag = input.ReadTag()) != 0) {
 1065        switch(tag) {
 1066          default:
 01067            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 01068            break;
 1069          case 10: {
 01070            Text = input.ReadString();
 01071            break;
 1072          }
 1073          case 16: {
 01074            Font = (global::DCL.ECSComponents.Font) input.ReadEnum();
 01075            break;
 1076          }
 1077          case 29: {
 01078            FontSize = input.ReadFloat();
 01079            break;
 1080          }
 1081          case 32: {
 01082            FontAutoSize = input.ReadBool();
 01083            break;
 1084          }
 1085          case 40: {
 01086            TextAlign = (global::DCL.ECSComponents.TextAlignMode) input.ReadEnum();
 01087            break;
 1088          }
 1089          case 53: {
 01090            Width = input.ReadFloat();
 01091            break;
 1092          }
 1093          case 61: {
 01094            Height = input.ReadFloat();
 01095            break;
 1096          }
 1097          case 69: {
 01098            PaddingTop = input.ReadFloat();
 01099            break;
 1100          }
 1101          case 77: {
 01102            PaddingRight = input.ReadFloat();
 01103            break;
 1104          }
 1105          case 85: {
 01106            PaddingBottom = input.ReadFloat();
 01107            break;
 1108          }
 1109          case 93: {
 01110            PaddingLeft = input.ReadFloat();
 01111            break;
 1112          }
 1113          case 101: {
 01114            LineSpacing = input.ReadFloat();
 01115            break;
 1116          }
 1117          case 104: {
 01118            LineCount = input.ReadInt32();
 01119            break;
 1120          }
 1121          case 112: {
 01122            TextWrapping = input.ReadBool();
 01123            break;
 1124          }
 1125          case 125: {
 01126            ShadowBlur = input.ReadFloat();
 01127            break;
 1128          }
 1129          case 133: {
 01130            ShadowOffsetX = input.ReadFloat();
 01131            break;
 1132          }
 1133          case 141: {
 01134            ShadowOffsetY = input.ReadFloat();
 01135            break;
 1136          }
 1137          case 149: {
 01138            OutlineWidth = input.ReadFloat();
 01139            break;
 1140          }
 1141          case 154: {
 01142            if (shadowColor_ == null) {
 01143              ShadowColor = new global::Decentraland.Common.Color3();
 1144            }
 01145            input.ReadMessage(ShadowColor);
 01146            break;
 1147          }
 1148          case 162: {
 01149            if (outlineColor_ == null) {
 01150              OutlineColor = new global::Decentraland.Common.Color3();
 1151            }
 01152            input.ReadMessage(OutlineColor);
 01153            break;
 1154          }
 1155          case 170: {
 01156            if (textColor_ == null) {
 01157              TextColor = new global::Decentraland.Common.Color4();
 1158            }
 01159            input.ReadMessage(TextColor);
 1160            break;
 1161          }
 1162        }
 1163      }
 1164    #endif
 01165    }
 1166
 1167    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 1168    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1169    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1170    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 1171      uint tag;
 1172      while ((tag = input.ReadTag()) != 0) {
 1173        switch(tag) {
 1174          default:
 1175            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 1176            break;
 1177          case 10: {
 1178            Text = input.ReadString();
 1179            break;
 1180          }
 1181          case 16: {
 1182            Font = (global::DCL.ECSComponents.Font) input.ReadEnum();
 1183            break;
 1184          }
 1185          case 29: {
 1186            FontSize = input.ReadFloat();
 1187            break;
 1188          }
 1189          case 32: {
 1190            FontAutoSize = input.ReadBool();
 1191            break;
 1192          }
 1193          case 40: {
 1194            TextAlign = (global::DCL.ECSComponents.TextAlignMode) input.ReadEnum();
 1195            break;
 1196          }
 1197          case 53: {
 1198            Width = input.ReadFloat();
 1199            break;
 1200          }
 1201          case 61: {
 1202            Height = input.ReadFloat();
 1203            break;
 1204          }
 1205          case 69: {
 1206            PaddingTop = input.ReadFloat();
 1207            break;
 1208          }
 1209          case 77: {
 1210            PaddingRight = input.ReadFloat();
 1211            break;
 1212          }
 1213          case 85: {
 1214            PaddingBottom = input.ReadFloat();
 1215            break;
 1216          }
 1217          case 93: {
 1218            PaddingLeft = input.ReadFloat();
 1219            break;
 1220          }
 1221          case 101: {
 1222            LineSpacing = input.ReadFloat();
 1223            break;
 1224          }
 1225          case 104: {
 1226            LineCount = input.ReadInt32();
 1227            break;
 1228          }
 1229          case 112: {
 1230            TextWrapping = input.ReadBool();
 1231            break;
 1232          }
 1233          case 125: {
 1234            ShadowBlur = input.ReadFloat();
 1235            break;
 1236          }
 1237          case 133: {
 1238            ShadowOffsetX = input.ReadFloat();
 1239            break;
 1240          }
 1241          case 141: {
 1242            ShadowOffsetY = input.ReadFloat();
 1243            break;
 1244          }
 1245          case 149: {
 1246            OutlineWidth = input.ReadFloat();
 1247            break;
 1248          }
 1249          case 154: {
 1250            if (shadowColor_ == null) {
 1251              ShadowColor = new global::Decentraland.Common.Color3();
 1252            }
 1253            input.ReadMessage(ShadowColor);
 1254            break;
 1255          }
 1256          case 162: {
 1257            if (outlineColor_ == null) {
 1258              OutlineColor = new global::Decentraland.Common.Color3();
 1259            }
 1260            input.ReadMessage(OutlineColor);
 1261            break;
 1262          }
 1263          case 170: {
 1264            if (textColor_ == null) {
 1265              TextColor = new global::Decentraland.Common.Color4();
 1266            }
 1267            input.ReadMessage(TextColor);
 1268            break;
 1269          }
 1270        }
 1271      }
 1272    }
 1273    #endif
 1274
 1275  }
 1276
 1277  #endregion
 1278
 1279}
 1280
 1281#endregion Designer generated code

Methods/Properties

PBTextShape()
Parser()
Descriptor()
get_Descriptor()
PBTextShape()
PBTextShape(DCL.ECSComponents.PBTextShape)
Clone()
Text()
Text(System.String)
Font()
Font(DCL.ECSComponents.Font)
HasFont()
ClearFont()
FontSize()
FontSize(System.Single)
HasFontSize()
ClearFontSize()
FontAutoSize()
FontAutoSize(System.Boolean)
HasFontAutoSize()
ClearFontAutoSize()
TextAlign()
TextAlign(DCL.ECSComponents.TextAlignMode)
HasTextAlign()
ClearTextAlign()
Width()
Width(System.Single)
HasWidth()
ClearWidth()
Height()
Height(System.Single)
HasHeight()
ClearHeight()
PaddingTop()
PaddingTop(System.Single)
HasPaddingTop()
ClearPaddingTop()
PaddingRight()
PaddingRight(System.Single)
HasPaddingRight()
ClearPaddingRight()
PaddingBottom()
PaddingBottom(System.Single)
HasPaddingBottom()
ClearPaddingBottom()
PaddingLeft()
PaddingLeft(System.Single)
HasPaddingLeft()
ClearPaddingLeft()
LineSpacing()
LineSpacing(System.Single)
HasLineSpacing()
ClearLineSpacing()
LineCount()
LineCount(System.Int32)
HasLineCount()
ClearLineCount()
TextWrapping()
TextWrapping(System.Boolean)
HasTextWrapping()
ClearTextWrapping()
ShadowBlur()
ShadowBlur(System.Single)
HasShadowBlur()
ClearShadowBlur()
ShadowOffsetX()
ShadowOffsetX(System.Single)
HasShadowOffsetX()
ClearShadowOffsetX()
ShadowOffsetY()
ShadowOffsetY(System.Single)
HasShadowOffsetY()
ClearShadowOffsetY()
OutlineWidth()
OutlineWidth(System.Single)
HasOutlineWidth()
ClearOutlineWidth()
ShadowColor()
ShadowColor(Decentraland.Common.Color3)
OutlineColor()
OutlineColor(Decentraland.Common.Color3)
TextColor()
TextColor(Decentraland.Common.Color4)
Equals(System.Object)
Equals(DCL.ECSComponents.PBTextShape)
GetHashCode()
ToString()
WriteTo(Google.Protobuf.CodedOutputStream)
CalculateSize()
MergeFrom(DCL.ECSComponents.PBTextShape)
MergeFrom(Google.Protobuf.CodedInputStream)