< Summary

Class:DCL.ECSComponents.PBTweenSequence
Assembly:Decentraland.Protocol.GeneratedCode
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/TweenSequence.gen.cs
Covered lines:0
Uncovered lines:66
Coverable lines:66
Total lines:287
Line coverage:0% (0 of 66)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:20
Method coverage:0% (0 of 20)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
PBTweenSequence()0%2100%
get_Descriptor()0%2100%
PBTweenSequence(...)0%2100%
Clone()0%2100%
PBTweenSequence()0%2100%
ClearLoop()0%2100%
Equals(...)0%2100%
Equals(...)0%30500%
GetHashCode()0%12300%
ToString()0%2100%
WriteTo(...)0%12300%
CalculateSize()0%12300%
MergeFrom(...)0%12300%
MergeFrom(...)0%20400%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/TweenSequence.gen.cs

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: decentraland/sdk/components/tween_sequence.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/tween_sequence.proto</summar
 15  public static partial class TweenSequenceReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for decentraland/sdk/components/tween_sequence.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static TweenSequenceReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "CjBkZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvdHdlZW5fc2VxdWVuY2Uu",
 28            "cHJvdG8SG2RlY2VudHJhbGFuZC5zZGsuY29tcG9uZW50cxonZGVjZW50cmFs",
 29            "YW5kL3Nkay9jb21wb25lbnRzL3R3ZWVuLnByb3RvIo0BCg9QQlR3ZWVuU2Vx",
 30            "dWVuY2USNgoIc2VxdWVuY2UYASADKAsyJC5kZWNlbnRyYWxhbmQuc2RrLmNv",
 31            "bXBvbmVudHMuUEJUd2VlbhI5CgRsb29wGAIgASgOMiYuZGVjZW50cmFsYW5k",
 32            "LnNkay5jb21wb25lbnRzLlR3ZWVuTG9vcEgAiAEBQgcKBV9sb29wKigKCVR3",
 33            "ZWVuTG9vcBIOCgpUTF9SRVNUQVJUEAASCwoHVExfWU9ZTxABQhSqAhFEQ0wu",
 34            "RUNTQ29tcG9uZW50c2IGcHJvdG8z"));
 35      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 36          new pbr::FileDescriptor[] { global::DCL.ECSComponents.TweenReflection.Descriptor, },
 37          new pbr::GeneratedClrTypeInfo(new[] {typeof(global::DCL.ECSComponents.TweenLoop), }, null, new pbr::GeneratedC
 38            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBTweenSequence), global::DCL.ECSComponents.P
 39          }));
 40    }
 41    #endregion
 42
 43  }
 44  #region Enums
 45  public enum TweenLoop {
 46    [pbr::OriginalName("TL_RESTART")] TlRestart = 0,
 47    [pbr::OriginalName("TL_YOYO")] TlYoyo = 1,
 48  }
 49
 50  #endregion
 51
 52  #region Messages
 53  public sealed partial class PBTweenSequence : pb::IMessage<PBTweenSequence>
 54  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 55      , pb::IBufferMessage
 56  #endif
 57  {
 058    private static readonly pb::MessageParser<PBTweenSequence> _parser = new pb::MessageParser<PBTweenSequence>(() => ne
 59    private pb::UnknownFieldSet _unknownFields;
 60    private int _hasBits0;
 61    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 62    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 063    public static pb::MessageParser<PBTweenSequence> Parser { get { return _parser; } }
 64
 65    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 66    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 67    public static pbr::MessageDescriptor Descriptor {
 068      get { return global::DCL.ECSComponents.TweenSequenceReflection.Descriptor.MessageTypes[0]; }
 69    }
 70
 71    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 72    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 73    pbr::MessageDescriptor pb::IMessage.Descriptor {
 074      get { return Descriptor; }
 75    }
 76
 77    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 78    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 079    public PBTweenSequence() {
 80      OnConstruction();
 081    }
 82
 83    partial void OnConstruction();
 84
 85    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 86    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 087    public PBTweenSequence(PBTweenSequence other) : this() {
 088      _hasBits0 = other._hasBits0;
 089      sequence_ = other.sequence_.Clone();
 090      loop_ = other.loop_;
 091      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 092    }
 93
 94    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 95    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 96    public PBTweenSequence Clone() {
 097      return new PBTweenSequence(this);
 98    }
 99
 100    /// <summary>Field number for the "sequence" field.</summary>
 101    public const int SequenceFieldNumber = 1;
 0102    private static readonly pb::FieldCodec<global::DCL.ECSComponents.PBTween> _repeated_sequence_codec
 103        = pb::FieldCodec.ForMessage(10, global::DCL.ECSComponents.PBTween.Parser);
 0104    private readonly pbc::RepeatedField<global::DCL.ECSComponents.PBTween> sequence_ = new pbc::RepeatedField<global::DC
 105    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 106    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 107    public pbc::RepeatedField<global::DCL.ECSComponents.PBTween> Sequence {
 0108      get { return sequence_; }
 109    }
 110
 111    /// <summary>Field number for the "loop" field.</summary>
 112    public const int LoopFieldNumber = 2;
 113    private global::DCL.ECSComponents.TweenLoop loop_;
 114    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 115    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 116    public global::DCL.ECSComponents.TweenLoop Loop {
 0117      get { if ((_hasBits0 & 1) != 0) { return loop_; } else { return global::DCL.ECSComponents.TweenLoop.TlRestart; } }
 118      set {
 0119        _hasBits0 |= 1;
 0120        loop_ = value;
 0121      }
 122    }
 123    /// <summary>Gets whether the "loop" field is set</summary>
 124    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 125    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 126    public bool HasLoop {
 0127      get { return (_hasBits0 & 1) != 0; }
 128    }
 129    /// <summary>Clears the value of the "loop" field</summary>
 130    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 131    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 132    public void ClearLoop() {
 0133      _hasBits0 &= ~1;
 0134    }
 135
 136    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 137    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 138    public override bool Equals(object other) {
 0139      return Equals(other as PBTweenSequence);
 140    }
 141
 142    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 143    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 144    public bool Equals(PBTweenSequence other) {
 0145      if (ReferenceEquals(other, null)) {
 0146        return false;
 147      }
 0148      if (ReferenceEquals(other, this)) {
 0149        return true;
 150      }
 0151      if(!sequence_.Equals(other.sequence_)) return false;
 0152      if (Loop != other.Loop) return false;
 0153      return Equals(_unknownFields, other._unknownFields);
 154    }
 155
 156    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 157    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 158    public override int GetHashCode() {
 0159      int hash = 1;
 0160      hash ^= sequence_.GetHashCode();
 0161      if (HasLoop) hash ^= Loop.GetHashCode();
 0162      if (_unknownFields != null) {
 0163        hash ^= _unknownFields.GetHashCode();
 164      }
 0165      return hash;
 166    }
 167
 168    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 169    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 170    public override string ToString() {
 0171      return pb::JsonFormatter.ToDiagnosticString(this);
 172    }
 173
 174    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 175    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 176    public void WriteTo(pb::CodedOutputStream output) {
 177    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 178      output.WriteRawMessage(this);
 179    #else
 0180      sequence_.WriteTo(output, _repeated_sequence_codec);
 0181      if (HasLoop) {
 0182        output.WriteRawTag(16);
 0183        output.WriteEnum((int) Loop);
 184      }
 0185      if (_unknownFields != null) {
 0186        _unknownFields.WriteTo(output);
 187      }
 188    #endif
 0189    }
 190
 191    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 192    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 193    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 194    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 195      sequence_.WriteTo(ref output, _repeated_sequence_codec);
 196      if (HasLoop) {
 197        output.WriteRawTag(16);
 198        output.WriteEnum((int) Loop);
 199      }
 200      if (_unknownFields != null) {
 201        _unknownFields.WriteTo(ref output);
 202      }
 203    }
 204    #endif
 205
 206    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 207    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 208    public int CalculateSize() {
 0209      int size = 0;
 0210      size += sequence_.CalculateSize(_repeated_sequence_codec);
 0211      if (HasLoop) {
 0212        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Loop);
 213      }
 0214      if (_unknownFields != null) {
 0215        size += _unknownFields.CalculateSize();
 216      }
 0217      return size;
 218    }
 219
 220    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 221    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 222    public void MergeFrom(PBTweenSequence other) {
 0223      if (other == null) {
 0224        return;
 225      }
 0226      sequence_.Add(other.sequence_);
 0227      if (other.HasLoop) {
 0228        Loop = other.Loop;
 229      }
 0230      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0231    }
 232
 233    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 234    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 235    public void MergeFrom(pb::CodedInputStream input) {
 236    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 237      input.ReadRawMessage(this);
 238    #else
 239      uint tag;
 0240      while ((tag = input.ReadTag()) != 0) {
 241        switch(tag) {
 242          default:
 0243            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0244            break;
 245          case 10: {
 0246            sequence_.AddEntriesFrom(input, _repeated_sequence_codec);
 0247            break;
 248          }
 249          case 16: {
 0250            Loop = (global::DCL.ECSComponents.TweenLoop) input.ReadEnum();
 251            break;
 252          }
 253        }
 254      }
 255    #endif
 0256    }
 257
 258    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 259    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 260    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 261    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 262      uint tag;
 263      while ((tag = input.ReadTag()) != 0) {
 264        switch(tag) {
 265          default:
 266            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 267            break;
 268          case 10: {
 269            sequence_.AddEntriesFrom(ref input, _repeated_sequence_codec);
 270            break;
 271          }
 272          case 16: {
 273            Loop = (global::DCL.ECSComponents.TweenLoop) input.ReadEnum();
 274            break;
 275          }
 276        }
 277      }
 278    }
 279    #endif
 280
 281  }
 282
 283  #endregion
 284
 285}
 286
 287#endregion Designer generated code