< 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:1319
Line coverage:21% (91 of 432)
Covered branches:0
Total branches:0
Covered methods:55
Total methods:91
Method coverage:60.4% (55 of 91)

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  /// <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  {
 178    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)]
 083    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 {
 088      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 {
 094      get { return Descriptor; }
 95    }
 96
 97    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 98    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 2199    public PBTextShape() {
 100      OnConstruction();
 21101    }
 102
 103    partial void OnConstruction();
 104
 105    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 106    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0107    public PBTextShape(PBTextShape other) : this() {
 0108      _hasBits0 = other._hasBits0;
 0109      text_ = other.text_;
 0110      font_ = other.font_;
 0111      fontSize_ = other.fontSize_;
 0112      fontAutoSize_ = other.fontAutoSize_;
 0113      textAlign_ = other.textAlign_;
 0114      width_ = other.width_;
 0115      height_ = other.height_;
 0116      paddingTop_ = other.paddingTop_;
 0117      paddingRight_ = other.paddingRight_;
 0118      paddingBottom_ = other.paddingBottom_;
 0119      paddingLeft_ = other.paddingLeft_;
 0120      lineSpacing_ = other.lineSpacing_;
 0121      lineCount_ = other.lineCount_;
 0122      textWrapping_ = other.textWrapping_;
 0123      shadowBlur_ = other.shadowBlur_;
 0124      shadowOffsetX_ = other.shadowOffsetX_;
 0125      shadowOffsetY_ = other.shadowOffsetY_;
 0126      outlineWidth_ = other.outlineWidth_;
 0127      shadowColor_ = other.shadowColor_ != null ? other.shadowColor_.Clone() : null;
 0128      outlineColor_ = other.outlineColor_ != null ? other.outlineColor_.Clone() : null;
 0129      textColor_ = other.textColor_ != null ? other.textColor_.Clone() : null;
 0130      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 0131    }
 132
 133    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 134    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 135    public PBTextShape Clone() {
 0136      return new PBTextShape(this);
 137    }
 138
 139    /// <summary>Field number for the "text" field.</summary>
 140    public const int TextFieldNumber = 1;
 21141    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 {
 23148      get { return text_; }
 149      set {
 2150        text_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 2151      }
 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 {
 2163      get { if ((_hasBits0 & 1) != 0) { return font_; } else { return global::DCL.ECSComponents.Font.FSansSerif; } }
 164      set {
 1165        _hasBits0 |= 1;
 1166        font_ = value;
 1167      }
 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 {
 21173      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() {
 0179      _hasBits0 &= ~1;
 0180    }
 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 {
 2191      get { if ((_hasBits0 & 2) != 0) { return fontSize_; } else { return 0F; } }
 192      set {
 1193        _hasBits0 |= 2;
 1194        fontSize_ = value;
 1195      }
 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 {
 21201      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() {
 0207      _hasBits0 &= ~2;
 0208    }
 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 {
 4219      get { if ((_hasBits0 & 4) != 0) { return fontAutoSize_; } else { return false; } }
 220      set {
 2221        _hasBits0 |= 4;
 2222        fontAutoSize_ = value;
 2223      }
 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 {
 25229      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() {
 0235      _hasBits0 &= ~4;
 0236    }
 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 {
 8247      get { if ((_hasBits0 & 8) != 0) { return textAlign_; } else { return global::DCL.ECSComponents.TextAlignMode.TamTo
 248      set {
 4249        _hasBits0 |= 8;
 4250        textAlign_ = value;
 4251      }
 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 {
 21257      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() {
 0263      _hasBits0 &= ~8;
 0264    }
 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 {
 8275      get { if ((_hasBits0 & 16) != 0) { return width_; } else { return 0F; } }
 276      set {
 4277        _hasBits0 |= 16;
 4278        width_ = value;
 4279      }
 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 {
 4285      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() {
 0291      _hasBits0 &= ~16;
 0292    }
 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 {
 8303      get { if ((_hasBits0 & 32) != 0) { return height_; } else { return 0F; } }
 304      set {
 4305        _hasBits0 |= 32;
 4306        height_ = value;
 4307      }
 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 {
 4313      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() {
 0319      _hasBits0 &= ~32;
 0320    }
 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 {
 4331      get { if ((_hasBits0 & 64) != 0) { return paddingTop_; } else { return 0F; } }
 332      set {
 1333        _hasBits0 |= 64;
 1334        paddingTop_ = value;
 1335      }
 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 {
 21341      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() {
 0347      _hasBits0 &= ~64;
 0348    }
 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 {
 4359      get { if ((_hasBits0 & 128) != 0) { return paddingRight_; } else { return 0F; } }
 360      set {
 1361        _hasBits0 |= 128;
 1362        paddingRight_ = value;
 1363      }
 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 {
 21369      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() {
 0375      _hasBits0 &= ~128;
 0376    }
 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 {
 4387      get { if ((_hasBits0 & 256) != 0) { return paddingBottom_; } else { return 0F; } }
 388      set {
 1389        _hasBits0 |= 256;
 1390        paddingBottom_ = value;
 1391      }
 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 {
 21397      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() {
 0403      _hasBits0 &= ~256;
 0404    }
 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 {
 4415      get { if ((_hasBits0 & 512) != 0) { return paddingLeft_; } else { return 0F; } }
 416      set {
 1417        _hasBits0 |= 512;
 1418        paddingLeft_ = value;
 1419      }
 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 {
 21425      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() {
 0431      _hasBits0 &= ~512;
 0432    }
 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 {
 2443      get { if ((_hasBits0 & 1024) != 0) { return lineSpacing_; } else { return 0F; } }
 444      set {
 1445        _hasBits0 |= 1024;
 1446        lineSpacing_ = value;
 1447      }
 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 {
 21453      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() {
 0459      _hasBits0 &= ~1024;
 0460    }
 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 {
 4471      get { if ((_hasBits0 & 2048) != 0) { return lineCount_; } else { return 0; } }
 472      set {
 1473        _hasBits0 |= 2048;
 1474        lineCount_ = value;
 1475      }
 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 {
 22481      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() {
 0487      _hasBits0 &= ~2048;
 0488    }
 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 {
 20499      get { if ((_hasBits0 & 4096) != 0) { return textWrapping_; } else { return false; } }
 500      set {
 5501        _hasBits0 |= 4096;
 5502        textWrapping_ = value;
 5503      }
 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 {
 42509      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() {
 0515      _hasBits0 &= ~4096;
 0516    }
 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 {
 0527      get { if ((_hasBits0 & 8192) != 0) { return shadowBlur_; } else { return 0F; } }
 528      set {
 0529        _hasBits0 |= 8192;
 0530        shadowBlur_ = value;
 0531      }
 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 {
 20537      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() {
 0543      _hasBits0 &= ~8192;
 0544    }
 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 {
 0555      get { if ((_hasBits0 & 16384) != 0) { return shadowOffsetX_; } else { return 0F; } }
 556      set {
 0557        _hasBits0 |= 16384;
 0558        shadowOffsetX_ = value;
 0559      }
 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 {
 20565      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() {
 0571      _hasBits0 &= ~16384;
 0572    }
 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 {
 0583      get { if ((_hasBits0 & 32768) != 0) { return shadowOffsetY_; } else { return 0F; } }
 584      set {
 0585        _hasBits0 |= 32768;
 0586        shadowOffsetY_ = value;
 0587      }
 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 {
 20593      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() {
 0599      _hasBits0 &= ~32768;
 0600    }
 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 {
 4611      get { if ((_hasBits0 & 65536) != 0) { return outlineWidth_; } else { return 0F; } }
 612      set {
 1613        _hasBits0 |= 65536;
 1614        outlineWidth_ = value;
 1615      }
 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 {
 20621      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() {
 0627      _hasBits0 &= ~65536;
 0628    }
 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 {
 20639      get { return shadowColor_; }
 640      set {
 0641        shadowColor_ = value;
 0642      }
 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 {
 23654      get { return outlineColor_; }
 655      set {
 1656        outlineColor_ = value;
 1657      }
 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 {
 21669      get { return textColor_; }
 670      set {
 2671        textColor_ = value;
 2672      }
 673    }
 674
 675    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 676    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 677    public override bool Equals(object other) {
 0678      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) {
 21684      if (ReferenceEquals(other, null)) {
 20685        return false;
 686      }
 1687      if (ReferenceEquals(other, this)) {
 0688        return true;
 689      }
 2690      if (Text != other.Text) return false;
 0691      if (Font != other.Font) return false;
 0692      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(FontSize, other.FontSize)) return false;
 0693      if (FontAutoSize != other.FontAutoSize) return false;
 0694      if (TextAlign != other.TextAlign) return false;
 0695      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Width, other.Width)) return false;
 0696      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Height, other.Height)) return false;
 0697      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(PaddingTop, other.PaddingTop)) return fal
 0698      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(PaddingRight, other.PaddingRight)) return
 0699      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(PaddingBottom, other.PaddingBottom)) retu
 0700      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(PaddingLeft, other.PaddingLeft)) return f
 0701      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(LineSpacing, other.LineSpacing)) return f
 0702      if (LineCount != other.LineCount) return false;
 0703      if (TextWrapping != other.TextWrapping) return false;
 0704      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(ShadowBlur, other.ShadowBlur)) return fal
 0705      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(ShadowOffsetX, other.ShadowOffsetX)) retu
 0706      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(ShadowOffsetY, other.ShadowOffsetY)) retu
 0707      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(OutlineWidth, other.OutlineWidth)) return
 0708      if (!object.Equals(ShadowColor, other.ShadowColor)) return false;
 0709      if (!object.Equals(OutlineColor, other.OutlineColor)) return false;
 0710      if (!object.Equals(TextColor, other.TextColor)) return false;
 0711      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() {
 0717      int hash = 1;
 0718      if (Text.Length != 0) hash ^= Text.GetHashCode();
 0719      if (HasFont) hash ^= Font.GetHashCode();
 0720      if (HasFontSize) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(FontSize);
 0721      if (HasFontAutoSize) hash ^= FontAutoSize.GetHashCode();
 0722      if (HasTextAlign) hash ^= TextAlign.GetHashCode();
 0723      if (HasWidth) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Width);
 0724      if (HasHeight) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Height);
 0725      if (HasPaddingTop) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(PaddingTop);
 0726      if (HasPaddingRight) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(PaddingRight
 0727      if (HasPaddingBottom) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(PaddingBott
 0728      if (HasPaddingLeft) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(PaddingLeft);
 0729      if (HasLineSpacing) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(LineSpacing);
 0730      if (HasLineCount) hash ^= LineCount.GetHashCode();
 0731      if (HasTextWrapping) hash ^= TextWrapping.GetHashCode();
 0732      if (HasShadowBlur) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ShadowBlur);
 0733      if (HasShadowOffsetX) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ShadowOffse
 0734      if (HasShadowOffsetY) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ShadowOffse
 0735      if (HasOutlineWidth) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(OutlineWidth
 0736      if (shadowColor_ != null) hash ^= ShadowColor.GetHashCode();
 0737      if (outlineColor_ != null) hash ^= OutlineColor.GetHashCode();
 0738      if (textColor_ != null) hash ^= TextColor.GetHashCode();
 0739      if (_unknownFields != null) {
 0740        hash ^= _unknownFields.GetHashCode();
 741      }
 0742      return hash;
 743    }
 744
 745    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 746    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 747    public override string ToString() {
 0748      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
 0757      if (Text.Length != 0) {
 0758        output.WriteRawTag(10);
 0759        output.WriteString(Text);
 760      }
 0761      if (HasFont) {
 0762        output.WriteRawTag(16);
 0763        output.WriteEnum((int) Font);
 764      }
 0765      if (HasFontSize) {
 0766        output.WriteRawTag(29);
 0767        output.WriteFloat(FontSize);
 768      }
 0769      if (HasFontAutoSize) {
 0770        output.WriteRawTag(32);
 0771        output.WriteBool(FontAutoSize);
 772      }
 0773      if (HasTextAlign) {
 0774        output.WriteRawTag(40);
 0775        output.WriteEnum((int) TextAlign);
 776      }
 0777      if (HasWidth) {
 0778        output.WriteRawTag(53);
 0779        output.WriteFloat(Width);
 780      }
 0781      if (HasHeight) {
 0782        output.WriteRawTag(61);
 0783        output.WriteFloat(Height);
 784      }
 0785      if (HasPaddingTop) {
 0786        output.WriteRawTag(69);
 0787        output.WriteFloat(PaddingTop);
 788      }
 0789      if (HasPaddingRight) {
 0790        output.WriteRawTag(77);
 0791        output.WriteFloat(PaddingRight);
 792      }
 0793      if (HasPaddingBottom) {
 0794        output.WriteRawTag(85);
 0795        output.WriteFloat(PaddingBottom);
 796      }
 0797      if (HasPaddingLeft) {
 0798        output.WriteRawTag(93);
 0799        output.WriteFloat(PaddingLeft);
 800      }
 0801      if (HasLineSpacing) {
 0802        output.WriteRawTag(101);
 0803        output.WriteFloat(LineSpacing);
 804      }
 0805      if (HasLineCount) {
 0806        output.WriteRawTag(104);
 0807        output.WriteInt32(LineCount);
 808      }
 0809      if (HasTextWrapping) {
 0810        output.WriteRawTag(112);
 0811        output.WriteBool(TextWrapping);
 812      }
 0813      if (HasShadowBlur) {
 0814        output.WriteRawTag(125);
 0815        output.WriteFloat(ShadowBlur);
 816      }
 0817      if (HasShadowOffsetX) {
 0818        output.WriteRawTag(133, 1);
 0819        output.WriteFloat(ShadowOffsetX);
 820      }
 0821      if (HasShadowOffsetY) {
 0822        output.WriteRawTag(141, 1);
 0823        output.WriteFloat(ShadowOffsetY);
 824      }
 0825      if (HasOutlineWidth) {
 0826        output.WriteRawTag(149, 1);
 0827        output.WriteFloat(OutlineWidth);
 828      }
 0829      if (shadowColor_ != null) {
 0830        output.WriteRawTag(154, 1);
 0831        output.WriteMessage(ShadowColor);
 832      }
 0833      if (outlineColor_ != null) {
 0834        output.WriteRawTag(162, 1);
 0835        output.WriteMessage(OutlineColor);
 836      }
 0837      if (textColor_ != null) {
 0838        output.WriteRawTag(170, 1);
 0839        output.WriteMessage(TextColor);
 840      }
 0841      if (_unknownFields != null) {
 0842        _unknownFields.WriteTo(output);
 843      }
 844    #endif
 0845    }
 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() {
 0944      int size = 0;
 0945      if (Text.Length != 0) {
 0946        size += 1 + pb::CodedOutputStream.ComputeStringSize(Text);
 947      }
 0948      if (HasFont) {
 0949        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Font);
 950      }
 0951      if (HasFontSize) {
 0952        size += 1 + 4;
 953      }
 0954      if (HasFontAutoSize) {
 0955        size += 1 + 1;
 956      }
 0957      if (HasTextAlign) {
 0958        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) TextAlign);
 959      }
 0960      if (HasWidth) {
 0961        size += 1 + 4;
 962      }
 0963      if (HasHeight) {
 0964        size += 1 + 4;
 965      }
 0966      if (HasPaddingTop) {
 0967        size += 1 + 4;
 968      }
 0969      if (HasPaddingRight) {
 0970        size += 1 + 4;
 971      }
 0972      if (HasPaddingBottom) {
 0973        size += 1 + 4;
 974      }
 0975      if (HasPaddingLeft) {
 0976        size += 1 + 4;
 977      }
 0978      if (HasLineSpacing) {
 0979        size += 1 + 4;
 980      }
 0981      if (HasLineCount) {
 0982        size += 1 + pb::CodedOutputStream.ComputeInt32Size(LineCount);
 983      }
 0984      if (HasTextWrapping) {
 0985        size += 1 + 1;
 986      }
 0987      if (HasShadowBlur) {
 0988        size += 1 + 4;
 989      }
 0990      if (HasShadowOffsetX) {
 0991        size += 2 + 4;
 992      }
 0993      if (HasShadowOffsetY) {
 0994        size += 2 + 4;
 995      }
 0996      if (HasOutlineWidth) {
 0997        size += 2 + 4;
 998      }
 0999      if (shadowColor_ != null) {
 01000        size += 2 + pb::CodedOutputStream.ComputeMessageSize(ShadowColor);
 1001      }
 01002      if (outlineColor_ != null) {
 01003        size += 2 + pb::CodedOutputStream.ComputeMessageSize(OutlineColor);
 1004      }
 01005      if (textColor_ != null) {
 01006        size += 2 + pb::CodedOutputStream.ComputeMessageSize(TextColor);
 1007      }
 01008      if (_unknownFields != null) {
 01009        size += _unknownFields.CalculateSize();
 1010      }
 01011      return size;
 1012    }
 1013
 1014    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1015    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1016    public void MergeFrom(PBTextShape other) {
 01017      if (other == null) {
 01018        return;
 1019      }
 01020      if (other.Text.Length != 0) {
 01021        Text = other.Text;
 1022      }
 01023      if (other.HasFont) {
 01024        Font = other.Font;
 1025      }
 01026      if (other.HasFontSize) {
 01027        FontSize = other.FontSize;
 1028      }
 01029      if (other.HasFontAutoSize) {
 01030        FontAutoSize = other.FontAutoSize;
 1031      }
 01032      if (other.HasTextAlign) {
 01033        TextAlign = other.TextAlign;
 1034      }
 01035      if (other.HasWidth) {
 01036        Width = other.Width;
 1037      }
 01038      if (other.HasHeight) {
 01039        Height = other.Height;
 1040      }
 01041      if (other.HasPaddingTop) {
 01042        PaddingTop = other.PaddingTop;
 1043      }
 01044      if (other.HasPaddingRight) {
 01045        PaddingRight = other.PaddingRight;
 1046      }
 01047      if (other.HasPaddingBottom) {
 01048        PaddingBottom = other.PaddingBottom;
 1049      }
 01050      if (other.HasPaddingLeft) {
 01051        PaddingLeft = other.PaddingLeft;
 1052      }
 01053      if (other.HasLineSpacing) {
 01054        LineSpacing = other.LineSpacing;
 1055      }
 01056      if (other.HasLineCount) {
 01057        LineCount = other.LineCount;
 1058      }
 01059      if (other.HasTextWrapping) {
 01060        TextWrapping = other.TextWrapping;
 1061      }
 01062      if (other.HasShadowBlur) {
 01063        ShadowBlur = other.ShadowBlur;
 1064      }
 01065      if (other.HasShadowOffsetX) {
 01066        ShadowOffsetX = other.ShadowOffsetX;
 1067      }
 01068      if (other.HasShadowOffsetY) {
 01069        ShadowOffsetY = other.ShadowOffsetY;
 1070      }
 01071      if (other.HasOutlineWidth) {
 01072        OutlineWidth = other.OutlineWidth;
 1073      }
 01074      if (other.shadowColor_ != null) {
 01075        if (shadowColor_ == null) {
 01076          ShadowColor = new global::Decentraland.Common.Color3();
 1077        }
 01078        ShadowColor.MergeFrom(other.ShadowColor);
 1079      }
 01080      if (other.outlineColor_ != null) {
 01081        if (outlineColor_ == null) {
 01082          OutlineColor = new global::Decentraland.Common.Color3();
 1083        }
 01084        OutlineColor.MergeFrom(other.OutlineColor);
 1085      }
 01086      if (other.textColor_ != null) {
 01087        if (textColor_ == null) {
 01088          TextColor = new global::Decentraland.Common.Color4();
 1089        }
 01090        TextColor.MergeFrom(other.TextColor);
 1091      }
 01092      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 01093    }
 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;
 01102      while ((tag = input.ReadTag()) != 0) {
 1103        switch(tag) {
 1104          default:
 01105            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 01106            break;
 1107          case 10: {
 01108            Text = input.ReadString();
 01109            break;
 1110          }
 1111          case 16: {
 01112            Font = (global::DCL.ECSComponents.Font) input.ReadEnum();
 01113            break;
 1114          }
 1115          case 29: {
 01116            FontSize = input.ReadFloat();
 01117            break;
 1118          }
 1119          case 32: {
 01120            FontAutoSize = input.ReadBool();
 01121            break;
 1122          }
 1123          case 40: {
 01124            TextAlign = (global::DCL.ECSComponents.TextAlignMode) input.ReadEnum();
 01125            break;
 1126          }
 1127          case 53: {
 01128            Width = input.ReadFloat();
 01129            break;
 1130          }
 1131          case 61: {
 01132            Height = input.ReadFloat();
 01133            break;
 1134          }
 1135          case 69: {
 01136            PaddingTop = input.ReadFloat();
 01137            break;
 1138          }
 1139          case 77: {
 01140            PaddingRight = input.ReadFloat();
 01141            break;
 1142          }
 1143          case 85: {
 01144            PaddingBottom = input.ReadFloat();
 01145            break;
 1146          }
 1147          case 93: {
 01148            PaddingLeft = input.ReadFloat();
 01149            break;
 1150          }
 1151          case 101: {
 01152            LineSpacing = input.ReadFloat();
 01153            break;
 1154          }
 1155          case 104: {
 01156            LineCount = input.ReadInt32();
 01157            break;
 1158          }
 1159          case 112: {
 01160            TextWrapping = input.ReadBool();
 01161            break;
 1162          }
 1163          case 125: {
 01164            ShadowBlur = input.ReadFloat();
 01165            break;
 1166          }
 1167          case 133: {
 01168            ShadowOffsetX = input.ReadFloat();
 01169            break;
 1170          }
 1171          case 141: {
 01172            ShadowOffsetY = input.ReadFloat();
 01173            break;
 1174          }
 1175          case 149: {
 01176            OutlineWidth = input.ReadFloat();
 01177            break;
 1178          }
 1179          case 154: {
 01180            if (shadowColor_ == null) {
 01181              ShadowColor = new global::Decentraland.Common.Color3();
 1182            }
 01183            input.ReadMessage(ShadowColor);
 01184            break;
 1185          }
 1186          case 162: {
 01187            if (outlineColor_ == null) {
 01188              OutlineColor = new global::Decentraland.Common.Color3();
 1189            }
 01190            input.ReadMessage(OutlineColor);
 01191            break;
 1192          }
 1193          case 170: {
 01194            if (textColor_ == null) {
 01195              TextColor = new global::Decentraland.Common.Color4();
 1196            }
 01197            input.ReadMessage(TextColor);
 1198            break;
 1199          }
 1200        }
 1201      }
 1202    #endif
 01203    }
 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

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)