< Summary

Class:DCL.ECSComponents.PBAnimator
Assembly:DCL.ECSComponents.ProtobufData
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/PBFiles/Animator.cs
Covered lines:12
Uncovered lines:34
Coverable lines:46
Total lines:715
Line coverage:26% (12 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/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  {
 251    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)]
 055    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 {
 060      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 {
 066      get { return Descriptor; }
 67    }
 68
 69    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 70    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 371    public PBAnimator() {
 72      OnConstruction();
 373    }
 74
 75    partial void OnConstruction();
 76
 77    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 78    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 079    public PBAnimator(PBAnimator other) : this() {
 080      states_ = other.states_.Clone();
 081      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 082    }
 83
 84    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 85    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 86    public PBAnimator Clone() {
 087      return new PBAnimator(this);
 88    }
 89
 90    /// <summary>Field number for the "states" field.</summary>
 91    public const int StatesFieldNumber = 1;
 192    private static readonly pb::FieldCodec<global::DCL.ECSComponents.PBAnimationState> _repeated_states_codec
 93        = pb::FieldCodec.ForMessage(10, global::DCL.ECSComponents.PBAnimationState.Parser);
 394    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 {
 398      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) {
 0104      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) {
 0110      if (ReferenceEquals(other, null)) {
 0111        return false;
 112      }
 0113      if (ReferenceEquals(other, this)) {
 0114        return true;
 115      }
 0116      if(!states_.Equals(other.states_)) return false;
 0117      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() {
 0123      int hash = 1;
 0124      hash ^= states_.GetHashCode();
 0125      if (_unknownFields != null) {
 0126        hash ^= _unknownFields.GetHashCode();
 127      }
 0128      return hash;
 129    }
 130
 131    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 132    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 133    public override string ToString() {
 0134      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
 2143      states_.WriteTo(output, _repeated_states_codec);
 2144      if (_unknownFields != null) {
 0145        _unknownFields.WriteTo(output);
 146      }
 147    #endif
 2148    }
 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() {
 0164      int size = 0;
 0165      size += states_.CalculateSize(_repeated_states_codec);
 0166      if (_unknownFields != null) {
 0167        size += _unknownFields.CalculateSize();
 168      }
 0169      return size;
 170    }
 171
 172    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 173    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 174    public void MergeFrom(PBAnimator other) {
 0175      if (other == null) {
 0176        return;
 177      }
 0178      states_.Add(other.states_);
 0179      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0180    }
 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;
 2189      while ((tag = input.ReadTag()) != 0) {
 190        switch(tag) {
 191          default:
 0192            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0193            break;
 194          case 10: {
 1195            states_.AddEntriesFrom(input, _repeated_states_codec);
 196            break;
 197          }
 198        }
 199      }
 200    #endif
 1201    }
 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  {
 229    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)]
 234    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 {
 239      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 {
 245      get { return Descriptor; }
 246    }
 247
 248    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 249    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 250    public PBAnimationState() {
 251      OnConstruction();
 252    }
 253
 254    partial void OnConstruction();
 255
 256    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 257    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 258    public PBAnimationState(PBAnimationState other) : this() {
 259      _hasBits0 = other._hasBits0;
 260      name_ = other.name_;
 261      clip_ = other.clip_;
 262      playing_ = other.playing_;
 263      weight_ = other.weight_;
 264      speed_ = other.speed_;
 265      loop_ = other.loop_;
 266      shouldReset_ = other.shouldReset_;
 267      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 268    }
 269
 270    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 271    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 272    public PBAnimationState Clone() {
 273      return new PBAnimationState(this);
 274    }
 275
 276    /// <summary>Field number for the "name" field.</summary>
 277    public const int NameFieldNumber = 1;
 278    private string name_ = "";
 279    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 280    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 281    public string Name {
 282      get { return name_; }
 283      set {
 284        name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 285      }
 286    }
 287
 288    /// <summary>Field number for the "clip" field.</summary>
 289    public const int ClipFieldNumber = 2;
 290    private string clip_ = "";
 291    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 292    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 293    public string Clip {
 294      get { return clip_; }
 295      set {
 296        clip_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 297      }
 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 {
 306      get { if ((_hasBits0 & 1) != 0) { return playing_; } else { return false; } }
 307      set {
 308        _hasBits0 |= 1;
 309        playing_ = value;
 310      }
 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 {
 316      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() {
 322      _hasBits0 &= ~1;
 323    }
 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 {
 334      get { if ((_hasBits0 & 2) != 0) { return weight_; } else { return 0F; } }
 335      set {
 336        _hasBits0 |= 2;
 337        weight_ = value;
 338      }
 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 {
 344      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() {
 350      _hasBits0 &= ~2;
 351    }
 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 {
 362      get { if ((_hasBits0 & 4) != 0) { return speed_; } else { return 0F; } }
 363      set {
 364        _hasBits0 |= 4;
 365        speed_ = value;
 366      }
 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 {
 372      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() {
 378      _hasBits0 &= ~4;
 379    }
 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 {
 390      get { if ((_hasBits0 & 8) != 0) { return loop_; } else { return false; } }
 391      set {
 392        _hasBits0 |= 8;
 393        loop_ = value;
 394      }
 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 {
 400      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() {
 406      _hasBits0 &= ~8;
 407    }
 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 {
 415      get { if ((_hasBits0 & 16) != 0) { return shouldReset_; } else { return false; } }
 416      set {
 417        _hasBits0 |= 16;
 418        shouldReset_ = value;
 419      }
 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 {
 425      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() {
 431      _hasBits0 &= ~16;
 432    }
 433
 434    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 435    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 436    public override bool Equals(object other) {
 437      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) {
 443      if (ReferenceEquals(other, null)) {
 444        return false;
 445      }
 446      if (ReferenceEquals(other, this)) {
 447        return true;
 448      }
 449      if (Name != other.Name) return false;
 450      if (Clip != other.Clip) return false;
 451      if (Playing != other.Playing) return false;
 452      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Weight, other.Weight)) return false;
 453      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Speed, other.Speed)) return false;
 454      if (Loop != other.Loop) return false;
 455      if (ShouldReset != other.ShouldReset) return false;
 456      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() {
 462      int hash = 1;
 463      if (Name.Length != 0) hash ^= Name.GetHashCode();
 464      if (Clip.Length != 0) hash ^= Clip.GetHashCode();
 465      if (HasPlaying) hash ^= Playing.GetHashCode();
 466      if (HasWeight) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Weight);
 467      if (HasSpeed) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Speed);
 468      if (HasLoop) hash ^= Loop.GetHashCode();
 469      if (HasShouldReset) hash ^= ShouldReset.GetHashCode();
 470      if (_unknownFields != null) {
 471        hash ^= _unknownFields.GetHashCode();
 472      }
 473      return hash;
 474    }
 475
 476    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 477    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 478    public override string ToString() {
 479      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
 488      if (Name.Length != 0) {
 489        output.WriteRawTag(10);
 490        output.WriteString(Name);
 491      }
 492      if (Clip.Length != 0) {
 493        output.WriteRawTag(18);
 494        output.WriteString(Clip);
 495      }
 496      if (HasPlaying) {
 497        output.WriteRawTag(24);
 498        output.WriteBool(Playing);
 499      }
 500      if (HasWeight) {
 501        output.WriteRawTag(37);
 502        output.WriteFloat(Weight);
 503      }
 504      if (HasSpeed) {
 505        output.WriteRawTag(45);
 506        output.WriteFloat(Speed);
 507      }
 508      if (HasLoop) {
 509        output.WriteRawTag(48);
 510        output.WriteBool(Loop);
 511      }
 512      if (HasShouldReset) {
 513        output.WriteRawTag(56);
 514        output.WriteBool(ShouldReset);
 515      }
 516      if (_unknownFields != null) {
 517        _unknownFields.WriteTo(output);
 518      }
 519    #endif
 520    }
 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() {
 563      int size = 0;
 564      if (Name.Length != 0) {
 565        size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
 566      }
 567      if (Clip.Length != 0) {
 568        size += 1 + pb::CodedOutputStream.ComputeStringSize(Clip);
 569      }
 570      if (HasPlaying) {
 571        size += 1 + 1;
 572      }
 573      if (HasWeight) {
 574        size += 1 + 4;
 575      }
 576      if (HasSpeed) {
 577        size += 1 + 4;
 578      }
 579      if (HasLoop) {
 580        size += 1 + 1;
 581      }
 582      if (HasShouldReset) {
 583        size += 1 + 1;
 584      }
 585      if (_unknownFields != null) {
 586        size += _unknownFields.CalculateSize();
 587      }
 588      return size;
 589    }
 590
 591    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 592    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 593    public void MergeFrom(PBAnimationState other) {
 594      if (other == null) {
 595        return;
 596      }
 597      if (other.Name.Length != 0) {
 598        Name = other.Name;
 599      }
 600      if (other.Clip.Length != 0) {
 601        Clip = other.Clip;
 602      }
 603      if (other.HasPlaying) {
 604        Playing = other.Playing;
 605      }
 606      if (other.HasWeight) {
 607        Weight = other.Weight;
 608      }
 609      if (other.HasSpeed) {
 610        Speed = other.Speed;
 611      }
 612      if (other.HasLoop) {
 613        Loop = other.Loop;
 614      }
 615      if (other.HasShouldReset) {
 616        ShouldReset = other.ShouldReset;
 617      }
 618      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 619    }
 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;
 628      while ((tag = input.ReadTag()) != 0) {
 629        switch(tag) {
 630          default:
 631            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 632            break;
 633          case 10: {
 634            Name = input.ReadString();
 635            break;
 636          }
 637          case 18: {
 638            Clip = input.ReadString();
 639            break;
 640          }
 641          case 24: {
 642            Playing = input.ReadBool();
 643            break;
 644          }
 645          case 37: {
 646            Weight = input.ReadFloat();
 647            break;
 648          }
 649          case 45: {
 650            Speed = input.ReadFloat();
 651            break;
 652          }
 653          case 48: {
 654            Loop = input.ReadBool();
 655            break;
 656          }
 657          case 56: {
 658            ShouldReset = input.ReadBool();
 659            break;
 660          }
 661        }
 662      }
 663    #endif
 664    }
 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