< Summary

Class:DCL.ECSComponents.PBUiDropdown
Assembly:Decentraland.Protocol.GeneratedCode
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/UiDropdown.gen.cs
Covered lines:0
Uncovered lines:190
Coverable lines:190
Total lines:619
Line coverage:0% (0 of 190)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
PBUiDropdown()0%2100%
get_Descriptor()0%2100%
PBUiDropdown(...)0%12300%
Clone()0%2100%
ClearEmptyLabel()0%2100%
PBUiDropdown()0%2100%
ClearSelectedIndex()0%2100%
ClearTextAlign()0%2100%
ClearFont()0%2100%
ClearFontSize()0%2100%
Equals(...)0%2100%
Equals(...)0%1561200%
GetHashCode()0%1101000%
ToString()0%2100%
WriteTo(...)0%1101000%
CalculateSize()0%1101000%
MergeFrom(...)0%1321100%
MergeFrom(...)0%2401500%

File(s)

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

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: decentraland/sdk/components/ui_dropdown.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/ui_dropdown.proto</summary>
 15  public static partial class UiDropdownReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for decentraland/sdk/components/ui_dropdown.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static UiDropdownReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "Ci1kZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvdWlfZHJvcGRvd24ucHJv",
 28            "dG8SG2RlY2VudHJhbGFuZC5zZGsuY29tcG9uZW50cxogZGVjZW50cmFsYW5k",
 29            "L2NvbW1vbi9jb2xvcnMucHJvdG8aLmRlY2VudHJhbGFuZC9zZGsvY29tcG9u",
 30            "ZW50cy9jb21tb24vdGV4dHMucHJvdG8iowMKDFBCVWlEcm9wZG93bhIUCgxh",
 31            "Y2NlcHRfZW1wdHkYASABKAgSGAoLZW1wdHlfbGFiZWwYAiABKAlIAIgBARIP",
 32            "CgdvcHRpb25zGAMgAygJEhsKDnNlbGVjdGVkX2luZGV4GAQgASgFSAGIAQES",
 33            "EAoIZGlzYWJsZWQYBSABKAgSLwoFY29sb3IYBiABKAsyGy5kZWNlbnRyYWxh",
 34            "bmQuY29tbW9uLkNvbG9yNEgCiAEBEkoKCnRleHRfYWxpZ24YCiABKA4yMS5k",
 35            "ZWNlbnRyYWxhbmQuc2RrLmNvbXBvbmVudHMuY29tbW9uLlRleHRBbGlnbk1v",
 36            "ZGVIA4gBARI7CgRmb250GAsgASgOMiguZGVjZW50cmFsYW5kLnNkay5jb21w",
 37            "b25lbnRzLmNvbW1vbi5Gb250SASIAQESFgoJZm9udF9zaXplGAwgASgFSAWI",
 38            "AQFCDgoMX2VtcHR5X2xhYmVsQhEKD19zZWxlY3RlZF9pbmRleEIICgZfY29s",
 39            "b3JCDQoLX3RleHRfYWxpZ25CBwoFX2ZvbnRCDAoKX2ZvbnRfc2l6ZUIUqgIR",
 40            "RENMLkVDU0NvbXBvbmVudHNiBnByb3RvMw=="));
 41      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 42          new pbr::FileDescriptor[] { global::Decentraland.Common.ColorsReflection.Descriptor, global::DCL.ECSComponents
 43          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 44            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBUiDropdown), global::DCL.ECSComponents.PBUi
 45          }));
 46    }
 47    #endregion
 48
 49  }
 50  #region Messages
 51  public sealed partial class PBUiDropdown : pb::IMessage<PBUiDropdown>
 52  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 53      , pb::IBufferMessage
 54  #endif
 55  {
 056    private static readonly pb::MessageParser<PBUiDropdown> _parser = new pb::MessageParser<PBUiDropdown>(() => new PBUi
 57    private pb::UnknownFieldSet _unknownFields;
 58    private int _hasBits0;
 59    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 60    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 061    public static pb::MessageParser<PBUiDropdown> Parser { get { return _parser; } }
 62
 63    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 64    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 65    public static pbr::MessageDescriptor Descriptor {
 066      get { return global::DCL.ECSComponents.UiDropdownReflection.Descriptor.MessageTypes[0]; }
 67    }
 68
 69    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 70    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 71    pbr::MessageDescriptor pb::IMessage.Descriptor {
 072      get { return Descriptor; }
 73    }
 74
 75    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 76    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 077    public PBUiDropdown() {
 78      OnConstruction();
 079    }
 80
 81    partial void OnConstruction();
 82
 83    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 84    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 085    public PBUiDropdown(PBUiDropdown other) : this() {
 086      _hasBits0 = other._hasBits0;
 087      acceptEmpty_ = other.acceptEmpty_;
 088      emptyLabel_ = other.emptyLabel_;
 089      options_ = other.options_.Clone();
 090      selectedIndex_ = other.selectedIndex_;
 091      disabled_ = other.disabled_;
 092      color_ = other.color_ != null ? other.color_.Clone() : null;
 093      textAlign_ = other.textAlign_;
 094      font_ = other.font_;
 095      fontSize_ = other.fontSize_;
 096      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 097    }
 98
 99    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 100    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 101    public PBUiDropdown Clone() {
 0102      return new PBUiDropdown(this);
 103    }
 104
 105    /// <summary>Field number for the "accept_empty" field.</summary>
 106    public const int AcceptEmptyFieldNumber = 1;
 107    private bool acceptEmpty_;
 108    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 109    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 110    public bool AcceptEmpty {
 0111      get { return acceptEmpty_; }
 112      set {
 0113        acceptEmpty_ = value;
 0114      }
 115    }
 116
 117    /// <summary>Field number for the "empty_label" field.</summary>
 118    public const int EmptyLabelFieldNumber = 2;
 119    private string emptyLabel_;
 120    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 121    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 122    public string EmptyLabel {
 0123      get { return emptyLabel_ ?? ""; }
 124      set {
 0125        emptyLabel_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 0126      }
 127    }
 128    /// <summary>Gets whether the "empty_label" field is set</summary>
 129    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 130    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 131    public bool HasEmptyLabel {
 0132      get { return emptyLabel_ != null; }
 133    }
 134    /// <summary>Clears the value of the "empty_label" field</summary>
 135    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 136    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 137    public void ClearEmptyLabel() {
 0138      emptyLabel_ = null;
 0139    }
 140
 141    /// <summary>Field number for the "options" field.</summary>
 142    public const int OptionsFieldNumber = 3;
 0143    private static readonly pb::FieldCodec<string> _repeated_options_codec
 144        = pb::FieldCodec.ForString(26);
 0145    private readonly pbc::RepeatedField<string> options_ = new pbc::RepeatedField<string>();
 146    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 147    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 148    public pbc::RepeatedField<string> Options {
 0149      get { return options_; }
 150    }
 151
 152    /// <summary>Field number for the "selected_index" field.</summary>
 153    public const int SelectedIndexFieldNumber = 4;
 154    private int selectedIndex_;
 155    /// <summary>
 156    /// default=null when accept_empty==true; default=0 when accept_empty==false
 157    /// </summary>
 158    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 159    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 160    public int SelectedIndex {
 0161      get { if ((_hasBits0 & 1) != 0) { return selectedIndex_; } else { return 0; } }
 162      set {
 0163        _hasBits0 |= 1;
 0164        selectedIndex_ = value;
 0165      }
 166    }
 167    /// <summary>Gets whether the "selected_index" field is set</summary>
 168    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 169    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 170    public bool HasSelectedIndex {
 0171      get { return (_hasBits0 & 1) != 0; }
 172    }
 173    /// <summary>Clears the value of the "selected_index" field</summary>
 174    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 175    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 176    public void ClearSelectedIndex() {
 0177      _hasBits0 &= ~1;
 0178    }
 179
 180    /// <summary>Field number for the "disabled" field.</summary>
 181    public const int DisabledFieldNumber = 5;
 182    private bool disabled_;
 183    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 184    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 185    public bool Disabled {
 0186      get { return disabled_; }
 187      set {
 0188        disabled_ = value;
 0189      }
 190    }
 191
 192    /// <summary>Field number for the "color" field.</summary>
 193    public const int ColorFieldNumber = 6;
 194    private global::Decentraland.Common.Color4 color_;
 195    /// <summary>
 196    /// default=(0.0,0.0,0.0,1.0)
 197    /// </summary>
 198    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 199    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 200    public global::Decentraland.Common.Color4 Color {
 0201      get { return color_; }
 202      set {
 0203        color_ = value;
 0204      }
 205    }
 206
 207    /// <summary>Field number for the "text_align" field.</summary>
 208    public const int TextAlignFieldNumber = 10;
 209    private global::DCL.ECSComponents.TextAlignMode textAlign_;
 210    /// <summary>
 211    /// default='center'
 212    /// </summary>
 213    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 214    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 215    public global::DCL.ECSComponents.TextAlignMode TextAlign {
 0216      get { if ((_hasBits0 & 2) != 0) { return textAlign_; } else { return global::DCL.ECSComponents.TextAlignMode.TamTo
 217      set {
 0218        _hasBits0 |= 2;
 0219        textAlign_ = value;
 0220      }
 221    }
 222    /// <summary>Gets whether the "text_align" field is set</summary>
 223    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 224    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 225    public bool HasTextAlign {
 0226      get { return (_hasBits0 & 2) != 0; }
 227    }
 228    /// <summary>Clears the value of the "text_align" field</summary>
 229    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 230    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 231    public void ClearTextAlign() {
 0232      _hasBits0 &= ~2;
 0233    }
 234
 235    /// <summary>Field number for the "font" field.</summary>
 236    public const int FontFieldNumber = 11;
 237    private global::DCL.ECSComponents.Font font_;
 238    /// <summary>
 239    /// default=0
 240    /// </summary>
 241    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 242    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 243    public global::DCL.ECSComponents.Font Font {
 0244      get { if ((_hasBits0 & 4) != 0) { return font_; } else { return global::DCL.ECSComponents.Font.FSansSerif; } }
 245      set {
 0246        _hasBits0 |= 4;
 0247        font_ = value;
 0248      }
 249    }
 250    /// <summary>Gets whether the "font" field is set</summary>
 251    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 252    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 253    public bool HasFont {
 0254      get { return (_hasBits0 & 4) != 0; }
 255    }
 256    /// <summary>Clears the value of the "font" field</summary>
 257    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 258    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 259    public void ClearFont() {
 0260      _hasBits0 &= ~4;
 0261    }
 262
 263    /// <summary>Field number for the "font_size" field.</summary>
 264    public const int FontSizeFieldNumber = 12;
 265    private int fontSize_;
 266    /// <summary>
 267    /// default=10
 268    /// </summary>
 269    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 270    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 271    public int FontSize {
 0272      get { if ((_hasBits0 & 8) != 0) { return fontSize_; } else { return 0; } }
 273      set {
 0274        _hasBits0 |= 8;
 0275        fontSize_ = value;
 0276      }
 277    }
 278    /// <summary>Gets whether the "font_size" field is set</summary>
 279    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 280    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 281    public bool HasFontSize {
 0282      get { return (_hasBits0 & 8) != 0; }
 283    }
 284    /// <summary>Clears the value of the "font_size" field</summary>
 285    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 286    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 287    public void ClearFontSize() {
 0288      _hasBits0 &= ~8;
 0289    }
 290
 291    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 292    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 293    public override bool Equals(object other) {
 0294      return Equals(other as PBUiDropdown);
 295    }
 296
 297    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 298    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 299    public bool Equals(PBUiDropdown other) {
 0300      if (ReferenceEquals(other, null)) {
 0301        return false;
 302      }
 0303      if (ReferenceEquals(other, this)) {
 0304        return true;
 305      }
 0306      if (AcceptEmpty != other.AcceptEmpty) return false;
 0307      if (EmptyLabel != other.EmptyLabel) return false;
 0308      if(!options_.Equals(other.options_)) return false;
 0309      if (SelectedIndex != other.SelectedIndex) return false;
 0310      if (Disabled != other.Disabled) return false;
 0311      if (!object.Equals(Color, other.Color)) return false;
 0312      if (TextAlign != other.TextAlign) return false;
 0313      if (Font != other.Font) return false;
 0314      if (FontSize != other.FontSize) return false;
 0315      return Equals(_unknownFields, other._unknownFields);
 316    }
 317
 318    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 319    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 320    public override int GetHashCode() {
 0321      int hash = 1;
 0322      if (AcceptEmpty != false) hash ^= AcceptEmpty.GetHashCode();
 0323      if (HasEmptyLabel) hash ^= EmptyLabel.GetHashCode();
 0324      hash ^= options_.GetHashCode();
 0325      if (HasSelectedIndex) hash ^= SelectedIndex.GetHashCode();
 0326      if (Disabled != false) hash ^= Disabled.GetHashCode();
 0327      if (color_ != null) hash ^= Color.GetHashCode();
 0328      if (HasTextAlign) hash ^= TextAlign.GetHashCode();
 0329      if (HasFont) hash ^= Font.GetHashCode();
 0330      if (HasFontSize) hash ^= FontSize.GetHashCode();
 0331      if (_unknownFields != null) {
 0332        hash ^= _unknownFields.GetHashCode();
 333      }
 0334      return hash;
 335    }
 336
 337    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 338    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 339    public override string ToString() {
 0340      return pb::JsonFormatter.ToDiagnosticString(this);
 341    }
 342
 343    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 344    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 345    public void WriteTo(pb::CodedOutputStream output) {
 346    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 347      output.WriteRawMessage(this);
 348    #else
 0349      if (AcceptEmpty != false) {
 0350        output.WriteRawTag(8);
 0351        output.WriteBool(AcceptEmpty);
 352      }
 0353      if (HasEmptyLabel) {
 0354        output.WriteRawTag(18);
 0355        output.WriteString(EmptyLabel);
 356      }
 0357      options_.WriteTo(output, _repeated_options_codec);
 0358      if (HasSelectedIndex) {
 0359        output.WriteRawTag(32);
 0360        output.WriteInt32(SelectedIndex);
 361      }
 0362      if (Disabled != false) {
 0363        output.WriteRawTag(40);
 0364        output.WriteBool(Disabled);
 365      }
 0366      if (color_ != null) {
 0367        output.WriteRawTag(50);
 0368        output.WriteMessage(Color);
 369      }
 0370      if (HasTextAlign) {
 0371        output.WriteRawTag(80);
 0372        output.WriteEnum((int) TextAlign);
 373      }
 0374      if (HasFont) {
 0375        output.WriteRawTag(88);
 0376        output.WriteEnum((int) Font);
 377      }
 0378      if (HasFontSize) {
 0379        output.WriteRawTag(96);
 0380        output.WriteInt32(FontSize);
 381      }
 0382      if (_unknownFields != null) {
 0383        _unknownFields.WriteTo(output);
 384      }
 385    #endif
 0386    }
 387
 388    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 389    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 390    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 391    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 392      if (AcceptEmpty != false) {
 393        output.WriteRawTag(8);
 394        output.WriteBool(AcceptEmpty);
 395      }
 396      if (HasEmptyLabel) {
 397        output.WriteRawTag(18);
 398        output.WriteString(EmptyLabel);
 399      }
 400      options_.WriteTo(ref output, _repeated_options_codec);
 401      if (HasSelectedIndex) {
 402        output.WriteRawTag(32);
 403        output.WriteInt32(SelectedIndex);
 404      }
 405      if (Disabled != false) {
 406        output.WriteRawTag(40);
 407        output.WriteBool(Disabled);
 408      }
 409      if (color_ != null) {
 410        output.WriteRawTag(50);
 411        output.WriteMessage(Color);
 412      }
 413      if (HasTextAlign) {
 414        output.WriteRawTag(80);
 415        output.WriteEnum((int) TextAlign);
 416      }
 417      if (HasFont) {
 418        output.WriteRawTag(88);
 419        output.WriteEnum((int) Font);
 420      }
 421      if (HasFontSize) {
 422        output.WriteRawTag(96);
 423        output.WriteInt32(FontSize);
 424      }
 425      if (_unknownFields != null) {
 426        _unknownFields.WriteTo(ref output);
 427      }
 428    }
 429    #endif
 430
 431    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 432    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 433    public int CalculateSize() {
 0434      int size = 0;
 0435      if (AcceptEmpty != false) {
 0436        size += 1 + 1;
 437      }
 0438      if (HasEmptyLabel) {
 0439        size += 1 + pb::CodedOutputStream.ComputeStringSize(EmptyLabel);
 440      }
 0441      size += options_.CalculateSize(_repeated_options_codec);
 0442      if (HasSelectedIndex) {
 0443        size += 1 + pb::CodedOutputStream.ComputeInt32Size(SelectedIndex);
 444      }
 0445      if (Disabled != false) {
 0446        size += 1 + 1;
 447      }
 0448      if (color_ != null) {
 0449        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Color);
 450      }
 0451      if (HasTextAlign) {
 0452        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) TextAlign);
 453      }
 0454      if (HasFont) {
 0455        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Font);
 456      }
 0457      if (HasFontSize) {
 0458        size += 1 + pb::CodedOutputStream.ComputeInt32Size(FontSize);
 459      }
 0460      if (_unknownFields != null) {
 0461        size += _unknownFields.CalculateSize();
 462      }
 0463      return size;
 464    }
 465
 466    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 467    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 468    public void MergeFrom(PBUiDropdown other) {
 0469      if (other == null) {
 0470        return;
 471      }
 0472      if (other.AcceptEmpty != false) {
 0473        AcceptEmpty = other.AcceptEmpty;
 474      }
 0475      if (other.HasEmptyLabel) {
 0476        EmptyLabel = other.EmptyLabel;
 477      }
 0478      options_.Add(other.options_);
 0479      if (other.HasSelectedIndex) {
 0480        SelectedIndex = other.SelectedIndex;
 481      }
 0482      if (other.Disabled != false) {
 0483        Disabled = other.Disabled;
 484      }
 0485      if (other.color_ != null) {
 0486        if (color_ == null) {
 0487          Color = new global::Decentraland.Common.Color4();
 488        }
 0489        Color.MergeFrom(other.Color);
 490      }
 0491      if (other.HasTextAlign) {
 0492        TextAlign = other.TextAlign;
 493      }
 0494      if (other.HasFont) {
 0495        Font = other.Font;
 496      }
 0497      if (other.HasFontSize) {
 0498        FontSize = other.FontSize;
 499      }
 0500      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0501    }
 502
 503    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 504    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 505    public void MergeFrom(pb::CodedInputStream input) {
 506    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 507      input.ReadRawMessage(this);
 508    #else
 509      uint tag;
 0510      while ((tag = input.ReadTag()) != 0) {
 511        switch(tag) {
 512          default:
 0513            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0514            break;
 515          case 8: {
 0516            AcceptEmpty = input.ReadBool();
 0517            break;
 518          }
 519          case 18: {
 0520            EmptyLabel = input.ReadString();
 0521            break;
 522          }
 523          case 26: {
 0524            options_.AddEntriesFrom(input, _repeated_options_codec);
 0525            break;
 526          }
 527          case 32: {
 0528            SelectedIndex = input.ReadInt32();
 0529            break;
 530          }
 531          case 40: {
 0532            Disabled = input.ReadBool();
 0533            break;
 534          }
 535          case 50: {
 0536            if (color_ == null) {
 0537              Color = new global::Decentraland.Common.Color4();
 538            }
 0539            input.ReadMessage(Color);
 0540            break;
 541          }
 542          case 80: {
 0543            TextAlign = (global::DCL.ECSComponents.TextAlignMode) input.ReadEnum();
 0544            break;
 545          }
 546          case 88: {
 0547            Font = (global::DCL.ECSComponents.Font) input.ReadEnum();
 0548            break;
 549          }
 550          case 96: {
 0551            FontSize = input.ReadInt32();
 552            break;
 553          }
 554        }
 555      }
 556    #endif
 0557    }
 558
 559    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 560    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 561    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 562    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 563      uint tag;
 564      while ((tag = input.ReadTag()) != 0) {
 565        switch(tag) {
 566          default:
 567            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 568            break;
 569          case 8: {
 570            AcceptEmpty = input.ReadBool();
 571            break;
 572          }
 573          case 18: {
 574            EmptyLabel = input.ReadString();
 575            break;
 576          }
 577          case 26: {
 578            options_.AddEntriesFrom(ref input, _repeated_options_codec);
 579            break;
 580          }
 581          case 32: {
 582            SelectedIndex = input.ReadInt32();
 583            break;
 584          }
 585          case 40: {
 586            Disabled = input.ReadBool();
 587            break;
 588          }
 589          case 50: {
 590            if (color_ == null) {
 591              Color = new global::Decentraland.Common.Color4();
 592            }
 593            input.ReadMessage(Color);
 594            break;
 595          }
 596          case 80: {
 597            TextAlign = (global::DCL.ECSComponents.TextAlignMode) input.ReadEnum();
 598            break;
 599          }
 600          case 88: {
 601            Font = (global::DCL.ECSComponents.Font) input.ReadEnum();
 602            break;
 603          }
 604          case 96: {
 605            FontSize = input.ReadInt32();
 606            break;
 607          }
 608        }
 609      }
 610    }
 611    #endif
 612
 613  }
 614
 615  #endregion
 616
 617}
 618
 619#endregion Designer generated code