< Summary

Class:DCL.ECSComponents.AudioStreamReflection
Assembly:DCL.Components.ProtobufData
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/PBFiles/AudioStream.cs
Covered lines:0
Uncovered lines:4
Coverable lines:4
Total lines:229
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/PBFiles/AudioStream.cs

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: 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 AudioStream.proto</summary>
 15  public static partial class AudioStreamReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for 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            "ChFBdWRpb1N0cmVhbS5wcm90bxIQZGVjZW50cmFsYW5kLmVjcyI9Cg1QQkF1",
 28            "ZGlvU3RyZWFtEg8KB3BsYXlpbmcYASABKAgSDgoGdm9sdW1lGAIgASgCEgsK",
 29            "A3VybBgDIAEoCUIUqgIRRENMLkVDU0NvbXBvbmVudHNiBnByb3RvMw=="));
 030      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 31          new pbr::FileDescriptor[] { },
 32          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 33            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBAudioStream), global::DCL.ECSComponents.PBA
 34          }));
 035    }
 36    #endregion
 37
 38  }
 39  #region Messages
 40  public sealed partial class PBAudioStream : pb::IMessage<PBAudioStream> {
 41    private static readonly pb::MessageParser<PBAudioStream> _parser = new pb::MessageParser<PBAudioStream>(() => new PB
 42    private pb::UnknownFieldSet _unknownFields;
 43    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 44    public static pb::MessageParser<PBAudioStream> Parser { get { return _parser; } }
 45
 46    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 47    public static pbr::MessageDescriptor Descriptor {
 48      get { return global::DCL.ECSComponents.AudioStreamReflection.Descriptor.MessageTypes[0]; }
 49    }
 50
 51    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 52    pbr::MessageDescriptor pb::IMessage.Descriptor {
 53      get { return Descriptor; }
 54    }
 55
 56    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 57    public PBAudioStream() {
 58      OnConstruction();
 59    }
 60
 61    partial void OnConstruction();
 62
 63    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 64    public PBAudioStream(PBAudioStream other) : this() {
 65      playing_ = other.playing_;
 66      volume_ = other.volume_;
 67      url_ = other.url_;
 68      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 69    }
 70
 71    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 72    public PBAudioStream Clone() {
 73      return new PBAudioStream(this);
 74    }
 75
 76    /// <summary>Field number for the "playing" field.</summary>
 77    public const int PlayingFieldNumber = 1;
 78    private bool playing_;
 79    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 80    public bool Playing {
 81      get { return playing_; }
 82      set {
 83        playing_ = value;
 84      }
 85    }
 86
 87    /// <summary>Field number for the "volume" field.</summary>
 88    public const int VolumeFieldNumber = 2;
 89    private float volume_;
 90    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 91    public float Volume {
 92      get { return volume_; }
 93      set {
 94        volume_ = value;
 95      }
 96    }
 97
 98    /// <summary>Field number for the "url" field.</summary>
 99    public const int UrlFieldNumber = 3;
 100    private string url_ = "";
 101    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 102    public string Url {
 103      get { return url_; }
 104      set {
 105        url_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 106      }
 107    }
 108
 109    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 110    public override bool Equals(object other) {
 111      return Equals(other as PBAudioStream);
 112    }
 113
 114    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 115    public bool Equals(PBAudioStream other) {
 116      if (ReferenceEquals(other, null)) {
 117        return false;
 118      }
 119      if (ReferenceEquals(other, this)) {
 120        return true;
 121      }
 122      if (Playing != other.Playing) return false;
 123      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Volume, other.Volume)) return false;
 124      if (Url != other.Url) return false;
 125      return Equals(_unknownFields, other._unknownFields);
 126    }
 127
 128    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 129    public override int GetHashCode() {
 130      int hash = 1;
 131      if (Playing != false) hash ^= Playing.GetHashCode();
 132      if (Volume != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Volume);
 133      if (Url.Length != 0) hash ^= Url.GetHashCode();
 134      if (_unknownFields != null) {
 135        hash ^= _unknownFields.GetHashCode();
 136      }
 137      return hash;
 138    }
 139
 140    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 141    public override string ToString() {
 142      return pb::JsonFormatter.ToDiagnosticString(this);
 143    }
 144
 145    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 146    public void WriteTo(pb::CodedOutputStream output) {
 147      if (Playing != false) {
 148        output.WriteRawTag(8);
 149        output.WriteBool(Playing);
 150      }
 151      if (Volume != 0F) {
 152        output.WriteRawTag(21);
 153        output.WriteFloat(Volume);
 154      }
 155      if (Url.Length != 0) {
 156        output.WriteRawTag(26);
 157        output.WriteString(Url);
 158      }
 159      if (_unknownFields != null) {
 160        _unknownFields.WriteTo(output);
 161      }
 162    }
 163
 164    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 165    public int CalculateSize() {
 166      int size = 0;
 167      if (Playing != false) {
 168        size += 1 + 1;
 169      }
 170      if (Volume != 0F) {
 171        size += 1 + 4;
 172      }
 173      if (Url.Length != 0) {
 174        size += 1 + pb::CodedOutputStream.ComputeStringSize(Url);
 175      }
 176      if (_unknownFields != null) {
 177        size += _unknownFields.CalculateSize();
 178      }
 179      return size;
 180    }
 181
 182    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 183    public void MergeFrom(PBAudioStream other) {
 184      if (other == null) {
 185        return;
 186      }
 187      if (other.Playing != false) {
 188        Playing = other.Playing;
 189      }
 190      if (other.Volume != 0F) {
 191        Volume = other.Volume;
 192      }
 193      if (other.Url.Length != 0) {
 194        Url = other.Url;
 195      }
 196      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 197    }
 198
 199    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 200    public void MergeFrom(pb::CodedInputStream input) {
 201      uint tag;
 202      while ((tag = input.ReadTag()) != 0) {
 203        switch(tag) {
 204          default:
 205            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 206            break;
 207          case 8: {
 208            Playing = input.ReadBool();
 209            break;
 210          }
 211          case 21: {
 212            Volume = input.ReadFloat();
 213            break;
 214          }
 215          case 26: {
 216            Url = input.ReadString();
 217            break;
 218          }
 219        }
 220      }
 221    }
 222
 223  }
 224
 225  #endregion
 226
 227}
 228
 229#endregion Designer generated code