< Summary

Class:DCL.ECSComponents.VideoPlayerReflection
Assembly:Decentraland.Protocol.GeneratedCode
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/VideoPlayer.gen.cs
Covered lines:0
Uncovered lines:4
Coverable lines:4
Total lines:507
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
VideoPlayerReflection()0%2100%

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 {
 020      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static VideoPlayerReflection() {
 025      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "Ci5kZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvdmlkZW9fcGxheWVyLnBy",
 28            "b3RvEhtkZWNlbnRyYWxhbmQuc2RrLmNvbXBvbmVudHMizAEKDVBCVmlkZW9Q",
 29            "bGF5ZXISCwoDc3JjGAEgASgJEhQKB3BsYXlpbmcYAiABKAhIAIgBARIVCghw",
 30            "b3NpdGlvbhgDIAEoAkgBiAEBEhMKBnZvbHVtZRgEIAEoAkgCiAEBEhoKDXBs",
 31            "YXliYWNrX3JhdGUYBSABKAJIA4gBARIRCgRsb29wGAYgASgISASIAQFCCgoI",
 32            "X3BsYXlpbmdCCwoJX3Bvc2l0aW9uQgkKB192b2x1bWVCEAoOX3BsYXliYWNr",
 33            "X3JhdGVCBwoFX2xvb3BCFKoCEURDTC5FQ1NDb21wb25lbnRzYgZwcm90bzM="));
 034      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          }));
 039    }
 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  {
 49    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)]
 54    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 {
 59      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 {
 65      get { return Descriptor; }
 66    }
 67
 68    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 69    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 70    public PBVideoPlayer() {
 71      OnConstruction();
 72    }
 73
 74    partial void OnConstruction();
 75
 76    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 77    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 78    public PBVideoPlayer(PBVideoPlayer other) : this() {
 79      _hasBits0 = other._hasBits0;
 80      src_ = other.src_;
 81      playing_ = other.playing_;
 82      position_ = other.position_;
 83      volume_ = other.volume_;
 84      playbackRate_ = other.playbackRate_;
 85      loop_ = other.loop_;
 86      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 87    }
 88
 89    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 90    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 91    public PBVideoPlayer Clone() {
 92      return new PBVideoPlayer(this);
 93    }
 94
 95    /// <summary>Field number for the "src" field.</summary>
 96    public const int SrcFieldNumber = 1;
 97    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 {
 104      get { return src_; }
 105      set {
 106        src_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 107      }
 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 {
 119      get { if ((_hasBits0 & 1) != 0) { return playing_; } else { return false; } }
 120      set {
 121        _hasBits0 |= 1;
 122        playing_ = value;
 123      }
 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 {
 129      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() {
 135      _hasBits0 &= ~1;
 136    }
 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 {
 147      get { if ((_hasBits0 & 2) != 0) { return position_; } else { return 0F; } }
 148      set {
 149        _hasBits0 |= 2;
 150        position_ = value;
 151      }
 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 {
 157      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() {
 163      _hasBits0 &= ~2;
 164    }
 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 {
 175      get { if ((_hasBits0 & 4) != 0) { return volume_; } else { return 0F; } }
 176      set {
 177        _hasBits0 |= 4;
 178        volume_ = value;
 179      }
 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 {
 185      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() {
 191      _hasBits0 &= ~4;
 192    }
 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 {
 203      get { if ((_hasBits0 & 8) != 0) { return playbackRate_; } else { return 0F; } }
 204      set {
 205        _hasBits0 |= 8;
 206        playbackRate_ = value;
 207      }
 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 {
 213      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() {
 219      _hasBits0 &= ~8;
 220    }
 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 {
 231      get { if ((_hasBits0 & 16) != 0) { return loop_; } else { return false; } }
 232      set {
 233        _hasBits0 |= 16;
 234        loop_ = value;
 235      }
 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 {
 241      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() {
 247      _hasBits0 &= ~16;
 248    }
 249
 250    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 251    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 252    public override bool Equals(object other) {
 253      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) {
 259      if (ReferenceEquals(other, null)) {
 260        return false;
 261      }
 262      if (ReferenceEquals(other, this)) {
 263        return true;
 264      }
 265      if (Src != other.Src) return false;
 266      if (Playing != other.Playing) return false;
 267      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Position, other.Position)) return false;
 268      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Volume, other.Volume)) return false;
 269      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(PlaybackRate, other.PlaybackRate)) return
 270      if (Loop != other.Loop) return false;
 271      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() {
 277      int hash = 1;
 278      if (Src.Length != 0) hash ^= Src.GetHashCode();
 279      if (HasPlaying) hash ^= Playing.GetHashCode();
 280      if (HasPosition) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Position);
 281      if (HasVolume) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Volume);
 282      if (HasPlaybackRate) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(PlaybackRate
 283      if (HasLoop) hash ^= Loop.GetHashCode();
 284      if (_unknownFields != null) {
 285        hash ^= _unknownFields.GetHashCode();
 286      }
 287      return hash;
 288    }
 289
 290    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 291    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 292    public override string ToString() {
 293      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
 302      if (Src.Length != 0) {
 303        output.WriteRawTag(10);
 304        output.WriteString(Src);
 305      }
 306      if (HasPlaying) {
 307        output.WriteRawTag(16);
 308        output.WriteBool(Playing);
 309      }
 310      if (HasPosition) {
 311        output.WriteRawTag(29);
 312        output.WriteFloat(Position);
 313      }
 314      if (HasVolume) {
 315        output.WriteRawTag(37);
 316        output.WriteFloat(Volume);
 317      }
 318      if (HasPlaybackRate) {
 319        output.WriteRawTag(45);
 320        output.WriteFloat(PlaybackRate);
 321      }
 322      if (HasLoop) {
 323        output.WriteRawTag(48);
 324        output.WriteBool(Loop);
 325      }
 326      if (_unknownFields != null) {
 327        _unknownFields.WriteTo(output);
 328      }
 329    #endif
 330    }
 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() {
 369      int size = 0;
 370      if (Src.Length != 0) {
 371        size += 1 + pb::CodedOutputStream.ComputeStringSize(Src);
 372      }
 373      if (HasPlaying) {
 374        size += 1 + 1;
 375      }
 376      if (HasPosition) {
 377        size += 1 + 4;
 378      }
 379      if (HasVolume) {
 380        size += 1 + 4;
 381      }
 382      if (HasPlaybackRate) {
 383        size += 1 + 4;
 384      }
 385      if (HasLoop) {
 386        size += 1 + 1;
 387      }
 388      if (_unknownFields != null) {
 389        size += _unknownFields.CalculateSize();
 390      }
 391      return size;
 392    }
 393
 394    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 395    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 396    public void MergeFrom(PBVideoPlayer other) {
 397      if (other == null) {
 398        return;
 399      }
 400      if (other.Src.Length != 0) {
 401        Src = other.Src;
 402      }
 403      if (other.HasPlaying) {
 404        Playing = other.Playing;
 405      }
 406      if (other.HasPosition) {
 407        Position = other.Position;
 408      }
 409      if (other.HasVolume) {
 410        Volume = other.Volume;
 411      }
 412      if (other.HasPlaybackRate) {
 413        PlaybackRate = other.PlaybackRate;
 414      }
 415      if (other.HasLoop) {
 416        Loop = other.Loop;
 417      }
 418      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 419    }
 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;
 428      while ((tag = input.ReadTag()) != 0) {
 429        switch(tag) {
 430          default:
 431            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 432            break;
 433          case 10: {
 434            Src = input.ReadString();
 435            break;
 436          }
 437          case 16: {
 438            Playing = input.ReadBool();
 439            break;
 440          }
 441          case 29: {
 442            Position = input.ReadFloat();
 443            break;
 444          }
 445          case 37: {
 446            Volume = input.ReadFloat();
 447            break;
 448          }
 449          case 45: {
 450            PlaybackRate = input.ReadFloat();
 451            break;
 452          }
 453          case 48: {
 454            Loop = input.ReadBool();
 455            break;
 456          }
 457        }
 458      }
 459    #endif
 460    }
 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