< Summary

Class:DCL.ECSComponents.PBAvatarModifierArea
Assembly:DCL.ECSComponents.ProtobufData
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/PBFiles/AvatarModifierArea.cs
Covered lines:38
Uncovered lines:39
Coverable lines:77
Total lines:308
Line coverage:49.3% (38 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/DCLPlugins/ECS7/ProtocolBuffers/Generated/PBFiles/AvatarModifierArea.cs

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: AvatarModifierArea.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 AvatarModifierArea.proto</summary>
 15  public static partial class AvatarModifierAreaReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for AvatarModifierArea.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            "ChhBdmF0YXJNb2RpZmllckFyZWEucHJvdG8SEGRlY2VudHJhbGFuZC5lY3Ma",
 28            "FGNvbW1vbi9WZWN0b3IzLnByb3RvIngKFFBCQXZhdGFyTW9kaWZpZXJBcmVh",
 29            "EhYKBGFyZWEYASABKAsyCC5WZWN0b3IzEhMKC2V4Y2x1ZGVfaWRzGAIgAygJ",
 30            "EjMKCW1vZGlmaWVycxgDIAMoDjIgLmRlY2VudHJhbGFuZC5lY3MuQXZhdGFy",
 31            "TW9kaWZpZXIqOQoOQXZhdGFyTW9kaWZpZXISEAoMSElERV9BVkFUQVJTEAAS",
 32            "FQoRRElTQUJMRV9QQVNTUE9SVFMQAUIUqgIRRENMLkVDU0NvbXBvbmVudHNi",
 33            "BnByb3RvMw=="));
 34      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 35          new pbr::FileDescriptor[] { global::Vector3Reflection.Descriptor, },
 36          new pbr::GeneratedClrTypeInfo(new[] {typeof(global::DCL.ECSComponents.AvatarModifier), }, null, new pbr::Gener
 37            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBAvatarModifierArea), global::DCL.ECSCompone
 38          }));
 39    }
 40    #endregion
 41
 42  }
 43  #region Enums
 44  public enum AvatarModifier {
 45    [pbr::OriginalName("HIDE_AVATARS")] HideAvatars = 0,
 46    [pbr::OriginalName("DISABLE_PASSPORTS")] DisablePassports = 1,
 47  }
 48
 49  #endregion
 50
 51  #region Messages
 52  public sealed partial class PBAvatarModifierArea : pb::IMessage<PBAvatarModifierArea>
 53  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 54      , pb::IBufferMessage
 55  #endif
 56  {
 257    private static readonly pb::MessageParser<PBAvatarModifierArea> _parser = new pb::MessageParser<PBAvatarModifierArea
 58    private pb::UnknownFieldSet _unknownFields;
 59    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 60    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 061    public static pb::MessageParser<PBAvatarModifierArea> 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.AvatarModifierAreaReflection.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)]
 577    public PBAvatarModifierArea() {
 78      OnConstruction();
 579    }
 80
 81    partial void OnConstruction();
 82
 83    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 84    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 085    public PBAvatarModifierArea(PBAvatarModifierArea other) : this() {
 086      area_ = other.area_ != null ? other.area_.Clone() : null;
 087      excludeIds_ = other.excludeIds_.Clone();
 088      modifiers_ = other.modifiers_.Clone();
 089      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 090    }
 91
 92    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 93    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 94    public PBAvatarModifierArea Clone() {
 095      return new PBAvatarModifierArea(this);
 96    }
 97
 98    /// <summary>Field number for the "area" field.</summary>
 99    public const int AreaFieldNumber = 1;
 100    private global::Vector3 area_;
 101    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 102    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 103    public global::Vector3 Area {
 12104      get { return area_; }
 105      set {
 4106        area_ = value;
 4107      }
 108    }
 109
 110    /// <summary>Field number for the "exclude_ids" field.</summary>
 111    public const int ExcludeIdsFieldNumber = 2;
 1112    private static readonly pb::FieldCodec<string> _repeated_excludeIds_codec
 113        = pb::FieldCodec.ForString(18);
 5114    private readonly pbc::RepeatedField<string> excludeIds_ = new pbc::RepeatedField<string>();
 115    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 116    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 117    public pbc::RepeatedField<string> ExcludeIds {
 4118      get { return excludeIds_; }
 119    }
 120
 121    /// <summary>Field number for the "modifiers" field.</summary>
 122    public const int ModifiersFieldNumber = 3;
 1123    private static readonly pb::FieldCodec<global::DCL.ECSComponents.AvatarModifier> _repeated_modifiers_codec
 4124        = pb::FieldCodec.ForEnum(26, x => (int) x, x => (global::DCL.ECSComponents.AvatarModifier) x);
 5125    private readonly pbc::RepeatedField<global::DCL.ECSComponents.AvatarModifier> modifiers_ = new pbc::RepeatedField<gl
 126    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 127    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 128    public pbc::RepeatedField<global::DCL.ECSComponents.AvatarModifier> Modifiers {
 4129      get { return modifiers_; }
 130    }
 131
 132    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 133    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 134    public override bool Equals(object other) {
 0135      return Equals(other as PBAvatarModifierArea);
 136    }
 137
 138    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 139    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 140    public bool Equals(PBAvatarModifierArea other) {
 2141      if (ReferenceEquals(other, null)) {
 2142        return false;
 143      }
 0144      if (ReferenceEquals(other, this)) {
 0145        return true;
 146      }
 0147      if (!object.Equals(Area, other.Area)) return false;
 0148      if(!excludeIds_.Equals(other.excludeIds_)) return false;
 0149      if(!modifiers_.Equals(other.modifiers_)) return false;
 0150      return Equals(_unknownFields, other._unknownFields);
 151    }
 152
 153    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 154    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 155    public override int GetHashCode() {
 0156      int hash = 1;
 0157      if (area_ != null) hash ^= Area.GetHashCode();
 0158      hash ^= excludeIds_.GetHashCode();
 0159      hash ^= modifiers_.GetHashCode();
 0160      if (_unknownFields != null) {
 0161        hash ^= _unknownFields.GetHashCode();
 162      }
 0163      return hash;
 164    }
 165
 166    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 167    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 168    public override string ToString() {
 0169      return pb::JsonFormatter.ToDiagnosticString(this);
 170    }
 171
 172    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 173    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 174    public void WriteTo(pb::CodedOutputStream output) {
 175    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 176      output.WriteRawMessage(this);
 177    #else
 1178      if (area_ != null) {
 1179        output.WriteRawTag(10);
 1180        output.WriteMessage(Area);
 181      }
 1182      excludeIds_.WriteTo(output, _repeated_excludeIds_codec);
 1183      modifiers_.WriteTo(output, _repeated_modifiers_codec);
 1184      if (_unknownFields != null) {
 0185        _unknownFields.WriteTo(output);
 186      }
 187    #endif
 1188    }
 189
 190    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 191    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 192    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 193    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 194      if (area_ != null) {
 195        output.WriteRawTag(10);
 196        output.WriteMessage(Area);
 197      }
 198      excludeIds_.WriteTo(ref output, _repeated_excludeIds_codec);
 199      modifiers_.WriteTo(ref output, _repeated_modifiers_codec);
 200      if (_unknownFields != null) {
 201        _unknownFields.WriteTo(ref output);
 202      }
 203    }
 204    #endif
 205
 206    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 207    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 208    public int CalculateSize() {
 1209      int size = 0;
 1210      if (area_ != null) {
 1211        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Area);
 212      }
 1213      size += excludeIds_.CalculateSize(_repeated_excludeIds_codec);
 1214      size += modifiers_.CalculateSize(_repeated_modifiers_codec);
 1215      if (_unknownFields != null) {
 0216        size += _unknownFields.CalculateSize();
 217      }
 1218      return size;
 219    }
 220
 221    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 222    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 223    public void MergeFrom(PBAvatarModifierArea other) {
 0224      if (other == null) {
 0225        return;
 226      }
 0227      if (other.area_ != null) {
 0228        if (area_ == null) {
 0229          Area = new global::Vector3();
 230        }
 0231        Area.MergeFrom(other.Area);
 232      }
 0233      excludeIds_.Add(other.excludeIds_);
 0234      modifiers_.Add(other.modifiers_);
 0235      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0236    }
 237
 238    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 239    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 240    public void MergeFrom(pb::CodedInputStream input) {
 241    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 242      input.ReadRawMessage(this);
 243    #else
 244      uint tag;
 4245      while ((tag = input.ReadTag()) != 0) {
 246        switch(tag) {
 247          default:
 0248            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0249            break;
 250          case 10: {
 1251            if (area_ == null) {
 1252              Area = new global::Vector3();
 253            }
 1254            input.ReadMessage(Area);
 1255            break;
 256          }
 257          case 18: {
 1258            excludeIds_.AddEntriesFrom(input, _repeated_excludeIds_codec);
 1259            break;
 260          }
 261          case 26:
 262          case 24: {
 1263            modifiers_.AddEntriesFrom(input, _repeated_modifiers_codec);
 264            break;
 265          }
 266        }
 267      }
 268    #endif
 1269    }
 270
 271    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 272    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 273    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 274    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 275      uint tag;
 276      while ((tag = input.ReadTag()) != 0) {
 277        switch(tag) {
 278          default:
 279            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 280            break;
 281          case 10: {
 282            if (area_ == null) {
 283              Area = new global::Vector3();
 284            }
 285            input.ReadMessage(Area);
 286            break;
 287          }
 288          case 18: {
 289            excludeIds_.AddEntriesFrom(ref input, _repeated_excludeIds_codec);
 290            break;
 291          }
 292          case 26:
 293          case 24: {
 294            modifiers_.AddEntriesFrom(ref input, _repeated_modifiers_codec);
 295            break;
 296          }
 297        }
 298      }
 299    }
 300    #endif
 301
 302  }
 303
 304  #endregion
 305
 306}
 307
 308#endregion Designer generated code