| | 1 | | // <auto-generated> |
| | 2 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| | 3 | | // source: decentraland/sdk/components/audio_stream.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 decentraland/sdk/components/audio_stream.proto</summary> |
| | 15 | | public static partial class AudioStreamReflection { |
| | 16 | |
|
| | 17 | | #region Descriptor |
| | 18 | | /// <summary>File descriptor for decentraland/sdk/components/audio_stream.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 | | "Ci5kZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvYXVkaW9fc3RyZWFtLnBy", |
| | 28 | | "b3RvEhtkZWNlbnRyYWxhbmQuc2RrLmNvbXBvbmVudHMiXgoNUEJBdWRpb1N0", |
| | 29 | | "cmVhbRIUCgdwbGF5aW5nGAEgASgISACIAQESEwoGdm9sdW1lGAIgASgCSAGI", |
| | 30 | | "AQESCwoDdXJsGAMgASgJQgoKCF9wbGF5aW5nQgkKB192b2x1bWVCFKoCEURD", |
| | 31 | | "TC5FQ1NDb21wb25lbnRzYgZwcm90bzM=")); |
| | 32 | | descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
| | 33 | | new pbr::FileDescriptor[] { }, |
| | 34 | | new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { |
| | 35 | | new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBAudioStream), global::DCL.ECSComponents.PBA |
| | 36 | | })); |
| | 37 | | } |
| | 38 | | #endregion |
| | 39 | |
|
| | 40 | | } |
| | 41 | | #region Messages |
| | 42 | | public sealed partial class PBAudioStream : pb::IMessage<PBAudioStream> |
| | 43 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 44 | | , pb::IBufferMessage |
| | 45 | | #endif |
| | 46 | | { |
| 1 | 47 | | private static readonly pb::MessageParser<PBAudioStream> _parser = new pb::MessageParser<PBAudioStream>(() => new PB |
| | 48 | | private pb::UnknownFieldSet _unknownFields; |
| | 49 | | private int _hasBits0; |
| | 50 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 51 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 52 | | public static pb::MessageParser<PBAudioStream> Parser { get { return _parser; } } |
| | 53 | |
|
| | 54 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 55 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 56 | | public static pbr::MessageDescriptor Descriptor { |
| 0 | 57 | | get { return global::DCL.ECSComponents.AudioStreamReflection.Descriptor.MessageTypes[0]; } |
| | 58 | | } |
| | 59 | |
|
| | 60 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 61 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 62 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 0 | 63 | | get { return Descriptor; } |
| | 64 | | } |
| | 65 | |
|
| | 66 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 67 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 9 | 68 | | public PBAudioStream() { |
| | 69 | | OnConstruction(); |
| 9 | 70 | | } |
| | 71 | |
|
| | 72 | | partial void OnConstruction(); |
| | 73 | |
|
| | 74 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 75 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 76 | | public PBAudioStream(PBAudioStream other) : this() { |
| 0 | 77 | | _hasBits0 = other._hasBits0; |
| 0 | 78 | | playing_ = other.playing_; |
| 0 | 79 | | volume_ = other.volume_; |
| 0 | 80 | | url_ = other.url_; |
| 0 | 81 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| 0 | 82 | | } |
| | 83 | |
|
| | 84 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 85 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 86 | | public PBAudioStream Clone() { |
| 0 | 87 | | return new PBAudioStream(this); |
| | 88 | | } |
| | 89 | |
|
| | 90 | | /// <summary>Field number for the "playing" field.</summary> |
| | 91 | | public const int PlayingFieldNumber = 1; |
| | 92 | | private bool playing_; |
| | 93 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 94 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 95 | | public bool Playing { |
| 0 | 96 | | get { if ((_hasBits0 & 1) != 0) { return playing_; } else { return false; } } |
| | 97 | | set { |
| 14 | 98 | | _hasBits0 |= 1; |
| 14 | 99 | | playing_ = value; |
| 14 | 100 | | } |
| | 101 | | } |
| | 102 | | /// <summary>Gets whether the "playing" field is set</summary> |
| | 103 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 104 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 105 | | public bool HasPlaying { |
| 0 | 106 | | get { return (_hasBits0 & 1) != 0; } |
| | 107 | | } |
| | 108 | | /// <summary>Clears the value of the "playing" field</summary> |
| | 109 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 110 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 111 | | public void ClearPlaying() { |
| 0 | 112 | | _hasBits0 &= ~1; |
| 0 | 113 | | } |
| | 114 | |
|
| | 115 | | /// <summary>Field number for the "volume" field.</summary> |
| | 116 | | public const int VolumeFieldNumber = 2; |
| | 117 | | private float volume_; |
| | 118 | | /// <summary> |
| | 119 | | /// default=1.0f |
| | 120 | | /// </summary> |
| | 121 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 122 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 123 | | public float Volume { |
| 24 | 124 | | get { if ((_hasBits0 & 2) != 0) { return volume_; } else { return 0F; } } |
| | 125 | | set { |
| 11 | 126 | | _hasBits0 |= 2; |
| 11 | 127 | | volume_ = value; |
| 11 | 128 | | } |
| | 129 | | } |
| | 130 | | /// <summary>Gets whether the "volume" field is set</summary> |
| | 131 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 132 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 133 | | public bool HasVolume { |
| 0 | 134 | | get { return (_hasBits0 & 2) != 0; } |
| | 135 | | } |
| | 136 | | /// <summary>Clears the value of the "volume" field</summary> |
| | 137 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 138 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 139 | | public void ClearVolume() { |
| 0 | 140 | | _hasBits0 &= ~2; |
| 0 | 141 | | } |
| | 142 | |
|
| | 143 | | /// <summary>Field number for the "url" field.</summary> |
| | 144 | | public const int UrlFieldNumber = 3; |
| 9 | 145 | | private string url_ = ""; |
| | 146 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 147 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 148 | | public string Url { |
| 0 | 149 | | get { return url_; } |
| | 150 | | set { |
| 9 | 151 | | url_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| 9 | 152 | | } |
| | 153 | | } |
| | 154 | |
|
| | 155 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 156 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 157 | | public override bool Equals(object other) { |
| 0 | 158 | | return Equals(other as PBAudioStream); |
| | 159 | | } |
| | 160 | |
|
| | 161 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 162 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 163 | | public bool Equals(PBAudioStream other) { |
| 0 | 164 | | if (ReferenceEquals(other, null)) { |
| 0 | 165 | | return false; |
| | 166 | | } |
| 0 | 167 | | if (ReferenceEquals(other, this)) { |
| 0 | 168 | | return true; |
| | 169 | | } |
| 0 | 170 | | if (Playing != other.Playing) return false; |
| 0 | 171 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Volume, other.Volume)) return false; |
| 0 | 172 | | if (Url != other.Url) return false; |
| 0 | 173 | | return Equals(_unknownFields, other._unknownFields); |
| | 174 | | } |
| | 175 | |
|
| | 176 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 177 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 178 | | public override int GetHashCode() { |
| 0 | 179 | | int hash = 1; |
| 0 | 180 | | if (HasPlaying) hash ^= Playing.GetHashCode(); |
| 0 | 181 | | if (HasVolume) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Volume); |
| 0 | 182 | | if (Url.Length != 0) hash ^= Url.GetHashCode(); |
| 0 | 183 | | if (_unknownFields != null) { |
| 0 | 184 | | hash ^= _unknownFields.GetHashCode(); |
| | 185 | | } |
| 0 | 186 | | return hash; |
| | 187 | | } |
| | 188 | |
|
| | 189 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 190 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 191 | | public override string ToString() { |
| 0 | 192 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 193 | | } |
| | 194 | |
|
| | 195 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 196 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 197 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 198 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 199 | | output.WriteRawMessage(this); |
| | 200 | | #else |
| 0 | 201 | | if (HasPlaying) { |
| 0 | 202 | | output.WriteRawTag(8); |
| 0 | 203 | | output.WriteBool(Playing); |
| | 204 | | } |
| 0 | 205 | | if (HasVolume) { |
| 0 | 206 | | output.WriteRawTag(21); |
| 0 | 207 | | output.WriteFloat(Volume); |
| | 208 | | } |
| 0 | 209 | | if (Url.Length != 0) { |
| 0 | 210 | | output.WriteRawTag(26); |
| 0 | 211 | | output.WriteString(Url); |
| | 212 | | } |
| 0 | 213 | | if (_unknownFields != null) { |
| 0 | 214 | | _unknownFields.WriteTo(output); |
| | 215 | | } |
| | 216 | | #endif |
| 0 | 217 | | } |
| | 218 | |
|
| | 219 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 220 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 221 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 222 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 223 | | if (HasPlaying) { |
| | 224 | | output.WriteRawTag(8); |
| | 225 | | output.WriteBool(Playing); |
| | 226 | | } |
| | 227 | | if (HasVolume) { |
| | 228 | | output.WriteRawTag(21); |
| | 229 | | output.WriteFloat(Volume); |
| | 230 | | } |
| | 231 | | if (Url.Length != 0) { |
| | 232 | | output.WriteRawTag(26); |
| | 233 | | output.WriteString(Url); |
| | 234 | | } |
| | 235 | | if (_unknownFields != null) { |
| | 236 | | _unknownFields.WriteTo(ref output); |
| | 237 | | } |
| | 238 | | } |
| | 239 | | #endif |
| | 240 | |
|
| | 241 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 242 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 243 | | public int CalculateSize() { |
| 0 | 244 | | int size = 0; |
| 0 | 245 | | if (HasPlaying) { |
| 0 | 246 | | size += 1 + 1; |
| | 247 | | } |
| 0 | 248 | | if (HasVolume) { |
| 0 | 249 | | size += 1 + 4; |
| | 250 | | } |
| 0 | 251 | | if (Url.Length != 0) { |
| 0 | 252 | | size += 1 + pb::CodedOutputStream.ComputeStringSize(Url); |
| | 253 | | } |
| 0 | 254 | | if (_unknownFields != null) { |
| 0 | 255 | | size += _unknownFields.CalculateSize(); |
| | 256 | | } |
| 0 | 257 | | return size; |
| | 258 | | } |
| | 259 | |
|
| | 260 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 261 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 262 | | public void MergeFrom(PBAudioStream other) { |
| 0 | 263 | | if (other == null) { |
| 0 | 264 | | return; |
| | 265 | | } |
| 0 | 266 | | if (other.HasPlaying) { |
| 0 | 267 | | Playing = other.Playing; |
| | 268 | | } |
| 0 | 269 | | if (other.HasVolume) { |
| 0 | 270 | | Volume = other.Volume; |
| | 271 | | } |
| 0 | 272 | | if (other.Url.Length != 0) { |
| 0 | 273 | | Url = other.Url; |
| | 274 | | } |
| 0 | 275 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| 0 | 276 | | } |
| | 277 | |
|
| | 278 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 279 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 280 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 281 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 282 | | input.ReadRawMessage(this); |
| | 283 | | #else |
| | 284 | | uint tag; |
| 0 | 285 | | while ((tag = input.ReadTag()) != 0) { |
| | 286 | | switch(tag) { |
| | 287 | | default: |
| 0 | 288 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| 0 | 289 | | break; |
| | 290 | | case 8: { |
| 0 | 291 | | Playing = input.ReadBool(); |
| 0 | 292 | | break; |
| | 293 | | } |
| | 294 | | case 21: { |
| 0 | 295 | | Volume = input.ReadFloat(); |
| 0 | 296 | | break; |
| | 297 | | } |
| | 298 | | case 26: { |
| 0 | 299 | | Url = input.ReadString(); |
| | 300 | | break; |
| | 301 | | } |
| | 302 | | } |
| | 303 | | } |
| | 304 | | #endif |
| 0 | 305 | | } |
| | 306 | |
|
| | 307 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 308 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 309 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 310 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 311 | | uint tag; |
| | 312 | | while ((tag = input.ReadTag()) != 0) { |
| | 313 | | switch(tag) { |
| | 314 | | default: |
| | 315 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 316 | | break; |
| | 317 | | case 8: { |
| | 318 | | Playing = input.ReadBool(); |
| | 319 | | break; |
| | 320 | | } |
| | 321 | | case 21: { |
| | 322 | | Volume = input.ReadFloat(); |
| | 323 | | break; |
| | 324 | | } |
| | 325 | | case 26: { |
| | 326 | | Url = input.ReadString(); |
| | 327 | | break; |
| | 328 | | } |
| | 329 | | } |
| | 330 | | } |
| | 331 | | } |
| | 332 | | #endif |
| | 333 | |
|
| | 334 | | } |
| | 335 | |
|
| | 336 | | #endregion |
| | 337 | |
|
| | 338 | | } |
| | 339 | |
|
| | 340 | | #endregion Designer generated code |