< Summary

Class:DCL.ECSComponents.PBAudioStream
Assembly:DCL.ECSComponents.ProtobufData
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/AudioStream.gen.cs
Covered lines:13
Uncovered lines:77
Coverable lines:90
Total lines:339
Line coverage:14.4% (13 of 90)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
PBAudioStream()0%110100%
get_Descriptor()0%2100%
PBAudioStream(...)0%2100%
Clone()0%2100%
ClearPlaying()0%2100%
ClearVolume()0%2100%
PBAudioStream()0%110100%
Equals(...)0%2100%
Equals(...)0%42600%
GetHashCode()0%30500%
ToString()0%2100%
WriteTo(...)0%30500%
CalculateSize()0%30500%
MergeFrom(...)0%30500%
MergeFrom(...)0%30500%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/AudioStream.gen.cs

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: ecs/components/AudioStream.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 ecs/components/AudioStream.proto</summary>
 15  public static partial class AudioStreamReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for ecs/components/AudioStream.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static AudioStreamReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "CiBlY3MvY29tcG9uZW50cy9BdWRpb1N0cmVhbS5wcm90bxIQZGVjZW50cmFs",
 28            "YW5kLmVjcyJeCg1QQkF1ZGlvU3RyZWFtEhQKB3BsYXlpbmcYASABKAhIAIgB",
 29            "ARITCgZ2b2x1bWUYAiABKAJIAYgBARILCgN1cmwYAyABKAlCCgoIX3BsYXlp",
 30            "bmdCCQoHX3ZvbHVtZUIUqgIRRENMLkVDU0NvbXBvbmVudHNiBnByb3RvMw=="));
 31      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 32          new pbr::FileDescriptor[] { },
 33          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 34            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBAudioStream), global::DCL.ECSComponents.PBA
 35          }));
 36    }
 37    #endregion
 38
 39  }
 40  #region Messages
 41  public sealed partial class PBAudioStream : pb::IMessage<PBAudioStream>
 42  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 43      , pb::IBufferMessage
 44  #endif
 45  {
 146    private static readonly pb::MessageParser<PBAudioStream> _parser = new pb::MessageParser<PBAudioStream>(() => new PB
 47    private pb::UnknownFieldSet _unknownFields;
 48    private int _hasBits0;
 49    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 50    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 051    public static pb::MessageParser<PBAudioStream> Parser { get { return _parser; } }
 52
 53    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 54    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 55    public static pbr::MessageDescriptor Descriptor {
 056      get { return global::DCL.ECSComponents.AudioStreamReflection.Descriptor.MessageTypes[0]; }
 57    }
 58
 59    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 60    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 61    pbr::MessageDescriptor pb::IMessage.Descriptor {
 062      get { return Descriptor; }
 63    }
 64
 65    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 66    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1067    public PBAudioStream() {
 68      OnConstruction();
 1069    }
 70
 71    partial void OnConstruction();
 72
 73    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 74    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 075    public PBAudioStream(PBAudioStream other) : this() {
 076      _hasBits0 = other._hasBits0;
 077      playing_ = other.playing_;
 078      volume_ = other.volume_;
 079      url_ = other.url_;
 080      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 081    }
 82
 83    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 84    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 85    public PBAudioStream Clone() {
 086      return new PBAudioStream(this);
 87    }
 88
 89    /// <summary>Field number for the "playing" field.</summary>
 90    public const int PlayingFieldNumber = 1;
 91    private bool playing_;
 92    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 93    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 94    public bool Playing {
 095      get { if ((_hasBits0 & 1) != 0) { return playing_; } else { return false; } }
 96      set {
 1597        _hasBits0 |= 1;
 1598        playing_ = value;
 1599      }
 100    }
 101    /// <summary>Gets whether the "playing" field is set</summary>
 102    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 103    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 104    public bool HasPlaying {
 0105      get { return (_hasBits0 & 1) != 0; }
 106    }
 107    /// <summary>Clears the value of the "playing" field</summary>
 108    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 109    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 110    public void ClearPlaying() {
 0111      _hasBits0 &= ~1;
 0112    }
 113
 114    /// <summary>Field number for the "volume" field.</summary>
 115    public const int VolumeFieldNumber = 2;
 116    private float volume_;
 117    /// <summary>
 118    /// default=1.0f
 119    /// </summary>
 120    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 121    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 122    public float Volume {
 26123      get { if ((_hasBits0 & 2) != 0) { return volume_; } else { return 0F; } }
 124      set {
 12125        _hasBits0 |= 2;
 12126        volume_ = value;
 12127      }
 128    }
 129    /// <summary>Gets whether the "volume" field is set</summary>
 130    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 131    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 132    public bool HasVolume {
 0133      get { return (_hasBits0 & 2) != 0; }
 134    }
 135    /// <summary>Clears the value of the "volume" field</summary>
 136    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 137    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 138    public void ClearVolume() {
 0139      _hasBits0 &= ~2;
 0140    }
 141
 142    /// <summary>Field number for the "url" field.</summary>
 143    public const int UrlFieldNumber = 3;
 10144    private string url_ = "";
 145    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 146    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 147    public string Url {
 0148      get { return url_; }
 149      set {
 10150        url_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 10151      }
 152    }
 153
 154    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 155    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 156    public override bool Equals(object other) {
 0157      return Equals(other as PBAudioStream);
 158    }
 159
 160    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 161    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 162    public bool Equals(PBAudioStream other) {
 0163      if (ReferenceEquals(other, null)) {
 0164        return false;
 165      }
 0166      if (ReferenceEquals(other, this)) {
 0167        return true;
 168      }
 0169      if (Playing != other.Playing) return false;
 0170      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Volume, other.Volume)) return false;
 0171      if (Url != other.Url) return false;
 0172      return Equals(_unknownFields, other._unknownFields);
 173    }
 174
 175    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 176    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 177    public override int GetHashCode() {
 0178      int hash = 1;
 0179      if (HasPlaying) hash ^= Playing.GetHashCode();
 0180      if (HasVolume) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Volume);
 0181      if (Url.Length != 0) hash ^= Url.GetHashCode();
 0182      if (_unknownFields != null) {
 0183        hash ^= _unknownFields.GetHashCode();
 184      }
 0185      return hash;
 186    }
 187
 188    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 189    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 190    public override string ToString() {
 0191      return pb::JsonFormatter.ToDiagnosticString(this);
 192    }
 193
 194    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 195    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 196    public void WriteTo(pb::CodedOutputStream output) {
 197    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 198      output.WriteRawMessage(this);
 199    #else
 0200      if (HasPlaying) {
 0201        output.WriteRawTag(8);
 0202        output.WriteBool(Playing);
 203      }
 0204      if (HasVolume) {
 0205        output.WriteRawTag(21);
 0206        output.WriteFloat(Volume);
 207      }
 0208      if (Url.Length != 0) {
 0209        output.WriteRawTag(26);
 0210        output.WriteString(Url);
 211      }
 0212      if (_unknownFields != null) {
 0213        _unknownFields.WriteTo(output);
 214      }
 215    #endif
 0216    }
 217
 218    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 219    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 220    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 221    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 222      if (HasPlaying) {
 223        output.WriteRawTag(8);
 224        output.WriteBool(Playing);
 225      }
 226      if (HasVolume) {
 227        output.WriteRawTag(21);
 228        output.WriteFloat(Volume);
 229      }
 230      if (Url.Length != 0) {
 231        output.WriteRawTag(26);
 232        output.WriteString(Url);
 233      }
 234      if (_unknownFields != null) {
 235        _unknownFields.WriteTo(ref output);
 236      }
 237    }
 238    #endif
 239
 240    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 241    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 242    public int CalculateSize() {
 0243      int size = 0;
 0244      if (HasPlaying) {
 0245        size += 1 + 1;
 246      }
 0247      if (HasVolume) {
 0248        size += 1 + 4;
 249      }
 0250      if (Url.Length != 0) {
 0251        size += 1 + pb::CodedOutputStream.ComputeStringSize(Url);
 252      }
 0253      if (_unknownFields != null) {
 0254        size += _unknownFields.CalculateSize();
 255      }
 0256      return size;
 257    }
 258
 259    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 260    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 261    public void MergeFrom(PBAudioStream other) {
 0262      if (other == null) {
 0263        return;
 264      }
 0265      if (other.HasPlaying) {
 0266        Playing = other.Playing;
 267      }
 0268      if (other.HasVolume) {
 0269        Volume = other.Volume;
 270      }
 0271      if (other.Url.Length != 0) {
 0272        Url = other.Url;
 273      }
 0274      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0275    }
 276
 277    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 278    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 279    public void MergeFrom(pb::CodedInputStream input) {
 280    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 281      input.ReadRawMessage(this);
 282    #else
 283      uint tag;
 0284      while ((tag = input.ReadTag()) != 0) {
 285        switch(tag) {
 286          default:
 0287            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0288            break;
 289          case 8: {
 0290            Playing = input.ReadBool();
 0291            break;
 292          }
 293          case 21: {
 0294            Volume = input.ReadFloat();
 0295            break;
 296          }
 297          case 26: {
 0298            Url = input.ReadString();
 299            break;
 300          }
 301        }
 302      }
 303    #endif
 0304    }
 305
 306    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 307    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 308    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 309    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 310      uint tag;
 311      while ((tag = input.ReadTag()) != 0) {
 312        switch(tag) {
 313          default:
 314            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 315            break;
 316          case 8: {
 317            Playing = input.ReadBool();
 318            break;
 319          }
 320          case 21: {
 321            Volume = input.ReadFloat();
 322            break;
 323          }
 324          case 26: {
 325            Url = input.ReadString();
 326            break;
 327          }
 328        }
 329      }
 330    }
 331    #endif
 332
 333  }
 334
 335  #endregion
 336
 337}
 338
 339#endregion Designer generated code