< 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:22
Uncovered lines:106
Coverable lines:128
Total lines:454
Line coverage:17.1% (22 of 128)
Covered branches:0
Total branches:0

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%
Equals(...)0%2100%
Equals(...)0%33.248026.67%
GetHashCode()0%56700%
ToString()0%2100%
WriteTo(...)0%56700%
CalculateSize()0%56700%
MergeFrom(...)0%56700%
MergeFrom(...)0%72800%

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            "b3RvEhtkZWNlbnRyYWxhbmQuc2RrLmNvbXBvbmVudHMisAEKDVBCVmlkZW9Q",
 29            "bGF5ZXISCwoDc3JjGAEgASgJEhQKB3BsYXlpbmcYAiABKAhIAIgBARIVCghw",
 30            "b3NpdGlvbhgDIAEoAkgBiAEBEhMKBnZvbHVtZRgEIAEoAkgCiAEBEhoKDXBs",
 31            "YXliYWNrX3JhdGUYBSABKAJIA4gBAUIKCghfcGxheWluZ0ILCglfcG9zaXRp",
 32            "b25CCQoHX3ZvbHVtZUIQCg5fcGxheWJhY2tfcmF0ZUIUqgIRRENMLkVDU0Nv",
 33            "bXBvbmVudHNiBnByb3RvMw=="));
 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)]
 470    public PBVideoPlayer() {
 71      OnConstruction();
 472    }
 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      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 086    }
 87
 88    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 89    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 90    public PBVideoPlayer Clone() {
 091      return new PBVideoPlayer(this);
 92    }
 93
 94    /// <summary>Field number for the "src" field.</summary>
 95    public const int SrcFieldNumber = 1;
 496    private string src_ = "";
 97    /// <summary>
 98    /// which file to load
 99    /// </summary>
 100    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 101    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 102    public string Src {
 12103      get { return src_; }
 104      set {
 4105        src_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 4106      }
 107    }
 108
 109    /// <summary>Field number for the "playing" field.</summary>
 110    public const int PlayingFieldNumber = 2;
 111    private bool playing_;
 112    /// <summary>
 113    /// default true
 114    /// </summary>
 115    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 116    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 117    public bool Playing {
 6118      get { if ((_hasBits0 & 1) != 0) { return playing_; } else { return false; } }
 119      set {
 2120        _hasBits0 |= 1;
 2121        playing_ = value;
 2122      }
 123    }
 124    /// <summary>Gets whether the "playing" field is set</summary>
 125    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 126    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 127    public bool HasPlaying {
 6128      get { return (_hasBits0 & 1) != 0; }
 129    }
 130    /// <summary>Clears the value of the "playing" field</summary>
 131    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 132    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 133    public void ClearPlaying() {
 0134      _hasBits0 &= ~1;
 0135    }
 136
 137    /// <summary>Field number for the "position" field.</summary>
 138    public const int PositionFieldNumber = 3;
 139    private float position_;
 140    /// <summary>
 141    /// default 0.0
 142    /// </summary>
 143    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 144    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 145    public float Position {
 0146      get { if ((_hasBits0 & 2) != 0) { return position_; } else { return 0F; } }
 147      set {
 0148        _hasBits0 |= 2;
 0149        position_ = value;
 0150      }
 151    }
 152    /// <summary>Gets whether the "position" field is set</summary>
 153    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 154    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 155    public bool HasPosition {
 5156      get { return (_hasBits0 & 2) != 0; }
 157    }
 158    /// <summary>Clears the value of the "position" field</summary>
 159    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 160    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 161    public void ClearPosition() {
 0162      _hasBits0 &= ~2;
 0163    }
 164
 165    /// <summary>Field number for the "volume" field.</summary>
 166    public const int VolumeFieldNumber = 4;
 167    private float volume_;
 168    /// <summary>
 169    /// default 1.0
 170    /// </summary>
 171    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 172    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 173    public float Volume {
 2174      get { if ((_hasBits0 & 4) != 0) { return volume_; } else { return 0F; } }
 175      set {
 1176        _hasBits0 |= 4;
 1177        volume_ = value;
 1178      }
 179    }
 180    /// <summary>Gets whether the "volume" field is set</summary>
 181    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 182    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 183    public bool HasVolume {
 4184      get { return (_hasBits0 & 4) != 0; }
 185    }
 186    /// <summary>Clears the value of the "volume" field</summary>
 187    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 188    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 189    public void ClearVolume() {
 0190      _hasBits0 &= ~4;
 0191    }
 192
 193    /// <summary>Field number for the "playback_rate" field.</summary>
 194    public const int PlaybackRateFieldNumber = 5;
 195    private float playbackRate_;
 196    /// <summary>
 197    /// default 1.0
 198    /// </summary>
 199    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 200    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 201    public float PlaybackRate {
 0202      get { if ((_hasBits0 & 8) != 0) { return playbackRate_; } else { return 0F; } }
 203      set {
 0204        _hasBits0 |= 8;
 0205        playbackRate_ = value;
 0206      }
 207    }
 208    /// <summary>Gets whether the "playback_rate" field is set</summary>
 209    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 210    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 211    public bool HasPlaybackRate {
 4212      get { return (_hasBits0 & 8) != 0; }
 213    }
 214    /// <summary>Clears the value of the "playback_rate" field</summary>
 215    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 216    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 217    public void ClearPlaybackRate() {
 0218      _hasBits0 &= ~8;
 0219    }
 220
 221    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 222    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 223    public override bool Equals(object other) {
 0224      return Equals(other as PBVideoPlayer);
 225    }
 226
 227    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 228    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 229    public bool Equals(PBVideoPlayer other) {
 1230      if (ReferenceEquals(other, null)) {
 0231        return false;
 232      }
 1233      if (ReferenceEquals(other, this)) {
 0234        return true;
 235      }
 2236      if (Src != other.Src) return false;
 0237      if (Playing != other.Playing) return false;
 0238      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Position, other.Position)) return false;
 0239      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Volume, other.Volume)) return false;
 0240      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(PlaybackRate, other.PlaybackRate)) return
 0241      return Equals(_unknownFields, other._unknownFields);
 242    }
 243
 244    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 245    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 246    public override int GetHashCode() {
 0247      int hash = 1;
 0248      if (Src.Length != 0) hash ^= Src.GetHashCode();
 0249      if (HasPlaying) hash ^= Playing.GetHashCode();
 0250      if (HasPosition) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Position);
 0251      if (HasVolume) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Volume);
 0252      if (HasPlaybackRate) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(PlaybackRate
 0253      if (_unknownFields != null) {
 0254        hash ^= _unknownFields.GetHashCode();
 255      }
 0256      return hash;
 257    }
 258
 259    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 260    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 261    public override string ToString() {
 0262      return pb::JsonFormatter.ToDiagnosticString(this);
 263    }
 264
 265    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 266    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 267    public void WriteTo(pb::CodedOutputStream output) {
 268    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 269      output.WriteRawMessage(this);
 270    #else
 0271      if (Src.Length != 0) {
 0272        output.WriteRawTag(10);
 0273        output.WriteString(Src);
 274      }
 0275      if (HasPlaying) {
 0276        output.WriteRawTag(16);
 0277        output.WriteBool(Playing);
 278      }
 0279      if (HasPosition) {
 0280        output.WriteRawTag(29);
 0281        output.WriteFloat(Position);
 282      }
 0283      if (HasVolume) {
 0284        output.WriteRawTag(37);
 0285        output.WriteFloat(Volume);
 286      }
 0287      if (HasPlaybackRate) {
 0288        output.WriteRawTag(45);
 0289        output.WriteFloat(PlaybackRate);
 290      }
 0291      if (_unknownFields != null) {
 0292        _unknownFields.WriteTo(output);
 293      }
 294    #endif
 0295    }
 296
 297    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 298    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 299    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 300    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 301      if (Src.Length != 0) {
 302        output.WriteRawTag(10);
 303        output.WriteString(Src);
 304      }
 305      if (HasPlaying) {
 306        output.WriteRawTag(16);
 307        output.WriteBool(Playing);
 308      }
 309      if (HasPosition) {
 310        output.WriteRawTag(29);
 311        output.WriteFloat(Position);
 312      }
 313      if (HasVolume) {
 314        output.WriteRawTag(37);
 315        output.WriteFloat(Volume);
 316      }
 317      if (HasPlaybackRate) {
 318        output.WriteRawTag(45);
 319        output.WriteFloat(PlaybackRate);
 320      }
 321      if (_unknownFields != null) {
 322        _unknownFields.WriteTo(ref output);
 323      }
 324    }
 325    #endif
 326
 327    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 328    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 329    public int CalculateSize() {
 0330      int size = 0;
 0331      if (Src.Length != 0) {
 0332        size += 1 + pb::CodedOutputStream.ComputeStringSize(Src);
 333      }
 0334      if (HasPlaying) {
 0335        size += 1 + 1;
 336      }
 0337      if (HasPosition) {
 0338        size += 1 + 4;
 339      }
 0340      if (HasVolume) {
 0341        size += 1 + 4;
 342      }
 0343      if (HasPlaybackRate) {
 0344        size += 1 + 4;
 345      }
 0346      if (_unknownFields != null) {
 0347        size += _unknownFields.CalculateSize();
 348      }
 0349      return size;
 350    }
 351
 352    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 353    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 354    public void MergeFrom(PBVideoPlayer other) {
 0355      if (other == null) {
 0356        return;
 357      }
 0358      if (other.Src.Length != 0) {
 0359        Src = other.Src;
 360      }
 0361      if (other.HasPlaying) {
 0362        Playing = other.Playing;
 363      }
 0364      if (other.HasPosition) {
 0365        Position = other.Position;
 366      }
 0367      if (other.HasVolume) {
 0368        Volume = other.Volume;
 369      }
 0370      if (other.HasPlaybackRate) {
 0371        PlaybackRate = other.PlaybackRate;
 372      }
 0373      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0374    }
 375
 376    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 377    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 378    public void MergeFrom(pb::CodedInputStream input) {
 379    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 380      input.ReadRawMessage(this);
 381    #else
 382      uint tag;
 0383      while ((tag = input.ReadTag()) != 0) {
 384        switch(tag) {
 385          default:
 0386            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0387            break;
 388          case 10: {
 0389            Src = input.ReadString();
 0390            break;
 391          }
 392          case 16: {
 0393            Playing = input.ReadBool();
 0394            break;
 395          }
 396          case 29: {
 0397            Position = input.ReadFloat();
 0398            break;
 399          }
 400          case 37: {
 0401            Volume = input.ReadFloat();
 0402            break;
 403          }
 404          case 45: {
 0405            PlaybackRate = input.ReadFloat();
 406            break;
 407          }
 408        }
 409      }
 410    #endif
 0411    }
 412
 413    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 414    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 415    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 416    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 417      uint tag;
 418      while ((tag = input.ReadTag()) != 0) {
 419        switch(tag) {
 420          default:
 421            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 422            break;
 423          case 10: {
 424            Src = input.ReadString();
 425            break;
 426          }
 427          case 16: {
 428            Playing = input.ReadBool();
 429            break;
 430          }
 431          case 29: {
 432            Position = input.ReadFloat();
 433            break;
 434          }
 435          case 37: {
 436            Volume = input.ReadFloat();
 437            break;
 438          }
 439          case 45: {
 440            PlaybackRate = input.ReadFloat();
 441            break;
 442          }
 443        }
 444      }
 445    }
 446    #endif
 447
 448  }
 449
 450  #endregion
 451
 452}
 453
 454#endregion Designer generated code