< Summary

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

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
AudioStreamReflection()0%2100%

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 {
 020      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static AudioStreamReflection() {
 025      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "CiBlY3MvY29tcG9uZW50cy9BdWRpb1N0cmVhbS5wcm90bxIQZGVjZW50cmFs",
 28            "YW5kLmVjcyJeCg1QQkF1ZGlvU3RyZWFtEhQKB3BsYXlpbmcYASABKAhIAIgB",
 29            "ARITCgZ2b2x1bWUYAiABKAJIAYgBARILCgN1cmwYAyABKAlCCgoIX3BsYXlp",
 30            "bmdCCQoHX3ZvbHVtZUIUqgIRRENMLkVDU0NvbXBvbmVudHNiBnByb3RvMw=="));
 031      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          }));
 036    }
 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  {
 46    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)]
 51    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 {
 56      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 {
 62      get { return Descriptor; }
 63    }
 64
 65    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 66    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 67    public PBAudioStream() {
 68      OnConstruction();
 69    }
 70
 71    partial void OnConstruction();
 72
 73    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 74    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 75    public PBAudioStream(PBAudioStream other) : this() {
 76      _hasBits0 = other._hasBits0;
 77      playing_ = other.playing_;
 78      volume_ = other.volume_;
 79      url_ = other.url_;
 80      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 81    }
 82
 83    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 84    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 85    public PBAudioStream Clone() {
 86      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 {
 95      get { if ((_hasBits0 & 1) != 0) { return playing_; } else { return false; } }
 96      set {
 97        _hasBits0 |= 1;
 98        playing_ = value;
 99      }
 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 {
 105      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() {
 111      _hasBits0 &= ~1;
 112    }
 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 {
 123      get { if ((_hasBits0 & 2) != 0) { return volume_; } else { return 0F; } }
 124      set {
 125        _hasBits0 |= 2;
 126        volume_ = value;
 127      }
 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 {
 133      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() {
 139      _hasBits0 &= ~2;
 140    }
 141
 142    /// <summary>Field number for the "url" field.</summary>
 143    public const int UrlFieldNumber = 3;
 144    private string url_ = "";
 145    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 146    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 147    public string Url {
 148      get { return url_; }
 149      set {
 150        url_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 151      }
 152    }
 153
 154    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 155    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 156    public override bool Equals(object other) {
 157      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) {
 163      if (ReferenceEquals(other, null)) {
 164        return false;
 165      }
 166      if (ReferenceEquals(other, this)) {
 167        return true;
 168      }
 169      if (Playing != other.Playing) return false;
 170      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Volume, other.Volume)) return false;
 171      if (Url != other.Url) return false;
 172      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() {
 178      int hash = 1;
 179      if (HasPlaying) hash ^= Playing.GetHashCode();
 180      if (HasVolume) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Volume);
 181      if (Url.Length != 0) hash ^= Url.GetHashCode();
 182      if (_unknownFields != null) {
 183        hash ^= _unknownFields.GetHashCode();
 184      }
 185      return hash;
 186    }
 187
 188    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 189    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 190    public override string ToString() {
 191      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
 200      if (HasPlaying) {
 201        output.WriteRawTag(8);
 202        output.WriteBool(Playing);
 203      }
 204      if (HasVolume) {
 205        output.WriteRawTag(21);
 206        output.WriteFloat(Volume);
 207      }
 208      if (Url.Length != 0) {
 209        output.WriteRawTag(26);
 210        output.WriteString(Url);
 211      }
 212      if (_unknownFields != null) {
 213        _unknownFields.WriteTo(output);
 214      }
 215    #endif
 216    }
 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() {
 243      int size = 0;
 244      if (HasPlaying) {
 245        size += 1 + 1;
 246      }
 247      if (HasVolume) {
 248        size += 1 + 4;
 249      }
 250      if (Url.Length != 0) {
 251        size += 1 + pb::CodedOutputStream.ComputeStringSize(Url);
 252      }
 253      if (_unknownFields != null) {
 254        size += _unknownFields.CalculateSize();
 255      }
 256      return size;
 257    }
 258
 259    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 260    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 261    public void MergeFrom(PBAudioStream other) {
 262      if (other == null) {
 263        return;
 264      }
 265      if (other.HasPlaying) {
 266        Playing = other.Playing;
 267      }
 268      if (other.HasVolume) {
 269        Volume = other.Volume;
 270      }
 271      if (other.Url.Length != 0) {
 272        Url = other.Url;
 273      }
 274      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 275    }
 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;
 284      while ((tag = input.ReadTag()) != 0) {
 285        switch(tag) {
 286          default:
 287            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 288            break;
 289          case 8: {
 290            Playing = input.ReadBool();
 291            break;
 292          }
 293          case 21: {
 294            Volume = input.ReadFloat();
 295            break;
 296          }
 297          case 26: {
 298            Url = input.ReadString();
 299            break;
 300          }
 301        }
 302      }
 303    #endif
 304    }
 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