< Summary

Class:DCL.ECSComponents.TextShapeReflection
Assembly:Decentraland.Protocol.GeneratedCode
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/TextShape.gen.cs
Covered lines:0
Uncovered lines:4
Coverable lines:4
Total lines:1319
Line coverage:0% (0 of 4)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:2
Method coverage:0% (0 of 2)

Metrics

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

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 {
 020      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static TextShapeReflection() {
 025      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="));
 055      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          }));
 060    }
 61    #endregion
 62
 63  }
 64  #region Messages
 65  /// <summary>
 66  /// The TextShape component renders customizable floating text.
 67  ///
 68  /// The position and rotation of the text are defined by the Entity's Transform, while its size
 69  /// can either scale with the Transform or be fixed by a font size.
 70  ///
 71  /// Several options can be configured, including color, padding, line spacing and drop shadows.
 72  /// </summary>
 73  public sealed partial class PBTextShape : pb::IMessage<PBTextShape>
 74  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 75      , pb::IBufferMessage
 76  #endif
 77  {
 78    private static readonly pb::MessageParser<PBTextShape> _parser = new pb::MessageParser<PBTextShape>(() => new PBText
 79    private pb::UnknownFieldSet _unknownFields;
 80    private int _hasBits0;
 81    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 82    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 83    public static pb::MessageParser<PBTextShape> Parser { get { return _parser; } }
 84
 85    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 86    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 87    public static pbr::MessageDescriptor Descriptor {
 88      get { return global::DCL.ECSComponents.TextShapeReflection.Descriptor.MessageTypes[0]; }
 89    }
 90
 91    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 92    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 93    pbr::MessageDescriptor pb::IMessage.Descriptor {
 94      get { return Descriptor; }
 95    }
 96
 97    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 98    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 99    public PBTextShape() {
 100      OnConstruction();
 101    }
 102
 103    partial void OnConstruction();
 104
 105    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 106    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 107    public PBTextShape(PBTextShape other) : this() {
 108      _hasBits0 = other._hasBits0;
 109      text_ = other.text_;
 110      font_ = other.font_;
 111      fontSize_ = other.fontSize_;
 112      fontAutoSize_ = other.fontAutoSize_;
 113      textAlign_ = other.textAlign_;
 114      width_ = other.width_;
 115      height_ = other.height_;
 116      paddingTop_ = other.paddingTop_;
 117      paddingRight_ = other.paddingRight_;
 118      paddingBottom_ = other.paddingBottom_;
 119      paddingLeft_ = other.paddingLeft_;
 120      lineSpacing_ = other.lineSpacing_;
 121      lineCount_ = other.lineCount_;
 122      textWrapping_ = other.textWrapping_;
 123      shadowBlur_ = other.shadowBlur_;
 124      shadowOffsetX_ = other.shadowOffsetX_;
 125      shadowOffsetY_ = other.shadowOffsetY_;
 126      outlineWidth_ = other.outlineWidth_;
 127      shadowColor_ = other.shadowColor_ != null ? other.shadowColor_.Clone() : null;
 128      outlineColor_ = other.outlineColor_ != null ? other.outlineColor_.Clone() : null;
 129      textColor_ = other.textColor_ != null ? other.textColor_.Clone() : null;
 130      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 131    }
 132
 133    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 134    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 135    public PBTextShape Clone() {
 136      return new PBTextShape(this);
 137    }
 138
 139    /// <summary>Field number for the "text" field.</summary>
 140    public const int TextFieldNumber = 1;
 141    private string text_ = "";
 142    /// <summary>
 143    /// the content
 144    /// </summary>
 145    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 146    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 147    public string Text {
 148      get { return text_; }
 149      set {
 150        text_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 151      }
 152    }
 153
 154    /// <summary>Field number for the "font" field.</summary>
 155    public const int FontFieldNumber = 2;
 156    private global::DCL.ECSComponents.Font font_;
 157    /// <summary>
 158    /// the font (default F_SANS_SERIF)
 159    /// </summary>
 160    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 161    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 162    public global::DCL.ECSComponents.Font Font {
 163      get { if ((_hasBits0 & 1) != 0) { return font_; } else { return global::DCL.ECSComponents.Font.FSansSerif; } }
 164      set {
 165        _hasBits0 |= 1;
 166        font_ = value;
 167      }
 168    }
 169    /// <summary>Gets whether the "font" field is set</summary>
 170    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 171    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 172    public bool HasFont {
 173      get { return (_hasBits0 & 1) != 0; }
 174    }
 175    /// <summary>Clears the value of the "font" field</summary>
 176    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 177    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 178    public void ClearFont() {
 179      _hasBits0 &= ~1;
 180    }
 181
 182    /// <summary>Field number for the "font_size" field.</summary>
 183    public const int FontSizeFieldNumber = 3;
 184    private float fontSize_;
 185    /// <summary>
 186    /// the font size (default 10)
 187    /// </summary>
 188    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 189    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 190    public float FontSize {
 191      get { if ((_hasBits0 & 2) != 0) { return fontSize_; } else { return 0F; } }
 192      set {
 193        _hasBits0 |= 2;
 194        fontSize_ = value;
 195      }
 196    }
 197    /// <summary>Gets whether the "font_size" field is set</summary>
 198    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 199    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 200    public bool HasFontSize {
 201      get { return (_hasBits0 & 2) != 0; }
 202    }
 203    /// <summary>Clears the value of the "font_size" field</summary>
 204    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 205    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 206    public void ClearFontSize() {
 207      _hasBits0 &= ~2;
 208    }
 209
 210    /// <summary>Field number for the "font_auto_size" field.</summary>
 211    public const int FontAutoSizeFieldNumber = 4;
 212    private bool fontAutoSize_;
 213    /// <summary>
 214    /// override `font_size` to automatically fit in `width`/`height`
 215    /// </summary>
 216    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 217    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 218    public bool FontAutoSize {
 219      get { if ((_hasBits0 & 4) != 0) { return fontAutoSize_; } else { return false; } }
 220      set {
 221        _hasBits0 |= 4;
 222        fontAutoSize_ = value;
 223      }
 224    }
 225    /// <summary>Gets whether the "font_auto_size" field is set</summary>
 226    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 227    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 228    public bool HasFontAutoSize {
 229      get { return (_hasBits0 & 4) != 0; }
 230    }
 231    /// <summary>Clears the value of the "font_auto_size" field</summary>
 232    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 233    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 234    public void ClearFontAutoSize() {
 235      _hasBits0 &= ~4;
 236    }
 237
 238    /// <summary>Field number for the "text_align" field.</summary>
 239    public const int TextAlignFieldNumber = 5;
 240    private global::DCL.ECSComponents.TextAlignMode textAlign_;
 241    /// <summary>
 242    /// X and Y alignment (default TAM_CENTER_CENTER)
 243    /// </summary>
 244    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 245    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 246    public global::DCL.ECSComponents.TextAlignMode TextAlign {
 247      get { if ((_hasBits0 & 8) != 0) { return textAlign_; } else { return global::DCL.ECSComponents.TextAlignMode.TamTo
 248      set {
 249        _hasBits0 |= 8;
 250        textAlign_ = value;
 251      }
 252    }
 253    /// <summary>Gets whether the "text_align" field is set</summary>
 254    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 255    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 256    public bool HasTextAlign {
 257      get { return (_hasBits0 & 8) != 0; }
 258    }
 259    /// <summary>Clears the value of the "text_align" field</summary>
 260    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 261    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 262    public void ClearTextAlign() {
 263      _hasBits0 &= ~8;
 264    }
 265
 266    /// <summary>Field number for the "width" field.</summary>
 267    public const int WidthFieldNumber = 6;
 268    private float width_;
 269    /// <summary>
 270    /// available horizontal space (default 1)
 271    /// </summary>
 272    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 273    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 274    public float Width {
 275      get { if ((_hasBits0 & 16) != 0) { return width_; } else { return 0F; } }
 276      set {
 277        _hasBits0 |= 16;
 278        width_ = value;
 279      }
 280    }
 281    /// <summary>Gets whether the "width" field is set</summary>
 282    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 283    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 284    public bool HasWidth {
 285      get { return (_hasBits0 & 16) != 0; }
 286    }
 287    /// <summary>Clears the value of the "width" field</summary>
 288    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 289    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 290    public void ClearWidth() {
 291      _hasBits0 &= ~16;
 292    }
 293
 294    /// <summary>Field number for the "height" field.</summary>
 295    public const int HeightFieldNumber = 7;
 296    private float height_;
 297    /// <summary>
 298    /// available vertical space (default 1)
 299    /// </summary>
 300    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 301    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 302    public float Height {
 303      get { if ((_hasBits0 & 32) != 0) { return height_; } else { return 0F; } }
 304      set {
 305        _hasBits0 |= 32;
 306        height_ = value;
 307      }
 308    }
 309    /// <summary>Gets whether the "height" field is set</summary>
 310    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 311    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 312    public bool HasHeight {
 313      get { return (_hasBits0 & 32) != 0; }
 314    }
 315    /// <summary>Clears the value of the "height" field</summary>
 316    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 317    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 318    public void ClearHeight() {
 319      _hasBits0 &= ~32;
 320    }
 321
 322    /// <summary>Field number for the "padding_top" field.</summary>
 323    public const int PaddingTopFieldNumber = 8;
 324    private float paddingTop_;
 325    /// <summary>
 326    /// distance from text to top border (default 0)
 327    /// </summary>
 328    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 329    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 330    public float PaddingTop {
 331      get { if ((_hasBits0 & 64) != 0) { return paddingTop_; } else { return 0F; } }
 332      set {
 333        _hasBits0 |= 64;
 334        paddingTop_ = value;
 335      }
 336    }
 337    /// <summary>Gets whether the "padding_top" field is set</summary>
 338    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 339    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 340    public bool HasPaddingTop {
 341      get { return (_hasBits0 & 64) != 0; }
 342    }
 343    /// <summary>Clears the value of the "padding_top" field</summary>
 344    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 345    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 346    public void ClearPaddingTop() {
 347      _hasBits0 &= ~64;
 348    }
 349
 350    /// <summary>Field number for the "padding_right" field.</summary>
 351    public const int PaddingRightFieldNumber = 9;
 352    private float paddingRight_;
 353    /// <summary>
 354    /// distance from text to right border (default 0)
 355    /// </summary>
 356    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 357    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 358    public float PaddingRight {
 359      get { if ((_hasBits0 & 128) != 0) { return paddingRight_; } else { return 0F; } }
 360      set {
 361        _hasBits0 |= 128;
 362        paddingRight_ = value;
 363      }
 364    }
 365    /// <summary>Gets whether the "padding_right" field is set</summary>
 366    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 367    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 368    public bool HasPaddingRight {
 369      get { return (_hasBits0 & 128) != 0; }
 370    }
 371    /// <summary>Clears the value of the "padding_right" field</summary>
 372    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 373    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 374    public void ClearPaddingRight() {
 375      _hasBits0 &= ~128;
 376    }
 377
 378    /// <summary>Field number for the "padding_bottom" field.</summary>
 379    public const int PaddingBottomFieldNumber = 10;
 380    private float paddingBottom_;
 381    /// <summary>
 382    /// distance from text to bottom border (default 0)
 383    /// </summary>
 384    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 385    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 386    public float PaddingBottom {
 387      get { if ((_hasBits0 & 256) != 0) { return paddingBottom_; } else { return 0F; } }
 388      set {
 389        _hasBits0 |= 256;
 390        paddingBottom_ = value;
 391      }
 392    }
 393    /// <summary>Gets whether the "padding_bottom" field is set</summary>
 394    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 395    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 396    public bool HasPaddingBottom {
 397      get { return (_hasBits0 & 256) != 0; }
 398    }
 399    /// <summary>Clears the value of the "padding_bottom" field</summary>
 400    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 401    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 402    public void ClearPaddingBottom() {
 403      _hasBits0 &= ~256;
 404    }
 405
 406    /// <summary>Field number for the "padding_left" field.</summary>
 407    public const int PaddingLeftFieldNumber = 11;
 408    private float paddingLeft_;
 409    /// <summary>
 410    /// distance from text to left border (default 0)
 411    /// </summary>
 412    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 413    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 414    public float PaddingLeft {
 415      get { if ((_hasBits0 & 512) != 0) { return paddingLeft_; } else { return 0F; } }
 416      set {
 417        _hasBits0 |= 512;
 418        paddingLeft_ = value;
 419      }
 420    }
 421    /// <summary>Gets whether the "padding_left" field is set</summary>
 422    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 423    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 424    public bool HasPaddingLeft {
 425      get { return (_hasBits0 & 512) != 0; }
 426    }
 427    /// <summary>Clears the value of the "padding_left" field</summary>
 428    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 429    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 430    public void ClearPaddingLeft() {
 431      _hasBits0 &= ~512;
 432    }
 433
 434    /// <summary>Field number for the "line_spacing" field.</summary>
 435    public const int LineSpacingFieldNumber = 12;
 436    private float lineSpacing_;
 437    /// <summary>
 438    /// extra distance between lines (default 0)
 439    /// </summary>
 440    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 441    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 442    public float LineSpacing {
 443      get { if ((_hasBits0 & 1024) != 0) { return lineSpacing_; } else { return 0F; } }
 444      set {
 445        _hasBits0 |= 1024;
 446        lineSpacing_ = value;
 447      }
 448    }
 449    /// <summary>Gets whether the "line_spacing" field is set</summary>
 450    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 451    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 452    public bool HasLineSpacing {
 453      get { return (_hasBits0 & 1024) != 0; }
 454    }
 455    /// <summary>Clears the value of the "line_spacing" field</summary>
 456    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 457    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 458    public void ClearLineSpacing() {
 459      _hasBits0 &= ~1024;
 460    }
 461
 462    /// <summary>Field number for the "line_count" field.</summary>
 463    public const int LineCountFieldNumber = 13;
 464    private int lineCount_;
 465    /// <summary>
 466    /// maximum number of lines to display
 467    /// </summary>
 468    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 469    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 470    public int LineCount {
 471      get { if ((_hasBits0 & 2048) != 0) { return lineCount_; } else { return 0; } }
 472      set {
 473        _hasBits0 |= 2048;
 474        lineCount_ = value;
 475      }
 476    }
 477    /// <summary>Gets whether the "line_count" field is set</summary>
 478    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 479    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 480    public bool HasLineCount {
 481      get { return (_hasBits0 & 2048) != 0; }
 482    }
 483    /// <summary>Clears the value of the "line_count" field</summary>
 484    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 485    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 486    public void ClearLineCount() {
 487      _hasBits0 &= ~2048;
 488    }
 489
 490    /// <summary>Field number for the "text_wrapping" field.</summary>
 491    public const int TextWrappingFieldNumber = 14;
 492    private bool textWrapping_;
 493    /// <summary>
 494    /// wrap text when the border is reached (default false)
 495    /// </summary>
 496    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 497    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 498    public bool TextWrapping {
 499      get { if ((_hasBits0 & 4096) != 0) { return textWrapping_; } else { return false; } }
 500      set {
 501        _hasBits0 |= 4096;
 502        textWrapping_ = value;
 503      }
 504    }
 505    /// <summary>Gets whether the "text_wrapping" field is set</summary>
 506    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 507    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 508    public bool HasTextWrapping {
 509      get { return (_hasBits0 & 4096) != 0; }
 510    }
 511    /// <summary>Clears the value of the "text_wrapping" field</summary>
 512    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 513    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 514    public void ClearTextWrapping() {
 515      _hasBits0 &= ~4096;
 516    }
 517
 518    /// <summary>Field number for the "shadow_blur" field.</summary>
 519    public const int ShadowBlurFieldNumber = 15;
 520    private float shadowBlur_;
 521    /// <summary>
 522    /// blurriness of the drop shadow (default 0)
 523    /// </summary>
 524    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 525    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 526    public float ShadowBlur {
 527      get { if ((_hasBits0 & 8192) != 0) { return shadowBlur_; } else { return 0F; } }
 528      set {
 529        _hasBits0 |= 8192;
 530        shadowBlur_ = value;
 531      }
 532    }
 533    /// <summary>Gets whether the "shadow_blur" field is set</summary>
 534    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 535    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 536    public bool HasShadowBlur {
 537      get { return (_hasBits0 & 8192) != 0; }
 538    }
 539    /// <summary>Clears the value of the "shadow_blur" field</summary>
 540    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 541    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 542    public void ClearShadowBlur() {
 543      _hasBits0 &= ~8192;
 544    }
 545
 546    /// <summary>Field number for the "shadow_offset_x" field.</summary>
 547    public const int ShadowOffsetXFieldNumber = 16;
 548    private float shadowOffsetX_;
 549    /// <summary>
 550    /// horizontal length of the shadow (default 0)
 551    /// </summary>
 552    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 553    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 554    public float ShadowOffsetX {
 555      get { if ((_hasBits0 & 16384) != 0) { return shadowOffsetX_; } else { return 0F; } }
 556      set {
 557        _hasBits0 |= 16384;
 558        shadowOffsetX_ = value;
 559      }
 560    }
 561    /// <summary>Gets whether the "shadow_offset_x" field is set</summary>
 562    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 563    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 564    public bool HasShadowOffsetX {
 565      get { return (_hasBits0 & 16384) != 0; }
 566    }
 567    /// <summary>Clears the value of the "shadow_offset_x" field</summary>
 568    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 569    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 570    public void ClearShadowOffsetX() {
 571      _hasBits0 &= ~16384;
 572    }
 573
 574    /// <summary>Field number for the "shadow_offset_y" field.</summary>
 575    public const int ShadowOffsetYFieldNumber = 17;
 576    private float shadowOffsetY_;
 577    /// <summary>
 578    /// vertical length of the shadow (default 0)
 579    /// </summary>
 580    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 581    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 582    public float ShadowOffsetY {
 583      get { if ((_hasBits0 & 32768) != 0) { return shadowOffsetY_; } else { return 0F; } }
 584      set {
 585        _hasBits0 |= 32768;
 586        shadowOffsetY_ = value;
 587      }
 588    }
 589    /// <summary>Gets whether the "shadow_offset_y" field is set</summary>
 590    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 591    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 592    public bool HasShadowOffsetY {
 593      get { return (_hasBits0 & 32768) != 0; }
 594    }
 595    /// <summary>Clears the value of the "shadow_offset_y" field</summary>
 596    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 597    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 598    public void ClearShadowOffsetY() {
 599      _hasBits0 &= ~32768;
 600    }
 601
 602    /// <summary>Field number for the "outline_width" field.</summary>
 603    public const int OutlineWidthFieldNumber = 18;
 604    private float outlineWidth_;
 605    /// <summary>
 606    /// width of the stroke outlining each letter (default 0)
 607    /// </summary>
 608    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 609    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 610    public float OutlineWidth {
 611      get { if ((_hasBits0 & 65536) != 0) { return outlineWidth_; } else { return 0F; } }
 612      set {
 613        _hasBits0 |= 65536;
 614        outlineWidth_ = value;
 615      }
 616    }
 617    /// <summary>Gets whether the "outline_width" field is set</summary>
 618    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 619    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 620    public bool HasOutlineWidth {
 621      get { return (_hasBits0 & 65536) != 0; }
 622    }
 623    /// <summary>Clears the value of the "outline_width" field</summary>
 624    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 625    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 626    public void ClearOutlineWidth() {
 627      _hasBits0 &= ~65536;
 628    }
 629
 630    /// <summary>Field number for the "shadow_color" field.</summary>
 631    public const int ShadowColorFieldNumber = 19;
 632    private global::Decentraland.Common.Color3 shadowColor_;
 633    /// <summary>
 634    /// drop shadow color (default [1.0, 1.0, 1.0])
 635    /// </summary>
 636    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 637    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 638    public global::Decentraland.Common.Color3 ShadowColor {
 639      get { return shadowColor_; }
 640      set {
 641        shadowColor_ = value;
 642      }
 643    }
 644
 645    /// <summary>Field number for the "outline_color" field.</summary>
 646    public const int OutlineColorFieldNumber = 20;
 647    private global::Decentraland.Common.Color3 outlineColor_;
 648    /// <summary>
 649    /// outline stroke color (default [1.0, 1.0, 1.0])
 650    /// </summary>
 651    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 652    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 653    public global::Decentraland.Common.Color3 OutlineColor {
 654      get { return outlineColor_; }
 655      set {
 656        outlineColor_ = value;
 657      }
 658    }
 659
 660    /// <summary>Field number for the "text_color" field.</summary>
 661    public const int TextColorFieldNumber = 21;
 662    private global::Decentraland.Common.Color4 textColor_;
 663    /// <summary>
 664    /// text color (default [1.0, 1.0, 1.0])
 665    /// </summary>
 666    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 667    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 668    public global::Decentraland.Common.Color4 TextColor {
 669      get { return textColor_; }
 670      set {
 671        textColor_ = value;
 672      }
 673    }
 674
 675    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 676    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 677    public override bool Equals(object other) {
 678      return Equals(other as PBTextShape);
 679    }
 680
 681    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 682    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 683    public bool Equals(PBTextShape other) {
 684      if (ReferenceEquals(other, null)) {
 685        return false;
 686      }
 687      if (ReferenceEquals(other, this)) {
 688        return true;
 689      }
 690      if (Text != other.Text) return false;
 691      if (Font != other.Font) return false;
 692      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(FontSize, other.FontSize)) return false;
 693      if (FontAutoSize != other.FontAutoSize) return false;
 694      if (TextAlign != other.TextAlign) return false;
 695      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Width, other.Width)) return false;
 696      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Height, other.Height)) return false;
 697      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(PaddingTop, other.PaddingTop)) return fal
 698      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(PaddingRight, other.PaddingRight)) return
 699      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(PaddingBottom, other.PaddingBottom)) retu
 700      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(PaddingLeft, other.PaddingLeft)) return f
 701      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(LineSpacing, other.LineSpacing)) return f
 702      if (LineCount != other.LineCount) return false;
 703      if (TextWrapping != other.TextWrapping) return false;
 704      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(ShadowBlur, other.ShadowBlur)) return fal
 705      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(ShadowOffsetX, other.ShadowOffsetX)) retu
 706      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(ShadowOffsetY, other.ShadowOffsetY)) retu
 707      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(OutlineWidth, other.OutlineWidth)) return
 708      if (!object.Equals(ShadowColor, other.ShadowColor)) return false;
 709      if (!object.Equals(OutlineColor, other.OutlineColor)) return false;
 710      if (!object.Equals(TextColor, other.TextColor)) return false;
 711      return Equals(_unknownFields, other._unknownFields);
 712    }
 713
 714    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 715    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 716    public override int GetHashCode() {
 717      int hash = 1;
 718      if (Text.Length != 0) hash ^= Text.GetHashCode();
 719      if (HasFont) hash ^= Font.GetHashCode();
 720      if (HasFontSize) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(FontSize);
 721      if (HasFontAutoSize) hash ^= FontAutoSize.GetHashCode();
 722      if (HasTextAlign) hash ^= TextAlign.GetHashCode();
 723      if (HasWidth) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Width);
 724      if (HasHeight) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Height);
 725      if (HasPaddingTop) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(PaddingTop);
 726      if (HasPaddingRight) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(PaddingRight
 727      if (HasPaddingBottom) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(PaddingBott
 728      if (HasPaddingLeft) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(PaddingLeft);
 729      if (HasLineSpacing) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(LineSpacing);
 730      if (HasLineCount) hash ^= LineCount.GetHashCode();
 731      if (HasTextWrapping) hash ^= TextWrapping.GetHashCode();
 732      if (HasShadowBlur) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ShadowBlur);
 733      if (HasShadowOffsetX) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ShadowOffse
 734      if (HasShadowOffsetY) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ShadowOffse
 735      if (HasOutlineWidth) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(OutlineWidth
 736      if (shadowColor_ != null) hash ^= ShadowColor.GetHashCode();
 737      if (outlineColor_ != null) hash ^= OutlineColor.GetHashCode();
 738      if (textColor_ != null) hash ^= TextColor.GetHashCode();
 739      if (_unknownFields != null) {
 740        hash ^= _unknownFields.GetHashCode();
 741      }
 742      return hash;
 743    }
 744
 745    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 746    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 747    public override string ToString() {
 748      return pb::JsonFormatter.ToDiagnosticString(this);
 749    }
 750
 751    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 752    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 753    public void WriteTo(pb::CodedOutputStream output) {
 754    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 755      output.WriteRawMessage(this);
 756    #else
 757      if (Text.Length != 0) {
 758        output.WriteRawTag(10);
 759        output.WriteString(Text);
 760      }
 761      if (HasFont) {
 762        output.WriteRawTag(16);
 763        output.WriteEnum((int) Font);
 764      }
 765      if (HasFontSize) {
 766        output.WriteRawTag(29);
 767        output.WriteFloat(FontSize);
 768      }
 769      if (HasFontAutoSize) {
 770        output.WriteRawTag(32);
 771        output.WriteBool(FontAutoSize);
 772      }
 773      if (HasTextAlign) {
 774        output.WriteRawTag(40);
 775        output.WriteEnum((int) TextAlign);
 776      }
 777      if (HasWidth) {
 778        output.WriteRawTag(53);
 779        output.WriteFloat(Width);
 780      }
 781      if (HasHeight) {
 782        output.WriteRawTag(61);
 783        output.WriteFloat(Height);
 784      }
 785      if (HasPaddingTop) {
 786        output.WriteRawTag(69);
 787        output.WriteFloat(PaddingTop);
 788      }
 789      if (HasPaddingRight) {
 790        output.WriteRawTag(77);
 791        output.WriteFloat(PaddingRight);
 792      }
 793      if (HasPaddingBottom) {
 794        output.WriteRawTag(85);
 795        output.WriteFloat(PaddingBottom);
 796      }
 797      if (HasPaddingLeft) {
 798        output.WriteRawTag(93);
 799        output.WriteFloat(PaddingLeft);
 800      }
 801      if (HasLineSpacing) {
 802        output.WriteRawTag(101);
 803        output.WriteFloat(LineSpacing);
 804      }
 805      if (HasLineCount) {
 806        output.WriteRawTag(104);
 807        output.WriteInt32(LineCount);
 808      }
 809      if (HasTextWrapping) {
 810        output.WriteRawTag(112);
 811        output.WriteBool(TextWrapping);
 812      }
 813      if (HasShadowBlur) {
 814        output.WriteRawTag(125);
 815        output.WriteFloat(ShadowBlur);
 816      }
 817      if (HasShadowOffsetX) {
 818        output.WriteRawTag(133, 1);
 819        output.WriteFloat(ShadowOffsetX);
 820      }
 821      if (HasShadowOffsetY) {
 822        output.WriteRawTag(141, 1);
 823        output.WriteFloat(ShadowOffsetY);
 824      }
 825      if (HasOutlineWidth) {
 826        output.WriteRawTag(149, 1);
 827        output.WriteFloat(OutlineWidth);
 828      }
 829      if (shadowColor_ != null) {
 830        output.WriteRawTag(154, 1);
 831        output.WriteMessage(ShadowColor);
 832      }
 833      if (outlineColor_ != null) {
 834        output.WriteRawTag(162, 1);
 835        output.WriteMessage(OutlineColor);
 836      }
 837      if (textColor_ != null) {
 838        output.WriteRawTag(170, 1);
 839        output.WriteMessage(TextColor);
 840      }
 841      if (_unknownFields != null) {
 842        _unknownFields.WriteTo(output);
 843      }
 844    #endif
 845    }
 846
 847    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 848    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 849    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 850    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 851      if (Text.Length != 0) {
 852        output.WriteRawTag(10);
 853        output.WriteString(Text);
 854      }
 855      if (HasFont) {
 856        output.WriteRawTag(16);
 857        output.WriteEnum((int) Font);
 858      }
 859      if (HasFontSize) {
 860        output.WriteRawTag(29);
 861        output.WriteFloat(FontSize);
 862      }
 863      if (HasFontAutoSize) {
 864        output.WriteRawTag(32);
 865        output.WriteBool(FontAutoSize);
 866      }
 867      if (HasTextAlign) {
 868        output.WriteRawTag(40);
 869        output.WriteEnum((int) TextAlign);
 870      }
 871      if (HasWidth) {
 872        output.WriteRawTag(53);
 873        output.WriteFloat(Width);
 874      }
 875      if (HasHeight) {
 876        output.WriteRawTag(61);
 877        output.WriteFloat(Height);
 878      }
 879      if (HasPaddingTop) {
 880        output.WriteRawTag(69);
 881        output.WriteFloat(PaddingTop);
 882      }
 883      if (HasPaddingRight) {
 884        output.WriteRawTag(77);
 885        output.WriteFloat(PaddingRight);
 886      }
 887      if (HasPaddingBottom) {
 888        output.WriteRawTag(85);
 889        output.WriteFloat(PaddingBottom);
 890      }
 891      if (HasPaddingLeft) {
 892        output.WriteRawTag(93);
 893        output.WriteFloat(PaddingLeft);
 894      }
 895      if (HasLineSpacing) {
 896        output.WriteRawTag(101);
 897        output.WriteFloat(LineSpacing);
 898      }
 899      if (HasLineCount) {
 900        output.WriteRawTag(104);
 901        output.WriteInt32(LineCount);
 902      }
 903      if (HasTextWrapping) {
 904        output.WriteRawTag(112);
 905        output.WriteBool(TextWrapping);
 906      }
 907      if (HasShadowBlur) {
 908        output.WriteRawTag(125);
 909        output.WriteFloat(ShadowBlur);
 910      }
 911      if (HasShadowOffsetX) {
 912        output.WriteRawTag(133, 1);
 913        output.WriteFloat(ShadowOffsetX);
 914      }
 915      if (HasShadowOffsetY) {
 916        output.WriteRawTag(141, 1);
 917        output.WriteFloat(ShadowOffsetY);
 918      }
 919      if (HasOutlineWidth) {
 920        output.WriteRawTag(149, 1);
 921        output.WriteFloat(OutlineWidth);
 922      }
 923      if (shadowColor_ != null) {
 924        output.WriteRawTag(154, 1);
 925        output.WriteMessage(ShadowColor);
 926      }
 927      if (outlineColor_ != null) {
 928        output.WriteRawTag(162, 1);
 929        output.WriteMessage(OutlineColor);
 930      }
 931      if (textColor_ != null) {
 932        output.WriteRawTag(170, 1);
 933        output.WriteMessage(TextColor);
 934      }
 935      if (_unknownFields != null) {
 936        _unknownFields.WriteTo(ref output);
 937      }
 938    }
 939    #endif
 940
 941    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 942    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 943    public int CalculateSize() {
 944      int size = 0;
 945      if (Text.Length != 0) {
 946        size += 1 + pb::CodedOutputStream.ComputeStringSize(Text);
 947      }
 948      if (HasFont) {
 949        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Font);
 950      }
 951      if (HasFontSize) {
 952        size += 1 + 4;
 953      }
 954      if (HasFontAutoSize) {
 955        size += 1 + 1;
 956      }
 957      if (HasTextAlign) {
 958        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) TextAlign);
 959      }
 960      if (HasWidth) {
 961        size += 1 + 4;
 962      }
 963      if (HasHeight) {
 964        size += 1 + 4;
 965      }
 966      if (HasPaddingTop) {
 967        size += 1 + 4;
 968      }
 969      if (HasPaddingRight) {
 970        size += 1 + 4;
 971      }
 972      if (HasPaddingBottom) {
 973        size += 1 + 4;
 974      }
 975      if (HasPaddingLeft) {
 976        size += 1 + 4;
 977      }
 978      if (HasLineSpacing) {
 979        size += 1 + 4;
 980      }
 981      if (HasLineCount) {
 982        size += 1 + pb::CodedOutputStream.ComputeInt32Size(LineCount);
 983      }
 984      if (HasTextWrapping) {
 985        size += 1 + 1;
 986      }
 987      if (HasShadowBlur) {
 988        size += 1 + 4;
 989      }
 990      if (HasShadowOffsetX) {
 991        size += 2 + 4;
 992      }
 993      if (HasShadowOffsetY) {
 994        size += 2 + 4;
 995      }
 996      if (HasOutlineWidth) {
 997        size += 2 + 4;
 998      }
 999      if (shadowColor_ != null) {
 1000        size += 2 + pb::CodedOutputStream.ComputeMessageSize(ShadowColor);
 1001      }
 1002      if (outlineColor_ != null) {
 1003        size += 2 + pb::CodedOutputStream.ComputeMessageSize(OutlineColor);
 1004      }
 1005      if (textColor_ != null) {
 1006        size += 2 + pb::CodedOutputStream.ComputeMessageSize(TextColor);
 1007      }
 1008      if (_unknownFields != null) {
 1009        size += _unknownFields.CalculateSize();
 1010      }
 1011      return size;
 1012    }
 1013
 1014    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1015    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1016    public void MergeFrom(PBTextShape other) {
 1017      if (other == null) {
 1018        return;
 1019      }
 1020      if (other.Text.Length != 0) {
 1021        Text = other.Text;
 1022      }
 1023      if (other.HasFont) {
 1024        Font = other.Font;
 1025      }
 1026      if (other.HasFontSize) {
 1027        FontSize = other.FontSize;
 1028      }
 1029      if (other.HasFontAutoSize) {
 1030        FontAutoSize = other.FontAutoSize;
 1031      }
 1032      if (other.HasTextAlign) {
 1033        TextAlign = other.TextAlign;
 1034      }
 1035      if (other.HasWidth) {
 1036        Width = other.Width;
 1037      }
 1038      if (other.HasHeight) {
 1039        Height = other.Height;
 1040      }
 1041      if (other.HasPaddingTop) {
 1042        PaddingTop = other.PaddingTop;
 1043      }
 1044      if (other.HasPaddingRight) {
 1045        PaddingRight = other.PaddingRight;
 1046      }
 1047      if (other.HasPaddingBottom) {
 1048        PaddingBottom = other.PaddingBottom;
 1049      }
 1050      if (other.HasPaddingLeft) {
 1051        PaddingLeft = other.PaddingLeft;
 1052      }
 1053      if (other.HasLineSpacing) {
 1054        LineSpacing = other.LineSpacing;
 1055      }
 1056      if (other.HasLineCount) {
 1057        LineCount = other.LineCount;
 1058      }
 1059      if (other.HasTextWrapping) {
 1060        TextWrapping = other.TextWrapping;
 1061      }
 1062      if (other.HasShadowBlur) {
 1063        ShadowBlur = other.ShadowBlur;
 1064      }
 1065      if (other.HasShadowOffsetX) {
 1066        ShadowOffsetX = other.ShadowOffsetX;
 1067      }
 1068      if (other.HasShadowOffsetY) {
 1069        ShadowOffsetY = other.ShadowOffsetY;
 1070      }
 1071      if (other.HasOutlineWidth) {
 1072        OutlineWidth = other.OutlineWidth;
 1073      }
 1074      if (other.shadowColor_ != null) {
 1075        if (shadowColor_ == null) {
 1076          ShadowColor = new global::Decentraland.Common.Color3();
 1077        }
 1078        ShadowColor.MergeFrom(other.ShadowColor);
 1079      }
 1080      if (other.outlineColor_ != null) {
 1081        if (outlineColor_ == null) {
 1082          OutlineColor = new global::Decentraland.Common.Color3();
 1083        }
 1084        OutlineColor.MergeFrom(other.OutlineColor);
 1085      }
 1086      if (other.textColor_ != null) {
 1087        if (textColor_ == null) {
 1088          TextColor = new global::Decentraland.Common.Color4();
 1089        }
 1090        TextColor.MergeFrom(other.TextColor);
 1091      }
 1092      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 1093    }
 1094
 1095    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1096    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1097    public void MergeFrom(pb::CodedInputStream input) {
 1098    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 1099      input.ReadRawMessage(this);
 1100    #else
 1101      uint tag;
 1102      while ((tag = input.ReadTag()) != 0) {
 1103        switch(tag) {
 1104          default:
 1105            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 1106            break;
 1107          case 10: {
 1108            Text = input.ReadString();
 1109            break;
 1110          }
 1111          case 16: {
 1112            Font = (global::DCL.ECSComponents.Font) input.ReadEnum();
 1113            break;
 1114          }
 1115          case 29: {
 1116            FontSize = input.ReadFloat();
 1117            break;
 1118          }
 1119          case 32: {
 1120            FontAutoSize = input.ReadBool();
 1121            break;
 1122          }
 1123          case 40: {
 1124            TextAlign = (global::DCL.ECSComponents.TextAlignMode) input.ReadEnum();
 1125            break;
 1126          }
 1127          case 53: {
 1128            Width = input.ReadFloat();
 1129            break;
 1130          }
 1131          case 61: {
 1132            Height = input.ReadFloat();
 1133            break;
 1134          }
 1135          case 69: {
 1136            PaddingTop = input.ReadFloat();
 1137            break;
 1138          }
 1139          case 77: {
 1140            PaddingRight = input.ReadFloat();
 1141            break;
 1142          }
 1143          case 85: {
 1144            PaddingBottom = input.ReadFloat();
 1145            break;
 1146          }
 1147          case 93: {
 1148            PaddingLeft = input.ReadFloat();
 1149            break;
 1150          }
 1151          case 101: {
 1152            LineSpacing = input.ReadFloat();
 1153            break;
 1154          }
 1155          case 104: {
 1156            LineCount = input.ReadInt32();
 1157            break;
 1158          }
 1159          case 112: {
 1160            TextWrapping = input.ReadBool();
 1161            break;
 1162          }
 1163          case 125: {
 1164            ShadowBlur = input.ReadFloat();
 1165            break;
 1166          }
 1167          case 133: {
 1168            ShadowOffsetX = input.ReadFloat();
 1169            break;
 1170          }
 1171          case 141: {
 1172            ShadowOffsetY = input.ReadFloat();
 1173            break;
 1174          }
 1175          case 149: {
 1176            OutlineWidth = input.ReadFloat();
 1177            break;
 1178          }
 1179          case 154: {
 1180            if (shadowColor_ == null) {
 1181              ShadowColor = new global::Decentraland.Common.Color3();
 1182            }
 1183            input.ReadMessage(ShadowColor);
 1184            break;
 1185          }
 1186          case 162: {
 1187            if (outlineColor_ == null) {
 1188              OutlineColor = new global::Decentraland.Common.Color3();
 1189            }
 1190            input.ReadMessage(OutlineColor);
 1191            break;
 1192          }
 1193          case 170: {
 1194            if (textColor_ == null) {
 1195              TextColor = new global::Decentraland.Common.Color4();
 1196            }
 1197            input.ReadMessage(TextColor);
 1198            break;
 1199          }
 1200        }
 1201      }
 1202    #endif
 1203    }
 1204
 1205    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 1206    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1207    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1208    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 1209      uint tag;
 1210      while ((tag = input.ReadTag()) != 0) {
 1211        switch(tag) {
 1212          default:
 1213            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 1214            break;
 1215          case 10: {
 1216            Text = input.ReadString();
 1217            break;
 1218          }
 1219          case 16: {
 1220            Font = (global::DCL.ECSComponents.Font) input.ReadEnum();
 1221            break;
 1222          }
 1223          case 29: {
 1224            FontSize = input.ReadFloat();
 1225            break;
 1226          }
 1227          case 32: {
 1228            FontAutoSize = input.ReadBool();
 1229            break;
 1230          }
 1231          case 40: {
 1232            TextAlign = (global::DCL.ECSComponents.TextAlignMode) input.ReadEnum();
 1233            break;
 1234          }
 1235          case 53: {
 1236            Width = input.ReadFloat();
 1237            break;
 1238          }
 1239          case 61: {
 1240            Height = input.ReadFloat();
 1241            break;
 1242          }
 1243          case 69: {
 1244            PaddingTop = input.ReadFloat();
 1245            break;
 1246          }
 1247          case 77: {
 1248            PaddingRight = input.ReadFloat();
 1249            break;
 1250          }
 1251          case 85: {
 1252            PaddingBottom = input.ReadFloat();
 1253            break;
 1254          }
 1255          case 93: {
 1256            PaddingLeft = input.ReadFloat();
 1257            break;
 1258          }
 1259          case 101: {
 1260            LineSpacing = input.ReadFloat();
 1261            break;
 1262          }
 1263          case 104: {
 1264            LineCount = input.ReadInt32();
 1265            break;
 1266          }
 1267          case 112: {
 1268            TextWrapping = input.ReadBool();
 1269            break;
 1270          }
 1271          case 125: {
 1272            ShadowBlur = input.ReadFloat();
 1273            break;
 1274          }
 1275          case 133: {
 1276            ShadowOffsetX = input.ReadFloat();
 1277            break;
 1278          }
 1279          case 141: {
 1280            ShadowOffsetY = input.ReadFloat();
 1281            break;
 1282          }
 1283          case 149: {
 1284            OutlineWidth = input.ReadFloat();
 1285            break;
 1286          }
 1287          case 154: {
 1288            if (shadowColor_ == null) {
 1289              ShadowColor = new global::Decentraland.Common.Color3();
 1290            }
 1291            input.ReadMessage(ShadowColor);
 1292            break;
 1293          }
 1294          case 162: {
 1295            if (outlineColor_ == null) {
 1296              OutlineColor = new global::Decentraland.Common.Color3();
 1297            }
 1298            input.ReadMessage(OutlineColor);
 1299            break;
 1300          }
 1301          case 170: {
 1302            if (textColor_ == null) {
 1303              TextColor = new global::Decentraland.Common.Color4();
 1304            }
 1305            input.ReadMessage(TextColor);
 1306            break;
 1307          }
 1308        }
 1309      }
 1310    }
 1311    #endif
 1312
 1313  }
 1314
 1315  #endregion
 1316
 1317}
 1318
 1319#endregion Designer generated code

Methods/Properties

Descriptor()
TextShapeReflection()