< Summary

Class:DCL.ECSComponents.PBAnimationState
Assembly:Decentraland.Protocol.GeneratedCode
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/Animator.gen.cs
Covered lines:95
Uncovered lines:68
Coverable lines:163
Total lines:716
Line coverage:58.2% (95 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/Scripts/MainScripts/DCL/DecentralandProtocol/Animator.gen.cs

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: decentraland/sdk/components/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 decentraland/sdk/components/animator.proto</summary>
 15  public static partial class AnimatorReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for decentraland/sdk/components/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            "CipkZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvYW5pbWF0b3IucHJvdG8S",
 28            "G2RlY2VudHJhbGFuZC5zZGsuY29tcG9uZW50cyJLCgpQQkFuaW1hdG9yEj0K",
 29            "BnN0YXRlcxgBIAMoCzItLmRlY2VudHJhbGFuZC5zZGsuY29tcG9uZW50cy5Q",
 30            "QkFuaW1hdGlvblN0YXRlItYBChBQQkFuaW1hdGlvblN0YXRlEgwKBG5hbWUY",
 31            "ASABKAkSDAoEY2xpcBgCIAEoCRIUCgdwbGF5aW5nGAMgASgISACIAQESEwoG",
 32            "d2VpZ2h0GAQgASgCSAGIAQESEgoFc3BlZWQYBSABKAJIAogBARIRCgRsb29w",
 33            "GAYgASgISAOIAQESGQoMc2hvdWxkX3Jlc2V0GAcgASgISASIAQFCCgoIX3Bs",
 34            "YXlpbmdCCQoHX3dlaWdodEIICgZfc3BlZWRCBwoFX2xvb3BCDwoNX3Nob3Vs",
 35            "ZF9yZXNldEIUqgIRRENMLkVDU0NvbXBvbmVudHNiBnByb3RvMw=="));
 36      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 37          new pbr::FileDescriptor[] { },
 38          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 39            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBAnimator), global::DCL.ECSComponents.PBAnim
 40            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBAnimationState), global::DCL.ECSComponents.
 41          }));
 42    }
 43    #endregion
 44
 45  }
 46  #region Messages
 47  public sealed partial class PBAnimator : pb::IMessage<PBAnimator>
 48  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 49      , pb::IBufferMessage
 50  #endif
 51  {
 52    private static readonly pb::MessageParser<PBAnimator> _parser = new pb::MessageParser<PBAnimator>(() => new PBAnimat
 53    private pb::UnknownFieldSet _unknownFields;
 54    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 55    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 56    public static pb::MessageParser<PBAnimator> Parser { get { return _parser; } }
 57
 58    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 59    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 60    public static pbr::MessageDescriptor Descriptor {
 61      get { return global::DCL.ECSComponents.AnimatorReflection.Descriptor.MessageTypes[0]; }
 62    }
 63
 64    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 65    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 66    pbr::MessageDescriptor pb::IMessage.Descriptor {
 67      get { return Descriptor; }
 68    }
 69
 70    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 71    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 72    public PBAnimator() {
 73      OnConstruction();
 74    }
 75
 76    partial void OnConstruction();
 77
 78    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 79    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 80    public PBAnimator(PBAnimator other) : this() {
 81      states_ = other.states_.Clone();
 82      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 83    }
 84
 85    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 86    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 87    public PBAnimator Clone() {
 88      return new PBAnimator(this);
 89    }
 90
 91    /// <summary>Field number for the "states" field.</summary>
 92    public const int StatesFieldNumber = 1;
 93    private static readonly pb::FieldCodec<global::DCL.ECSComponents.PBAnimationState> _repeated_states_codec
 94        = pb::FieldCodec.ForMessage(10, global::DCL.ECSComponents.PBAnimationState.Parser);
 95    private readonly pbc::RepeatedField<global::DCL.ECSComponents.PBAnimationState> states_ = new pbc::RepeatedField<glo
 96    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 97    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 98    public pbc::RepeatedField<global::DCL.ECSComponents.PBAnimationState> States {
 99      get { return states_; }
 100    }
 101
 102    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 103    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 104    public override bool Equals(object other) {
 105      return Equals(other as PBAnimator);
 106    }
 107
 108    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 109    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 110    public bool Equals(PBAnimator other) {
 111      if (ReferenceEquals(other, null)) {
 112        return false;
 113      }
 114      if (ReferenceEquals(other, this)) {
 115        return true;
 116      }
 117      if(!states_.Equals(other.states_)) return false;
 118      return Equals(_unknownFields, other._unknownFields);
 119    }
 120
 121    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 122    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 123    public override int GetHashCode() {
 124      int hash = 1;
 125      hash ^= states_.GetHashCode();
 126      if (_unknownFields != null) {
 127        hash ^= _unknownFields.GetHashCode();
 128      }
 129      return hash;
 130    }
 131
 132    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 133    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 134    public override string ToString() {
 135      return pb::JsonFormatter.ToDiagnosticString(this);
 136    }
 137
 138    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 139    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 140    public void WriteTo(pb::CodedOutputStream output) {
 141    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 142      output.WriteRawMessage(this);
 143    #else
 144      states_.WriteTo(output, _repeated_states_codec);
 145      if (_unknownFields != null) {
 146        _unknownFields.WriteTo(output);
 147      }
 148    #endif
 149    }
 150
 151    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 152    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 153    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 154    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 155      states_.WriteTo(ref output, _repeated_states_codec);
 156      if (_unknownFields != null) {
 157        _unknownFields.WriteTo(ref output);
 158      }
 159    }
 160    #endif
 161
 162    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 163    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 164    public int CalculateSize() {
 165      int size = 0;
 166      size += states_.CalculateSize(_repeated_states_codec);
 167      if (_unknownFields != null) {
 168        size += _unknownFields.CalculateSize();
 169      }
 170      return size;
 171    }
 172
 173    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 174    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 175    public void MergeFrom(PBAnimator other) {
 176      if (other == null) {
 177        return;
 178      }
 179      states_.Add(other.states_);
 180      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 181    }
 182
 183    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 184    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 185    public void MergeFrom(pb::CodedInputStream input) {
 186    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 187      input.ReadRawMessage(this);
 188    #else
 189      uint tag;
 190      while ((tag = input.ReadTag()) != 0) {
 191        switch(tag) {
 192          default:
 193            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 194            break;
 195          case 10: {
 196            states_.AddEntriesFrom(input, _repeated_states_codec);
 197            break;
 198          }
 199        }
 200      }
 201    #endif
 202    }
 203
 204    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 205    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 206    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 207    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 208      uint tag;
 209      while ((tag = input.ReadTag()) != 0) {
 210        switch(tag) {
 211          default:
 212            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 213            break;
 214          case 10: {
 215            states_.AddEntriesFrom(ref input, _repeated_states_codec);
 216            break;
 217          }
 218        }
 219      }
 220    }
 221    #endif
 222
 223  }
 224
 225  public sealed partial class PBAnimationState : pb::IMessage<PBAnimationState>
 226  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 227      , pb::IBufferMessage
 228  #endif
 229  {
 2230    private static readonly pb::MessageParser<PBAnimationState> _parser = new pb::MessageParser<PBAnimationState>(() => 
 231    private pb::UnknownFieldSet _unknownFields;
 232    private int _hasBits0;
 233    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 234    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1235    public static pb::MessageParser<PBAnimationState> Parser { get { return _parser; } }
 236
 237    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 238    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 239    public static pbr::MessageDescriptor Descriptor {
 0240      get { return global::DCL.ECSComponents.AnimatorReflection.Descriptor.MessageTypes[1]; }
 241    }
 242
 243    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 244    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 245    pbr::MessageDescriptor pb::IMessage.Descriptor {
 0246      get { return Descriptor; }
 247    }
 248
 249    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 250    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 4251    public PBAnimationState() {
 252      OnConstruction();
 4253    }
 254
 255    partial void OnConstruction();
 256
 257    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 258    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0259    public PBAnimationState(PBAnimationState other) : this() {
 0260      _hasBits0 = other._hasBits0;
 0261      name_ = other.name_;
 0262      clip_ = other.clip_;
 0263      playing_ = other.playing_;
 0264      weight_ = other.weight_;
 0265      speed_ = other.speed_;
 0266      loop_ = other.loop_;
 0267      shouldReset_ = other.shouldReset_;
 0268      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 0269    }
 270
 271    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 272    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 273    public PBAnimationState Clone() {
 0274      return new PBAnimationState(this);
 275    }
 276
 277    /// <summary>Field number for the "name" field.</summary>
 278    public const int NameFieldNumber = 1;
 4279    private string name_ = "";
 280    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 281    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 282    public string Name {
 10283      get { return name_; }
 284      set {
 4285        name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 4286      }
 287    }
 288
 289    /// <summary>Field number for the "clip" field.</summary>
 290    public const int ClipFieldNumber = 2;
 4291    private string clip_ = "";
 292    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 293    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 294    public string Clip {
 10295      get { return clip_; }
 296      set {
 4297        clip_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 4298      }
 299    }
 300
 301    /// <summary>Field number for the "playing" field.</summary>
 302    public const int PlayingFieldNumber = 3;
 303    private bool playing_;
 304    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 305    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 306    public bool Playing {
 8307      get { if ((_hasBits0 & 1) != 0) { return playing_; } else { return false; } }
 308      set {
 4309        _hasBits0 |= 1;
 4310        playing_ = value;
 4311      }
 312    }
 313    /// <summary>Gets whether the "playing" field is set</summary>
 314    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 315    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 316    public bool HasPlaying {
 4317      get { return (_hasBits0 & 1) != 0; }
 318    }
 319    /// <summary>Clears the value of the "playing" field</summary>
 320    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 321    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 322    public void ClearPlaying() {
 0323      _hasBits0 &= ~1;
 0324    }
 325
 326    /// <summary>Field number for the "weight" field.</summary>
 327    public const int WeightFieldNumber = 4;
 328    private float weight_;
 329    /// <summary>
 330    /// default=1.0s
 331    /// </summary>
 332    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 333    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 334    public float Weight {
 8335      get { if ((_hasBits0 & 2) != 0) { return weight_; } else { return 0F; } }
 336      set {
 4337        _hasBits0 |= 2;
 4338        weight_ = value;
 4339      }
 340    }
 341    /// <summary>Gets whether the "weight" field is set</summary>
 342    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 343    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 344    public bool HasWeight {
 4345      get { return (_hasBits0 & 2) != 0; }
 346    }
 347    /// <summary>Clears the value of the "weight" field</summary>
 348    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 349    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 350    public void ClearWeight() {
 0351      _hasBits0 &= ~2;
 0352    }
 353
 354    /// <summary>Field number for the "speed" field.</summary>
 355    public const int SpeedFieldNumber = 5;
 356    private float speed_;
 357    /// <summary>
 358    /// default=1.0
 359    /// </summary>
 360    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 361    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 362    public float Speed {
 8363      get { if ((_hasBits0 & 4) != 0) { return speed_; } else { return 0F; } }
 364      set {
 4365        _hasBits0 |= 4;
 4366        speed_ = value;
 4367      }
 368    }
 369    /// <summary>Gets whether the "speed" field is set</summary>
 370    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 371    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 372    public bool HasSpeed {
 4373      get { return (_hasBits0 & 4) != 0; }
 374    }
 375    /// <summary>Clears the value of the "speed" field</summary>
 376    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 377    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 378    public void ClearSpeed() {
 0379      _hasBits0 &= ~4;
 0380    }
 381
 382    /// <summary>Field number for the "loop" field.</summary>
 383    public const int LoopFieldNumber = 6;
 384    private bool loop_;
 385    /// <summary>
 386    /// default=true
 387    /// </summary>
 388    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 389    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 390    public bool Loop {
 8391      get { if ((_hasBits0 & 8) != 0) { return loop_; } else { return false; } }
 392      set {
 4393        _hasBits0 |= 8;
 4394        loop_ = value;
 4395      }
 396    }
 397    /// <summary>Gets whether the "loop" field is set</summary>
 398    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 399    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 400    public bool HasLoop {
 4401      get { return (_hasBits0 & 8) != 0; }
 402    }
 403    /// <summary>Clears the value of the "loop" field</summary>
 404    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 405    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 406    public void ClearLoop() {
 0407      _hasBits0 &= ~8;
 0408    }
 409
 410    /// <summary>Field number for the "should_reset" field.</summary>
 411    public const int ShouldResetFieldNumber = 7;
 412    private bool shouldReset_;
 413    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 414    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 415    public bool ShouldReset {
 4416      get { if ((_hasBits0 & 16) != 0) { return shouldReset_; } else { return false; } }
 417      set {
 0418        _hasBits0 |= 16;
 0419        shouldReset_ = value;
 0420      }
 421    }
 422    /// <summary>Gets whether the "should_reset" field is set</summary>
 423    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 424    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 425    public bool HasShouldReset {
 4426      get { return (_hasBits0 & 16) != 0; }
 427    }
 428    /// <summary>Clears the value of the "should_reset" field</summary>
 429    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 430    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 431    public void ClearShouldReset() {
 0432      _hasBits0 &= ~16;
 0433    }
 434
 435    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 436    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 437    public override bool Equals(object other) {
 0438      return Equals(other as PBAnimationState);
 439    }
 440
 441    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 442    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 443    public bool Equals(PBAnimationState other) {
 1444      if (ReferenceEquals(other, null)) {
 0445        return false;
 446      }
 1447      if (ReferenceEquals(other, this)) {
 0448        return true;
 449      }
 1450      if (Name != other.Name) return false;
 1451      if (Clip != other.Clip) return false;
 1452      if (Playing != other.Playing) return false;
 1453      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Weight, other.Weight)) return false;
 1454      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Speed, other.Speed)) return false;
 1455      if (Loop != other.Loop) return false;
 1456      if (ShouldReset != other.ShouldReset) return false;
 1457      return Equals(_unknownFields, other._unknownFields);
 458    }
 459
 460    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 461    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 462    public override int GetHashCode() {
 0463      int hash = 1;
 0464      if (Name.Length != 0) hash ^= Name.GetHashCode();
 0465      if (Clip.Length != 0) hash ^= Clip.GetHashCode();
 0466      if (HasPlaying) hash ^= Playing.GetHashCode();
 0467      if (HasWeight) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Weight);
 0468      if (HasSpeed) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Speed);
 0469      if (HasLoop) hash ^= Loop.GetHashCode();
 0470      if (HasShouldReset) hash ^= ShouldReset.GetHashCode();
 0471      if (_unknownFields != null) {
 0472        hash ^= _unknownFields.GetHashCode();
 473      }
 0474      return hash;
 475    }
 476
 477    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 478    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 479    public override string ToString() {
 0480      return pb::JsonFormatter.ToDiagnosticString(this);
 481    }
 482
 483    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 484    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 485    public void WriteTo(pb::CodedOutputStream output) {
 486    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 487      output.WriteRawMessage(this);
 488    #else
 2489      if (Name.Length != 0) {
 2490        output.WriteRawTag(10);
 2491        output.WriteString(Name);
 492      }
 2493      if (Clip.Length != 0) {
 2494        output.WriteRawTag(18);
 2495        output.WriteString(Clip);
 496      }
 2497      if (HasPlaying) {
 2498        output.WriteRawTag(24);
 2499        output.WriteBool(Playing);
 500      }
 2501      if (HasWeight) {
 2502        output.WriteRawTag(37);
 2503        output.WriteFloat(Weight);
 504      }
 2505      if (HasSpeed) {
 2506        output.WriteRawTag(45);
 2507        output.WriteFloat(Speed);
 508      }
 2509      if (HasLoop) {
 2510        output.WriteRawTag(48);
 2511        output.WriteBool(Loop);
 512      }
 2513      if (HasShouldReset) {
 0514        output.WriteRawTag(56);
 0515        output.WriteBool(ShouldReset);
 516      }
 2517      if (_unknownFields != null) {
 0518        _unknownFields.WriteTo(output);
 519      }
 520    #endif
 2521    }
 522
 523    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 524    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 525    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 526    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 527      if (Name.Length != 0) {
 528        output.WriteRawTag(10);
 529        output.WriteString(Name);
 530      }
 531      if (Clip.Length != 0) {
 532        output.WriteRawTag(18);
 533        output.WriteString(Clip);
 534      }
 535      if (HasPlaying) {
 536        output.WriteRawTag(24);
 537        output.WriteBool(Playing);
 538      }
 539      if (HasWeight) {
 540        output.WriteRawTag(37);
 541        output.WriteFloat(Weight);
 542      }
 543      if (HasSpeed) {
 544        output.WriteRawTag(45);
 545        output.WriteFloat(Speed);
 546      }
 547      if (HasLoop) {
 548        output.WriteRawTag(48);
 549        output.WriteBool(Loop);
 550      }
 551      if (HasShouldReset) {
 552        output.WriteRawTag(56);
 553        output.WriteBool(ShouldReset);
 554      }
 555      if (_unknownFields != null) {
 556        _unknownFields.WriteTo(ref output);
 557      }
 558    }
 559    #endif
 560
 561    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 562    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 563    public int CalculateSize() {
 2564      int size = 0;
 2565      if (Name.Length != 0) {
 2566        size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
 567      }
 2568      if (Clip.Length != 0) {
 2569        size += 1 + pb::CodedOutputStream.ComputeStringSize(Clip);
 570      }
 2571      if (HasPlaying) {
 2572        size += 1 + 1;
 573      }
 2574      if (HasWeight) {
 2575        size += 1 + 4;
 576      }
 2577      if (HasSpeed) {
 2578        size += 1 + 4;
 579      }
 2580      if (HasLoop) {
 2581        size += 1 + 1;
 582      }
 2583      if (HasShouldReset) {
 0584        size += 1 + 1;
 585      }
 2586      if (_unknownFields != null) {
 0587        size += _unknownFields.CalculateSize();
 588      }
 2589      return size;
 590    }
 591
 592    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 593    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 594    public void MergeFrom(PBAnimationState other) {
 0595      if (other == null) {
 0596        return;
 597      }
 0598      if (other.Name.Length != 0) {
 0599        Name = other.Name;
 600      }
 0601      if (other.Clip.Length != 0) {
 0602        Clip = other.Clip;
 603      }
 0604      if (other.HasPlaying) {
 0605        Playing = other.Playing;
 606      }
 0607      if (other.HasWeight) {
 0608        Weight = other.Weight;
 609      }
 0610      if (other.HasSpeed) {
 0611        Speed = other.Speed;
 612      }
 0613      if (other.HasLoop) {
 0614        Loop = other.Loop;
 615      }
 0616      if (other.HasShouldReset) {
 0617        ShouldReset = other.ShouldReset;
 618      }
 0619      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0620    }
 621
 622    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 623    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 624    public void MergeFrom(pb::CodedInputStream input) {
 625    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 626      input.ReadRawMessage(this);
 627    #else
 628      uint tag;
 7629      while ((tag = input.ReadTag()) != 0) {
 630        switch(tag) {
 631          default:
 0632            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0633            break;
 634          case 10: {
 1635            Name = input.ReadString();
 1636            break;
 637          }
 638          case 18: {
 1639            Clip = input.ReadString();
 1640            break;
 641          }
 642          case 24: {
 1643            Playing = input.ReadBool();
 1644            break;
 645          }
 646          case 37: {
 1647            Weight = input.ReadFloat();
 1648            break;
 649          }
 650          case 45: {
 1651            Speed = input.ReadFloat();
 1652            break;
 653          }
 654          case 48: {
 1655            Loop = input.ReadBool();
 1656            break;
 657          }
 658          case 56: {
 0659            ShouldReset = input.ReadBool();
 660            break;
 661          }
 662        }
 663      }
 664    #endif
 1665    }
 666
 667    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 668    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 669    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 670    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 671      uint tag;
 672      while ((tag = input.ReadTag()) != 0) {
 673        switch(tag) {
 674          default:
 675            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 676            break;
 677          case 10: {
 678            Name = input.ReadString();
 679            break;
 680          }
 681          case 18: {
 682            Clip = input.ReadString();
 683            break;
 684          }
 685          case 24: {
 686            Playing = input.ReadBool();
 687            break;
 688          }
 689          case 37: {
 690            Weight = input.ReadFloat();
 691            break;
 692          }
 693          case 45: {
 694            Speed = input.ReadFloat();
 695            break;
 696          }
 697          case 48: {
 698            Loop = input.ReadBool();
 699            break;
 700          }
 701          case 56: {
 702            ShouldReset = input.ReadBool();
 703            break;
 704          }
 705        }
 706      }
 707    }
 708    #endif
 709
 710  }
 711
 712  #endregion
 713
 714}
 715
 716#endregion Designer generated code