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