< Summary

Class:DCL.ECSComponents.PBVideoPlayer
Assembly:Decentraland.Protocol.GeneratedCode
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/VideoPlayer.gen.cs
Covered lines:20
Uncovered lines:127
Coverable lines:147
Total lines:507
Line coverage:13.6% (20 of 147)
Covered branches:0
Total branches:0
Covered methods:13
Total methods:37
Method coverage:35.1% (13 of 37)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
PBVideoPlayer()0%110100%
get_Descriptor()0%2100%
PBVideoPlayer(...)0%2100%
Clone()0%2100%
PBVideoPlayer()0%110100%
ClearPlaying()0%2100%
ClearPosition()0%2100%
ClearVolume()0%2100%
ClearPlaybackRate()0%2100%
ClearLoop()0%2100%
Equals(...)0%2100%
Equals(...)0%90900%
GetHashCode()0%72800%
ToString()0%2100%
WriteTo(...)0%72800%
CalculateSize()0%72800%
MergeFrom(...)0%72800%
MergeFrom(...)0%90900%

File(s)

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

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: decentraland/sdk/components/video_player.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/video_player.proto</summary>
 15  public static partial class VideoPlayerReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for decentraland/sdk/components/video_player.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static VideoPlayerReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "Ci5kZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvdmlkZW9fcGxheWVyLnBy",
 28            "b3RvEhtkZWNlbnRyYWxhbmQuc2RrLmNvbXBvbmVudHMizAEKDVBCVmlkZW9Q",
 29            "bGF5ZXISCwoDc3JjGAEgASgJEhQKB3BsYXlpbmcYAiABKAhIAIgBARIVCghw",
 30            "b3NpdGlvbhgDIAEoAkgBiAEBEhMKBnZvbHVtZRgEIAEoAkgCiAEBEhoKDXBs",
 31            "YXliYWNrX3JhdGUYBSABKAJIA4gBARIRCgRsb29wGAYgASgISASIAQFCCgoI",
 32            "X3BsYXlpbmdCCwoJX3Bvc2l0aW9uQgkKB192b2x1bWVCEAoOX3BsYXliYWNr",
 33            "X3JhdGVCBwoFX2xvb3BCFKoCEURDTC5FQ1NDb21wb25lbnRzYgZwcm90bzM="));
 34      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 35          new pbr::FileDescriptor[] { },
 36          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 37            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBVideoPlayer), global::DCL.ECSComponents.PBV
 38          }));
 39    }
 40    #endregion
 41
 42  }
 43  #region Messages
 44  public sealed partial class PBVideoPlayer : pb::IMessage<PBVideoPlayer>
 45  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 46      , pb::IBufferMessage
 47  #endif
 48  {
 149    private static readonly pb::MessageParser<PBVideoPlayer> _parser = new pb::MessageParser<PBVideoPlayer>(() => new PB
 50    private pb::UnknownFieldSet _unknownFields;
 51    private int _hasBits0;
 52    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 53    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 054    public static pb::MessageParser<PBVideoPlayer> Parser { get { return _parser; } }
 55
 56    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 57    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 58    public static pbr::MessageDescriptor Descriptor {
 059      get { return global::DCL.ECSComponents.VideoPlayerReflection.Descriptor.MessageTypes[0]; }
 60    }
 61
 62    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 63    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 64    pbr::MessageDescriptor pb::IMessage.Descriptor {
 065      get { return Descriptor; }
 66    }
 67
 68    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 69    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 870    public PBVideoPlayer() {
 71      OnConstruction();
 872    }
 73
 74    partial void OnConstruction();
 75
 76    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 77    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 078    public PBVideoPlayer(PBVideoPlayer other) : this() {
 079      _hasBits0 = other._hasBits0;
 080      src_ = other.src_;
 081      playing_ = other.playing_;
 082      position_ = other.position_;
 083      volume_ = other.volume_;
 084      playbackRate_ = other.playbackRate_;
 085      loop_ = other.loop_;
 086      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 087    }
 88
 89    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 90    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 91    public PBVideoPlayer Clone() {
 092      return new PBVideoPlayer(this);
 93    }
 94
 95    /// <summary>Field number for the "src" field.</summary>
 96    public const int SrcFieldNumber = 1;
 897    private string src_ = "";
 98    /// <summary>
 99    /// which file to load
 100    /// </summary>
 101    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 102    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 103    public string Src {
 26104      get { return src_; }
 105      set {
 8106        src_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 8107      }
 108    }
 109
 110    /// <summary>Field number for the "playing" field.</summary>
 111    public const int PlayingFieldNumber = 2;
 112    private bool playing_;
 113    /// <summary>
 114    /// default true
 115    /// </summary>
 116    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 117    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 118    public bool Playing {
 14119      get { if ((_hasBits0 & 1) != 0) { return playing_; } else { return false; } }
 120      set {
 5121        _hasBits0 |= 1;
 5122        playing_ = value;
 5123      }
 124    }
 125    /// <summary>Gets whether the "playing" field is set</summary>
 126    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 127    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 128    public bool HasPlaying {
 10129      get { return (_hasBits0 & 1) != 0; }
 130    }
 131    /// <summary>Clears the value of the "playing" field</summary>
 132    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 133    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 134    public void ClearPlaying() {
 0135      _hasBits0 &= ~1;
 0136    }
 137
 138    /// <summary>Field number for the "position" field.</summary>
 139    public const int PositionFieldNumber = 3;
 140    private float position_;
 141    /// <summary>
 142    /// default 0.0
 143    /// </summary>
 144    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 145    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 146    public float Position {
 0147      get { if ((_hasBits0 & 2) != 0) { return position_; } else { return 0F; } }
 148      set {
 0149        _hasBits0 |= 2;
 0150        position_ = value;
 0151      }
 152    }
 153    /// <summary>Gets whether the "position" field is set</summary>
 154    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 155    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 156    public bool HasPosition {
 9157      get { return (_hasBits0 & 2) != 0; }
 158    }
 159    /// <summary>Clears the value of the "position" field</summary>
 160    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 161    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 162    public void ClearPosition() {
 0163      _hasBits0 &= ~2;
 0164    }
 165
 166    /// <summary>Field number for the "volume" field.</summary>
 167    public const int VolumeFieldNumber = 4;
 168    private float volume_;
 169    /// <summary>
 170    /// default 1.0
 171    /// </summary>
 172    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 173    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 174    public float Volume {
 4175      get { if ((_hasBits0 & 4) != 0) { return volume_; } else { return 0F; } }
 176      set {
 2177        _hasBits0 |= 4;
 2178        volume_ = value;
 2179      }
 180    }
 181    /// <summary>Gets whether the "volume" field is set</summary>
 182    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 183    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 184    public bool HasVolume {
 11185      get { return (_hasBits0 & 4) != 0; }
 186    }
 187    /// <summary>Clears the value of the "volume" field</summary>
 188    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 189    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 190    public void ClearVolume() {
 0191      _hasBits0 &= ~4;
 0192    }
 193
 194    /// <summary>Field number for the "playback_rate" field.</summary>
 195    public const int PlaybackRateFieldNumber = 5;
 196    private float playbackRate_;
 197    /// <summary>
 198    /// default 1.0
 199    /// </summary>
 200    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 201    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 202    public float PlaybackRate {
 0203      get { if ((_hasBits0 & 8) != 0) { return playbackRate_; } else { return 0F; } }
 204      set {
 0205        _hasBits0 |= 8;
 0206        playbackRate_ = value;
 0207      }
 208    }
 209    /// <summary>Gets whether the "playback_rate" field is set</summary>
 210    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 211    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 212    public bool HasPlaybackRate {
 8213      get { return (_hasBits0 & 8) != 0; }
 214    }
 215    /// <summary>Clears the value of the "playback_rate" field</summary>
 216    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 217    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 218    public void ClearPlaybackRate() {
 0219      _hasBits0 &= ~8;
 0220    }
 221
 222    /// <summary>Field number for the "loop" field.</summary>
 223    public const int LoopFieldNumber = 6;
 224    private bool loop_;
 225    /// <summary>
 226    /// default false
 227    /// </summary>
 228    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 229    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 230    public bool Loop {
 0231      get { if ((_hasBits0 & 16) != 0) { return loop_; } else { return false; } }
 232      set {
 0233        _hasBits0 |= 16;
 0234        loop_ = value;
 0235      }
 236    }
 237    /// <summary>Gets whether the "loop" field is set</summary>
 238    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 239    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 240    public bool HasLoop {
 8241      get { return (_hasBits0 & 16) != 0; }
 242    }
 243    /// <summary>Clears the value of the "loop" field</summary>
 244    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 245    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 246    public void ClearLoop() {
 0247      _hasBits0 &= ~16;
 0248    }
 249
 250    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 251    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 252    public override bool Equals(object other) {
 0253      return Equals(other as PBVideoPlayer);
 254    }
 255
 256    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 257    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 258    public bool Equals(PBVideoPlayer other) {
 0259      if (ReferenceEquals(other, null)) {
 0260        return false;
 261      }
 0262      if (ReferenceEquals(other, this)) {
 0263        return true;
 264      }
 0265      if (Src != other.Src) return false;
 0266      if (Playing != other.Playing) return false;
 0267      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Position, other.Position)) return false;
 0268      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Volume, other.Volume)) return false;
 0269      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(PlaybackRate, other.PlaybackRate)) return
 0270      if (Loop != other.Loop) return false;
 0271      return Equals(_unknownFields, other._unknownFields);
 272    }
 273
 274    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 275    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 276    public override int GetHashCode() {
 0277      int hash = 1;
 0278      if (Src.Length != 0) hash ^= Src.GetHashCode();
 0279      if (HasPlaying) hash ^= Playing.GetHashCode();
 0280      if (HasPosition) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Position);
 0281      if (HasVolume) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Volume);
 0282      if (HasPlaybackRate) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(PlaybackRate
 0283      if (HasLoop) hash ^= Loop.GetHashCode();
 0284      if (_unknownFields != null) {
 0285        hash ^= _unknownFields.GetHashCode();
 286      }
 0287      return hash;
 288    }
 289
 290    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 291    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 292    public override string ToString() {
 0293      return pb::JsonFormatter.ToDiagnosticString(this);
 294    }
 295
 296    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 297    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 298    public void WriteTo(pb::CodedOutputStream output) {
 299    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 300      output.WriteRawMessage(this);
 301    #else
 0302      if (Src.Length != 0) {
 0303        output.WriteRawTag(10);
 0304        output.WriteString(Src);
 305      }
 0306      if (HasPlaying) {
 0307        output.WriteRawTag(16);
 0308        output.WriteBool(Playing);
 309      }
 0310      if (HasPosition) {
 0311        output.WriteRawTag(29);
 0312        output.WriteFloat(Position);
 313      }
 0314      if (HasVolume) {
 0315        output.WriteRawTag(37);
 0316        output.WriteFloat(Volume);
 317      }
 0318      if (HasPlaybackRate) {
 0319        output.WriteRawTag(45);
 0320        output.WriteFloat(PlaybackRate);
 321      }
 0322      if (HasLoop) {
 0323        output.WriteRawTag(48);
 0324        output.WriteBool(Loop);
 325      }
 0326      if (_unknownFields != null) {
 0327        _unknownFields.WriteTo(output);
 328      }
 329    #endif
 0330    }
 331
 332    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 333    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 334    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 335    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 336      if (Src.Length != 0) {
 337        output.WriteRawTag(10);
 338        output.WriteString(Src);
 339      }
 340      if (HasPlaying) {
 341        output.WriteRawTag(16);
 342        output.WriteBool(Playing);
 343      }
 344      if (HasPosition) {
 345        output.WriteRawTag(29);
 346        output.WriteFloat(Position);
 347      }
 348      if (HasVolume) {
 349        output.WriteRawTag(37);
 350        output.WriteFloat(Volume);
 351      }
 352      if (HasPlaybackRate) {
 353        output.WriteRawTag(45);
 354        output.WriteFloat(PlaybackRate);
 355      }
 356      if (HasLoop) {
 357        output.WriteRawTag(48);
 358        output.WriteBool(Loop);
 359      }
 360      if (_unknownFields != null) {
 361        _unknownFields.WriteTo(ref output);
 362      }
 363    }
 364    #endif
 365
 366    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 367    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 368    public int CalculateSize() {
 0369      int size = 0;
 0370      if (Src.Length != 0) {
 0371        size += 1 + pb::CodedOutputStream.ComputeStringSize(Src);
 372      }
 0373      if (HasPlaying) {
 0374        size += 1 + 1;
 375      }
 0376      if (HasPosition) {
 0377        size += 1 + 4;
 378      }
 0379      if (HasVolume) {
 0380        size += 1 + 4;
 381      }
 0382      if (HasPlaybackRate) {
 0383        size += 1 + 4;
 384      }
 0385      if (HasLoop) {
 0386        size += 1 + 1;
 387      }
 0388      if (_unknownFields != null) {
 0389        size += _unknownFields.CalculateSize();
 390      }
 0391      return size;
 392    }
 393
 394    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 395    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 396    public void MergeFrom(PBVideoPlayer other) {
 0397      if (other == null) {
 0398        return;
 399      }
 0400      if (other.Src.Length != 0) {
 0401        Src = other.Src;
 402      }
 0403      if (other.HasPlaying) {
 0404        Playing = other.Playing;
 405      }
 0406      if (other.HasPosition) {
 0407        Position = other.Position;
 408      }
 0409      if (other.HasVolume) {
 0410        Volume = other.Volume;
 411      }
 0412      if (other.HasPlaybackRate) {
 0413        PlaybackRate = other.PlaybackRate;
 414      }
 0415      if (other.HasLoop) {
 0416        Loop = other.Loop;
 417      }
 0418      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0419    }
 420
 421    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 422    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 423    public void MergeFrom(pb::CodedInputStream input) {
 424    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 425      input.ReadRawMessage(this);
 426    #else
 427      uint tag;
 0428      while ((tag = input.ReadTag()) != 0) {
 429        switch(tag) {
 430          default:
 0431            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0432            break;
 433          case 10: {
 0434            Src = input.ReadString();
 0435            break;
 436          }
 437          case 16: {
 0438            Playing = input.ReadBool();
 0439            break;
 440          }
 441          case 29: {
 0442            Position = input.ReadFloat();
 0443            break;
 444          }
 445          case 37: {
 0446            Volume = input.ReadFloat();
 0447            break;
 448          }
 449          case 45: {
 0450            PlaybackRate = input.ReadFloat();
 0451            break;
 452          }
 453          case 48: {
 0454            Loop = input.ReadBool();
 455            break;
 456          }
 457        }
 458      }
 459    #endif
 0460    }
 461
 462    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 463    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 464    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 465    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 466      uint tag;
 467      while ((tag = input.ReadTag()) != 0) {
 468        switch(tag) {
 469          default:
 470            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 471            break;
 472          case 10: {
 473            Src = input.ReadString();
 474            break;
 475          }
 476          case 16: {
 477            Playing = input.ReadBool();
 478            break;
 479          }
 480          case 29: {
 481            Position = input.ReadFloat();
 482            break;
 483          }
 484          case 37: {
 485            Volume = input.ReadFloat();
 486            break;
 487          }
 488          case 45: {
 489            PlaybackRate = input.ReadFloat();
 490            break;
 491          }
 492          case 48: {
 493            Loop = input.ReadBool();
 494            break;
 495          }
 496        }
 497      }
 498    }
 499    #endif
 500
 501  }
 502
 503  #endregion
 504
 505}
 506
 507#endregion Designer generated code