< Summary

Class:DCL.ECSComponents.PBTweenState
Assembly:Decentraland.Protocol.GeneratedCode
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/TweenState.gen.cs
Covered lines:9
Uncovered lines:56
Coverable lines:65
Total lines:286
Line coverage:13.8% (9 of 65)
Covered branches:0
Total branches:0
Covered methods:6
Total methods:19
Method coverage:31.5% (6 of 19)

Metrics

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

File(s)

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

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: decentraland/sdk/components/tween_state.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_state.proto</summary>
 15  public static partial class TweenStateReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for decentraland/sdk/components/tween_state.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static TweenStateReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "Ci1kZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvdHdlZW5fc3RhdGUucHJv",
 28            "dG8SG2RlY2VudHJhbGFuZC5zZGsuY29tcG9uZW50cyJiCgxQQlR3ZWVuU3Rh",
 29            "dGUSPAoFc3RhdGUYASABKA4yLS5kZWNlbnRyYWxhbmQuc2RrLmNvbXBvbmVu",
 30            "dHMuVHdlZW5TdGF0ZVN0YXR1cxIUCgxjdXJyZW50X3RpbWUYAiABKAIqQgoQ",
 31            "VHdlZW5TdGF0ZVN0YXR1cxINCglUU19BQ1RJVkUQABIQCgxUU19DT01QTEVU",
 32            "RUQQARINCglUU19QQVVTRUQQAkIUqgIRRENMLkVDU0NvbXBvbmVudHNiBnBy",
 33            "b3RvMw=="));
 34      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 35          new pbr::FileDescriptor[] { },
 36          new pbr::GeneratedClrTypeInfo(new[] {typeof(global::DCL.ECSComponents.TweenStateStatus), }, null, new pbr::Gen
 37            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBTweenState), global::DCL.ECSComponents.PBTw
 38          }));
 39    }
 40    #endregion
 41
 42  }
 43  #region Enums
 44  public enum TweenStateStatus {
 45    [pbr::OriginalName("TS_ACTIVE")] TsActive = 0,
 46    [pbr::OriginalName("TS_COMPLETED")] TsCompleted = 1,
 47    [pbr::OriginalName("TS_PAUSED")] TsPaused = 2,
 48  }
 49
 50  #endregion
 51
 52  #region Messages
 53  public sealed partial class PBTweenState : pb::IMessage<PBTweenState>
 54  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 55      , pb::IBufferMessage
 56  #endif
 57  {
 158    private static readonly pb::MessageParser<PBTweenState> _parser = new pb::MessageParser<PBTweenState>(() => new PBTw
 59    private pb::UnknownFieldSet _unknownFields;
 60    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 61    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 062    public static pb::MessageParser<PBTweenState> Parser { get { return _parser; } }
 63
 64    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 65    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 66    public static pbr::MessageDescriptor Descriptor {
 067      get { return global::DCL.ECSComponents.TweenStateReflection.Descriptor.MessageTypes[0]; }
 68    }
 69
 70    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 71    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 72    pbr::MessageDescriptor pb::IMessage.Descriptor {
 073      get { return Descriptor; }
 74    }
 75
 76    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 77    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 578    public PBTweenState() {
 79      OnConstruction();
 580    }
 81
 82    partial void OnConstruction();
 83
 84    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 85    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 086    public PBTweenState(PBTweenState other) : this() {
 087      state_ = other.state_;
 088      currentTime_ = other.currentTime_;
 089      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 090    }
 91
 92    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 93    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 94    public PBTweenState Clone() {
 095      return new PBTweenState(this);
 96    }
 97
 98    /// <summary>Field number for the "state" field.</summary>
 99    public const int StateFieldNumber = 1;
 100    private global::DCL.ECSComponents.TweenStateStatus state_ = global::DCL.ECSComponents.TweenStateStatus.TsActive;
 101    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 102    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 103    public global::DCL.ECSComponents.TweenStateStatus State {
 1104      get { return state_; }
 105      set {
 5106        state_ = value;
 5107      }
 108    }
 109
 110    /// <summary>Field number for the "current_time" field.</summary>
 111    public const int CurrentTimeFieldNumber = 2;
 112    private float currentTime_;
 113    /// <summary>
 114    /// between 0 and 1
 115    /// </summary>
 116    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 117    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 118    public float CurrentTime {
 1119      get { return currentTime_; }
 120      set {
 5121        currentTime_ = value;
 5122      }
 123    }
 124
 125    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 126    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 127    public override bool Equals(object other) {
 0128      return Equals(other as PBTweenState);
 129    }
 130
 131    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 132    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 133    public bool Equals(PBTweenState other) {
 0134      if (ReferenceEquals(other, null)) {
 0135        return false;
 136      }
 0137      if (ReferenceEquals(other, this)) {
 0138        return true;
 139      }
 0140      if (State != other.State) return false;
 0141      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(CurrentTime, other.CurrentTime)) return f
 0142      return Equals(_unknownFields, other._unknownFields);
 143    }
 144
 145    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 146    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 147    public override int GetHashCode() {
 0148      int hash = 1;
 0149      if (State != global::DCL.ECSComponents.TweenStateStatus.TsActive) hash ^= State.GetHashCode();
 0150      if (CurrentTime != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(CurrentTim
 0151      if (_unknownFields != null) {
 0152        hash ^= _unknownFields.GetHashCode();
 153      }
 0154      return hash;
 155    }
 156
 157    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 158    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 159    public override string ToString() {
 0160      return pb::JsonFormatter.ToDiagnosticString(this);
 161    }
 162
 163    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 164    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 165    public void WriteTo(pb::CodedOutputStream output) {
 166    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 167      output.WriteRawMessage(this);
 168    #else
 0169      if (State != global::DCL.ECSComponents.TweenStateStatus.TsActive) {
 0170        output.WriteRawTag(8);
 0171        output.WriteEnum((int) State);
 172      }
 0173      if (CurrentTime != 0F) {
 0174        output.WriteRawTag(21);
 0175        output.WriteFloat(CurrentTime);
 176      }
 0177      if (_unknownFields != null) {
 0178        _unknownFields.WriteTo(output);
 179      }
 180    #endif
 0181    }
 182
 183    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 184    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 185    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 186    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 187      if (State != global::DCL.ECSComponents.TweenStateStatus.TsActive) {
 188        output.WriteRawTag(8);
 189        output.WriteEnum((int) State);
 190      }
 191      if (CurrentTime != 0F) {
 192        output.WriteRawTag(21);
 193        output.WriteFloat(CurrentTime);
 194      }
 195      if (_unknownFields != null) {
 196        _unknownFields.WriteTo(ref output);
 197      }
 198    }
 199    #endif
 200
 201    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 202    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 203    public int CalculateSize() {
 0204      int size = 0;
 0205      if (State != global::DCL.ECSComponents.TweenStateStatus.TsActive) {
 0206        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State);
 207      }
 0208      if (CurrentTime != 0F) {
 0209        size += 1 + 4;
 210      }
 0211      if (_unknownFields != null) {
 0212        size += _unknownFields.CalculateSize();
 213      }
 0214      return size;
 215    }
 216
 217    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 218    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 219    public void MergeFrom(PBTweenState other) {
 0220      if (other == null) {
 0221        return;
 222      }
 0223      if (other.State != global::DCL.ECSComponents.TweenStateStatus.TsActive) {
 0224        State = other.State;
 225      }
 0226      if (other.CurrentTime != 0F) {
 0227        CurrentTime = other.CurrentTime;
 228      }
 0229      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0230    }
 231
 232    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 233    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 234    public void MergeFrom(pb::CodedInputStream input) {
 235    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 236      input.ReadRawMessage(this);
 237    #else
 238      uint tag;
 0239      while ((tag = input.ReadTag()) != 0) {
 240        switch(tag) {
 241          default:
 0242            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0243            break;
 244          case 8: {
 0245            State = (global::DCL.ECSComponents.TweenStateStatus) input.ReadEnum();
 0246            break;
 247          }
 248          case 21: {
 0249            CurrentTime = input.ReadFloat();
 250            break;
 251          }
 252        }
 253      }
 254    #endif
 0255    }
 256
 257    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 258    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 259    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 260    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 261      uint tag;
 262      while ((tag = input.ReadTag()) != 0) {
 263        switch(tag) {
 264          default:
 265            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 266            break;
 267          case 8: {
 268            State = (global::DCL.ECSComponents.TweenStateStatus) input.ReadEnum();
 269            break;
 270          }
 271          case 21: {
 272            CurrentTime = input.ReadFloat();
 273            break;
 274          }
 275        }
 276      }
 277    }
 278    #endif
 279
 280  }
 281
 282  #endregion
 283
 284}
 285
 286#endregion Designer generated code