< 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:454
Line coverage:0% (0 of 4)
Covered branches:0
Total branches:0

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            "b3RvEhtkZWNlbnRyYWxhbmQuc2RrLmNvbXBvbmVudHMisAEKDVBCVmlkZW9Q",
 29            "bGF5ZXISCwoDc3JjGAEgASgJEhQKB3BsYXlpbmcYAiABKAhIAIgBARIVCghw",
 30            "b3NpdGlvbhgDIAEoAkgBiAEBEhMKBnZvbHVtZRgEIAEoAkgCiAEBEhoKDXBs",
 31            "YXliYWNrX3JhdGUYBSABKAJIA4gBAUIKCghfcGxheWluZ0ILCglfcG9zaXRp",
 32            "b25CCQoHX3ZvbHVtZUIQCg5fcGxheWJhY2tfcmF0ZUIUqgIRRENMLkVDU0Nv",
 33            "bXBvbmVudHNiBnByb3RvMw=="));
 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      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 86    }
 87
 88    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 89    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 90    public PBVideoPlayer Clone() {
 91      return new PBVideoPlayer(this);
 92    }
 93
 94    /// <summary>Field number for the "src" field.</summary>
 95    public const int SrcFieldNumber = 1;
 96    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 {
 103      get { return src_; }
 104      set {
 105        src_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 106      }
 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 {
 118      get { if ((_hasBits0 & 1) != 0) { return playing_; } else { return false; } }
 119      set {
 120        _hasBits0 |= 1;
 121        playing_ = value;
 122      }
 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 {
 128      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() {
 134      _hasBits0 &= ~1;
 135    }
 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 {
 146      get { if ((_hasBits0 & 2) != 0) { return position_; } else { return 0F; } }
 147      set {
 148        _hasBits0 |= 2;
 149        position_ = value;
 150      }
 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 {
 156      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() {
 162      _hasBits0 &= ~2;
 163    }
 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 {
 174      get { if ((_hasBits0 & 4) != 0) { return volume_; } else { return 0F; } }
 175      set {
 176        _hasBits0 |= 4;
 177        volume_ = value;
 178      }
 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 {
 184      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() {
 190      _hasBits0 &= ~4;
 191    }
 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 {
 202      get { if ((_hasBits0 & 8) != 0) { return playbackRate_; } else { return 0F; } }
 203      set {
 204        _hasBits0 |= 8;
 205        playbackRate_ = value;
 206      }
 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 {
 212      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() {
 218      _hasBits0 &= ~8;
 219    }
 220
 221    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 222    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 223    public override bool Equals(object other) {
 224      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) {
 230      if (ReferenceEquals(other, null)) {
 231        return false;
 232      }
 233      if (ReferenceEquals(other, this)) {
 234        return true;
 235      }
 236      if (Src != other.Src) return false;
 237      if (Playing != other.Playing) return false;
 238      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Position, other.Position)) return false;
 239      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Volume, other.Volume)) return false;
 240      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(PlaybackRate, other.PlaybackRate)) return
 241      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() {
 247      int hash = 1;
 248      if (Src.Length != 0) hash ^= Src.GetHashCode();
 249      if (HasPlaying) hash ^= Playing.GetHashCode();
 250      if (HasPosition) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Position);
 251      if (HasVolume) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Volume);
 252      if (HasPlaybackRate) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(PlaybackRate
 253      if (_unknownFields != null) {
 254        hash ^= _unknownFields.GetHashCode();
 255      }
 256      return hash;
 257    }
 258
 259    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 260    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 261    public override string ToString() {
 262      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
 271      if (Src.Length != 0) {
 272        output.WriteRawTag(10);
 273        output.WriteString(Src);
 274      }
 275      if (HasPlaying) {
 276        output.WriteRawTag(16);
 277        output.WriteBool(Playing);
 278      }
 279      if (HasPosition) {
 280        output.WriteRawTag(29);
 281        output.WriteFloat(Position);
 282      }
 283      if (HasVolume) {
 284        output.WriteRawTag(37);
 285        output.WriteFloat(Volume);
 286      }
 287      if (HasPlaybackRate) {
 288        output.WriteRawTag(45);
 289        output.WriteFloat(PlaybackRate);
 290      }
 291      if (_unknownFields != null) {
 292        _unknownFields.WriteTo(output);
 293      }
 294    #endif
 295    }
 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() {
 330      int size = 0;
 331      if (Src.Length != 0) {
 332        size += 1 + pb::CodedOutputStream.ComputeStringSize(Src);
 333      }
 334      if (HasPlaying) {
 335        size += 1 + 1;
 336      }
 337      if (HasPosition) {
 338        size += 1 + 4;
 339      }
 340      if (HasVolume) {
 341        size += 1 + 4;
 342      }
 343      if (HasPlaybackRate) {
 344        size += 1 + 4;
 345      }
 346      if (_unknownFields != null) {
 347        size += _unknownFields.CalculateSize();
 348      }
 349      return size;
 350    }
 351
 352    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 353    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 354    public void MergeFrom(PBVideoPlayer other) {
 355      if (other == null) {
 356        return;
 357      }
 358      if (other.Src.Length != 0) {
 359        Src = other.Src;
 360      }
 361      if (other.HasPlaying) {
 362        Playing = other.Playing;
 363      }
 364      if (other.HasPosition) {
 365        Position = other.Position;
 366      }
 367      if (other.HasVolume) {
 368        Volume = other.Volume;
 369      }
 370      if (other.HasPlaybackRate) {
 371        PlaybackRate = other.PlaybackRate;
 372      }
 373      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 374    }
 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;
 383      while ((tag = input.ReadTag()) != 0) {
 384        switch(tag) {
 385          default:
 386            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 387            break;
 388          case 10: {
 389            Src = input.ReadString();
 390            break;
 391          }
 392          case 16: {
 393            Playing = input.ReadBool();
 394            break;
 395          }
 396          case 29: {
 397            Position = input.ReadFloat();
 398            break;
 399          }
 400          case 37: {
 401            Volume = input.ReadFloat();
 402            break;
 403          }
 404          case 45: {
 405            PlaybackRate = input.ReadFloat();
 406            break;
 407          }
 408        }
 409      }
 410    #endif
 411    }
 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