< Summary

Class:DCL.ECSComponents.PBAvatarModifierArea
Assembly:Decentraland.Protocol.GeneratedCode
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/AvatarModifierArea.gen.cs
Covered lines:39
Uncovered lines:38
Coverable lines:77
Total lines:310
Line coverage:50.6% (39 of 77)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
PBAvatarModifierArea()0%110100%
get_Descriptor()0%2100%
PBAvatarModifierArea(...)0%12300%
Clone()0%2100%
PBAvatarModifierArea()0%110100%
Equals(...)0%2100%
Equals(...)0%25.726018.18%
GetHashCode()0%12300%
ToString()0%2100%
WriteTo(...)0%3.023087.5%
CalculateSize()0%3.023087.5%
MergeFrom(...)0%20400%
MergeFrom(...)0%8.388081.82%

File(s)

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

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: decentraland/sdk/components/avatar_modifier_area.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/avatar_modifier_area.proto</
 15  public static partial class AvatarModifierAreaReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for decentraland/sdk/components/avatar_modifier_area.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static AvatarModifierAreaReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "CjZkZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvYXZhdGFyX21vZGlmaWVy",
 28            "X2FyZWEucHJvdG8SG2RlY2VudHJhbGFuZC5zZGsuY29tcG9uZW50cxohZGVj",
 29            "ZW50cmFsYW5kL2NvbW1vbi92ZWN0b3JzLnByb3RvIpsBChRQQkF2YXRhck1v",
 30            "ZGlmaWVyQXJlYRIqCgRhcmVhGAEgASgLMhwuZGVjZW50cmFsYW5kLmNvbW1v",
 31            "bi5WZWN0b3IzEhMKC2V4Y2x1ZGVfaWRzGAIgAygJEkIKCW1vZGlmaWVycxgD",
 32            "IAMoDjIvLmRlY2VudHJhbGFuZC5zZGsuY29tcG9uZW50cy5BdmF0YXJNb2Rp",
 33            "ZmllclR5cGUqRQoSQXZhdGFyTW9kaWZpZXJUeXBlEhQKEEFNVF9ISURFX0FW",
 34            "QVRBUlMQABIZChVBTVRfRElTQUJMRV9QQVNTUE9SVFMQAUIUqgIRRENMLkVD",
 35            "U0NvbXBvbmVudHNiBnByb3RvMw=="));
 36      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 37          new pbr::FileDescriptor[] { global::Decentraland.Common.VectorsReflection.Descriptor, },
 38          new pbr::GeneratedClrTypeInfo(new[] {typeof(global::DCL.ECSComponents.AvatarModifierType), }, null, new pbr::G
 39            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBAvatarModifierArea), global::DCL.ECSCompone
 40          }));
 41    }
 42    #endregion
 43
 44  }
 45  #region Enums
 46  public enum AvatarModifierType {
 47    [pbr::OriginalName("AMT_HIDE_AVATARS")] AmtHideAvatars = 0,
 48    [pbr::OriginalName("AMT_DISABLE_PASSPORTS")] AmtDisablePassports = 1,
 49  }
 50
 51  #endregion
 52
 53  #region Messages
 54  public sealed partial class PBAvatarModifierArea : pb::IMessage<PBAvatarModifierArea>
 55  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 56      , pb::IBufferMessage
 57  #endif
 58  {
 259    private static readonly pb::MessageParser<PBAvatarModifierArea> _parser = new pb::MessageParser<PBAvatarModifierArea
 60    private pb::UnknownFieldSet _unknownFields;
 61    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 62    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 163    public static pb::MessageParser<PBAvatarModifierArea> Parser { get { return _parser; } }
 64
 65    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 66    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 67    public static pbr::MessageDescriptor Descriptor {
 068      get { return global::DCL.ECSComponents.AvatarModifierAreaReflection.Descriptor.MessageTypes[0]; }
 69    }
 70
 71    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 72    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 73    pbr::MessageDescriptor pb::IMessage.Descriptor {
 074      get { return Descriptor; }
 75    }
 76
 77    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 78    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 579    public PBAvatarModifierArea() {
 80      OnConstruction();
 581    }
 82
 83    partial void OnConstruction();
 84
 85    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 86    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 087    public PBAvatarModifierArea(PBAvatarModifierArea other) : this() {
 088      area_ = other.area_ != null ? other.area_.Clone() : null;
 089      excludeIds_ = other.excludeIds_.Clone();
 090      modifiers_ = other.modifiers_.Clone();
 091      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 092    }
 93
 94    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 95    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 96    public PBAvatarModifierArea Clone() {
 097      return new PBAvatarModifierArea(this);
 98    }
 99
 100    /// <summary>Field number for the "area" field.</summary>
 101    public const int AreaFieldNumber = 1;
 102    private global::Decentraland.Common.Vector3 area_;
 103    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 104    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 105    public global::Decentraland.Common.Vector3 Area {
 19106      get { return area_; }
 107      set {
 5108        area_ = value;
 5109      }
 110    }
 111
 112    /// <summary>Field number for the "exclude_ids" field.</summary>
 113    public const int ExcludeIdsFieldNumber = 2;
 1114    private static readonly pb::FieldCodec<string> _repeated_excludeIds_codec
 115        = pb::FieldCodec.ForString(18);
 5116    private readonly pbc::RepeatedField<string> excludeIds_ = new pbc::RepeatedField<string>();
 117    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 118    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 119    public pbc::RepeatedField<string> ExcludeIds {
 23120      get { return excludeIds_; }
 121    }
 122
 123    /// <summary>Field number for the "modifiers" field.</summary>
 124    public const int ModifiersFieldNumber = 3;
 1125    private static readonly pb::FieldCodec<global::DCL.ECSComponents.AvatarModifierType> _repeated_modifiers_codec
 4126        = pb::FieldCodec.ForEnum(26, x => (int) x, x => (global::DCL.ECSComponents.AvatarModifierType) x);
 5127    private readonly pbc::RepeatedField<global::DCL.ECSComponents.AvatarModifierType> modifiers_ = new pbc::RepeatedFiel
 128    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 129    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 130    public pbc::RepeatedField<global::DCL.ECSComponents.AvatarModifierType> Modifiers {
 10131      get { return modifiers_; }
 132    }
 133
 134    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 135    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 136    public override bool Equals(object other) {
 0137      return Equals(other as PBAvatarModifierArea);
 138    }
 139
 140    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 141    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 142    public bool Equals(PBAvatarModifierArea other) {
 2143      if (ReferenceEquals(other, null)) {
 2144        return false;
 145      }
 0146      if (ReferenceEquals(other, this)) {
 0147        return true;
 148      }
 0149      if (!object.Equals(Area, other.Area)) return false;
 0150      if(!excludeIds_.Equals(other.excludeIds_)) return false;
 0151      if(!modifiers_.Equals(other.modifiers_)) return false;
 0152      return Equals(_unknownFields, other._unknownFields);
 153    }
 154
 155    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 156    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 157    public override int GetHashCode() {
 0158      int hash = 1;
 0159      if (area_ != null) hash ^= Area.GetHashCode();
 0160      hash ^= excludeIds_.GetHashCode();
 0161      hash ^= modifiers_.GetHashCode();
 0162      if (_unknownFields != null) {
 0163        hash ^= _unknownFields.GetHashCode();
 164      }
 0165      return hash;
 166    }
 167
 168    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 169    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 170    public override string ToString() {
 0171      return pb::JsonFormatter.ToDiagnosticString(this);
 172    }
 173
 174    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 175    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 176    public void WriteTo(pb::CodedOutputStream output) {
 177    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 178      output.WriteRawMessage(this);
 179    #else
 1180      if (area_ != null) {
 1181        output.WriteRawTag(10);
 1182        output.WriteMessage(Area);
 183      }
 1184      excludeIds_.WriteTo(output, _repeated_excludeIds_codec);
 1185      modifiers_.WriteTo(output, _repeated_modifiers_codec);
 1186      if (_unknownFields != null) {
 0187        _unknownFields.WriteTo(output);
 188      }
 189    #endif
 1190    }
 191
 192    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 193    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 194    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 195    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 196      if (area_ != null) {
 197        output.WriteRawTag(10);
 198        output.WriteMessage(Area);
 199      }
 200      excludeIds_.WriteTo(ref output, _repeated_excludeIds_codec);
 201      modifiers_.WriteTo(ref output, _repeated_modifiers_codec);
 202      if (_unknownFields != null) {
 203        _unknownFields.WriteTo(ref output);
 204      }
 205    }
 206    #endif
 207
 208    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 209    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 210    public int CalculateSize() {
 1211      int size = 0;
 1212      if (area_ != null) {
 1213        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Area);
 214      }
 1215      size += excludeIds_.CalculateSize(_repeated_excludeIds_codec);
 1216      size += modifiers_.CalculateSize(_repeated_modifiers_codec);
 1217      if (_unknownFields != null) {
 0218        size += _unknownFields.CalculateSize();
 219      }
 1220      return size;
 221    }
 222
 223    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 224    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 225    public void MergeFrom(PBAvatarModifierArea other) {
 0226      if (other == null) {
 0227        return;
 228      }
 0229      if (other.area_ != null) {
 0230        if (area_ == null) {
 0231          Area = new global::Decentraland.Common.Vector3();
 232        }
 0233        Area.MergeFrom(other.Area);
 234      }
 0235      excludeIds_.Add(other.excludeIds_);
 0236      modifiers_.Add(other.modifiers_);
 0237      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0238    }
 239
 240    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 241    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 242    public void MergeFrom(pb::CodedInputStream input) {
 243    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 244      input.ReadRawMessage(this);
 245    #else
 246      uint tag;
 4247      while ((tag = input.ReadTag()) != 0) {
 248        switch(tag) {
 249          default:
 0250            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0251            break;
 252          case 10: {
 1253            if (area_ == null) {
 1254              Area = new global::Decentraland.Common.Vector3();
 255            }
 1256            input.ReadMessage(Area);
 1257            break;
 258          }
 259          case 18: {
 1260            excludeIds_.AddEntriesFrom(input, _repeated_excludeIds_codec);
 1261            break;
 262          }
 263          case 26:
 264          case 24: {
 1265            modifiers_.AddEntriesFrom(input, _repeated_modifiers_codec);
 266            break;
 267          }
 268        }
 269      }
 270    #endif
 1271    }
 272
 273    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 274    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 275    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 276    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 277      uint tag;
 278      while ((tag = input.ReadTag()) != 0) {
 279        switch(tag) {
 280          default:
 281            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 282            break;
 283          case 10: {
 284            if (area_ == null) {
 285              Area = new global::Decentraland.Common.Vector3();
 286            }
 287            input.ReadMessage(Area);
 288            break;
 289          }
 290          case 18: {
 291            excludeIds_.AddEntriesFrom(ref input, _repeated_excludeIds_codec);
 292            break;
 293          }
 294          case 26:
 295          case 24: {
 296            modifiers_.AddEntriesFrom(ref input, _repeated_modifiers_codec);
 297            break;
 298          }
 299        }
 300      }
 301    }
 302    #endif
 303
 304  }
 305
 306  #endregion
 307
 308}
 309
 310#endregion Designer generated code