< Summary

Class:DCL.ECSComponents.AvatarModifierAreaReflection
Assembly:DCL.Components.ProtobufData
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/PBFiles/AvatarModifierArea.cs
Covered lines:0
Uncovered lines:4
Coverable lines:4
Total lines:232
Line coverage:0% (0 of 4)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
AvatarModifierAreaReflection()0%2100%

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 {
 020      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static AvatarModifierAreaReflection() {
 025      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "ChhBdmF0YXJNb2RpZmllckFyZWEucHJvdG8SEGRlY2VudHJhbGFuZC5lY3Ma",
 28            "FGNvbW1vbi9WZWN0b3IzLnByb3RvIngKFFBCQXZhdGFyTW9kaWZpZXJBcmVh",
 29            "EhYKBGFyZWEYASABKAsyCC5WZWN0b3IzEhMKC2V4Y2x1ZGVfaWRzGAIgAygJ",
 30            "EjMKCW1vZGlmaWVycxgDIAMoDjIgLmRlY2VudHJhbGFuZC5lY3MuQXZhdGFy",
 31            "TW9kaWZpZXIqOQoOQXZhdGFyTW9kaWZpZXISEAoMSElERV9BVkFUQVJTEAAS",
 32            "FQoRRElTQUJMRV9QQVNTUE9SVFMQAUIUqgIRRENMLkVDU0NvbXBvbmVudHNi",
 33            "BnByb3RvMw=="));
 034      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          }));
 039    }
 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    private static readonly pb::MessageParser<PBAvatarModifierArea> _parser = new pb::MessageParser<PBAvatarModifierArea
 54    private pb::UnknownFieldSet _unknownFields;
 55    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 56    public static pb::MessageParser<PBAvatarModifierArea> Parser { get { return _parser; } }
 57
 58    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 59    public static pbr::MessageDescriptor Descriptor {
 60      get { return global::DCL.ECSComponents.AvatarModifierAreaReflection.Descriptor.MessageTypes[0]; }
 61    }
 62
 63    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 64    pbr::MessageDescriptor pb::IMessage.Descriptor {
 65      get { return Descriptor; }
 66    }
 67
 68    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 69    public PBAvatarModifierArea() {
 70      OnConstruction();
 71    }
 72
 73    partial void OnConstruction();
 74
 75    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 76    public PBAvatarModifierArea(PBAvatarModifierArea other) : this() {
 77      area_ = other.area_ != null ? other.area_.Clone() : null;
 78      excludeIds_ = other.excludeIds_.Clone();
 79      modifiers_ = other.modifiers_.Clone();
 80      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 81    }
 82
 83    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 84    public PBAvatarModifierArea Clone() {
 85      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 {
 93      get { return area_; }
 94      set {
 95        area_ = value;
 96      }
 97    }
 98
 99    /// <summary>Field number for the "exclude_ids" field.</summary>
 100    public const int ExcludeIdsFieldNumber = 2;
 101    private static readonly pb::FieldCodec<string> _repeated_excludeIds_codec
 102        = pb::FieldCodec.ForString(18);
 103    private readonly pbc::RepeatedField<string> excludeIds_ = new pbc::RepeatedField<string>();
 104    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 105    public pbc::RepeatedField<string> ExcludeIds {
 106      get { return excludeIds_; }
 107    }
 108
 109    /// <summary>Field number for the "modifiers" field.</summary>
 110    public const int ModifiersFieldNumber = 3;
 111    private static readonly pb::FieldCodec<global::DCL.ECSComponents.AvatarModifier> _repeated_modifiers_codec
 112        = pb::FieldCodec.ForEnum(26, x => (int) x, x => (global::DCL.ECSComponents.AvatarModifier) x);
 113    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 {
 116      get { return modifiers_; }
 117    }
 118
 119    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 120    public override bool Equals(object other) {
 121      return Equals(other as PBAvatarModifierArea);
 122    }
 123
 124    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 125    public bool Equals(PBAvatarModifierArea other) {
 126      if (ReferenceEquals(other, null)) {
 127        return false;
 128      }
 129      if (ReferenceEquals(other, this)) {
 130        return true;
 131      }
 132      if (!object.Equals(Area, other.Area)) return false;
 133      if(!excludeIds_.Equals(other.excludeIds_)) return false;
 134      if(!modifiers_.Equals(other.modifiers_)) return false;
 135      return Equals(_unknownFields, other._unknownFields);
 136    }
 137
 138    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 139    public override int GetHashCode() {
 140      int hash = 1;
 141      if (area_ != null) hash ^= Area.GetHashCode();
 142      hash ^= excludeIds_.GetHashCode();
 143      hash ^= modifiers_.GetHashCode();
 144      if (_unknownFields != null) {
 145        hash ^= _unknownFields.GetHashCode();
 146      }
 147      return hash;
 148    }
 149
 150    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 151    public override string ToString() {
 152      return pb::JsonFormatter.ToDiagnosticString(this);
 153    }
 154
 155    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 156    public void WriteTo(pb::CodedOutputStream output) {
 157      if (area_ != null) {
 158        output.WriteRawTag(10);
 159        output.WriteMessage(Area);
 160      }
 161      excludeIds_.WriteTo(output, _repeated_excludeIds_codec);
 162      modifiers_.WriteTo(output, _repeated_modifiers_codec);
 163      if (_unknownFields != null) {
 164        _unknownFields.WriteTo(output);
 165      }
 166    }
 167
 168    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 169    public int CalculateSize() {
 170      int size = 0;
 171      if (area_ != null) {
 172        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Area);
 173      }
 174      size += excludeIds_.CalculateSize(_repeated_excludeIds_codec);
 175      size += modifiers_.CalculateSize(_repeated_modifiers_codec);
 176      if (_unknownFields != null) {
 177        size += _unknownFields.CalculateSize();
 178      }
 179      return size;
 180    }
 181
 182    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 183    public void MergeFrom(PBAvatarModifierArea other) {
 184      if (other == null) {
 185        return;
 186      }
 187      if (other.area_ != null) {
 188        if (area_ == null) {
 189          Area = new global::Vector3();
 190        }
 191        Area.MergeFrom(other.Area);
 192      }
 193      excludeIds_.Add(other.excludeIds_);
 194      modifiers_.Add(other.modifiers_);
 195      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 196    }
 197
 198    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 199    public void MergeFrom(pb::CodedInputStream input) {
 200      uint tag;
 201      while ((tag = input.ReadTag()) != 0) {
 202        switch(tag) {
 203          default:
 204            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 205            break;
 206          case 10: {
 207            if (area_ == null) {
 208              Area = new global::Vector3();
 209            }
 210            input.ReadMessage(Area);
 211            break;
 212          }
 213          case 18: {
 214            excludeIds_.AddEntriesFrom(input, _repeated_excludeIds_codec);
 215            break;
 216          }
 217          case 26:
 218          case 24: {
 219            modifiers_.AddEntriesFrom(input, _repeated_modifiers_codec);
 220            break;
 221          }
 222        }
 223      }
 224    }
 225
 226  }
 227
 228  #endregion
 229
 230}
 231
 232#endregion Designer generated code