< Summary

Class:DCL.ECSComponents.PBAnimationState
Assembly:DCL.ECSComponents.ProtobufData
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/PBFiles/Animator.cs
Covered lines:86
Uncovered lines:77
Coverable lines:163
Total lines:715
Line coverage:52.7% (86 of 163)
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%
ClearPlaying()0%2100%
ClearWeight()0%2100%
ClearSpeed()0%2100%
ClearLoop()0%2100%
ClearShouldReset()0%2100%
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            "YXRpb25TdGF0ZSLWAQoQUEJBbmltYXRpb25TdGF0ZRIMCgRuYW1lGAEgASgJ",
 30            "EgwKBGNsaXAYAiABKAkSFAoHcGxheWluZxgDIAEoCEgAiAEBEhMKBndlaWdo",
 31            "dBgEIAEoAkgBiAEBEhIKBXNwZWVkGAUgASgCSAKIAQESEQoEbG9vcBgGIAEo",
 32            "CEgDiAEBEhkKDHNob3VsZF9yZXNldBgHIAEoCEgEiAEBQgoKCF9wbGF5aW5n",
 33            "QgkKB193ZWlnaHRCCAoGX3NwZWVkQgcKBV9sb29wQg8KDV9zaG91bGRfcmVz",
 34            "ZXRCFKoCEURDTC5FQ1NDb21wb25lbnRzYgZwcm90bzM="));
 35      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 36          new pbr::FileDescriptor[] { },
 37          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 38            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBAnimator), global::DCL.ECSComponents.PBAnim
 39            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBAnimationState), global::DCL.ECSComponents.
 40          }));
 41    }
 42    #endregion
 43
 44  }
 45  #region Messages
 46  public sealed partial class PBAnimator : pb::IMessage<PBAnimator>
 47  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 48      , pb::IBufferMessage
 49  #endif
 50  {
 51    private static readonly pb::MessageParser<PBAnimator> _parser = new pb::MessageParser<PBAnimator>(() => new PBAnimat
 52    private pb::UnknownFieldSet _unknownFields;
 53    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 54    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 55    public static pb::MessageParser<PBAnimator> Parser { get { return _parser; } }
 56
 57    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 58    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 59    public static pbr::MessageDescriptor Descriptor {
 60      get { return global::DCL.ECSComponents.AnimatorReflection.Descriptor.MessageTypes[0]; }
 61    }
 62
 63    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 64    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 65    pbr::MessageDescriptor pb::IMessage.Descriptor {
 66      get { return Descriptor; }
 67    }
 68
 69    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 70    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 71    public PBAnimator() {
 72      OnConstruction();
 73    }
 74
 75    partial void OnConstruction();
 76
 77    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 78    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 79    public PBAnimator(PBAnimator other) : this() {
 80      states_ = other.states_.Clone();
 81      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 82    }
 83
 84    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 85    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 86    public PBAnimator Clone() {
 87      return new PBAnimator(this);
 88    }
 89
 90    /// <summary>Field number for the "states" field.</summary>
 91    public const int StatesFieldNumber = 1;
 92    private static readonly pb::FieldCodec<global::DCL.ECSComponents.PBAnimationState> _repeated_states_codec
 93        = pb::FieldCodec.ForMessage(10, global::DCL.ECSComponents.PBAnimationState.Parser);
 94    private readonly pbc::RepeatedField<global::DCL.ECSComponents.PBAnimationState> states_ = new pbc::RepeatedField<glo
 95    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 96    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 97    public pbc::RepeatedField<global::DCL.ECSComponents.PBAnimationState> States {
 98      get { return states_; }
 99    }
 100
 101    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 102    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 103    public override bool Equals(object other) {
 104      return Equals(other as PBAnimator);
 105    }
 106
 107    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 108    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 109    public bool Equals(PBAnimator other) {
 110      if (ReferenceEquals(other, null)) {
 111        return false;
 112      }
 113      if (ReferenceEquals(other, this)) {
 114        return true;
 115      }
 116      if(!states_.Equals(other.states_)) return false;
 117      return Equals(_unknownFields, other._unknownFields);
 118    }
 119
 120    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 121    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 122    public override int GetHashCode() {
 123      int hash = 1;
 124      hash ^= states_.GetHashCode();
 125      if (_unknownFields != null) {
 126        hash ^= _unknownFields.GetHashCode();
 127      }
 128      return hash;
 129    }
 130
 131    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 132    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 133    public override string ToString() {
 134      return pb::JsonFormatter.ToDiagnosticString(this);
 135    }
 136
 137    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 138    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 139    public void WriteTo(pb::CodedOutputStream output) {
 140    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 141      output.WriteRawMessage(this);
 142    #else
 143      states_.WriteTo(output, _repeated_states_codec);
 144      if (_unknownFields != null) {
 145        _unknownFields.WriteTo(output);
 146      }
 147    #endif
 148    }
 149
 150    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 151    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 152    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 153    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 154      states_.WriteTo(ref output, _repeated_states_codec);
 155      if (_unknownFields != null) {
 156        _unknownFields.WriteTo(ref output);
 157      }
 158    }
 159    #endif
 160
 161    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 162    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 163    public int CalculateSize() {
 164      int size = 0;
 165      size += states_.CalculateSize(_repeated_states_codec);
 166      if (_unknownFields != null) {
 167        size += _unknownFields.CalculateSize();
 168      }
 169      return size;
 170    }
 171
 172    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 173    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 174    public void MergeFrom(PBAnimator other) {
 175      if (other == null) {
 176        return;
 177      }
 178      states_.Add(other.states_);
 179      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 180    }
 181
 182    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 183    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 184    public void MergeFrom(pb::CodedInputStream input) {
 185    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 186      input.ReadRawMessage(this);
 187    #else
 188      uint tag;
 189      while ((tag = input.ReadTag()) != 0) {
 190        switch(tag) {
 191          default:
 192            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 193            break;
 194          case 10: {
 195            states_.AddEntriesFrom(input, _repeated_states_codec);
 196            break;
 197          }
 198        }
 199      }
 200    #endif
 201    }
 202
 203    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 204    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 205    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 206    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 207      uint tag;
 208      while ((tag = input.ReadTag()) != 0) {
 209        switch(tag) {
 210          default:
 211            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 212            break;
 213          case 10: {
 214            states_.AddEntriesFrom(ref input, _repeated_states_codec);
 215            break;
 216          }
 217        }
 218      }
 219    }
 220    #endif
 221
 222  }
 223
 224  public sealed partial class PBAnimationState : pb::IMessage<PBAnimationState>
 225  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 226      , pb::IBufferMessage
 227  #endif
 228  {
 2229    private static readonly pb::MessageParser<PBAnimationState> _parser = new pb::MessageParser<PBAnimationState>(() => 
 230    private pb::UnknownFieldSet _unknownFields;
 231    private int _hasBits0;
 232    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 233    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1234    public static pb::MessageParser<PBAnimationState> Parser { get { return _parser; } }
 235
 236    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 237    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 238    public static pbr::MessageDescriptor Descriptor {
 0239      get { return global::DCL.ECSComponents.AnimatorReflection.Descriptor.MessageTypes[1]; }
 240    }
 241
 242    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 243    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 244    pbr::MessageDescriptor pb::IMessage.Descriptor {
 0245      get { return Descriptor; }
 246    }
 247
 248    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 249    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 4250    public PBAnimationState() {
 251      OnConstruction();
 4252    }
 253
 254    partial void OnConstruction();
 255
 256    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 257    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0258    public PBAnimationState(PBAnimationState other) : this() {
 0259      _hasBits0 = other._hasBits0;
 0260      name_ = other.name_;
 0261      clip_ = other.clip_;
 0262      playing_ = other.playing_;
 0263      weight_ = other.weight_;
 0264      speed_ = other.speed_;
 0265      loop_ = other.loop_;
 0266      shouldReset_ = other.shouldReset_;
 0267      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 0268    }
 269
 270    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 271    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 272    public PBAnimationState Clone() {
 0273      return new PBAnimationState(this);
 274    }
 275
 276    /// <summary>Field number for the "name" field.</summary>
 277    public const int NameFieldNumber = 1;
 4278    private string name_ = "";
 279    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 280    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 281    public string Name {
 0282      get { return name_; }
 283      set {
 3284        name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 3285      }
 286    }
 287
 288    /// <summary>Field number for the "clip" field.</summary>
 289    public const int ClipFieldNumber = 2;
 4290    private string clip_ = "";
 291    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 292    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 293    public string Clip {
 0294      get { return clip_; }
 295      set {
 3296        clip_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 3297      }
 298    }
 299
 300    /// <summary>Field number for the "playing" field.</summary>
 301    public const int PlayingFieldNumber = 3;
 302    private bool playing_;
 303    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 304    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 305    public bool Playing {
 0306      get { if ((_hasBits0 & 1) != 0) { return playing_; } else { return false; } }
 307      set {
 4308        _hasBits0 |= 1;
 4309        playing_ = value;
 4310      }
 311    }
 312    /// <summary>Gets whether the "playing" field is set</summary>
 313    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 314    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 315    public bool HasPlaying {
 0316      get { return (_hasBits0 & 1) != 0; }
 317    }
 318    /// <summary>Clears the value of the "playing" field</summary>
 319    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 320    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 321    public void ClearPlaying() {
 0322      _hasBits0 &= ~1;
 0323    }
 324
 325    /// <summary>Field number for the "weight" field.</summary>
 326    public const int WeightFieldNumber = 4;
 327    private float weight_;
 328    /// <summary>
 329    /// default=1.0s
 330    /// </summary>
 331    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 332    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 333    public float Weight {
 8334      get { if ((_hasBits0 & 2) != 0) { return weight_; } else { return 0F; } }
 335      set {
 4336        _hasBits0 |= 2;
 4337        weight_ = value;
 4338      }
 339    }
 340    /// <summary>Gets whether the "weight" field is set</summary>
 341    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 342    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 343    public bool HasWeight {
 0344      get { return (_hasBits0 & 2) != 0; }
 345    }
 346    /// <summary>Clears the value of the "weight" field</summary>
 347    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 348    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 349    public void ClearWeight() {
 0350      _hasBits0 &= ~2;
 0351    }
 352
 353    /// <summary>Field number for the "speed" field.</summary>
 354    public const int SpeedFieldNumber = 5;
 355    private float speed_;
 356    /// <summary>
 357    /// default=1.0
 358    /// </summary>
 359    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 360    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 361    public float Speed {
 8362      get { if ((_hasBits0 & 4) != 0) { return speed_; } else { return 0F; } }
 363      set {
 4364        _hasBits0 |= 4;
 4365        speed_ = value;
 4366      }
 367    }
 368    /// <summary>Gets whether the "speed" field is set</summary>
 369    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 370    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 371    public bool HasSpeed {
 0372      get { return (_hasBits0 & 4) != 0; }
 373    }
 374    /// <summary>Clears the value of the "speed" field</summary>
 375    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 376    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 377    public void ClearSpeed() {
 0378      _hasBits0 &= ~4;
 0379    }
 380
 381    /// <summary>Field number for the "loop" field.</summary>
 382    public const int LoopFieldNumber = 6;
 383    private bool loop_;
 384    /// <summary>
 385    /// default=true
 386    /// </summary>
 387    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 388    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 389    public bool Loop {
 0390      get { if ((_hasBits0 & 8) != 0) { return loop_; } else { return false; } }
 391      set {
 4392        _hasBits0 |= 8;
 4393        loop_ = value;
 4394      }
 395    }
 396    /// <summary>Gets whether the "loop" field is set</summary>
 397    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 398    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 399    public bool HasLoop {
 0400      get { return (_hasBits0 & 8) != 0; }
 401    }
 402    /// <summary>Clears the value of the "loop" field</summary>
 403    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 404    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 405    public void ClearLoop() {
 0406      _hasBits0 &= ~8;
 0407    }
 408
 409    /// <summary>Field number for the "should_reset" field.</summary>
 410    public const int ShouldResetFieldNumber = 7;
 411    private bool shouldReset_;
 412    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 413    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 414    public bool ShouldReset {
 4415      get { if ((_hasBits0 & 16) != 0) { return shouldReset_; } else { return false; } }
 416      set {
 0417        _hasBits0 |= 16;
 0418        shouldReset_ = value;
 0419      }
 420    }
 421    /// <summary>Gets whether the "should_reset" field is set</summary>
 422    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 423    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 424    public bool HasShouldReset {
 0425      get { return (_hasBits0 & 16) != 0; }
 426    }
 427    /// <summary>Clears the value of the "should_reset" field</summary>
 428    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 429    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 430    public void ClearShouldReset() {
 0431      _hasBits0 &= ~16;
 0432    }
 433
 434    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 435    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 436    public override bool Equals(object other) {
 0437      return Equals(other as PBAnimationState);
 438    }
 439
 440    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 441    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 442    public bool Equals(PBAnimationState other) {
 1443      if (ReferenceEquals(other, null)) {
 0444        return false;
 445      }
 1446      if (ReferenceEquals(other, this)) {
 0447        return true;
 448      }
 1449      if (Name != other.Name) return false;
 1450      if (Clip != other.Clip) return false;
 1451      if (Playing != other.Playing) return false;
 1452      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Weight, other.Weight)) return false;
 1453      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Speed, other.Speed)) return false;
 1454      if (Loop != other.Loop) return false;
 1455      if (ShouldReset != other.ShouldReset) return false;
 1456      return Equals(_unknownFields, other._unknownFields);
 457    }
 458
 459    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 460    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 461    public override int GetHashCode() {
 0462      int hash = 1;
 0463      if (Name.Length != 0) hash ^= Name.GetHashCode();
 0464      if (Clip.Length != 0) hash ^= Clip.GetHashCode();
 0465      if (HasPlaying) hash ^= Playing.GetHashCode();
 0466      if (HasWeight) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Weight);
 0467      if (HasSpeed) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Speed);
 0468      if (HasLoop) hash ^= Loop.GetHashCode();
 0469      if (HasShouldReset) hash ^= ShouldReset.GetHashCode();
 0470      if (_unknownFields != null) {
 0471        hash ^= _unknownFields.GetHashCode();
 472      }
 0473      return hash;
 474    }
 475
 476    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 477    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 478    public override string ToString() {
 0479      return pb::JsonFormatter.ToDiagnosticString(this);
 480    }
 481
 482    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 483    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 484    public void WriteTo(pb::CodedOutputStream output) {
 485    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 486      output.WriteRawMessage(this);
 487    #else
 2488      if (Name.Length != 0) {
 2489        output.WriteRawTag(10);
 2490        output.WriteString(Name);
 491      }
 2492      if (Clip.Length != 0) {
 2493        output.WriteRawTag(18);
 2494        output.WriteString(Clip);
 495      }
 2496      if (HasPlaying) {
 2497        output.WriteRawTag(24);
 2498        output.WriteBool(Playing);
 499      }
 2500      if (HasWeight) {
 2501        output.WriteRawTag(37);
 2502        output.WriteFloat(Weight);
 503      }
 2504      if (HasSpeed) {
 2505        output.WriteRawTag(45);
 2506        output.WriteFloat(Speed);
 507      }
 2508      if (HasLoop) {
 2509        output.WriteRawTag(48);
 2510        output.WriteBool(Loop);
 511      }
 2512      if (HasShouldReset) {
 0513        output.WriteRawTag(56);
 0514        output.WriteBool(ShouldReset);
 515      }
 2516      if (_unknownFields != null) {
 0517        _unknownFields.WriteTo(output);
 518      }
 519    #endif
 2520    }
 521
 522    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 523    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 524    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 525    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 526      if (Name.Length != 0) {
 527        output.WriteRawTag(10);
 528        output.WriteString(Name);
 529      }
 530      if (Clip.Length != 0) {
 531        output.WriteRawTag(18);
 532        output.WriteString(Clip);
 533      }
 534      if (HasPlaying) {
 535        output.WriteRawTag(24);
 536        output.WriteBool(Playing);
 537      }
 538      if (HasWeight) {
 539        output.WriteRawTag(37);
 540        output.WriteFloat(Weight);
 541      }
 542      if (HasSpeed) {
 543        output.WriteRawTag(45);
 544        output.WriteFloat(Speed);
 545      }
 546      if (HasLoop) {
 547        output.WriteRawTag(48);
 548        output.WriteBool(Loop);
 549      }
 550      if (HasShouldReset) {
 551        output.WriteRawTag(56);
 552        output.WriteBool(ShouldReset);
 553      }
 554      if (_unknownFields != null) {
 555        _unknownFields.WriteTo(ref output);
 556      }
 557    }
 558    #endif
 559
 560    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 561    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 562    public int CalculateSize() {
 2563      int size = 0;
 2564      if (Name.Length != 0) {
 2565        size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
 566      }
 2567      if (Clip.Length != 0) {
 2568        size += 1 + pb::CodedOutputStream.ComputeStringSize(Clip);
 569      }
 2570      if (HasPlaying) {
 2571        size += 1 + 1;
 572      }
 2573      if (HasWeight) {
 2574        size += 1 + 4;
 575      }
 2576      if (HasSpeed) {
 2577        size += 1 + 4;
 578      }
 2579      if (HasLoop) {
 2580        size += 1 + 1;
 581      }
 2582      if (HasShouldReset) {
 0583        size += 1 + 1;
 584      }
 2585      if (_unknownFields != null) {
 0586        size += _unknownFields.CalculateSize();
 587      }
 2588      return size;
 589    }
 590
 591    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 592    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 593    public void MergeFrom(PBAnimationState other) {
 0594      if (other == null) {
 0595        return;
 596      }
 0597      if (other.Name.Length != 0) {
 0598        Name = other.Name;
 599      }
 0600      if (other.Clip.Length != 0) {
 0601        Clip = other.Clip;
 602      }
 0603      if (other.HasPlaying) {
 0604        Playing = other.Playing;
 605      }
 0606      if (other.HasWeight) {
 0607        Weight = other.Weight;
 608      }
 0609      if (other.HasSpeed) {
 0610        Speed = other.Speed;
 611      }
 0612      if (other.HasLoop) {
 0613        Loop = other.Loop;
 614      }
 0615      if (other.HasShouldReset) {
 0616        ShouldReset = other.ShouldReset;
 617      }
 0618      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0619    }
 620
 621    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 622    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 623    public void MergeFrom(pb::CodedInputStream input) {
 624    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 625      input.ReadRawMessage(this);
 626    #else
 627      uint tag;
 7628      while ((tag = input.ReadTag()) != 0) {
 629        switch(tag) {
 630          default:
 0631            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0632            break;
 633          case 10: {
 1634            Name = input.ReadString();
 1635            break;
 636          }
 637          case 18: {
 1638            Clip = input.ReadString();
 1639            break;
 640          }
 641          case 24: {
 1642            Playing = input.ReadBool();
 1643            break;
 644          }
 645          case 37: {
 1646            Weight = input.ReadFloat();
 1647            break;
 648          }
 649          case 45: {
 1650            Speed = input.ReadFloat();
 1651            break;
 652          }
 653          case 48: {
 1654            Loop = input.ReadBool();
 1655            break;
 656          }
 657          case 56: {
 0658            ShouldReset = input.ReadBool();
 659            break;
 660          }
 661        }
 662      }
 663    #endif
 1664    }
 665
 666    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 667    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 668    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 669    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 670      uint tag;
 671      while ((tag = input.ReadTag()) != 0) {
 672        switch(tag) {
 673          default:
 674            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 675            break;
 676          case 10: {
 677            Name = input.ReadString();
 678            break;
 679          }
 680          case 18: {
 681            Clip = input.ReadString();
 682            break;
 683          }
 684          case 24: {
 685            Playing = input.ReadBool();
 686            break;
 687          }
 688          case 37: {
 689            Weight = input.ReadFloat();
 690            break;
 691          }
 692          case 45: {
 693            Speed = input.ReadFloat();
 694            break;
 695          }
 696          case 48: {
 697            Loop = input.ReadBool();
 698            break;
 699          }
 700          case 56: {
 701            ShouldReset = input.ReadBool();
 702            break;
 703          }
 704        }
 705      }
 706    }
 707    #endif
 708
 709  }
 710
 711  #endregion
 712
 713}
 714
 715#endregion Designer generated code