< Summary

Class:DCL.ECSComponents.PBTextShape
Assembly:DCL.Components.ProtobufData
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/PBFiles/TextShape.cs
Covered lines:127
Uncovered lines:284
Coverable lines:411
Total lines:846
Line coverage:30.9% (127 of 411)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
PBTextShape()0%110100%
get_Descriptor()0%2100%
PBTextShape(...)0%56700%
Clone()0%2100%
PBTextShape()0%110100%
Equals(...)0%110100%
Equals(...)0%603.032707.55%
GetHashCode()0%27.0426088.46%
ToString()0%2100%
WriteTo(...)0%107.1526050.67%
CalculateSize()0%58.9826063.46%
MergeFrom(...)0%8702900%
MergeFrom(...)0%554.3936026.32%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/PBFiles/TextShape.cs

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: TextShape.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 TextShape.proto</summary>
 15  public static partial class TextShapeReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for TextShape.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            "Cg9UZXh0U2hhcGUucHJvdG8SEGRlY2VudHJhbGFuZC5lY3MaE2NvbW1vbi9D",
 28            "b2xvcjMucHJvdG8ikwQKC1BCVGV4dFNoYXBlEgwKBHRleHQYASABKAkSDwoH",
 29            "dmlzaWJsZRgCIAEoCBIMCgRmb250GAMgASgJEg8KB29wYWNpdHkYBCABKAIS",
 30            "EQoJZm9udF9TaXplGAUgASgCEhUKDWZvbnRfYXV0b1NpemUYBiABKAgSFAoM",
 31            "aF90ZXh0X2FsaWduGAcgASgJEhQKDHZfdGV4dF9hbGlnbhgIIAEoCRINCgV3",
 32            "aWR0aBgJIAEoAhIOCgZoZWlnaHQYCiABKAISEwoLcGFkZGluZ190b3AYCyAB",
 33            "KAISFQoNcGFkZGluZ19yaWdodBgMIAEoAhIWCg5wYWRkaW5nX2JvdHRvbRgN",
 34            "IAEoAhIUCgxwYWRkaW5nX2xlZnQYDiABKAISFAoMbGluZV9zcGFjaW5nGA8g",
 35            "ASgCEhIKCmxpbmVfY291bnQYECABKAUSFQoNdGV4dF93cmFwcGluZxgRIAEo",
 36            "CBITCgtzaGFkb3dfYmx1chgSIAEoAhIWCg5zaGFkb3dfb2Zmc2V0WBgTIAEo",
 37            "AhIWCg5zaGFkb3dfb2Zmc2V0WRgUIAEoAhIVCg1vdXRsaW5lX3dpZHRoGBUg",
 38            "ASgCEh0KDHNoYWRvd19jb2xvchgWIAEoCzIHLkNvbG9yMxIeCg1vdXRsaW5l",
 39            "X2NvbG9yGBcgASgLMgcuQ29sb3IzEhsKCnRleHRfY29sb3IYGCABKAsyBy5D",
 40            "b2xvcjNCFKoCEURDTC5FQ1NDb21wb25lbnRzYgZwcm90bzM="));
 41      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 42          new pbr::FileDescriptor[] { global::Color3Reflection.Descriptor, },
 43          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 44            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBTextShape), global::DCL.ECSComponents.PBTex
 45          }));
 46    }
 47    #endregion
 48
 49  }
 50  #region Messages
 51  public sealed partial class PBTextShape : pb::IMessage<PBTextShape> {
 252    private static readonly pb::MessageParser<PBTextShape> _parser = new pb::MessageParser<PBTextShape>(() => new PBText
 53    private pb::UnknownFieldSet _unknownFields;
 54    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 055    public static pb::MessageParser<PBTextShape> Parser { get { return _parser; } }
 56
 57    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 58    public static pbr::MessageDescriptor Descriptor {
 059      get { return global::DCL.ECSComponents.TextShapeReflection.Descriptor.MessageTypes[0]; }
 60    }
 61
 62    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 63    pbr::MessageDescriptor pb::IMessage.Descriptor {
 064      get { return Descriptor; }
 65    }
 66
 67    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 6168    public PBTextShape() {
 69      OnConstruction();
 6170    }
 71
 72    partial void OnConstruction();
 73
 74    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 075    public PBTextShape(PBTextShape other) : this() {
 076      text_ = other.text_;
 077      visible_ = other.visible_;
 078      font_ = other.font_;
 079      opacity_ = other.opacity_;
 080      fontSize_ = other.fontSize_;
 081      fontAutoSize_ = other.fontAutoSize_;
 082      hTextAlign_ = other.hTextAlign_;
 083      vTextAlign_ = other.vTextAlign_;
 084      width_ = other.width_;
 085      height_ = other.height_;
 086      paddingTop_ = other.paddingTop_;
 087      paddingRight_ = other.paddingRight_;
 088      paddingBottom_ = other.paddingBottom_;
 089      paddingLeft_ = other.paddingLeft_;
 090      lineSpacing_ = other.lineSpacing_;
 091      lineCount_ = other.lineCount_;
 092      textWrapping_ = other.textWrapping_;
 093      shadowBlur_ = other.shadowBlur_;
 094      shadowOffsetX_ = other.shadowOffsetX_;
 095      shadowOffsetY_ = other.shadowOffsetY_;
 096      outlineWidth_ = other.outlineWidth_;
 097      shadowColor_ = other.shadowColor_ != null ? other.shadowColor_.Clone() : null;
 098      outlineColor_ = other.outlineColor_ != null ? other.outlineColor_.Clone() : null;
 099      textColor_ = other.textColor_ != null ? other.textColor_.Clone() : null;
 0100      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 0101    }
 102
 103    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 104    public PBTextShape Clone() {
 0105      return new PBTextShape(this);
 106    }
 107
 108    /// <summary>Field number for the "text" field.</summary>
 109    public const int TextFieldNumber = 1;
 61110    private string text_ = "";
 111    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 112    public string Text {
 0113      get { return text_; }
 114      set {
 0115        text_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 0116      }
 117    }
 118
 119    /// <summary>Field number for the "visible" field.</summary>
 120    public const int VisibleFieldNumber = 2;
 121    private bool visible_;
 122    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 123    public bool Visible {
 0124      get { return visible_; }
 125      set {
 0126        visible_ = value;
 0127      }
 128    }
 129
 130    /// <summary>Field number for the "font" field.</summary>
 131    public const int FontFieldNumber = 3;
 61132    private string font_ = "";
 133    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 134    public string Font {
 0135      get { return font_; }
 136      set {
 60137        font_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 60138      }
 139    }
 140
 141    /// <summary>Field number for the "opacity" field.</summary>
 142    public const int OpacityFieldNumber = 4;
 143    private float opacity_;
 144    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 145    public float Opacity {
 0146      get { return opacity_; }
 147      set {
 0148        opacity_ = value;
 0149      }
 150    }
 151
 152    /// <summary>Field number for the "font_Size" field.</summary>
 153    public const int FontSizeFieldNumber = 5;
 154    private float fontSize_;
 155    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 156    public float FontSize {
 0157      get { return fontSize_; }
 158      set {
 0159        fontSize_ = value;
 0160      }
 161    }
 162
 163    /// <summary>Field number for the "font_autoSize" field.</summary>
 164    public const int FontAutoSizeFieldNumber = 6;
 165    private bool fontAutoSize_;
 166    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 167    public bool FontAutoSize {
 0168      get { return fontAutoSize_; }
 169      set {
 0170        fontAutoSize_ = value;
 0171      }
 172    }
 173
 174    /// <summary>Field number for the "h_text_align" field.</summary>
 175    public const int HTextAlignFieldNumber = 7;
 61176    private string hTextAlign_ = "";
 177    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 178    public string HTextAlign {
 0179      get { return hTextAlign_; }
 180      set {
 0181        hTextAlign_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 0182      }
 183    }
 184
 185    /// <summary>Field number for the "v_text_align" field.</summary>
 186    public const int VTextAlignFieldNumber = 8;
 61187    private string vTextAlign_ = "";
 188    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 189    public string VTextAlign {
 0190      get { return vTextAlign_; }
 191      set {
 0192        vTextAlign_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 0193      }
 194    }
 195
 196    /// <summary>Field number for the "width" field.</summary>
 197    public const int WidthFieldNumber = 9;
 198    private float width_;
 199    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 200    public float Width {
 0201      get { return width_; }
 202      set {
 0203        width_ = value;
 0204      }
 205    }
 206
 207    /// <summary>Field number for the "height" field.</summary>
 208    public const int HeightFieldNumber = 10;
 209    private float height_;
 210    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 211    public float Height {
 0212      get { return height_; }
 213      set {
 0214        height_ = value;
 0215      }
 216    }
 217
 218    /// <summary>Field number for the "padding_top" field.</summary>
 219    public const int PaddingTopFieldNumber = 11;
 220    private float paddingTop_;
 221    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 222    public float PaddingTop {
 0223      get { return paddingTop_; }
 224      set {
 0225        paddingTop_ = value;
 0226      }
 227    }
 228
 229    /// <summary>Field number for the "padding_right" field.</summary>
 230    public const int PaddingRightFieldNumber = 12;
 231    private float paddingRight_;
 232    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 233    public float PaddingRight {
 0234      get { return paddingRight_; }
 235      set {
 0236        paddingRight_ = value;
 0237      }
 238    }
 239
 240    /// <summary>Field number for the "padding_bottom" field.</summary>
 241    public const int PaddingBottomFieldNumber = 13;
 242    private float paddingBottom_;
 243    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 244    public float PaddingBottom {
 0245      get { return paddingBottom_; }
 246      set {
 0247        paddingBottom_ = value;
 0248      }
 249    }
 250
 251    /// <summary>Field number for the "padding_left" field.</summary>
 252    public const int PaddingLeftFieldNumber = 14;
 253    private float paddingLeft_;
 254    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 255    public float PaddingLeft {
 0256      get { return paddingLeft_; }
 257      set {
 0258        paddingLeft_ = value;
 0259      }
 260    }
 261
 262    /// <summary>Field number for the "line_spacing" field.</summary>
 263    public const int LineSpacingFieldNumber = 15;
 264    private float lineSpacing_;
 265    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 266    public float LineSpacing {
 0267      get { return lineSpacing_; }
 268      set {
 0269        lineSpacing_ = value;
 0270      }
 271    }
 272
 273    /// <summary>Field number for the "line_count" field.</summary>
 274    public const int LineCountFieldNumber = 16;
 275    private int lineCount_;
 276    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 277    public int LineCount {
 0278      get { return lineCount_; }
 279      set {
 0280        lineCount_ = value;
 0281      }
 282    }
 283
 284    /// <summary>Field number for the "text_wrapping" field.</summary>
 285    public const int TextWrappingFieldNumber = 17;
 286    private bool textWrapping_;
 287    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 288    public bool TextWrapping {
 0289      get { return textWrapping_; }
 290      set {
 0291        textWrapping_ = value;
 0292      }
 293    }
 294
 295    /// <summary>Field number for the "shadow_blur" field.</summary>
 296    public const int ShadowBlurFieldNumber = 18;
 297    private float shadowBlur_;
 298    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 299    public float ShadowBlur {
 0300      get { return shadowBlur_; }
 301      set {
 0302        shadowBlur_ = value;
 0303      }
 304    }
 305
 306    /// <summary>Field number for the "shadow_offsetX" field.</summary>
 307    public const int ShadowOffsetXFieldNumber = 19;
 308    private float shadowOffsetX_;
 309    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 310    public float ShadowOffsetX {
 0311      get { return shadowOffsetX_; }
 312      set {
 0313        shadowOffsetX_ = value;
 0314      }
 315    }
 316
 317    /// <summary>Field number for the "shadow_offsetY" field.</summary>
 318    public const int ShadowOffsetYFieldNumber = 20;
 319    private float shadowOffsetY_;
 320    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 321    public float ShadowOffsetY {
 0322      get { return shadowOffsetY_; }
 323      set {
 0324        shadowOffsetY_ = value;
 0325      }
 326    }
 327
 328    /// <summary>Field number for the "outline_width" field.</summary>
 329    public const int OutlineWidthFieldNumber = 21;
 330    private float outlineWidth_;
 331    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 332    public float OutlineWidth {
 0333      get { return outlineWidth_; }
 334      set {
 0335        outlineWidth_ = value;
 0336      }
 337    }
 338
 339    /// <summary>Field number for the "shadow_color" field.</summary>
 340    public const int ShadowColorFieldNumber = 22;
 341    private global::Color3 shadowColor_;
 342    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 343    public global::Color3 ShadowColor {
 0344      get { return shadowColor_; }
 345      set {
 0346        shadowColor_ = value;
 0347      }
 348    }
 349
 350    /// <summary>Field number for the "outline_color" field.</summary>
 351    public const int OutlineColorFieldNumber = 23;
 352    private global::Color3 outlineColor_;
 353    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 354    public global::Color3 OutlineColor {
 0355      get { return outlineColor_; }
 356      set {
 0357        outlineColor_ = value;
 0358      }
 359    }
 360
 361    /// <summary>Field number for the "text_color" field.</summary>
 362    public const int TextColorFieldNumber = 24;
 363    private global::Color3 textColor_;
 364    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 365    public global::Color3 TextColor {
 0366      get { return textColor_; }
 367      set {
 0368        textColor_ = value;
 0369      }
 370    }
 371
 372    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 373    public override bool Equals(object other) {
 111374      return Equals(other as PBTextShape);
 375    }
 376
 377    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 378    public bool Equals(PBTextShape other) {
 169379      if (ReferenceEquals(other, null)) {
 58380        return false;
 381      }
 111382      if (ReferenceEquals(other, this)) {
 111383        return true;
 384      }
 0385      if (Text != other.Text) return false;
 0386      if (Visible != other.Visible) return false;
 0387      if (Font != other.Font) return false;
 0388      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Opacity, other.Opacity)) return false;
 0389      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(FontSize, other.FontSize)) return false;
 0390      if (FontAutoSize != other.FontAutoSize) return false;
 0391      if (HTextAlign != other.HTextAlign) return false;
 0392      if (VTextAlign != other.VTextAlign) return false;
 0393      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Width, other.Width)) return false;
 0394      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Height, other.Height)) return false;
 0395      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(PaddingTop, other.PaddingTop)) return fal
 0396      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(PaddingRight, other.PaddingRight)) return
 0397      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(PaddingBottom, other.PaddingBottom)) retu
 0398      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(PaddingLeft, other.PaddingLeft)) return f
 0399      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(LineSpacing, other.LineSpacing)) return f
 0400      if (LineCount != other.LineCount) return false;
 0401      if (TextWrapping != other.TextWrapping) return false;
 0402      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(ShadowBlur, other.ShadowBlur)) return fal
 0403      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(ShadowOffsetX, other.ShadowOffsetX)) retu
 0404      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(ShadowOffsetY, other.ShadowOffsetY)) retu
 0405      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(OutlineWidth, other.OutlineWidth)) return
 0406      if (!object.Equals(ShadowColor, other.ShadowColor)) return false;
 0407      if (!object.Equals(OutlineColor, other.OutlineColor)) return false;
 0408      if (!object.Equals(TextColor, other.TextColor)) return false;
 0409      return Equals(_unknownFields, other._unknownFields);
 410    }
 411
 412    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 413    public override int GetHashCode() {
 206414      int hash = 1;
 207415      if (Text.Length != 0) hash ^= Text.GetHashCode();
 206416      if (Visible != false) hash ^= Visible.GetHashCode();
 412417      if (Font.Length != 0) hash ^= Font.GetHashCode();
 207418      if (Opacity != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Opacity);
 207419      if (FontSize != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(FontSize);
 207420      if (FontAutoSize != false) hash ^= FontAutoSize.GetHashCode();
 210421      if (HTextAlign.Length != 0) hash ^= HTextAlign.GetHashCode();
 210422      if (VTextAlign.Length != 0) hash ^= VTextAlign.GetHashCode();
 209423      if (Width != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Width);
 209424      if (Height != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Height);
 207425      if (PaddingTop != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(PaddingTop)
 207426      if (PaddingRight != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(PaddingRi
 207427      if (PaddingBottom != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(PaddingB
 207428      if (PaddingLeft != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(PaddingLef
 207429      if (LineSpacing != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(LineSpacin
 207430      if (LineCount != 0) hash ^= LineCount.GetHashCode();
 210431      if (TextWrapping != false) hash ^= TextWrapping.GetHashCode();
 206432      if (ShadowBlur != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ShadowBlur)
 206433      if (ShadowOffsetX != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ShadowOf
 206434      if (ShadowOffsetY != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ShadowOf
 207435      if (OutlineWidth != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(OutlineWi
 206436      if (shadowColor_ != null) hash ^= ShadowColor.GetHashCode();
 207437      if (outlineColor_ != null) hash ^= OutlineColor.GetHashCode();
 208438      if (textColor_ != null) hash ^= TextColor.GetHashCode();
 206439      if (_unknownFields != null) {
 0440        hash ^= _unknownFields.GetHashCode();
 441      }
 206442      return hash;
 443    }
 444
 445    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 446    public override string ToString() {
 0447      return pb::JsonFormatter.ToDiagnosticString(this);
 448    }
 449
 450    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 451    public void WriteTo(pb::CodedOutputStream output) {
 2452      if (Text.Length != 0) {
 1453        output.WriteRawTag(10);
 1454        output.WriteString(Text);
 455      }
 2456      if (Visible != false) {
 1457        output.WriteRawTag(16);
 1458        output.WriteBool(Visible);
 459      }
 2460      if (Font.Length != 0) {
 2461        output.WriteRawTag(26);
 2462        output.WriteString(Font);
 463      }
 2464      if (Opacity != 0F) {
 0465        output.WriteRawTag(37);
 0466        output.WriteFloat(Opacity);
 467      }
 2468      if (FontSize != 0F) {
 1469        output.WriteRawTag(45);
 1470        output.WriteFloat(FontSize);
 471      }
 2472      if (FontAutoSize != false) {
 0473        output.WriteRawTag(48);
 0474        output.WriteBool(FontAutoSize);
 475      }
 2476      if (HTextAlign.Length != 0) {
 0477        output.WriteRawTag(58);
 0478        output.WriteString(HTextAlign);
 479      }
 2480      if (VTextAlign.Length != 0) {
 0481        output.WriteRawTag(66);
 0482        output.WriteString(VTextAlign);
 483      }
 2484      if (Width != 0F) {
 0485        output.WriteRawTag(77);
 0486        output.WriteFloat(Width);
 487      }
 2488      if (Height != 0F) {
 0489        output.WriteRawTag(85);
 0490        output.WriteFloat(Height);
 491      }
 2492      if (PaddingTop != 0F) {
 0493        output.WriteRawTag(93);
 0494        output.WriteFloat(PaddingTop);
 495      }
 2496      if (PaddingRight != 0F) {
 0497        output.WriteRawTag(101);
 0498        output.WriteFloat(PaddingRight);
 499      }
 2500      if (PaddingBottom != 0F) {
 0501        output.WriteRawTag(109);
 0502        output.WriteFloat(PaddingBottom);
 503      }
 2504      if (PaddingLeft != 0F) {
 0505        output.WriteRawTag(117);
 0506        output.WriteFloat(PaddingLeft);
 507      }
 2508      if (LineSpacing != 0F) {
 0509        output.WriteRawTag(125);
 0510        output.WriteFloat(LineSpacing);
 511      }
 2512      if (LineCount != 0) {
 1513        output.WriteRawTag(128, 1);
 1514        output.WriteInt32(LineCount);
 515      }
 2516      if (TextWrapping != false) {
 0517        output.WriteRawTag(136, 1);
 0518        output.WriteBool(TextWrapping);
 519      }
 2520      if (ShadowBlur != 0F) {
 0521        output.WriteRawTag(149, 1);
 0522        output.WriteFloat(ShadowBlur);
 523      }
 2524      if (ShadowOffsetX != 0F) {
 0525        output.WriteRawTag(157, 1);
 0526        output.WriteFloat(ShadowOffsetX);
 527      }
 2528      if (ShadowOffsetY != 0F) {
 0529        output.WriteRawTag(165, 1);
 0530        output.WriteFloat(ShadowOffsetY);
 531      }
 2532      if (OutlineWidth != 0F) {
 0533        output.WriteRawTag(173, 1);
 0534        output.WriteFloat(OutlineWidth);
 535      }
 2536      if (shadowColor_ != null) {
 0537        output.WriteRawTag(178, 1);
 0538        output.WriteMessage(ShadowColor);
 539      }
 2540      if (outlineColor_ != null) {
 0541        output.WriteRawTag(186, 1);
 0542        output.WriteMessage(OutlineColor);
 543      }
 2544      if (textColor_ != null) {
 1545        output.WriteRawTag(194, 1);
 1546        output.WriteMessage(TextColor);
 547      }
 2548      if (_unknownFields != null) {
 0549        _unknownFields.WriteTo(output);
 550      }
 2551    }
 552
 553    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 554    public int CalculateSize() {
 2555      int size = 0;
 2556      if (Text.Length != 0) {
 1557        size += 1 + pb::CodedOutputStream.ComputeStringSize(Text);
 558      }
 2559      if (Visible != false) {
 1560        size += 1 + 1;
 561      }
 2562      if (Font.Length != 0) {
 2563        size += 1 + pb::CodedOutputStream.ComputeStringSize(Font);
 564      }
 2565      if (Opacity != 0F) {
 0566        size += 1 + 4;
 567      }
 2568      if (FontSize != 0F) {
 1569        size += 1 + 4;
 570      }
 2571      if (FontAutoSize != false) {
 0572        size += 1 + 1;
 573      }
 2574      if (HTextAlign.Length != 0) {
 0575        size += 1 + pb::CodedOutputStream.ComputeStringSize(HTextAlign);
 576      }
 2577      if (VTextAlign.Length != 0) {
 0578        size += 1 + pb::CodedOutputStream.ComputeStringSize(VTextAlign);
 579      }
 2580      if (Width != 0F) {
 0581        size += 1 + 4;
 582      }
 2583      if (Height != 0F) {
 0584        size += 1 + 4;
 585      }
 2586      if (PaddingTop != 0F) {
 0587        size += 1 + 4;
 588      }
 2589      if (PaddingRight != 0F) {
 0590        size += 1 + 4;
 591      }
 2592      if (PaddingBottom != 0F) {
 0593        size += 1 + 4;
 594      }
 2595      if (PaddingLeft != 0F) {
 0596        size += 1 + 4;
 597      }
 2598      if (LineSpacing != 0F) {
 0599        size += 1 + 4;
 600      }
 2601      if (LineCount != 0) {
 1602        size += 2 + pb::CodedOutputStream.ComputeInt32Size(LineCount);
 603      }
 2604      if (TextWrapping != false) {
 0605        size += 2 + 1;
 606      }
 2607      if (ShadowBlur != 0F) {
 0608        size += 2 + 4;
 609      }
 2610      if (ShadowOffsetX != 0F) {
 0611        size += 2 + 4;
 612      }
 2613      if (ShadowOffsetY != 0F) {
 0614        size += 2 + 4;
 615      }
 2616      if (OutlineWidth != 0F) {
 0617        size += 2 + 4;
 618      }
 2619      if (shadowColor_ != null) {
 0620        size += 2 + pb::CodedOutputStream.ComputeMessageSize(ShadowColor);
 621      }
 2622      if (outlineColor_ != null) {
 0623        size += 2 + pb::CodedOutputStream.ComputeMessageSize(OutlineColor);
 624      }
 2625      if (textColor_ != null) {
 1626        size += 2 + pb::CodedOutputStream.ComputeMessageSize(TextColor);
 627      }
 2628      if (_unknownFields != null) {
 0629        size += _unknownFields.CalculateSize();
 630      }
 2631      return size;
 632    }
 633
 634    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 635    public void MergeFrom(PBTextShape other) {
 0636      if (other == null) {
 0637        return;
 638      }
 0639      if (other.Text.Length != 0) {
 0640        Text = other.Text;
 641      }
 0642      if (other.Visible != false) {
 0643        Visible = other.Visible;
 644      }
 0645      if (other.Font.Length != 0) {
 0646        Font = other.Font;
 647      }
 0648      if (other.Opacity != 0F) {
 0649        Opacity = other.Opacity;
 650      }
 0651      if (other.FontSize != 0F) {
 0652        FontSize = other.FontSize;
 653      }
 0654      if (other.FontAutoSize != false) {
 0655        FontAutoSize = other.FontAutoSize;
 656      }
 0657      if (other.HTextAlign.Length != 0) {
 0658        HTextAlign = other.HTextAlign;
 659      }
 0660      if (other.VTextAlign.Length != 0) {
 0661        VTextAlign = other.VTextAlign;
 662      }
 0663      if (other.Width != 0F) {
 0664        Width = other.Width;
 665      }
 0666      if (other.Height != 0F) {
 0667        Height = other.Height;
 668      }
 0669      if (other.PaddingTop != 0F) {
 0670        PaddingTop = other.PaddingTop;
 671      }
 0672      if (other.PaddingRight != 0F) {
 0673        PaddingRight = other.PaddingRight;
 674      }
 0675      if (other.PaddingBottom != 0F) {
 0676        PaddingBottom = other.PaddingBottom;
 677      }
 0678      if (other.PaddingLeft != 0F) {
 0679        PaddingLeft = other.PaddingLeft;
 680      }
 0681      if (other.LineSpacing != 0F) {
 0682        LineSpacing = other.LineSpacing;
 683      }
 0684      if (other.LineCount != 0) {
 0685        LineCount = other.LineCount;
 686      }
 0687      if (other.TextWrapping != false) {
 0688        TextWrapping = other.TextWrapping;
 689      }
 0690      if (other.ShadowBlur != 0F) {
 0691        ShadowBlur = other.ShadowBlur;
 692      }
 0693      if (other.ShadowOffsetX != 0F) {
 0694        ShadowOffsetX = other.ShadowOffsetX;
 695      }
 0696      if (other.ShadowOffsetY != 0F) {
 0697        ShadowOffsetY = other.ShadowOffsetY;
 698      }
 0699      if (other.OutlineWidth != 0F) {
 0700        OutlineWidth = other.OutlineWidth;
 701      }
 0702      if (other.shadowColor_ != null) {
 0703        if (shadowColor_ == null) {
 0704          ShadowColor = new global::Color3();
 705        }
 0706        ShadowColor.MergeFrom(other.ShadowColor);
 707      }
 0708      if (other.outlineColor_ != null) {
 0709        if (outlineColor_ == null) {
 0710          OutlineColor = new global::Color3();
 711        }
 0712        OutlineColor.MergeFrom(other.OutlineColor);
 713      }
 0714      if (other.textColor_ != null) {
 0715        if (textColor_ == null) {
 0716          TextColor = new global::Color3();
 717        }
 0718        TextColor.MergeFrom(other.TextColor);
 719      }
 0720      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0721    }
 722
 723    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 724    public void MergeFrom(pb::CodedInputStream input) {
 725      uint tag;
 7726      while ((tag = input.ReadTag()) != 0) {
 727        switch(tag) {
 728          default:
 0729            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0730            break;
 731          case 10: {
 1732            Text = input.ReadString();
 1733            break;
 734          }
 735          case 16: {
 1736            Visible = input.ReadBool();
 1737            break;
 738          }
 739          case 26: {
 1740            Font = input.ReadString();
 1741            break;
 742          }
 743          case 37: {
 0744            Opacity = input.ReadFloat();
 0745            break;
 746          }
 747          case 45: {
 1748            FontSize = input.ReadFloat();
 1749            break;
 750          }
 751          case 48: {
 0752            FontAutoSize = input.ReadBool();
 0753            break;
 754          }
 755          case 58: {
 0756            HTextAlign = input.ReadString();
 0757            break;
 758          }
 759          case 66: {
 0760            VTextAlign = input.ReadString();
 0761            break;
 762          }
 763          case 77: {
 0764            Width = input.ReadFloat();
 0765            break;
 766          }
 767          case 85: {
 0768            Height = input.ReadFloat();
 0769            break;
 770          }
 771          case 93: {
 0772            PaddingTop = input.ReadFloat();
 0773            break;
 774          }
 775          case 101: {
 0776            PaddingRight = input.ReadFloat();
 0777            break;
 778          }
 779          case 109: {
 0780            PaddingBottom = input.ReadFloat();
 0781            break;
 782          }
 783          case 117: {
 0784            PaddingLeft = input.ReadFloat();
 0785            break;
 786          }
 787          case 125: {
 0788            LineSpacing = input.ReadFloat();
 0789            break;
 790          }
 791          case 128: {
 1792            LineCount = input.ReadInt32();
 1793            break;
 794          }
 795          case 136: {
 0796            TextWrapping = input.ReadBool();
 0797            break;
 798          }
 799          case 149: {
 0800            ShadowBlur = input.ReadFloat();
 0801            break;
 802          }
 803          case 157: {
 0804            ShadowOffsetX = input.ReadFloat();
 0805            break;
 806          }
 807          case 165: {
 0808            ShadowOffsetY = input.ReadFloat();
 0809            break;
 810          }
 811          case 173: {
 0812            OutlineWidth = input.ReadFloat();
 0813            break;
 814          }
 815          case 178: {
 0816            if (shadowColor_ == null) {
 0817              ShadowColor = new global::Color3();
 818            }
 0819            input.ReadMessage(ShadowColor);
 0820            break;
 821          }
 822          case 186: {
 0823            if (outlineColor_ == null) {
 0824              OutlineColor = new global::Color3();
 825            }
 0826            input.ReadMessage(OutlineColor);
 0827            break;
 828          }
 829          case 194: {
 1830            if (textColor_ == null) {
 1831              TextColor = new global::Color3();
 832            }
 1833            input.ReadMessage(TextColor);
 834            break;
 835          }
 836        }
 837      }
 1838    }
 839
 840  }
 841
 842  #endregion
 843
 844}
 845
 846#endregion Designer generated code