< Summary

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

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: ecs/components/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 ecs/components/AvatarModifierArea.proto</summary>
 15  public static partial class AvatarModifierAreaReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for ecs/components/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            "CidlY3MvY29tcG9uZW50cy9BdmF0YXJNb2RpZmllckFyZWEucHJvdG8SEGRl",
 28            "Y2VudHJhbGFuZC5lY3MaI2Vjcy9jb21wb25lbnRzL2NvbW1vbi9WZWN0b3Iz",
 29            "LnByb3RvIokBChRQQkF2YXRhck1vZGlmaWVyQXJlYRInCgRhcmVhGAEgASgL",
 30            "MhkuZGVjZW50cmFsYW5kLmVjcy5WZWN0b3IzEhMKC2V4Y2x1ZGVfaWRzGAIg",
 31            "AygJEjMKCW1vZGlmaWVycxgDIAMoDjIgLmRlY2VudHJhbGFuZC5lY3MuQXZh",
 32            "dGFyTW9kaWZpZXIqOQoOQXZhdGFyTW9kaWZpZXISEAoMSElERV9BVkFUQVJT",
 33            "EAASFQoRRElTQUJMRV9QQVNTUE9SVFMQAUIUqgIRRENMLkVDU0NvbXBvbmVu",
 34            "dHNiBnByb3RvMw=="));
 35      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 36          new pbr::FileDescriptor[] { global::DCL.ECSComponents.Vector3Reflection.Descriptor, },
 37          new pbr::GeneratedClrTypeInfo(new[] {typeof(global::DCL.ECSComponents.AvatarModifier), }, null, new pbr::Gener
 38            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBAvatarModifierArea), global::DCL.ECSCompone
 39          }));
 40    }
 41    #endregion
 42
 43  }
 44  #region Enums
 45  public enum AvatarModifier {
 46    [pbr::OriginalName("HIDE_AVATARS")] HideAvatars = 0,
 47    [pbr::OriginalName("DISABLE_PASSPORTS")] DisablePassports = 1,
 48  }
 49
 50  #endregion
 51
 52  #region Messages
 53  public sealed partial class PBAvatarModifierArea : pb::IMessage<PBAvatarModifierArea>
 54  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 55      , pb::IBufferMessage
 56  #endif
 57  {
 258    private static readonly pb::MessageParser<PBAvatarModifierArea> _parser = new pb::MessageParser<PBAvatarModifierArea
 59    private pb::UnknownFieldSet _unknownFields;
 60    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 61    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 062    public static pb::MessageParser<PBAvatarModifierArea> Parser { get { return _parser; } }
 63
 64    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 65    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 66    public static pbr::MessageDescriptor Descriptor {
 067      get { return global::DCL.ECSComponents.AvatarModifierAreaReflection.Descriptor.MessageTypes[0]; }
 68    }
 69
 70    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 71    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 72    pbr::MessageDescriptor pb::IMessage.Descriptor {
 073      get { return Descriptor; }
 74    }
 75
 76    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 77    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 578    public PBAvatarModifierArea() {
 79      OnConstruction();
 580    }
 81
 82    partial void OnConstruction();
 83
 84    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 85    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 086    public PBAvatarModifierArea(PBAvatarModifierArea other) : this() {
 087      area_ = other.area_ != null ? other.area_.Clone() : null;
 088      excludeIds_ = other.excludeIds_.Clone();
 089      modifiers_ = other.modifiers_.Clone();
 090      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 091    }
 92
 93    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 94    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 95    public PBAvatarModifierArea Clone() {
 096      return new PBAvatarModifierArea(this);
 97    }
 98
 99    /// <summary>Field number for the "area" field.</summary>
 100    public const int AreaFieldNumber = 1;
 101    private global::DCL.ECSComponents.Vector3 area_;
 102    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 103    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 104    public global::DCL.ECSComponents.Vector3 Area {
 12105      get { return area_; }
 106      set {
 4107        area_ = value;
 4108      }
 109    }
 110
 111    /// <summary>Field number for the "exclude_ids" field.</summary>
 112    public const int ExcludeIdsFieldNumber = 2;
 1113    private static readonly pb::FieldCodec<string> _repeated_excludeIds_codec
 114        = pb::FieldCodec.ForString(18);
 5115    private readonly pbc::RepeatedField<string> excludeIds_ = new pbc::RepeatedField<string>();
 116    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 117    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 118    public pbc::RepeatedField<string> ExcludeIds {
 4119      get { return excludeIds_; }
 120    }
 121
 122    /// <summary>Field number for the "modifiers" field.</summary>
 123    public const int ModifiersFieldNumber = 3;
 1124    private static readonly pb::FieldCodec<global::DCL.ECSComponents.AvatarModifier> _repeated_modifiers_codec
 4125        = pb::FieldCodec.ForEnum(26, x => (int) x, x => (global::DCL.ECSComponents.AvatarModifier) x);
 5126    private readonly pbc::RepeatedField<global::DCL.ECSComponents.AvatarModifier> modifiers_ = new pbc::RepeatedField<gl
 127    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 128    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 129    public pbc::RepeatedField<global::DCL.ECSComponents.AvatarModifier> Modifiers {
 4130      get { return modifiers_; }
 131    }
 132
 133    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 134    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 135    public override bool Equals(object other) {
 0136      return Equals(other as PBAvatarModifierArea);
 137    }
 138
 139    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 140    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 141    public bool Equals(PBAvatarModifierArea other) {
 2142      if (ReferenceEquals(other, null)) {
 2143        return false;
 144      }
 0145      if (ReferenceEquals(other, this)) {
 0146        return true;
 147      }
 0148      if (!object.Equals(Area, other.Area)) return false;
 0149      if(!excludeIds_.Equals(other.excludeIds_)) return false;
 0150      if(!modifiers_.Equals(other.modifiers_)) return false;
 0151      return Equals(_unknownFields, other._unknownFields);
 152    }
 153
 154    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 155    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 156    public override int GetHashCode() {
 0157      int hash = 1;
 0158      if (area_ != null) hash ^= Area.GetHashCode();
 0159      hash ^= excludeIds_.GetHashCode();
 0160      hash ^= modifiers_.GetHashCode();
 0161      if (_unknownFields != null) {
 0162        hash ^= _unknownFields.GetHashCode();
 163      }
 0164      return hash;
 165    }
 166
 167    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 168    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 169    public override string ToString() {
 0170      return pb::JsonFormatter.ToDiagnosticString(this);
 171    }
 172
 173    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 174    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 175    public void WriteTo(pb::CodedOutputStream output) {
 176    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 177      output.WriteRawMessage(this);
 178    #else
 1179      if (area_ != null) {
 1180        output.WriteRawTag(10);
 1181        output.WriteMessage(Area);
 182      }
 1183      excludeIds_.WriteTo(output, _repeated_excludeIds_codec);
 1184      modifiers_.WriteTo(output, _repeated_modifiers_codec);
 1185      if (_unknownFields != null) {
 0186        _unknownFields.WriteTo(output);
 187      }
 188    #endif
 1189    }
 190
 191    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 192    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 193    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 194    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 195      if (area_ != null) {
 196        output.WriteRawTag(10);
 197        output.WriteMessage(Area);
 198      }
 199      excludeIds_.WriteTo(ref output, _repeated_excludeIds_codec);
 200      modifiers_.WriteTo(ref output, _repeated_modifiers_codec);
 201      if (_unknownFields != null) {
 202        _unknownFields.WriteTo(ref output);
 203      }
 204    }
 205    #endif
 206
 207    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 208    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 209    public int CalculateSize() {
 1210      int size = 0;
 1211      if (area_ != null) {
 1212        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Area);
 213      }
 1214      size += excludeIds_.CalculateSize(_repeated_excludeIds_codec);
 1215      size += modifiers_.CalculateSize(_repeated_modifiers_codec);
 1216      if (_unknownFields != null) {
 0217        size += _unknownFields.CalculateSize();
 218      }
 1219      return size;
 220    }
 221
 222    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 223    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 224    public void MergeFrom(PBAvatarModifierArea other) {
 0225      if (other == null) {
 0226        return;
 227      }
 0228      if (other.area_ != null) {
 0229        if (area_ == null) {
 0230          Area = new global::DCL.ECSComponents.Vector3();
 231        }
 0232        Area.MergeFrom(other.Area);
 233      }
 0234      excludeIds_.Add(other.excludeIds_);
 0235      modifiers_.Add(other.modifiers_);
 0236      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0237    }
 238
 239    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 240    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 241    public void MergeFrom(pb::CodedInputStream input) {
 242    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 243      input.ReadRawMessage(this);
 244    #else
 245      uint tag;
 4246      while ((tag = input.ReadTag()) != 0) {
 247        switch(tag) {
 248          default:
 0249            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0250            break;
 251          case 10: {
 1252            if (area_ == null) {
 1253              Area = new global::DCL.ECSComponents.Vector3();
 254            }
 1255            input.ReadMessage(Area);
 1256            break;
 257          }
 258          case 18: {
 1259            excludeIds_.AddEntriesFrom(input, _repeated_excludeIds_codec);
 1260            break;
 261          }
 262          case 26:
 263          case 24: {
 1264            modifiers_.AddEntriesFrom(input, _repeated_modifiers_codec);
 265            break;
 266          }
 267        }
 268      }
 269    #endif
 1270    }
 271
 272    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 273    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 274    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 275    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 276      uint tag;
 277      while ((tag = input.ReadTag()) != 0) {
 278        switch(tag) {
 279          default:
 280            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 281            break;
 282          case 10: {
 283            if (area_ == null) {
 284              Area = new global::DCL.ECSComponents.Vector3();
 285            }
 286            input.ReadMessage(Area);
 287            break;
 288          }
 289          case 18: {
 290            excludeIds_.AddEntriesFrom(ref input, _repeated_excludeIds_codec);
 291            break;
 292          }
 293          case 26:
 294          case 24: {
 295            modifiers_.AddEntriesFrom(ref input, _repeated_modifiers_codec);
 296            break;
 297          }
 298        }
 299      }
 300    }
 301    #endif
 302
 303  }
 304
 305  #endregion
 306
 307}
 308
 309#endregion Designer generated code