< Summary

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

Metrics

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

File(s)

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

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: decentraland/sdk/components/ui_input.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_input.proto</summary>
 15  public static partial class UiInputReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for decentraland/sdk/components/ui_input.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 020      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static UiInputReflection() {
 025      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "CipkZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvdWlfaW5wdXQucHJvdG8S",
 28            "G2RlY2VudHJhbGFuZC5zZGsuY29tcG9uZW50cxogZGVjZW50cmFsYW5kL2Nv",
 29            "bW1vbi9jb2xvcnMucHJvdG8aLmRlY2VudHJhbGFuZC9zZGsvY29tcG9uZW50",
 30            "cy9jb21tb24vdGV4dHMucHJvdG8ihwMKCVBCVWlJbnB1dBITCgtwbGFjZWhv",
 31            "bGRlchgBIAEoCRIvCgVjb2xvchgCIAEoCzIbLmRlY2VudHJhbGFuZC5jb21t",
 32            "b24uQ29sb3I0SACIAQESOwoRcGxhY2Vob2xkZXJfY29sb3IYAyABKAsyGy5k",
 33            "ZWNlbnRyYWxhbmQuY29tbW9uLkNvbG9yNEgBiAEBEhAKCGRpc2FibGVkGAQg",
 34            "ASgIEkoKCnRleHRfYWxpZ24YCiABKA4yMS5kZWNlbnRyYWxhbmQuc2RrLmNv",
 35            "bXBvbmVudHMuY29tbW9uLlRleHRBbGlnbk1vZGVIAogBARI7CgRmb250GAsg",
 36            "ASgOMiguZGVjZW50cmFsYW5kLnNkay5jb21wb25lbnRzLmNvbW1vbi5Gb250",
 37            "SAOIAQESFgoJZm9udF9zaXplGAwgASgFSASIAQFCCAoGX2NvbG9yQhQKEl9w",
 38            "bGFjZWhvbGRlcl9jb2xvckINCgtfdGV4dF9hbGlnbkIHCgVfZm9udEIMCgpf",
 39            "Zm9udF9zaXplQhSqAhFEQ0wuRUNTQ29tcG9uZW50c2IGcHJvdG8z"));
 040      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 41          new pbr::FileDescriptor[] { global::Decentraland.Common.ColorsReflection.Descriptor, global::DCL.ECSComponents
 42          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 43            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBUiInput), global::DCL.ECSComponents.PBUiInp
 44          }));
 045    }
 46    #endregion
 47
 48  }
 49  #region Messages
 50  public sealed partial class PBUiInput : pb::IMessage<PBUiInput>
 51  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 52      , pb::IBufferMessage
 53  #endif
 54  {
 55    private static readonly pb::MessageParser<PBUiInput> _parser = new pb::MessageParser<PBUiInput>(() => new PBUiInput(
 56    private pb::UnknownFieldSet _unknownFields;
 57    private int _hasBits0;
 58    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 59    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 60    public static pb::MessageParser<PBUiInput> Parser { get { return _parser; } }
 61
 62    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 63    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 64    public static pbr::MessageDescriptor Descriptor {
 65      get { return global::DCL.ECSComponents.UiInputReflection.Descriptor.MessageTypes[0]; }
 66    }
 67
 68    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 69    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 70    pbr::MessageDescriptor pb::IMessage.Descriptor {
 71      get { return Descriptor; }
 72    }
 73
 74    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 75    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 76    public PBUiInput() {
 77      OnConstruction();
 78    }
 79
 80    partial void OnConstruction();
 81
 82    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 83    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 84    public PBUiInput(PBUiInput other) : this() {
 85      _hasBits0 = other._hasBits0;
 86      placeholder_ = other.placeholder_;
 87      color_ = other.color_ != null ? other.color_.Clone() : null;
 88      placeholderColor_ = other.placeholderColor_ != null ? other.placeholderColor_.Clone() : null;
 89      disabled_ = other.disabled_;
 90      textAlign_ = other.textAlign_;
 91      font_ = other.font_;
 92      fontSize_ = other.fontSize_;
 93      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 94    }
 95
 96    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 97    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 98    public PBUiInput Clone() {
 99      return new PBUiInput(this);
 100    }
 101
 102    /// <summary>Field number for the "placeholder" field.</summary>
 103    public const int PlaceholderFieldNumber = 1;
 104    private string placeholder_ = "";
 105    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 106    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 107    public string Placeholder {
 108      get { return placeholder_; }
 109      set {
 110        placeholder_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 111      }
 112    }
 113
 114    /// <summary>Field number for the "color" field.</summary>
 115    public const int ColorFieldNumber = 2;
 116    private global::Decentraland.Common.Color4 color_;
 117    /// <summary>
 118    /// default=(0.0,0.0,0.0,1.0)
 119    /// </summary>
 120    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 121    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 122    public global::Decentraland.Common.Color4 Color {
 123      get { return color_; }
 124      set {
 125        color_ = value;
 126      }
 127    }
 128
 129    /// <summary>Field number for the "placeholder_color" field.</summary>
 130    public const int PlaceholderColorFieldNumber = 3;
 131    private global::Decentraland.Common.Color4 placeholderColor_;
 132    /// <summary>
 133    /// default=(0.3,0.3,0.3,1.0)
 134    /// </summary>
 135    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 136    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 137    public global::Decentraland.Common.Color4 PlaceholderColor {
 138      get { return placeholderColor_; }
 139      set {
 140        placeholderColor_ = value;
 141      }
 142    }
 143
 144    /// <summary>Field number for the "disabled" field.</summary>
 145    public const int DisabledFieldNumber = 4;
 146    private bool disabled_;
 147    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 148    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 149    public bool Disabled {
 150      get { return disabled_; }
 151      set {
 152        disabled_ = value;
 153      }
 154    }
 155
 156    /// <summary>Field number for the "text_align" field.</summary>
 157    public const int TextAlignFieldNumber = 10;
 158    private global::DCL.ECSComponents.TextAlignMode textAlign_;
 159    /// <summary>
 160    /// default='center'
 161    /// </summary>
 162    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 163    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 164    public global::DCL.ECSComponents.TextAlignMode TextAlign {
 165      get { if ((_hasBits0 & 1) != 0) { return textAlign_; } else { return global::DCL.ECSComponents.TextAlignMode.TamTo
 166      set {
 167        _hasBits0 |= 1;
 168        textAlign_ = value;
 169      }
 170    }
 171    /// <summary>Gets whether the "text_align" field is set</summary>
 172    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 173    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 174    public bool HasTextAlign {
 175      get { return (_hasBits0 & 1) != 0; }
 176    }
 177    /// <summary>Clears the value of the "text_align" field</summary>
 178    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 179    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 180    public void ClearTextAlign() {
 181      _hasBits0 &= ~1;
 182    }
 183
 184    /// <summary>Field number for the "font" field.</summary>
 185    public const int FontFieldNumber = 11;
 186    private global::DCL.ECSComponents.Font font_;
 187    /// <summary>
 188    /// default=0
 189    /// </summary>
 190    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 191    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 192    public global::DCL.ECSComponents.Font Font {
 193      get { if ((_hasBits0 & 2) != 0) { return font_; } else { return global::DCL.ECSComponents.Font.FSansSerif; } }
 194      set {
 195        _hasBits0 |= 2;
 196        font_ = value;
 197      }
 198    }
 199    /// <summary>Gets whether the "font" field is set</summary>
 200    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 201    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 202    public bool HasFont {
 203      get { return (_hasBits0 & 2) != 0; }
 204    }
 205    /// <summary>Clears the value of the "font" field</summary>
 206    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 207    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 208    public void ClearFont() {
 209      _hasBits0 &= ~2;
 210    }
 211
 212    /// <summary>Field number for the "font_size" field.</summary>
 213    public const int FontSizeFieldNumber = 12;
 214    private int fontSize_;
 215    /// <summary>
 216    /// default=10
 217    /// </summary>
 218    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 219    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 220    public int FontSize {
 221      get { if ((_hasBits0 & 4) != 0) { return fontSize_; } else { return 0; } }
 222      set {
 223        _hasBits0 |= 4;
 224        fontSize_ = value;
 225      }
 226    }
 227    /// <summary>Gets whether the "font_size" field is set</summary>
 228    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 229    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 230    public bool HasFontSize {
 231      get { return (_hasBits0 & 4) != 0; }
 232    }
 233    /// <summary>Clears the value of the "font_size" field</summary>
 234    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 235    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 236    public void ClearFontSize() {
 237      _hasBits0 &= ~4;
 238    }
 239
 240    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 241    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 242    public override bool Equals(object other) {
 243      return Equals(other as PBUiInput);
 244    }
 245
 246    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 247    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 248    public bool Equals(PBUiInput other) {
 249      if (ReferenceEquals(other, null)) {
 250        return false;
 251      }
 252      if (ReferenceEquals(other, this)) {
 253        return true;
 254      }
 255      if (Placeholder != other.Placeholder) return false;
 256      if (!object.Equals(Color, other.Color)) return false;
 257      if (!object.Equals(PlaceholderColor, other.PlaceholderColor)) return false;
 258      if (Disabled != other.Disabled) return false;
 259      if (TextAlign != other.TextAlign) return false;
 260      if (Font != other.Font) return false;
 261      if (FontSize != other.FontSize) return false;
 262      return Equals(_unknownFields, other._unknownFields);
 263    }
 264
 265    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 266    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 267    public override int GetHashCode() {
 268      int hash = 1;
 269      if (Placeholder.Length != 0) hash ^= Placeholder.GetHashCode();
 270      if (color_ != null) hash ^= Color.GetHashCode();
 271      if (placeholderColor_ != null) hash ^= PlaceholderColor.GetHashCode();
 272      if (Disabled != false) hash ^= Disabled.GetHashCode();
 273      if (HasTextAlign) hash ^= TextAlign.GetHashCode();
 274      if (HasFont) hash ^= Font.GetHashCode();
 275      if (HasFontSize) hash ^= FontSize.GetHashCode();
 276      if (_unknownFields != null) {
 277        hash ^= _unknownFields.GetHashCode();
 278      }
 279      return hash;
 280    }
 281
 282    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 283    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 284    public override string ToString() {
 285      return pb::JsonFormatter.ToDiagnosticString(this);
 286    }
 287
 288    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 289    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 290    public void WriteTo(pb::CodedOutputStream output) {
 291    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 292      output.WriteRawMessage(this);
 293    #else
 294      if (Placeholder.Length != 0) {
 295        output.WriteRawTag(10);
 296        output.WriteString(Placeholder);
 297      }
 298      if (color_ != null) {
 299        output.WriteRawTag(18);
 300        output.WriteMessage(Color);
 301      }
 302      if (placeholderColor_ != null) {
 303        output.WriteRawTag(26);
 304        output.WriteMessage(PlaceholderColor);
 305      }
 306      if (Disabled != false) {
 307        output.WriteRawTag(32);
 308        output.WriteBool(Disabled);
 309      }
 310      if (HasTextAlign) {
 311        output.WriteRawTag(80);
 312        output.WriteEnum((int) TextAlign);
 313      }
 314      if (HasFont) {
 315        output.WriteRawTag(88);
 316        output.WriteEnum((int) Font);
 317      }
 318      if (HasFontSize) {
 319        output.WriteRawTag(96);
 320        output.WriteInt32(FontSize);
 321      }
 322      if (_unknownFields != null) {
 323        _unknownFields.WriteTo(output);
 324      }
 325    #endif
 326    }
 327
 328    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 329    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 330    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 331    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 332      if (Placeholder.Length != 0) {
 333        output.WriteRawTag(10);
 334        output.WriteString(Placeholder);
 335      }
 336      if (color_ != null) {
 337        output.WriteRawTag(18);
 338        output.WriteMessage(Color);
 339      }
 340      if (placeholderColor_ != null) {
 341        output.WriteRawTag(26);
 342        output.WriteMessage(PlaceholderColor);
 343      }
 344      if (Disabled != false) {
 345        output.WriteRawTag(32);
 346        output.WriteBool(Disabled);
 347      }
 348      if (HasTextAlign) {
 349        output.WriteRawTag(80);
 350        output.WriteEnum((int) TextAlign);
 351      }
 352      if (HasFont) {
 353        output.WriteRawTag(88);
 354        output.WriteEnum((int) Font);
 355      }
 356      if (HasFontSize) {
 357        output.WriteRawTag(96);
 358        output.WriteInt32(FontSize);
 359      }
 360      if (_unknownFields != null) {
 361        _unknownFields.WriteTo(ref output);
 362      }
 363    }
 364    #endif
 365
 366    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 367    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 368    public int CalculateSize() {
 369      int size = 0;
 370      if (Placeholder.Length != 0) {
 371        size += 1 + pb::CodedOutputStream.ComputeStringSize(Placeholder);
 372      }
 373      if (color_ != null) {
 374        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Color);
 375      }
 376      if (placeholderColor_ != null) {
 377        size += 1 + pb::CodedOutputStream.ComputeMessageSize(PlaceholderColor);
 378      }
 379      if (Disabled != false) {
 380        size += 1 + 1;
 381      }
 382      if (HasTextAlign) {
 383        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) TextAlign);
 384      }
 385      if (HasFont) {
 386        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Font);
 387      }
 388      if (HasFontSize) {
 389        size += 1 + pb::CodedOutputStream.ComputeInt32Size(FontSize);
 390      }
 391      if (_unknownFields != null) {
 392        size += _unknownFields.CalculateSize();
 393      }
 394      return size;
 395    }
 396
 397    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 398    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 399    public void MergeFrom(PBUiInput other) {
 400      if (other == null) {
 401        return;
 402      }
 403      if (other.Placeholder.Length != 0) {
 404        Placeholder = other.Placeholder;
 405      }
 406      if (other.color_ != null) {
 407        if (color_ == null) {
 408          Color = new global::Decentraland.Common.Color4();
 409        }
 410        Color.MergeFrom(other.Color);
 411      }
 412      if (other.placeholderColor_ != null) {
 413        if (placeholderColor_ == null) {
 414          PlaceholderColor = new global::Decentraland.Common.Color4();
 415        }
 416        PlaceholderColor.MergeFrom(other.PlaceholderColor);
 417      }
 418      if (other.Disabled != false) {
 419        Disabled = other.Disabled;
 420      }
 421      if (other.HasTextAlign) {
 422        TextAlign = other.TextAlign;
 423      }
 424      if (other.HasFont) {
 425        Font = other.Font;
 426      }
 427      if (other.HasFontSize) {
 428        FontSize = other.FontSize;
 429      }
 430      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 431    }
 432
 433    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 434    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 435    public void MergeFrom(pb::CodedInputStream input) {
 436    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 437      input.ReadRawMessage(this);
 438    #else
 439      uint tag;
 440      while ((tag = input.ReadTag()) != 0) {
 441        switch(tag) {
 442          default:
 443            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 444            break;
 445          case 10: {
 446            Placeholder = input.ReadString();
 447            break;
 448          }
 449          case 18: {
 450            if (color_ == null) {
 451              Color = new global::Decentraland.Common.Color4();
 452            }
 453            input.ReadMessage(Color);
 454            break;
 455          }
 456          case 26: {
 457            if (placeholderColor_ == null) {
 458              PlaceholderColor = new global::Decentraland.Common.Color4();
 459            }
 460            input.ReadMessage(PlaceholderColor);
 461            break;
 462          }
 463          case 32: {
 464            Disabled = input.ReadBool();
 465            break;
 466          }
 467          case 80: {
 468            TextAlign = (global::DCL.ECSComponents.TextAlignMode) input.ReadEnum();
 469            break;
 470          }
 471          case 88: {
 472            Font = (global::DCL.ECSComponents.Font) input.ReadEnum();
 473            break;
 474          }
 475          case 96: {
 476            FontSize = input.ReadInt32();
 477            break;
 478          }
 479        }
 480      }
 481    #endif
 482    }
 483
 484    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 485    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 486    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 487    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 488      uint tag;
 489      while ((tag = input.ReadTag()) != 0) {
 490        switch(tag) {
 491          default:
 492            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 493            break;
 494          case 10: {
 495            Placeholder = input.ReadString();
 496            break;
 497          }
 498          case 18: {
 499            if (color_ == null) {
 500              Color = new global::Decentraland.Common.Color4();
 501            }
 502            input.ReadMessage(Color);
 503            break;
 504          }
 505          case 26: {
 506            if (placeholderColor_ == null) {
 507              PlaceholderColor = new global::Decentraland.Common.Color4();
 508            }
 509            input.ReadMessage(PlaceholderColor);
 510            break;
 511          }
 512          case 32: {
 513            Disabled = input.ReadBool();
 514            break;
 515          }
 516          case 80: {
 517            TextAlign = (global::DCL.ECSComponents.TextAlignMode) input.ReadEnum();
 518            break;
 519          }
 520          case 88: {
 521            Font = (global::DCL.ECSComponents.Font) input.ReadEnum();
 522            break;
 523          }
 524          case 96: {
 525            FontSize = input.ReadInt32();
 526            break;
 527          }
 528        }
 529      }
 530    }
 531    #endif
 532
 533  }
 534
 535  #endregion
 536
 537}
 538
 539#endregion Designer generated code

Methods/Properties

Descriptor()
UiInputReflection()