< Summary

Class:DCL.ECSComponents.PBAnimationState
Assembly:DCL.Components.ProtobufData
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/PBFiles/Animator.cs
Covered lines:79
Uncovered lines:63
Coverable lines:142
Total lines:466
Line coverage:55.6% (79 of 142)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
PBAnimationState()0%110100%
get_Descriptor()0%2100%
PBAnimationState(...)0%2100%
Clone()0%2100%
PBAnimationState()0%110100%
Equals(...)0%2100%
Equals(...)0%20.6310052.63%
GetHashCode()0%90900%
ToString()0%2100%
WriteTo(...)0%9.169087.5%
CalculateSize()0%9.119088.89%
MergeFrom(...)0%90900%
MergeFrom(...)0%11.6711082.35%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/PBFiles/Animator.cs

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: Animator.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 Animator.proto</summary>
 15  public static partial class AnimatorReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for Animator.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static AnimatorReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "Cg5BbmltYXRvci5wcm90bxIQZGVjZW50cmFsYW5kLmVjcyJACgpQQkFuaW1h",
 28            "dG9yEjIKBnN0YXRlcxgBIAMoCzIiLmRlY2VudHJhbGFuZC5lY3MuUEJBbmlt",
 29            "YXRpb25TdGF0ZSKCAQoQUEJBbmltYXRpb25TdGF0ZRIMCgRuYW1lGAEgASgJ",
 30            "EgwKBGNsaXAYAiABKAkSDwoHcGxheWluZxgDIAEoCBIOCgZ3ZWlnaHQYBCAB",
 31            "KAISDQoFc3BlZWQYBSABKAISDAoEbG9vcBgGIAEoCBIUCgxzaG91bGRfcmVz",
 32            "ZXQYByABKAhCFKoCEURDTC5FQ1NDb21wb25lbnRzYgZwcm90bzM="));
 33      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 34          new pbr::FileDescriptor[] { },
 35          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 36            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBAnimator), global::DCL.ECSComponents.PBAnim
 37            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBAnimationState), global::DCL.ECSComponents.
 38          }));
 39    }
 40    #endregion
 41
 42  }
 43  #region Messages
 44  public sealed partial class PBAnimator : pb::IMessage<PBAnimator> {
 45    private static readonly pb::MessageParser<PBAnimator> _parser = new pb::MessageParser<PBAnimator>(() => new PBAnimat
 46    private pb::UnknownFieldSet _unknownFields;
 47    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 48    public static pb::MessageParser<PBAnimator> Parser { get { return _parser; } }
 49
 50    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 51    public static pbr::MessageDescriptor Descriptor {
 52      get { return global::DCL.ECSComponents.AnimatorReflection.Descriptor.MessageTypes[0]; }
 53    }
 54
 55    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 56    pbr::MessageDescriptor pb::IMessage.Descriptor {
 57      get { return Descriptor; }
 58    }
 59
 60    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 61    public PBAnimator() {
 62      OnConstruction();
 63    }
 64
 65    partial void OnConstruction();
 66
 67    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 68    public PBAnimator(PBAnimator other) : this() {
 69      states_ = other.states_.Clone();
 70      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 71    }
 72
 73    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 74    public PBAnimator Clone() {
 75      return new PBAnimator(this);
 76    }
 77
 78    /// <summary>Field number for the "states" field.</summary>
 79    public const int StatesFieldNumber = 1;
 80    private static readonly pb::FieldCodec<global::DCL.ECSComponents.PBAnimationState> _repeated_states_codec
 81        = pb::FieldCodec.ForMessage(10, global::DCL.ECSComponents.PBAnimationState.Parser);
 82    private readonly pbc::RepeatedField<global::DCL.ECSComponents.PBAnimationState> states_ = new pbc::RepeatedField<glo
 83    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 84    public pbc::RepeatedField<global::DCL.ECSComponents.PBAnimationState> States {
 85      get { return states_; }
 86    }
 87
 88    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 89    public override bool Equals(object other) {
 90      return Equals(other as PBAnimator);
 91    }
 92
 93    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 94    public bool Equals(PBAnimator other) {
 95      if (ReferenceEquals(other, null)) {
 96        return false;
 97      }
 98      if (ReferenceEquals(other, this)) {
 99        return true;
 100      }
 101      if(!states_.Equals(other.states_)) return false;
 102      return Equals(_unknownFields, other._unknownFields);
 103    }
 104
 105    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 106    public override int GetHashCode() {
 107      int hash = 1;
 108      hash ^= states_.GetHashCode();
 109      if (_unknownFields != null) {
 110        hash ^= _unknownFields.GetHashCode();
 111      }
 112      return hash;
 113    }
 114
 115    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 116    public override string ToString() {
 117      return pb::JsonFormatter.ToDiagnosticString(this);
 118    }
 119
 120    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 121    public void WriteTo(pb::CodedOutputStream output) {
 122      states_.WriteTo(output, _repeated_states_codec);
 123      if (_unknownFields != null) {
 124        _unknownFields.WriteTo(output);
 125      }
 126    }
 127
 128    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 129    public int CalculateSize() {
 130      int size = 0;
 131      size += states_.CalculateSize(_repeated_states_codec);
 132      if (_unknownFields != null) {
 133        size += _unknownFields.CalculateSize();
 134      }
 135      return size;
 136    }
 137
 138    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 139    public void MergeFrom(PBAnimator other) {
 140      if (other == null) {
 141        return;
 142      }
 143      states_.Add(other.states_);
 144      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 145    }
 146
 147    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 148    public void MergeFrom(pb::CodedInputStream input) {
 149      uint tag;
 150      while ((tag = input.ReadTag()) != 0) {
 151        switch(tag) {
 152          default:
 153            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 154            break;
 155          case 10: {
 156            states_.AddEntriesFrom(input, _repeated_states_codec);
 157            break;
 158          }
 159        }
 160      }
 161    }
 162
 163  }
 164
 165  public sealed partial class PBAnimationState : pb::IMessage<PBAnimationState> {
 2166    private static readonly pb::MessageParser<PBAnimationState> _parser = new pb::MessageParser<PBAnimationState>(() => 
 167    private pb::UnknownFieldSet _unknownFields;
 168    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1169    public static pb::MessageParser<PBAnimationState> Parser { get { return _parser; } }
 170
 171    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 172    public static pbr::MessageDescriptor Descriptor {
 0173      get { return global::DCL.ECSComponents.AnimatorReflection.Descriptor.MessageTypes[1]; }
 174    }
 175
 176    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 177    pbr::MessageDescriptor pb::IMessage.Descriptor {
 0178      get { return Descriptor; }
 179    }
 180
 181    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 4182    public PBAnimationState() {
 183      OnConstruction();
 4184    }
 185
 186    partial void OnConstruction();
 187
 188    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 0189    public PBAnimationState(PBAnimationState other) : this() {
 0190      name_ = other.name_;
 0191      clip_ = other.clip_;
 0192      playing_ = other.playing_;
 0193      weight_ = other.weight_;
 0194      speed_ = other.speed_;
 0195      loop_ = other.loop_;
 0196      shouldReset_ = other.shouldReset_;
 0197      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 0198    }
 199
 200    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 201    public PBAnimationState Clone() {
 0202      return new PBAnimationState(this);
 203    }
 204
 205    /// <summary>Field number for the "name" field.</summary>
 206    public const int NameFieldNumber = 1;
 4207    private string name_ = "";
 208    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 209    public string Name {
 0210      get { return name_; }
 211      set {
 3212        name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 3213      }
 214    }
 215
 216    /// <summary>Field number for the "clip" field.</summary>
 217    public const int ClipFieldNumber = 2;
 4218    private string clip_ = "";
 219    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 220    public string Clip {
 0221      get { return clip_; }
 222      set {
 3223        clip_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 3224      }
 225    }
 226
 227    /// <summary>Field number for the "playing" field.</summary>
 228    public const int PlayingFieldNumber = 3;
 229    private bool playing_;
 230    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 231    public bool Playing {
 0232      get { return playing_; }
 233      set {
 3234        playing_ = value;
 3235      }
 236    }
 237
 238    /// <summary>Field number for the "weight" field.</summary>
 239    public const int WeightFieldNumber = 4;
 240    private float weight_;
 241    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 242    public float Weight {
 0243      get { return weight_; }
 244      set {
 3245        weight_ = value;
 3246      }
 247    }
 248
 249    /// <summary>Field number for the "speed" field.</summary>
 250    public const int SpeedFieldNumber = 5;
 251    private float speed_;
 252    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 253    public float Speed {
 0254      get { return speed_; }
 255      set {
 3256        speed_ = value;
 3257      }
 258    }
 259
 260    /// <summary>Field number for the "loop" field.</summary>
 261    public const int LoopFieldNumber = 6;
 262    private bool loop_;
 263    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 264    public bool Loop {
 0265      get { return loop_; }
 266      set {
 3267        loop_ = value;
 3268      }
 269    }
 270
 271    /// <summary>Field number for the "should_reset" field.</summary>
 272    public const int ShouldResetFieldNumber = 7;
 273    private bool shouldReset_;
 274    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 275    public bool ShouldReset {
 0276      get { return shouldReset_; }
 277      set {
 0278        shouldReset_ = value;
 0279      }
 280    }
 281
 282    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 283    public override bool Equals(object other) {
 0284      return Equals(other as PBAnimationState);
 285    }
 286
 287    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 288    public bool Equals(PBAnimationState other) {
 1289      if (ReferenceEquals(other, null)) {
 0290        return false;
 291      }
 1292      if (ReferenceEquals(other, this)) {
 0293        return true;
 294      }
 1295      if (Name != other.Name) return false;
 1296      if (Clip != other.Clip) return false;
 1297      if (Playing != other.Playing) return false;
 1298      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Weight, other.Weight)) return false;
 1299      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Speed, other.Speed)) return false;
 1300      if (Loop != other.Loop) return false;
 1301      if (ShouldReset != other.ShouldReset) return false;
 1302      return Equals(_unknownFields, other._unknownFields);
 303    }
 304
 305    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 306    public override int GetHashCode() {
 0307      int hash = 1;
 0308      if (Name.Length != 0) hash ^= Name.GetHashCode();
 0309      if (Clip.Length != 0) hash ^= Clip.GetHashCode();
 0310      if (Playing != false) hash ^= Playing.GetHashCode();
 0311      if (Weight != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Weight);
 0312      if (Speed != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Speed);
 0313      if (Loop != false) hash ^= Loop.GetHashCode();
 0314      if (ShouldReset != false) hash ^= ShouldReset.GetHashCode();
 0315      if (_unknownFields != null) {
 0316        hash ^= _unknownFields.GetHashCode();
 317      }
 0318      return hash;
 319    }
 320
 321    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 322    public override string ToString() {
 0323      return pb::JsonFormatter.ToDiagnosticString(this);
 324    }
 325
 326    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 327    public void WriteTo(pb::CodedOutputStream output) {
 2328      if (Name.Length != 0) {
 2329        output.WriteRawTag(10);
 2330        output.WriteString(Name);
 331      }
 2332      if (Clip.Length != 0) {
 2333        output.WriteRawTag(18);
 2334        output.WriteString(Clip);
 335      }
 2336      if (Playing != false) {
 2337        output.WriteRawTag(24);
 2338        output.WriteBool(Playing);
 339      }
 2340      if (Weight != 0F) {
 2341        output.WriteRawTag(37);
 2342        output.WriteFloat(Weight);
 343      }
 2344      if (Speed != 0F) {
 2345        output.WriteRawTag(45);
 2346        output.WriteFloat(Speed);
 347      }
 2348      if (Loop != false) {
 2349        output.WriteRawTag(48);
 2350        output.WriteBool(Loop);
 351      }
 2352      if (ShouldReset != false) {
 0353        output.WriteRawTag(56);
 0354        output.WriteBool(ShouldReset);
 355      }
 2356      if (_unknownFields != null) {
 0357        _unknownFields.WriteTo(output);
 358      }
 2359    }
 360
 361    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 362    public int CalculateSize() {
 2363      int size = 0;
 2364      if (Name.Length != 0) {
 2365        size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
 366      }
 2367      if (Clip.Length != 0) {
 2368        size += 1 + pb::CodedOutputStream.ComputeStringSize(Clip);
 369      }
 2370      if (Playing != false) {
 2371        size += 1 + 1;
 372      }
 2373      if (Weight != 0F) {
 2374        size += 1 + 4;
 375      }
 2376      if (Speed != 0F) {
 2377        size += 1 + 4;
 378      }
 2379      if (Loop != false) {
 2380        size += 1 + 1;
 381      }
 2382      if (ShouldReset != false) {
 0383        size += 1 + 1;
 384      }
 2385      if (_unknownFields != null) {
 0386        size += _unknownFields.CalculateSize();
 387      }
 2388      return size;
 389    }
 390
 391    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 392    public void MergeFrom(PBAnimationState other) {
 0393      if (other == null) {
 0394        return;
 395      }
 0396      if (other.Name.Length != 0) {
 0397        Name = other.Name;
 398      }
 0399      if (other.Clip.Length != 0) {
 0400        Clip = other.Clip;
 401      }
 0402      if (other.Playing != false) {
 0403        Playing = other.Playing;
 404      }
 0405      if (other.Weight != 0F) {
 0406        Weight = other.Weight;
 407      }
 0408      if (other.Speed != 0F) {
 0409        Speed = other.Speed;
 410      }
 0411      if (other.Loop != false) {
 0412        Loop = other.Loop;
 413      }
 0414      if (other.ShouldReset != false) {
 0415        ShouldReset = other.ShouldReset;
 416      }
 0417      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0418    }
 419
 420    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 421    public void MergeFrom(pb::CodedInputStream input) {
 422      uint tag;
 7423      while ((tag = input.ReadTag()) != 0) {
 424        switch(tag) {
 425          default:
 0426            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0427            break;
 428          case 10: {
 1429            Name = input.ReadString();
 1430            break;
 431          }
 432          case 18: {
 1433            Clip = input.ReadString();
 1434            break;
 435          }
 436          case 24: {
 1437            Playing = input.ReadBool();
 1438            break;
 439          }
 440          case 37: {
 1441            Weight = input.ReadFloat();
 1442            break;
 443          }
 444          case 45: {
 1445            Speed = input.ReadFloat();
 1446            break;
 447          }
 448          case 48: {
 1449            Loop = input.ReadBool();
 1450            break;
 451          }
 452          case 56: {
 0453            ShouldReset = input.ReadBool();
 454            break;
 455          }
 456        }
 457      }
 1458    }
 459
 460  }
 461
 462  #endregion
 463
 464}
 465
 466#endregion Designer generated code