< Summary

Class:DCL.ECSComponents.PBAnimator
Assembly:Decentraland.Protocol.GeneratedCode
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/Animator.gen.cs
Covered lines:13
Uncovered lines:33
Coverable lines:46
Total lines:716
Line coverage:28.2% (13 of 46)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
PBAnimator()0%110100%
get_Descriptor()0%2100%
PBAnimator(...)0%2100%
Clone()0%2100%
PBAnimator()0%110100%
Equals(...)0%2100%
Equals(...)0%20400%
GetHashCode()0%6200%
ToString()0%2100%
WriteTo(...)0%2.062075%
CalculateSize()0%6200%
MergeFrom(...)0%6200%
MergeFrom(...)0%3.583060%

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  {
 252    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)]
 156    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 {
 061      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 {
 067      get { return Descriptor; }
 68    }
 69
 70    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 71    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 472    public PBAnimator() {
 73      OnConstruction();
 474    }
 75
 76    partial void OnConstruction();
 77
 78    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 79    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 080    public PBAnimator(PBAnimator other) : this() {
 081      states_ = other.states_.Clone();
 082      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 083    }
 84
 85    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 86    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 87    public PBAnimator Clone() {
 088      return new PBAnimator(this);
 89    }
 90
 91    /// <summary>Field number for the "states" field.</summary>
 92    public const int StatesFieldNumber = 1;
 193    private static readonly pb::FieldCodec<global::DCL.ECSComponents.PBAnimationState> _repeated_states_codec
 94        = pb::FieldCodec.ForMessage(10, global::DCL.ECSComponents.PBAnimationState.Parser);
 495    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 {
 599      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) {
 0105      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) {
 0111      if (ReferenceEquals(other, null)) {
 0112        return false;
 113      }
 0114      if (ReferenceEquals(other, this)) {
 0115        return true;
 116      }
 0117      if(!states_.Equals(other.states_)) return false;
 0118      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() {
 0124      int hash = 1;
 0125      hash ^= states_.GetHashCode();
 0126      if (_unknownFields != null) {
 0127        hash ^= _unknownFields.GetHashCode();
 128      }
 0129      return hash;
 130    }
 131
 132    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 133    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 134    public override string ToString() {
 0135      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
 2144      states_.WriteTo(output, _repeated_states_codec);
 2145      if (_unknownFields != null) {
 0146        _unknownFields.WriteTo(output);
 147      }
 148    #endif
 2149    }
 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() {
 0165      int size = 0;
 0166      size += states_.CalculateSize(_repeated_states_codec);
 0167      if (_unknownFields != null) {
 0168        size += _unknownFields.CalculateSize();
 169      }
 0170      return size;
 171    }
 172
 173    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 174    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 175    public void MergeFrom(PBAnimator other) {
 0176      if (other == null) {
 0177        return;
 178      }
 0179      states_.Add(other.states_);
 0180      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0181    }
 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;
 2190      while ((tag = input.ReadTag()) != 0) {
 191        switch(tag) {
 192          default:
 0193            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0194            break;
 195          case 10: {
 1196            states_.AddEntriesFrom(input, _repeated_states_codec);
 197            break;
 198          }
 199        }
 200      }
 201    #endif
 1202    }
 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  {
 230    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)]
 235    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 {
 240      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 {
 246      get { return Descriptor; }
 247    }
 248
 249    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 250    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 251    public PBAnimationState() {
 252      OnConstruction();
 253    }
 254
 255    partial void OnConstruction();
 256
 257    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 258    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 259    public PBAnimationState(PBAnimationState other) : this() {
 260      _hasBits0 = other._hasBits0;
 261      name_ = other.name_;
 262      clip_ = other.clip_;
 263      playing_ = other.playing_;
 264      weight_ = other.weight_;
 265      speed_ = other.speed_;
 266      loop_ = other.loop_;
 267      shouldReset_ = other.shouldReset_;
 268      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 269    }
 270
 271    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 272    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 273    public PBAnimationState Clone() {
 274      return new PBAnimationState(this);
 275    }
 276
 277    /// <summary>Field number for the "name" field.</summary>
 278    public const int NameFieldNumber = 1;
 279    private string name_ = "";
 280    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 281    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 282    public string Name {
 283      get { return name_; }
 284      set {
 285        name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 286      }
 287    }
 288
 289    /// <summary>Field number for the "clip" field.</summary>
 290    public const int ClipFieldNumber = 2;
 291    private string clip_ = "";
 292    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 293    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 294    public string Clip {
 295      get { return clip_; }
 296      set {
 297        clip_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 298      }
 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 {
 307      get { if ((_hasBits0 & 1) != 0) { return playing_; } else { return false; } }
 308      set {
 309        _hasBits0 |= 1;
 310        playing_ = value;
 311      }
 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 {
 317      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() {
 323      _hasBits0 &= ~1;
 324    }
 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 {
 335      get { if ((_hasBits0 & 2) != 0) { return weight_; } else { return 0F; } }
 336      set {
 337        _hasBits0 |= 2;
 338        weight_ = value;
 339      }
 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 {
 345      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() {
 351      _hasBits0 &= ~2;
 352    }
 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 {
 363      get { if ((_hasBits0 & 4) != 0) { return speed_; } else { return 0F; } }
 364      set {
 365        _hasBits0 |= 4;
 366        speed_ = value;
 367      }
 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 {
 373      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() {
 379      _hasBits0 &= ~4;
 380    }
 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 {
 391      get { if ((_hasBits0 & 8) != 0) { return loop_; } else { return false; } }
 392      set {
 393        _hasBits0 |= 8;
 394        loop_ = value;
 395      }
 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 {
 401      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() {
 407      _hasBits0 &= ~8;
 408    }
 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 {
 416      get { if ((_hasBits0 & 16) != 0) { return shouldReset_; } else { return false; } }
 417      set {
 418        _hasBits0 |= 16;
 419        shouldReset_ = value;
 420      }
 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 {
 426      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() {
 432      _hasBits0 &= ~16;
 433    }
 434
 435    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 436    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 437    public override bool Equals(object other) {
 438      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) {
 444      if (ReferenceEquals(other, null)) {
 445        return false;
 446      }
 447      if (ReferenceEquals(other, this)) {
 448        return true;
 449      }
 450      if (Name != other.Name) return false;
 451      if (Clip != other.Clip) return false;
 452      if (Playing != other.Playing) return false;
 453      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Weight, other.Weight)) return false;
 454      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Speed, other.Speed)) return false;
 455      if (Loop != other.Loop) return false;
 456      if (ShouldReset != other.ShouldReset) return false;
 457      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() {
 463      int hash = 1;
 464      if (Name.Length != 0) hash ^= Name.GetHashCode();
 465      if (Clip.Length != 0) hash ^= Clip.GetHashCode();
 466      if (HasPlaying) hash ^= Playing.GetHashCode();
 467      if (HasWeight) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Weight);
 468      if (HasSpeed) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Speed);
 469      if (HasLoop) hash ^= Loop.GetHashCode();
 470      if (HasShouldReset) hash ^= ShouldReset.GetHashCode();
 471      if (_unknownFields != null) {
 472        hash ^= _unknownFields.GetHashCode();
 473      }
 474      return hash;
 475    }
 476
 477    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 478    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 479    public override string ToString() {
 480      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
 489      if (Name.Length != 0) {
 490        output.WriteRawTag(10);
 491        output.WriteString(Name);
 492      }
 493      if (Clip.Length != 0) {
 494        output.WriteRawTag(18);
 495        output.WriteString(Clip);
 496      }
 497      if (HasPlaying) {
 498        output.WriteRawTag(24);
 499        output.WriteBool(Playing);
 500      }
 501      if (HasWeight) {
 502        output.WriteRawTag(37);
 503        output.WriteFloat(Weight);
 504      }
 505      if (HasSpeed) {
 506        output.WriteRawTag(45);
 507        output.WriteFloat(Speed);
 508      }
 509      if (HasLoop) {
 510        output.WriteRawTag(48);
 511        output.WriteBool(Loop);
 512      }
 513      if (HasShouldReset) {
 514        output.WriteRawTag(56);
 515        output.WriteBool(ShouldReset);
 516      }
 517      if (_unknownFields != null) {
 518        _unknownFields.WriteTo(output);
 519      }
 520    #endif
 521    }
 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() {
 564      int size = 0;
 565      if (Name.Length != 0) {
 566        size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
 567      }
 568      if (Clip.Length != 0) {
 569        size += 1 + pb::CodedOutputStream.ComputeStringSize(Clip);
 570      }
 571      if (HasPlaying) {
 572        size += 1 + 1;
 573      }
 574      if (HasWeight) {
 575        size += 1 + 4;
 576      }
 577      if (HasSpeed) {
 578        size += 1 + 4;
 579      }
 580      if (HasLoop) {
 581        size += 1 + 1;
 582      }
 583      if (HasShouldReset) {
 584        size += 1 + 1;
 585      }
 586      if (_unknownFields != null) {
 587        size += _unknownFields.CalculateSize();
 588      }
 589      return size;
 590    }
 591
 592    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 593    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 594    public void MergeFrom(PBAnimationState other) {
 595      if (other == null) {
 596        return;
 597      }
 598      if (other.Name.Length != 0) {
 599        Name = other.Name;
 600      }
 601      if (other.Clip.Length != 0) {
 602        Clip = other.Clip;
 603      }
 604      if (other.HasPlaying) {
 605        Playing = other.Playing;
 606      }
 607      if (other.HasWeight) {
 608        Weight = other.Weight;
 609      }
 610      if (other.HasSpeed) {
 611        Speed = other.Speed;
 612      }
 613      if (other.HasLoop) {
 614        Loop = other.Loop;
 615      }
 616      if (other.HasShouldReset) {
 617        ShouldReset = other.ShouldReset;
 618      }
 619      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 620    }
 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;
 629      while ((tag = input.ReadTag()) != 0) {
 630        switch(tag) {
 631          default:
 632            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 633            break;
 634          case 10: {
 635            Name = input.ReadString();
 636            break;
 637          }
 638          case 18: {
 639            Clip = input.ReadString();
 640            break;
 641          }
 642          case 24: {
 643            Playing = input.ReadBool();
 644            break;
 645          }
 646          case 37: {
 647            Weight = input.ReadFloat();
 648            break;
 649          }
 650          case 45: {
 651            Speed = input.ReadFloat();
 652            break;
 653          }
 654          case 48: {
 655            Loop = input.ReadBool();
 656            break;
 657          }
 658          case 56: {
 659            ShouldReset = input.ReadBool();
 660            break;
 661          }
 662        }
 663      }
 664    #endif
 665    }
 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