< Summary

Class:DCL.ECSComponents.PBAvatarModifierArea
Assembly:DCL.Components.ProtobufData
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/PBFiles/AvatarModifierArea.cs
Covered lines:36
Uncovered lines:41
Coverable lines:77
Total lines:232
Line coverage:46.7% (36 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%42600%
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> {
 253    private static readonly pb::MessageParser<PBAvatarModifierArea> _parser = new pb::MessageParser<PBAvatarModifierArea
 54    private pb::UnknownFieldSet _unknownFields;
 55    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 056    public static pb::MessageParser<PBAvatarModifierArea> Parser { get { return _parser; } }
 57
 58    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 59    public static pbr::MessageDescriptor Descriptor {
 060      get { return global::DCL.ECSComponents.AvatarModifierAreaReflection.Descriptor.MessageTypes[0]; }
 61    }
 62
 63    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 64    pbr::MessageDescriptor pb::IMessage.Descriptor {
 065      get { return Descriptor; }
 66    }
 67
 68    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 569    public PBAvatarModifierArea() {
 70      OnConstruction();
 571    }
 72
 73    partial void OnConstruction();
 74
 75    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 076    public PBAvatarModifierArea(PBAvatarModifierArea other) : this() {
 077      area_ = other.area_ != null ? other.area_.Clone() : null;
 078      excludeIds_ = other.excludeIds_.Clone();
 079      modifiers_ = other.modifiers_.Clone();
 080      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 081    }
 82
 83    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 84    public PBAvatarModifierArea Clone() {
 085      return new PBAvatarModifierArea(this);
 86    }
 87
 88    /// <summary>Field number for the "area" field.</summary>
 89    public const int AreaFieldNumber = 1;
 90    private global::Vector3 area_;
 91    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 92    public global::Vector3 Area {
 1293      get { return area_; }
 94      set {
 495        area_ = value;
 496      }
 97    }
 98
 99    /// <summary>Field number for the "exclude_ids" field.</summary>
 100    public const int ExcludeIdsFieldNumber = 2;
 1101    private static readonly pb::FieldCodec<string> _repeated_excludeIds_codec
 102        = pb::FieldCodec.ForString(18);
 5103    private readonly pbc::RepeatedField<string> excludeIds_ = new pbc::RepeatedField<string>();
 104    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 105    public pbc::RepeatedField<string> ExcludeIds {
 4106      get { return excludeIds_; }
 107    }
 108
 109    /// <summary>Field number for the "modifiers" field.</summary>
 110    public const int ModifiersFieldNumber = 3;
 1111    private static readonly pb::FieldCodec<global::DCL.ECSComponents.AvatarModifier> _repeated_modifiers_codec
 4112        = pb::FieldCodec.ForEnum(26, x => (int) x, x => (global::DCL.ECSComponents.AvatarModifier) x);
 5113    private readonly pbc::RepeatedField<global::DCL.ECSComponents.AvatarModifier> modifiers_ = new pbc::RepeatedField<gl
 114    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 115    public pbc::RepeatedField<global::DCL.ECSComponents.AvatarModifier> Modifiers {
 4116      get { return modifiers_; }
 117    }
 118
 119    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 120    public override bool Equals(object other) {
 0121      return Equals(other as PBAvatarModifierArea);
 122    }
 123
 124    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 125    public bool Equals(PBAvatarModifierArea other) {
 0126      if (ReferenceEquals(other, null)) {
 0127        return false;
 128      }
 0129      if (ReferenceEquals(other, this)) {
 0130        return true;
 131      }
 0132      if (!object.Equals(Area, other.Area)) return false;
 0133      if(!excludeIds_.Equals(other.excludeIds_)) return false;
 0134      if(!modifiers_.Equals(other.modifiers_)) return false;
 0135      return Equals(_unknownFields, other._unknownFields);
 136    }
 137
 138    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 139    public override int GetHashCode() {
 0140      int hash = 1;
 0141      if (area_ != null) hash ^= Area.GetHashCode();
 0142      hash ^= excludeIds_.GetHashCode();
 0143      hash ^= modifiers_.GetHashCode();
 0144      if (_unknownFields != null) {
 0145        hash ^= _unknownFields.GetHashCode();
 146      }
 0147      return hash;
 148    }
 149
 150    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 151    public override string ToString() {
 0152      return pb::JsonFormatter.ToDiagnosticString(this);
 153    }
 154
 155    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 156    public void WriteTo(pb::CodedOutputStream output) {
 1157      if (area_ != null) {
 1158        output.WriteRawTag(10);
 1159        output.WriteMessage(Area);
 160      }
 1161      excludeIds_.WriteTo(output, _repeated_excludeIds_codec);
 1162      modifiers_.WriteTo(output, _repeated_modifiers_codec);
 1163      if (_unknownFields != null) {
 0164        _unknownFields.WriteTo(output);
 165      }
 1166    }
 167
 168    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 169    public int CalculateSize() {
 1170      int size = 0;
 1171      if (area_ != null) {
 1172        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Area);
 173      }
 1174      size += excludeIds_.CalculateSize(_repeated_excludeIds_codec);
 1175      size += modifiers_.CalculateSize(_repeated_modifiers_codec);
 1176      if (_unknownFields != null) {
 0177        size += _unknownFields.CalculateSize();
 178      }
 1179      return size;
 180    }
 181
 182    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 183    public void MergeFrom(PBAvatarModifierArea other) {
 0184      if (other == null) {
 0185        return;
 186      }
 0187      if (other.area_ != null) {
 0188        if (area_ == null) {
 0189          Area = new global::Vector3();
 190        }
 0191        Area.MergeFrom(other.Area);
 192      }
 0193      excludeIds_.Add(other.excludeIds_);
 0194      modifiers_.Add(other.modifiers_);
 0195      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0196    }
 197
 198    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 199    public void MergeFrom(pb::CodedInputStream input) {
 200      uint tag;
 4201      while ((tag = input.ReadTag()) != 0) {
 202        switch(tag) {
 203          default:
 0204            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0205            break;
 206          case 10: {
 1207            if (area_ == null) {
 1208              Area = new global::Vector3();
 209            }
 1210            input.ReadMessage(Area);
 1211            break;
 212          }
 213          case 18: {
 1214            excludeIds_.AddEntriesFrom(input, _repeated_excludeIds_codec);
 1215            break;
 216          }
 217          case 26:
 218          case 24: {
 1219            modifiers_.AddEntriesFrom(input, _repeated_modifiers_codec);
 220            break;
 221          }
 222        }
 223      }
 1224    }
 225
 226  }
 227
 228  #endregion
 229
 230}
 231
 232#endregion Designer generated code