< Summary

Class:DCL.ECSComponents.PBAudioEvent
Assembly:Decentraland.Protocol.GeneratedCode
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/AudioEvent.gen.cs
Covered lines:0
Uncovered lines:65
Coverable lines:65
Total lines:276
Line coverage:0% (0 of 65)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:19
Method coverage:0% (0 of 19)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
PBAudioEvent()0%2100%
get_Descriptor()0%2100%
PBAudioEvent()0%2100%
PBAudioEvent(...)0%2100%
Clone()0%2100%
Equals(...)0%2100%
Equals(...)0%30500%
GetHashCode()0%20400%
ToString()0%2100%
WriteTo(...)0%20400%
CalculateSize()0%20400%
MergeFrom(...)0%20400%
MergeFrom(...)0%20400%

File(s)

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

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: decentraland/sdk/components/audio_event.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/audio_event.proto</summary>
 15  public static partial class AudioEventReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for decentraland/sdk/components/audio_event.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static AudioEventReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "Ci1kZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvYXVkaW9fZXZlbnQucHJv",
 28            "dG8SG2RlY2VudHJhbGFuZC5zZGsuY29tcG9uZW50cxo0ZGVjZW50cmFsYW5k",
 29            "L3Nkay9jb21wb25lbnRzL2NvbW1vbi9tZWRpYV9zdGF0ZS5wcm90byJgCgxQ",
 30            "QkF1ZGlvRXZlbnQSPQoFc3RhdGUYASABKA4yLi5kZWNlbnRyYWxhbmQuc2Rr",
 31            "LmNvbXBvbmVudHMuY29tbW9uLk1lZGlhU3RhdGUSEQoJdGltZXN0YW1wGAIg",
 32            "ASgNQhSqAhFEQ0wuRUNTQ29tcG9uZW50c2IGcHJvdG8z"));
 33      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 34          new pbr::FileDescriptor[] { global::DCL.ECSComponents.MediaStateReflection.Descriptor, },
 35          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 36            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBAudioEvent), global::DCL.ECSComponents.PBAu
 37          }));
 38    }
 39    #endregion
 40
 41  }
 42  #region Messages
 43  public sealed partial class PBAudioEvent : pb::IMessage<PBAudioEvent>
 44  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 45      , pb::IBufferMessage
 46  #endif
 47  {
 048    private static readonly pb::MessageParser<PBAudioEvent> _parser = new pb::MessageParser<PBAudioEvent>(() => new PBAu
 49    private pb::UnknownFieldSet _unknownFields;
 50    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 51    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 052    public static pb::MessageParser<PBAudioEvent> Parser { get { return _parser; } }
 53
 54    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 55    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 56    public static pbr::MessageDescriptor Descriptor {
 057      get { return global::DCL.ECSComponents.AudioEventReflection.Descriptor.MessageTypes[0]; }
 58    }
 59
 60    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 61    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 62    pbr::MessageDescriptor pb::IMessage.Descriptor {
 063      get { return Descriptor; }
 64    }
 65
 66    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 67    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 068    public PBAudioEvent() {
 69      OnConstruction();
 070    }
 71
 72    partial void OnConstruction();
 73
 74    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 75    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 076    public PBAudioEvent(PBAudioEvent other) : this() {
 077      state_ = other.state_;
 078      timestamp_ = other.timestamp_;
 079      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 080    }
 81
 82    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 83    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 84    public PBAudioEvent Clone() {
 085      return new PBAudioEvent(this);
 86    }
 87
 88    /// <summary>Field number for the "state" field.</summary>
 89    public const int StateFieldNumber = 1;
 90    private global::DCL.ECSComponents.MediaState state_ = global::DCL.ECSComponents.MediaState.MsNone;
 91    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 92    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 93    public global::DCL.ECSComponents.MediaState State {
 094      get { return state_; }
 95      set {
 096        state_ = value;
 097      }
 98    }
 99
 100    /// <summary>Field number for the "timestamp" field.</summary>
 101    public const int TimestampFieldNumber = 2;
 102    private uint timestamp_;
 103    /// <summary>
 104    /// monotonic counter
 105    /// </summary>
 106    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 107    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 108    public uint Timestamp {
 0109      get { return timestamp_; }
 110      set {
 0111        timestamp_ = value;
 0112      }
 113    }
 114
 115    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 116    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 117    public override bool Equals(object other) {
 0118      return Equals(other as PBAudioEvent);
 119    }
 120
 121    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 122    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 123    public bool Equals(PBAudioEvent other) {
 0124      if (ReferenceEquals(other, null)) {
 0125        return false;
 126      }
 0127      if (ReferenceEquals(other, this)) {
 0128        return true;
 129      }
 0130      if (State != other.State) return false;
 0131      if (Timestamp != other.Timestamp) return false;
 0132      return Equals(_unknownFields, other._unknownFields);
 133    }
 134
 135    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 136    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 137    public override int GetHashCode() {
 0138      int hash = 1;
 0139      if (State != global::DCL.ECSComponents.MediaState.MsNone) hash ^= State.GetHashCode();
 0140      if (Timestamp != 0) hash ^= Timestamp.GetHashCode();
 0141      if (_unknownFields != null) {
 0142        hash ^= _unknownFields.GetHashCode();
 143      }
 0144      return hash;
 145    }
 146
 147    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 148    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 149    public override string ToString() {
 0150      return pb::JsonFormatter.ToDiagnosticString(this);
 151    }
 152
 153    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 154    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 155    public void WriteTo(pb::CodedOutputStream output) {
 156    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 157      output.WriteRawMessage(this);
 158    #else
 0159      if (State != global::DCL.ECSComponents.MediaState.MsNone) {
 0160        output.WriteRawTag(8);
 0161        output.WriteEnum((int) State);
 162      }
 0163      if (Timestamp != 0) {
 0164        output.WriteRawTag(16);
 0165        output.WriteUInt32(Timestamp);
 166      }
 0167      if (_unknownFields != null) {
 0168        _unknownFields.WriteTo(output);
 169      }
 170    #endif
 0171    }
 172
 173    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 174    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 175    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 176    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 177      if (State != global::DCL.ECSComponents.MediaState.MsNone) {
 178        output.WriteRawTag(8);
 179        output.WriteEnum((int) State);
 180      }
 181      if (Timestamp != 0) {
 182        output.WriteRawTag(16);
 183        output.WriteUInt32(Timestamp);
 184      }
 185      if (_unknownFields != null) {
 186        _unknownFields.WriteTo(ref output);
 187      }
 188    }
 189    #endif
 190
 191    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 192    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 193    public int CalculateSize() {
 0194      int size = 0;
 0195      if (State != global::DCL.ECSComponents.MediaState.MsNone) {
 0196        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State);
 197      }
 0198      if (Timestamp != 0) {
 0199        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Timestamp);
 200      }
 0201      if (_unknownFields != null) {
 0202        size += _unknownFields.CalculateSize();
 203      }
 0204      return size;
 205    }
 206
 207    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 208    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 209    public void MergeFrom(PBAudioEvent other) {
 0210      if (other == null) {
 0211        return;
 212      }
 0213      if (other.State != global::DCL.ECSComponents.MediaState.MsNone) {
 0214        State = other.State;
 215      }
 0216      if (other.Timestamp != 0) {
 0217        Timestamp = other.Timestamp;
 218      }
 0219      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0220    }
 221
 222    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 223    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 224    public void MergeFrom(pb::CodedInputStream input) {
 225    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 226      input.ReadRawMessage(this);
 227    #else
 228      uint tag;
 0229      while ((tag = input.ReadTag()) != 0) {
 230        switch(tag) {
 231          default:
 0232            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0233            break;
 234          case 8: {
 0235            State = (global::DCL.ECSComponents.MediaState) input.ReadEnum();
 0236            break;
 237          }
 238          case 16: {
 0239            Timestamp = input.ReadUInt32();
 240            break;
 241          }
 242        }
 243      }
 244    #endif
 0245    }
 246
 247    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 248    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 249    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 250    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 251      uint tag;
 252      while ((tag = input.ReadTag()) != 0) {
 253        switch(tag) {
 254          default:
 255            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 256            break;
 257          case 8: {
 258            State = (global::DCL.ECSComponents.MediaState) input.ReadEnum();
 259            break;
 260          }
 261          case 16: {
 262            Timestamp = input.ReadUInt32();
 263            break;
 264          }
 265        }
 266      }
 267    }
 268    #endif
 269
 270  }
 271
 272  #endregion
 273
 274}
 275
 276#endregion Designer generated code