< Summary

Class:DCL.ECSComponents.TweenStateReflection
Assembly:Decentraland.Protocol.GeneratedCode
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/TweenState.gen.cs
Covered lines:0
Uncovered lines:4
Coverable lines:4
Total lines:286
Line coverage:0% (0 of 4)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:2
Method coverage:0% (0 of 2)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
TweenStateReflection()0%2100%

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 {
 020      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static TweenStateReflection() {
 025      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "Ci1kZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvdHdlZW5fc3RhdGUucHJv",
 28            "dG8SG2RlY2VudHJhbGFuZC5zZGsuY29tcG9uZW50cyJiCgxQQlR3ZWVuU3Rh",
 29            "dGUSPAoFc3RhdGUYASABKA4yLS5kZWNlbnRyYWxhbmQuc2RrLmNvbXBvbmVu",
 30            "dHMuVHdlZW5TdGF0ZVN0YXR1cxIUCgxjdXJyZW50X3RpbWUYAiABKAIqQgoQ",
 31            "VHdlZW5TdGF0ZVN0YXR1cxINCglUU19BQ1RJVkUQABIQCgxUU19DT01QTEVU",
 32            "RUQQARINCglUU19QQVVTRUQQAkIUqgIRRENMLkVDU0NvbXBvbmVudHNiBnBy",
 33            "b3RvMw=="));
 034      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          }));
 039    }
 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  {
 58    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)]
 62    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 {
 67      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 {
 73      get { return Descriptor; }
 74    }
 75
 76    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 77    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 78    public PBTweenState() {
 79      OnConstruction();
 80    }
 81
 82    partial void OnConstruction();
 83
 84    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 85    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 86    public PBTweenState(PBTweenState other) : this() {
 87      state_ = other.state_;
 88      currentTime_ = other.currentTime_;
 89      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 90    }
 91
 92    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 93    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 94    public PBTweenState Clone() {
 95      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 {
 104      get { return state_; }
 105      set {
 106        state_ = value;
 107      }
 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 {
 119      get { return currentTime_; }
 120      set {
 121        currentTime_ = value;
 122      }
 123    }
 124
 125    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 126    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 127    public override bool Equals(object other) {
 128      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) {
 134      if (ReferenceEquals(other, null)) {
 135        return false;
 136      }
 137      if (ReferenceEquals(other, this)) {
 138        return true;
 139      }
 140      if (State != other.State) return false;
 141      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(CurrentTime, other.CurrentTime)) return f
 142      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() {
 148      int hash = 1;
 149      if (State != global::DCL.ECSComponents.TweenStateStatus.TsActive) hash ^= State.GetHashCode();
 150      if (CurrentTime != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(CurrentTim
 151      if (_unknownFields != null) {
 152        hash ^= _unknownFields.GetHashCode();
 153      }
 154      return hash;
 155    }
 156
 157    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 158    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 159    public override string ToString() {
 160      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
 169      if (State != global::DCL.ECSComponents.TweenStateStatus.TsActive) {
 170        output.WriteRawTag(8);
 171        output.WriteEnum((int) State);
 172      }
 173      if (CurrentTime != 0F) {
 174        output.WriteRawTag(21);
 175        output.WriteFloat(CurrentTime);
 176      }
 177      if (_unknownFields != null) {
 178        _unknownFields.WriteTo(output);
 179      }
 180    #endif
 181    }
 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() {
 204      int size = 0;
 205      if (State != global::DCL.ECSComponents.TweenStateStatus.TsActive) {
 206        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State);
 207      }
 208      if (CurrentTime != 0F) {
 209        size += 1 + 4;
 210      }
 211      if (_unknownFields != null) {
 212        size += _unknownFields.CalculateSize();
 213      }
 214      return size;
 215    }
 216
 217    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 218    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 219    public void MergeFrom(PBTweenState other) {
 220      if (other == null) {
 221        return;
 222      }
 223      if (other.State != global::DCL.ECSComponents.TweenStateStatus.TsActive) {
 224        State = other.State;
 225      }
 226      if (other.CurrentTime != 0F) {
 227        CurrentTime = other.CurrentTime;
 228      }
 229      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 230    }
 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;
 239      while ((tag = input.ReadTag()) != 0) {
 240        switch(tag) {
 241          default:
 242            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 243            break;
 244          case 8: {
 245            State = (global::DCL.ECSComponents.TweenStateStatus) input.ReadEnum();
 246            break;
 247          }
 248          case 21: {
 249            CurrentTime = input.ReadFloat();
 250            break;
 251          }
 252        }
 253      }
 254    #endif
 255    }
 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