< Summary

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

Metrics

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

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 {
 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            "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="));
 041      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          }));
 046    }
 47    #endregion
 48
 49  }
 50  #region Messages
 51  public sealed partial class PBTextShape : pb::IMessage<PBTextShape> {
 52    private static readonly pb::MessageParser<PBTextShape> _parser = new pb::MessageParser<PBTextShape>(() => new PBText
 53    private pb::UnknownFieldSet _unknownFields;
 54    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 55    public static pb::MessageParser<PBTextShape> Parser { get { return _parser; } }
 56
 57    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 58    public static pbr::MessageDescriptor Descriptor {
 59      get { return global::DCL.ECSComponents.TextShapeReflection.Descriptor.MessageTypes[0]; }
 60    }
 61
 62    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 63    pbr::MessageDescriptor pb::IMessage.Descriptor {
 64      get { return Descriptor; }
 65    }
 66
 67    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 68    public PBTextShape() {
 69      OnConstruction();
 70    }
 71
 72    partial void OnConstruction();
 73
 74    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 75    public PBTextShape(PBTextShape other) : this() {
 76      text_ = other.text_;
 77      visible_ = other.visible_;
 78      font_ = other.font_;
 79      opacity_ = other.opacity_;
 80      fontSize_ = other.fontSize_;
 81      fontAutoSize_ = other.fontAutoSize_;
 82      hTextAlign_ = other.hTextAlign_;
 83      vTextAlign_ = other.vTextAlign_;
 84      width_ = other.width_;
 85      height_ = other.height_;
 86      paddingTop_ = other.paddingTop_;
 87      paddingRight_ = other.paddingRight_;
 88      paddingBottom_ = other.paddingBottom_;
 89      paddingLeft_ = other.paddingLeft_;
 90      lineSpacing_ = other.lineSpacing_;
 91      lineCount_ = other.lineCount_;
 92      textWrapping_ = other.textWrapping_;
 93      shadowBlur_ = other.shadowBlur_;
 94      shadowOffsetX_ = other.shadowOffsetX_;
 95      shadowOffsetY_ = other.shadowOffsetY_;
 96      outlineWidth_ = other.outlineWidth_;
 97      shadowColor_ = other.shadowColor_ != null ? other.shadowColor_.Clone() : null;
 98      outlineColor_ = other.outlineColor_ != null ? other.outlineColor_.Clone() : null;
 99      textColor_ = other.textColor_ != null ? other.textColor_.Clone() : null;
 100      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 101    }
 102
 103    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 104    public PBTextShape Clone() {
 105      return new PBTextShape(this);
 106    }
 107
 108    /// <summary>Field number for the "text" field.</summary>
 109    public const int TextFieldNumber = 1;
 110    private string text_ = "";
 111    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 112    public string Text {
 113      get { return text_; }
 114      set {
 115        text_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 116      }
 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 {
 124      get { return visible_; }
 125      set {
 126        visible_ = value;
 127      }
 128    }
 129
 130    /// <summary>Field number for the "font" field.</summary>
 131    public const int FontFieldNumber = 3;
 132    private string font_ = "";
 133    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 134    public string Font {
 135      get { return font_; }
 136      set {
 137        font_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 138      }
 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 {
 146      get { return opacity_; }
 147      set {
 148        opacity_ = value;
 149      }
 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 {
 157      get { return fontSize_; }
 158      set {
 159        fontSize_ = value;
 160      }
 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 {
 168      get { return fontAutoSize_; }
 169      set {
 170        fontAutoSize_ = value;
 171      }
 172    }
 173
 174    /// <summary>Field number for the "h_text_align" field.</summary>
 175    public const int HTextAlignFieldNumber = 7;
 176    private string hTextAlign_ = "";
 177    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 178    public string HTextAlign {
 179      get { return hTextAlign_; }
 180      set {
 181        hTextAlign_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 182      }
 183    }
 184
 185    /// <summary>Field number for the "v_text_align" field.</summary>
 186    public const int VTextAlignFieldNumber = 8;
 187    private string vTextAlign_ = "";
 188    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 189    public string VTextAlign {
 190      get { return vTextAlign_; }
 191      set {
 192        vTextAlign_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 193      }
 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 {
 201      get { return width_; }
 202      set {
 203        width_ = value;
 204      }
 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 {
 212      get { return height_; }
 213      set {
 214        height_ = value;
 215      }
 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 {
 223      get { return paddingTop_; }
 224      set {
 225        paddingTop_ = value;
 226      }
 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 {
 234      get { return paddingRight_; }
 235      set {
 236        paddingRight_ = value;
 237      }
 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 {
 245      get { return paddingBottom_; }
 246      set {
 247        paddingBottom_ = value;
 248      }
 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 {
 256      get { return paddingLeft_; }
 257      set {
 258        paddingLeft_ = value;
 259      }
 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 {
 267      get { return lineSpacing_; }
 268      set {
 269        lineSpacing_ = value;
 270      }
 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 {
 278      get { return lineCount_; }
 279      set {
 280        lineCount_ = value;
 281      }
 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 {
 289      get { return textWrapping_; }
 290      set {
 291        textWrapping_ = value;
 292      }
 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 {
 300      get { return shadowBlur_; }
 301      set {
 302        shadowBlur_ = value;
 303      }
 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 {
 311      get { return shadowOffsetX_; }
 312      set {
 313        shadowOffsetX_ = value;
 314      }
 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 {
 322      get { return shadowOffsetY_; }
 323      set {
 324        shadowOffsetY_ = value;
 325      }
 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 {
 333      get { return outlineWidth_; }
 334      set {
 335        outlineWidth_ = value;
 336      }
 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 {
 344      get { return shadowColor_; }
 345      set {
 346        shadowColor_ = value;
 347      }
 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 {
 355      get { return outlineColor_; }
 356      set {
 357        outlineColor_ = value;
 358      }
 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 {
 366      get { return textColor_; }
 367      set {
 368        textColor_ = value;
 369      }
 370    }
 371
 372    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 373    public override bool Equals(object other) {
 374      return Equals(other as PBTextShape);
 375    }
 376
 377    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 378    public bool Equals(PBTextShape other) {
 379      if (ReferenceEquals(other, null)) {
 380        return false;
 381      }
 382      if (ReferenceEquals(other, this)) {
 383        return true;
 384      }
 385      if (Text != other.Text) return false;
 386      if (Visible != other.Visible) return false;
 387      if (Font != other.Font) return false;
 388      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Opacity, other.Opacity)) return false;
 389      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(FontSize, other.FontSize)) return false;
 390      if (FontAutoSize != other.FontAutoSize) return false;
 391      if (HTextAlign != other.HTextAlign) return false;
 392      if (VTextAlign != other.VTextAlign) return false;
 393      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Width, other.Width)) return false;
 394      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Height, other.Height)) return false;
 395      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(PaddingTop, other.PaddingTop)) return fal
 396      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(PaddingRight, other.PaddingRight)) return
 397      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(PaddingBottom, other.PaddingBottom)) retu
 398      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(PaddingLeft, other.PaddingLeft)) return f
 399      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(LineSpacing, other.LineSpacing)) return f
 400      if (LineCount != other.LineCount) return false;
 401      if (TextWrapping != other.TextWrapping) return false;
 402      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(ShadowBlur, other.ShadowBlur)) return fal
 403      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(ShadowOffsetX, other.ShadowOffsetX)) retu
 404      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(ShadowOffsetY, other.ShadowOffsetY)) retu
 405      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(OutlineWidth, other.OutlineWidth)) return
 406      if (!object.Equals(ShadowColor, other.ShadowColor)) return false;
 407      if (!object.Equals(OutlineColor, other.OutlineColor)) return false;
 408      if (!object.Equals(TextColor, other.TextColor)) return false;
 409      return Equals(_unknownFields, other._unknownFields);
 410    }
 411
 412    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 413    public override int GetHashCode() {
 414      int hash = 1;
 415      if (Text.Length != 0) hash ^= Text.GetHashCode();
 416      if (Visible != false) hash ^= Visible.GetHashCode();
 417      if (Font.Length != 0) hash ^= Font.GetHashCode();
 418      if (Opacity != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Opacity);
 419      if (FontSize != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(FontSize);
 420      if (FontAutoSize != false) hash ^= FontAutoSize.GetHashCode();
 421      if (HTextAlign.Length != 0) hash ^= HTextAlign.GetHashCode();
 422      if (VTextAlign.Length != 0) hash ^= VTextAlign.GetHashCode();
 423      if (Width != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Width);
 424      if (Height != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Height);
 425      if (PaddingTop != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(PaddingTop)
 426      if (PaddingRight != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(PaddingRi
 427      if (PaddingBottom != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(PaddingB
 428      if (PaddingLeft != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(PaddingLef
 429      if (LineSpacing != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(LineSpacin
 430      if (LineCount != 0) hash ^= LineCount.GetHashCode();
 431      if (TextWrapping != false) hash ^= TextWrapping.GetHashCode();
 432      if (ShadowBlur != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ShadowBlur)
 433      if (ShadowOffsetX != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ShadowOf
 434      if (ShadowOffsetY != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ShadowOf
 435      if (OutlineWidth != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(OutlineWi
 436      if (shadowColor_ != null) hash ^= ShadowColor.GetHashCode();
 437      if (outlineColor_ != null) hash ^= OutlineColor.GetHashCode();
 438      if (textColor_ != null) hash ^= TextColor.GetHashCode();
 439      if (_unknownFields != null) {
 440        hash ^= _unknownFields.GetHashCode();
 441      }
 442      return hash;
 443    }
 444
 445    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 446    public override string ToString() {
 447      return pb::JsonFormatter.ToDiagnosticString(this);
 448    }
 449
 450    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 451    public void WriteTo(pb::CodedOutputStream output) {
 452      if (Text.Length != 0) {
 453        output.WriteRawTag(10);
 454        output.WriteString(Text);
 455      }
 456      if (Visible != false) {
 457        output.WriteRawTag(16);
 458        output.WriteBool(Visible);
 459      }
 460      if (Font.Length != 0) {
 461        output.WriteRawTag(26);
 462        output.WriteString(Font);
 463      }
 464      if (Opacity != 0F) {
 465        output.WriteRawTag(37);
 466        output.WriteFloat(Opacity);
 467      }
 468      if (FontSize != 0F) {
 469        output.WriteRawTag(45);
 470        output.WriteFloat(FontSize);
 471      }
 472      if (FontAutoSize != false) {
 473        output.WriteRawTag(48);
 474        output.WriteBool(FontAutoSize);
 475      }
 476      if (HTextAlign.Length != 0) {
 477        output.WriteRawTag(58);
 478        output.WriteString(HTextAlign);
 479      }
 480      if (VTextAlign.Length != 0) {
 481        output.WriteRawTag(66);
 482        output.WriteString(VTextAlign);
 483      }
 484      if (Width != 0F) {
 485        output.WriteRawTag(77);
 486        output.WriteFloat(Width);
 487      }
 488      if (Height != 0F) {
 489        output.WriteRawTag(85);
 490        output.WriteFloat(Height);
 491      }
 492      if (PaddingTop != 0F) {
 493        output.WriteRawTag(93);
 494        output.WriteFloat(PaddingTop);
 495      }
 496      if (PaddingRight != 0F) {
 497        output.WriteRawTag(101);
 498        output.WriteFloat(PaddingRight);
 499      }
 500      if (PaddingBottom != 0F) {
 501        output.WriteRawTag(109);
 502        output.WriteFloat(PaddingBottom);
 503      }
 504      if (PaddingLeft != 0F) {
 505        output.WriteRawTag(117);
 506        output.WriteFloat(PaddingLeft);
 507      }
 508      if (LineSpacing != 0F) {
 509        output.WriteRawTag(125);
 510        output.WriteFloat(LineSpacing);
 511      }
 512      if (LineCount != 0) {
 513        output.WriteRawTag(128, 1);
 514        output.WriteInt32(LineCount);
 515      }
 516      if (TextWrapping != false) {
 517        output.WriteRawTag(136, 1);
 518        output.WriteBool(TextWrapping);
 519      }
 520      if (ShadowBlur != 0F) {
 521        output.WriteRawTag(149, 1);
 522        output.WriteFloat(ShadowBlur);
 523      }
 524      if (ShadowOffsetX != 0F) {
 525        output.WriteRawTag(157, 1);
 526        output.WriteFloat(ShadowOffsetX);
 527      }
 528      if (ShadowOffsetY != 0F) {
 529        output.WriteRawTag(165, 1);
 530        output.WriteFloat(ShadowOffsetY);
 531      }
 532      if (OutlineWidth != 0F) {
 533        output.WriteRawTag(173, 1);
 534        output.WriteFloat(OutlineWidth);
 535      }
 536      if (shadowColor_ != null) {
 537        output.WriteRawTag(178, 1);
 538        output.WriteMessage(ShadowColor);
 539      }
 540      if (outlineColor_ != null) {
 541        output.WriteRawTag(186, 1);
 542        output.WriteMessage(OutlineColor);
 543      }
 544      if (textColor_ != null) {
 545        output.WriteRawTag(194, 1);
 546        output.WriteMessage(TextColor);
 547      }
 548      if (_unknownFields != null) {
 549        _unknownFields.WriteTo(output);
 550      }
 551    }
 552
 553    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 554    public int CalculateSize() {
 555      int size = 0;
 556      if (Text.Length != 0) {
 557        size += 1 + pb::CodedOutputStream.ComputeStringSize(Text);
 558      }
 559      if (Visible != false) {
 560        size += 1 + 1;
 561      }
 562      if (Font.Length != 0) {
 563        size += 1 + pb::CodedOutputStream.ComputeStringSize(Font);
 564      }
 565      if (Opacity != 0F) {
 566        size += 1 + 4;
 567      }
 568      if (FontSize != 0F) {
 569        size += 1 + 4;
 570      }
 571      if (FontAutoSize != false) {
 572        size += 1 + 1;
 573      }
 574      if (HTextAlign.Length != 0) {
 575        size += 1 + pb::CodedOutputStream.ComputeStringSize(HTextAlign);
 576      }
 577      if (VTextAlign.Length != 0) {
 578        size += 1 + pb::CodedOutputStream.ComputeStringSize(VTextAlign);
 579      }
 580      if (Width != 0F) {
 581        size += 1 + 4;
 582      }
 583      if (Height != 0F) {
 584        size += 1 + 4;
 585      }
 586      if (PaddingTop != 0F) {
 587        size += 1 + 4;
 588      }
 589      if (PaddingRight != 0F) {
 590        size += 1 + 4;
 591      }
 592      if (PaddingBottom != 0F) {
 593        size += 1 + 4;
 594      }
 595      if (PaddingLeft != 0F) {
 596        size += 1 + 4;
 597      }
 598      if (LineSpacing != 0F) {
 599        size += 1 + 4;
 600      }
 601      if (LineCount != 0) {
 602        size += 2 + pb::CodedOutputStream.ComputeInt32Size(LineCount);
 603      }
 604      if (TextWrapping != false) {
 605        size += 2 + 1;
 606      }
 607      if (ShadowBlur != 0F) {
 608        size += 2 + 4;
 609      }
 610      if (ShadowOffsetX != 0F) {
 611        size += 2 + 4;
 612      }
 613      if (ShadowOffsetY != 0F) {
 614        size += 2 + 4;
 615      }
 616      if (OutlineWidth != 0F) {
 617        size += 2 + 4;
 618      }
 619      if (shadowColor_ != null) {
 620        size += 2 + pb::CodedOutputStream.ComputeMessageSize(ShadowColor);
 621      }
 622      if (outlineColor_ != null) {
 623        size += 2 + pb::CodedOutputStream.ComputeMessageSize(OutlineColor);
 624      }
 625      if (textColor_ != null) {
 626        size += 2 + pb::CodedOutputStream.ComputeMessageSize(TextColor);
 627      }
 628      if (_unknownFields != null) {
 629        size += _unknownFields.CalculateSize();
 630      }
 631      return size;
 632    }
 633
 634    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 635    public void MergeFrom(PBTextShape other) {
 636      if (other == null) {
 637        return;
 638      }
 639      if (other.Text.Length != 0) {
 640        Text = other.Text;
 641      }
 642      if (other.Visible != false) {
 643        Visible = other.Visible;
 644      }
 645      if (other.Font.Length != 0) {
 646        Font = other.Font;
 647      }
 648      if (other.Opacity != 0F) {
 649        Opacity = other.Opacity;
 650      }
 651      if (other.FontSize != 0F) {
 652        FontSize = other.FontSize;
 653      }
 654      if (other.FontAutoSize != false) {
 655        FontAutoSize = other.FontAutoSize;
 656      }
 657      if (other.HTextAlign.Length != 0) {
 658        HTextAlign = other.HTextAlign;
 659      }
 660      if (other.VTextAlign.Length != 0) {
 661        VTextAlign = other.VTextAlign;
 662      }
 663      if (other.Width != 0F) {
 664        Width = other.Width;
 665      }
 666      if (other.Height != 0F) {
 667        Height = other.Height;
 668      }
 669      if (other.PaddingTop != 0F) {
 670        PaddingTop = other.PaddingTop;
 671      }
 672      if (other.PaddingRight != 0F) {
 673        PaddingRight = other.PaddingRight;
 674      }
 675      if (other.PaddingBottom != 0F) {
 676        PaddingBottom = other.PaddingBottom;
 677      }
 678      if (other.PaddingLeft != 0F) {
 679        PaddingLeft = other.PaddingLeft;
 680      }
 681      if (other.LineSpacing != 0F) {
 682        LineSpacing = other.LineSpacing;
 683      }
 684      if (other.LineCount != 0) {
 685        LineCount = other.LineCount;
 686      }
 687      if (other.TextWrapping != false) {
 688        TextWrapping = other.TextWrapping;
 689      }
 690      if (other.ShadowBlur != 0F) {
 691        ShadowBlur = other.ShadowBlur;
 692      }
 693      if (other.ShadowOffsetX != 0F) {
 694        ShadowOffsetX = other.ShadowOffsetX;
 695      }
 696      if (other.ShadowOffsetY != 0F) {
 697        ShadowOffsetY = other.ShadowOffsetY;
 698      }
 699      if (other.OutlineWidth != 0F) {
 700        OutlineWidth = other.OutlineWidth;
 701      }
 702      if (other.shadowColor_ != null) {
 703        if (shadowColor_ == null) {
 704          ShadowColor = new global::Color3();
 705        }
 706        ShadowColor.MergeFrom(other.ShadowColor);
 707      }
 708      if (other.outlineColor_ != null) {
 709        if (outlineColor_ == null) {
 710          OutlineColor = new global::Color3();
 711        }
 712        OutlineColor.MergeFrom(other.OutlineColor);
 713      }
 714      if (other.textColor_ != null) {
 715        if (textColor_ == null) {
 716          TextColor = new global::Color3();
 717        }
 718        TextColor.MergeFrom(other.TextColor);
 719      }
 720      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 721    }
 722
 723    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 724    public void MergeFrom(pb::CodedInputStream input) {
 725      uint tag;
 726      while ((tag = input.ReadTag()) != 0) {
 727        switch(tag) {
 728          default:
 729            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 730            break;
 731          case 10: {
 732            Text = input.ReadString();
 733            break;
 734          }
 735          case 16: {
 736            Visible = input.ReadBool();
 737            break;
 738          }
 739          case 26: {
 740            Font = input.ReadString();
 741            break;
 742          }
 743          case 37: {
 744            Opacity = input.ReadFloat();
 745            break;
 746          }
 747          case 45: {
 748            FontSize = input.ReadFloat();
 749            break;
 750          }
 751          case 48: {
 752            FontAutoSize = input.ReadBool();
 753            break;
 754          }
 755          case 58: {
 756            HTextAlign = input.ReadString();
 757            break;
 758          }
 759          case 66: {
 760            VTextAlign = input.ReadString();
 761            break;
 762          }
 763          case 77: {
 764            Width = input.ReadFloat();
 765            break;
 766          }
 767          case 85: {
 768            Height = input.ReadFloat();
 769            break;
 770          }
 771          case 93: {
 772            PaddingTop = input.ReadFloat();
 773            break;
 774          }
 775          case 101: {
 776            PaddingRight = input.ReadFloat();
 777            break;
 778          }
 779          case 109: {
 780            PaddingBottom = input.ReadFloat();
 781            break;
 782          }
 783          case 117: {
 784            PaddingLeft = input.ReadFloat();
 785            break;
 786          }
 787          case 125: {
 788            LineSpacing = input.ReadFloat();
 789            break;
 790          }
 791          case 128: {
 792            LineCount = input.ReadInt32();
 793            break;
 794          }
 795          case 136: {
 796            TextWrapping = input.ReadBool();
 797            break;
 798          }
 799          case 149: {
 800            ShadowBlur = input.ReadFloat();
 801            break;
 802          }
 803          case 157: {
 804            ShadowOffsetX = input.ReadFloat();
 805            break;
 806          }
 807          case 165: {
 808            ShadowOffsetY = input.ReadFloat();
 809            break;
 810          }
 811          case 173: {
 812            OutlineWidth = input.ReadFloat();
 813            break;
 814          }
 815          case 178: {
 816            if (shadowColor_ == null) {
 817              ShadowColor = new global::Color3();
 818            }
 819            input.ReadMessage(ShadowColor);
 820            break;
 821          }
 822          case 186: {
 823            if (outlineColor_ == null) {
 824              OutlineColor = new global::Color3();
 825            }
 826            input.ReadMessage(OutlineColor);
 827            break;
 828          }
 829          case 194: {
 830            if (textColor_ == null) {
 831              TextColor = new global::Color3();
 832            }
 833            input.ReadMessage(TextColor);
 834            break;
 835          }
 836        }
 837      }
 838    }
 839
 840  }
 841
 842  #endregion
 843
 844}
 845
 846#endregion Designer generated code

Methods/Properties

Descriptor()
TextShapeReflection()