< Summary

Class:DCL.ECSComponents.PBUiText
Assembly:Decentraland.Protocol.GeneratedCode
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/UiText.gen.cs
Covered lines:22
Uncovered lines:125
Coverable lines:147
Total lines:518
Line coverage:14.9% (22 of 147)
Covered branches:0
Total branches:0
Covered methods:14
Total methods:35
Method coverage:40% (14 of 35)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
PBUiText()0%110100%
get_Descriptor()0%2100%
PBUiText(...)0%12300%
Clone()0%2100%
PBUiText()0%110100%
ClearTextAlign()0%2100%
ClearFont()0%2100%
ClearFontSize()0%2100%
ClearTextWrap()0%2100%
Equals(...)0%2100%
Equals(...)0%90900%
GetHashCode()0%72800%
ToString()0%2100%
WriteTo(...)0%72800%
CalculateSize()0%72800%
MergeFrom(...)0%90900%
MergeFrom(...)0%1101000%

File(s)

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

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: decentraland/sdk/components/ui_text.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_text.proto</summary>
 15  public static partial class UiTextReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for decentraland/sdk/components/ui_text.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static UiTextReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "CilkZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvdWlfdGV4dC5wcm90bxIb",
 28            "ZGVjZW50cmFsYW5kLnNkay5jb21wb25lbnRzGiBkZWNlbnRyYWxhbmQvY29t",
 29            "bW9uL2NvbG9ycy5wcm90bxouZGVjZW50cmFsYW5kL3Nkay9jb21wb25lbnRz",
 30            "L2NvbW1vbi90ZXh0cy5wcm90byLoAgoIUEJVaVRleHQSDQoFdmFsdWUYASAB",
 31            "KAkSLwoFY29sb3IYAiABKAsyGy5kZWNlbnRyYWxhbmQuY29tbW9uLkNvbG9y",
 32            "NEgAiAEBEkoKCnRleHRfYWxpZ24YAyABKA4yMS5kZWNlbnRyYWxhbmQuc2Rr",
 33            "LmNvbXBvbmVudHMuY29tbW9uLlRleHRBbGlnbk1vZGVIAYgBARI7CgRmb250",
 34            "GAQgASgOMiguZGVjZW50cmFsYW5kLnNkay5jb21wb25lbnRzLmNvbW1vbi5G",
 35            "b250SAKIAQESFgoJZm9udF9zaXplGAUgASgFSAOIAQESPQoJdGV4dF93cmFw",
 36            "GAYgASgOMiUuZGVjZW50cmFsYW5kLnNkay5jb21wb25lbnRzLlRleHRXcmFw",
 37            "SASIAQFCCAoGX2NvbG9yQg0KC190ZXh0X2FsaWduQgcKBV9mb250QgwKCl9m",
 38            "b250X3NpemVCDAoKX3RleHRfd3JhcConCghUZXh0V3JhcBILCgdUV19XUkFQ",
 39            "EAASDgoKVFdfTk9fV1JBUBABQhSqAhFEQ0wuRUNTQ29tcG9uZW50c2IGcHJv",
 40            "dG8z"));
 41      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 42          new pbr::FileDescriptor[] { global::Decentraland.Common.ColorsReflection.Descriptor, global::DCL.ECSComponents
 43          new pbr::GeneratedClrTypeInfo(new[] {typeof(global::DCL.ECSComponents.TextWrap), }, null, new pbr::GeneratedCl
 44            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBUiText), global::DCL.ECSComponents.PBUiText
 45          }));
 46    }
 47    #endregion
 48
 49  }
 50  #region Enums
 51  public enum TextWrap {
 52    [pbr::OriginalName("TW_WRAP")] TwWrap = 0,
 53    [pbr::OriginalName("TW_NO_WRAP")] TwNoWrap = 1,
 54  }
 55
 56  #endregion
 57
 58  #region Messages
 59  public sealed partial class PBUiText : pb::IMessage<PBUiText>
 60  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 61      , pb::IBufferMessage
 62  #endif
 63  {
 164    private static readonly pb::MessageParser<PBUiText> _parser = new pb::MessageParser<PBUiText>(() => new PBUiText());
 65    private pb::UnknownFieldSet _unknownFields;
 66    private int _hasBits0;
 67    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 68    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 069    public static pb::MessageParser<PBUiText> Parser { get { return _parser; } }
 70
 71    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 72    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 73    public static pbr::MessageDescriptor Descriptor {
 074      get { return global::DCL.ECSComponents.UiTextReflection.Descriptor.MessageTypes[0]; }
 75    }
 76
 77    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 78    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 79    pbr::MessageDescriptor pb::IMessage.Descriptor {
 080      get { return Descriptor; }
 81    }
 82
 83    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 84    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 185    public PBUiText() {
 86      OnConstruction();
 187    }
 88
 89    partial void OnConstruction();
 90
 91    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 92    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 093    public PBUiText(PBUiText other) : this() {
 094      _hasBits0 = other._hasBits0;
 095      value_ = other.value_;
 096      color_ = other.color_ != null ? other.color_.Clone() : null;
 097      textAlign_ = other.textAlign_;
 098      font_ = other.font_;
 099      fontSize_ = other.fontSize_;
 0100      textWrap_ = other.textWrap_;
 0101      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 0102    }
 103
 104    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 105    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 106    public PBUiText Clone() {
 0107      return new PBUiText(this);
 108    }
 109
 110    /// <summary>Field number for the "value" field.</summary>
 111    public const int ValueFieldNumber = 1;
 1112    private string value_ = "";
 113    /// <summary>
 114    /// the text content, tag &lt;b> and &lt;i> are supported
 115    /// </summary>
 116    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 117    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 118    public string Value {
 1119      get { return value_; }
 120      set {
 1121        value_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 1122      }
 123    }
 124
 125    /// <summary>Field number for the "color" field.</summary>
 126    public const int ColorFieldNumber = 2;
 127    private global::Decentraland.Common.Color4 color_;
 128    /// <summary>
 129    /// RGBA color (default: opaque white)
 130    /// </summary>
 131    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 132    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 133    public global::Decentraland.Common.Color4 Color {
 1134      get { return color_; }
 135      set {
 1136        color_ = value;
 1137      }
 138    }
 139
 140    /// <summary>Field number for the "text_align" field.</summary>
 141    public const int TextAlignFieldNumber = 3;
 142    private global::DCL.ECSComponents.TextAlignMode textAlign_;
 143    /// <summary>
 144    /// alignment within the bounds (default: center)
 145    /// </summary>
 146    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 147    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 148    public global::DCL.ECSComponents.TextAlignMode TextAlign {
 2149      get { if ((_hasBits0 & 1) != 0) { return textAlign_; } else { return global::DCL.ECSComponents.TextAlignMode.TamTo
 150      set {
 1151        _hasBits0 |= 1;
 1152        textAlign_ = value;
 1153      }
 154    }
 155    /// <summary>Gets whether the "text_align" field is set</summary>
 156    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 157    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 158    public bool HasTextAlign {
 1159      get { return (_hasBits0 & 1) != 0; }
 160    }
 161    /// <summary>Clears the value of the "text_align" field</summary>
 162    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 163    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 164    public void ClearTextAlign() {
 0165      _hasBits0 &= ~1;
 0166    }
 167
 168    /// <summary>Field number for the "font" field.</summary>
 169    public const int FontFieldNumber = 4;
 170    private global::DCL.ECSComponents.Font font_;
 171    /// <summary>
 172    /// font for the text (default: sans-serif)
 173    /// </summary>
 174    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 175    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 176    public global::DCL.ECSComponents.Font Font {
 0177      get { if ((_hasBits0 & 2) != 0) { return font_; } else { return global::DCL.ECSComponents.Font.FSansSerif; } }
 178      set {
 0179        _hasBits0 |= 2;
 0180        font_ = value;
 0181      }
 182    }
 183    /// <summary>Gets whether the "font" field is set</summary>
 184    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 185    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 186    public bool HasFont {
 1187      get { return (_hasBits0 & 2) != 0; }
 188    }
 189    /// <summary>Clears the value of the "font" field</summary>
 190    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 191    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 192    public void ClearFont() {
 0193      _hasBits0 &= ~2;
 0194    }
 195
 196    /// <summary>Field number for the "font_size" field.</summary>
 197    public const int FontSizeFieldNumber = 5;
 198    private int fontSize_;
 199    /// <summary>
 200    /// size of the text (default: 10)
 201    /// </summary>
 202    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 203    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 204    public int FontSize {
 2205      get { if ((_hasBits0 & 4) != 0) { return fontSize_; } else { return 0; } }
 206      set {
 1207        _hasBits0 |= 4;
 1208        fontSize_ = value;
 1209      }
 210    }
 211    /// <summary>Gets whether the "font_size" field is set</summary>
 212    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 213    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 214    public bool HasFontSize {
 1215      get { return (_hasBits0 & 4) != 0; }
 216    }
 217    /// <summary>Clears the value of the "font_size" field</summary>
 218    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 219    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 220    public void ClearFontSize() {
 0221      _hasBits0 &= ~4;
 0222    }
 223
 224    /// <summary>Field number for the "text_wrap" field.</summary>
 225    public const int TextWrapFieldNumber = 6;
 226    private global::DCL.ECSComponents.TextWrap textWrap_;
 227    /// <summary>
 228    /// wrap text when the border is reached (default: TW_WRAP)
 229    /// </summary>
 230    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 231    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 232    public global::DCL.ECSComponents.TextWrap TextWrap {
 0233      get { if ((_hasBits0 & 8) != 0) { return textWrap_; } else { return global::DCL.ECSComponents.TextWrap.TwWrap; } }
 234      set {
 0235        _hasBits0 |= 8;
 0236        textWrap_ = value;
 0237      }
 238    }
 239    /// <summary>Gets whether the "text_wrap" field is set</summary>
 240    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 241    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 242    public bool HasTextWrap {
 1243      get { return (_hasBits0 & 8) != 0; }
 244    }
 245    /// <summary>Clears the value of the "text_wrap" field</summary>
 246    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 247    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 248    public void ClearTextWrap() {
 0249      _hasBits0 &= ~8;
 0250    }
 251
 252    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 253    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 254    public override bool Equals(object other) {
 0255      return Equals(other as PBUiText);
 256    }
 257
 258    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 259    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 260    public bool Equals(PBUiText other) {
 0261      if (ReferenceEquals(other, null)) {
 0262        return false;
 263      }
 0264      if (ReferenceEquals(other, this)) {
 0265        return true;
 266      }
 0267      if (Value != other.Value) return false;
 0268      if (!object.Equals(Color, other.Color)) return false;
 0269      if (TextAlign != other.TextAlign) return false;
 0270      if (Font != other.Font) return false;
 0271      if (FontSize != other.FontSize) return false;
 0272      if (TextWrap != other.TextWrap) return false;
 0273      return Equals(_unknownFields, other._unknownFields);
 274    }
 275
 276    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 277    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 278    public override int GetHashCode() {
 0279      int hash = 1;
 0280      if (Value.Length != 0) hash ^= Value.GetHashCode();
 0281      if (color_ != null) hash ^= Color.GetHashCode();
 0282      if (HasTextAlign) hash ^= TextAlign.GetHashCode();
 0283      if (HasFont) hash ^= Font.GetHashCode();
 0284      if (HasFontSize) hash ^= FontSize.GetHashCode();
 0285      if (HasTextWrap) hash ^= TextWrap.GetHashCode();
 0286      if (_unknownFields != null) {
 0287        hash ^= _unknownFields.GetHashCode();
 288      }
 0289      return hash;
 290    }
 291
 292    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 293    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 294    public override string ToString() {
 0295      return pb::JsonFormatter.ToDiagnosticString(this);
 296    }
 297
 298    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 299    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 300    public void WriteTo(pb::CodedOutputStream output) {
 301    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 302      output.WriteRawMessage(this);
 303    #else
 0304      if (Value.Length != 0) {
 0305        output.WriteRawTag(10);
 0306        output.WriteString(Value);
 307      }
 0308      if (color_ != null) {
 0309        output.WriteRawTag(18);
 0310        output.WriteMessage(Color);
 311      }
 0312      if (HasTextAlign) {
 0313        output.WriteRawTag(24);
 0314        output.WriteEnum((int) TextAlign);
 315      }
 0316      if (HasFont) {
 0317        output.WriteRawTag(32);
 0318        output.WriteEnum((int) Font);
 319      }
 0320      if (HasFontSize) {
 0321        output.WriteRawTag(40);
 0322        output.WriteInt32(FontSize);
 323      }
 0324      if (HasTextWrap) {
 0325        output.WriteRawTag(48);
 0326        output.WriteEnum((int) TextWrap);
 327      }
 0328      if (_unknownFields != null) {
 0329        _unknownFields.WriteTo(output);
 330      }
 331    #endif
 0332    }
 333
 334    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 335    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 336    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 337    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 338      if (Value.Length != 0) {
 339        output.WriteRawTag(10);
 340        output.WriteString(Value);
 341      }
 342      if (color_ != null) {
 343        output.WriteRawTag(18);
 344        output.WriteMessage(Color);
 345      }
 346      if (HasTextAlign) {
 347        output.WriteRawTag(24);
 348        output.WriteEnum((int) TextAlign);
 349      }
 350      if (HasFont) {
 351        output.WriteRawTag(32);
 352        output.WriteEnum((int) Font);
 353      }
 354      if (HasFontSize) {
 355        output.WriteRawTag(40);
 356        output.WriteInt32(FontSize);
 357      }
 358      if (HasTextWrap) {
 359        output.WriteRawTag(48);
 360        output.WriteEnum((int) TextWrap);
 361      }
 362      if (_unknownFields != null) {
 363        _unknownFields.WriteTo(ref output);
 364      }
 365    }
 366    #endif
 367
 368    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 369    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 370    public int CalculateSize() {
 0371      int size = 0;
 0372      if (Value.Length != 0) {
 0373        size += 1 + pb::CodedOutputStream.ComputeStringSize(Value);
 374      }
 0375      if (color_ != null) {
 0376        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Color);
 377      }
 0378      if (HasTextAlign) {
 0379        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) TextAlign);
 380      }
 0381      if (HasFont) {
 0382        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Font);
 383      }
 0384      if (HasFontSize) {
 0385        size += 1 + pb::CodedOutputStream.ComputeInt32Size(FontSize);
 386      }
 0387      if (HasTextWrap) {
 0388        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) TextWrap);
 389      }
 0390      if (_unknownFields != null) {
 0391        size += _unknownFields.CalculateSize();
 392      }
 0393      return size;
 394    }
 395
 396    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 397    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 398    public void MergeFrom(PBUiText other) {
 0399      if (other == null) {
 0400        return;
 401      }
 0402      if (other.Value.Length != 0) {
 0403        Value = other.Value;
 404      }
 0405      if (other.color_ != null) {
 0406        if (color_ == null) {
 0407          Color = new global::Decentraland.Common.Color4();
 408        }
 0409        Color.MergeFrom(other.Color);
 410      }
 0411      if (other.HasTextAlign) {
 0412        TextAlign = other.TextAlign;
 413      }
 0414      if (other.HasFont) {
 0415        Font = other.Font;
 416      }
 0417      if (other.HasFontSize) {
 0418        FontSize = other.FontSize;
 419      }
 0420      if (other.HasTextWrap) {
 0421        TextWrap = other.TextWrap;
 422      }
 0423      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0424    }
 425
 426    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 427    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 428    public void MergeFrom(pb::CodedInputStream input) {
 429    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 430      input.ReadRawMessage(this);
 431    #else
 432      uint tag;
 0433      while ((tag = input.ReadTag()) != 0) {
 434        switch(tag) {
 435          default:
 0436            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0437            break;
 438          case 10: {
 0439            Value = input.ReadString();
 0440            break;
 441          }
 442          case 18: {
 0443            if (color_ == null) {
 0444              Color = new global::Decentraland.Common.Color4();
 445            }
 0446            input.ReadMessage(Color);
 0447            break;
 448          }
 449          case 24: {
 0450            TextAlign = (global::DCL.ECSComponents.TextAlignMode) input.ReadEnum();
 0451            break;
 452          }
 453          case 32: {
 0454            Font = (global::DCL.ECSComponents.Font) input.ReadEnum();
 0455            break;
 456          }
 457          case 40: {
 0458            FontSize = input.ReadInt32();
 0459            break;
 460          }
 461          case 48: {
 0462            TextWrap = (global::DCL.ECSComponents.TextWrap) input.ReadEnum();
 463            break;
 464          }
 465        }
 466      }
 467    #endif
 0468    }
 469
 470    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 471    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 472    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 473    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 474      uint tag;
 475      while ((tag = input.ReadTag()) != 0) {
 476        switch(tag) {
 477          default:
 478            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 479            break;
 480          case 10: {
 481            Value = input.ReadString();
 482            break;
 483          }
 484          case 18: {
 485            if (color_ == null) {
 486              Color = new global::Decentraland.Common.Color4();
 487            }
 488            input.ReadMessage(Color);
 489            break;
 490          }
 491          case 24: {
 492            TextAlign = (global::DCL.ECSComponents.TextAlignMode) input.ReadEnum();
 493            break;
 494          }
 495          case 32: {
 496            Font = (global::DCL.ECSComponents.Font) input.ReadEnum();
 497            break;
 498          }
 499          case 40: {
 500            FontSize = input.ReadInt32();
 501            break;
 502          }
 503          case 48: {
 504            TextWrap = (global::DCL.ECSComponents.TextWrap) input.ReadEnum();
 505            break;
 506          }
 507        }
 508      }
 509    }
 510    #endif
 511
 512  }
 513
 514  #endregion
 515
 516}
 517
 518#endregion Designer generated code