| | 1 | | // <auto-generated> |
| | 2 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| | 3 | | // source: AudioSource.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 AudioSource.proto</summary> |
| | 15 | | public static partial class AudioSourceReflection { |
| | 16 | |
|
| | 17 | | #region Descriptor |
| | 18 | | /// <summary>File descriptor for AudioSource.proto</summary> |
| | 19 | | public static pbr::FileDescriptor Descriptor { |
| 0 | 20 | | get { return descriptor; } |
| | 21 | | } |
| | 22 | | private static pbr::FileDescriptor descriptor; |
| | 23 | |
|
| | 24 | | static AudioSourceReflection() { |
| 0 | 25 | | byte[] descriptorData = global::System.Convert.FromBase64String( |
| | 26 | | string.Concat( |
| | 27 | | "ChFBdWRpb1NvdXJjZS5wcm90bxIQZGVjZW50cmFsYW5kLmVjcyKjAQoNUEJB", |
| | 28 | | "dWRpb1NvdXJjZRIUCgdwbGF5aW5nGAEgASgISACIAQESEwoGdm9sdW1lGAIg", |
| | 29 | | "ASgCSAGIAQESEQoEbG9vcBgDIAEoCEgCiAEBEhIKBXBpdGNoGAQgASgCSAOI", |
| | 30 | | "AQESFgoOYXVkaW9fY2xpcF91cmwYBSABKAlCCgoIX3BsYXlpbmdCCQoHX3Zv", |
| | 31 | | "bHVtZUIHCgVfbG9vcEIICgZfcGl0Y2hCFKoCEURDTC5FQ1NDb21wb25lbnRz", |
| | 32 | | "YgZwcm90bzM=")); |
| 0 | 33 | | descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
| | 34 | | new pbr::FileDescriptor[] { }, |
| | 35 | | new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { |
| | 36 | | new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBAudioSource), global::DCL.ECSComponents.PBA |
| | 37 | | })); |
| 0 | 38 | | } |
| | 39 | | #endregion |
| | 40 | |
|
| | 41 | | } |
| | 42 | | #region Messages |
| | 43 | | public sealed partial class PBAudioSource : pb::IMessage<PBAudioSource> |
| | 44 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 45 | | , pb::IBufferMessage |
| | 46 | | #endif |
| | 47 | | { |
| | 48 | | private static readonly pb::MessageParser<PBAudioSource> _parser = new pb::MessageParser<PBAudioSource>(() => new PB |
| | 49 | | private pb::UnknownFieldSet _unknownFields; |
| | 50 | | private int _hasBits0; |
| | 51 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 52 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 53 | | public static pb::MessageParser<PBAudioSource> Parser { get { return _parser; } } |
| | 54 | |
|
| | 55 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 56 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 57 | | public static pbr::MessageDescriptor Descriptor { |
| | 58 | | get { return global::DCL.ECSComponents.AudioSourceReflection.Descriptor.MessageTypes[0]; } |
| | 59 | | } |
| | 60 | |
|
| | 61 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 62 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 63 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| | 64 | | get { return Descriptor; } |
| | 65 | | } |
| | 66 | |
|
| | 67 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 68 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 69 | | public PBAudioSource() { |
| | 70 | | OnConstruction(); |
| | 71 | | } |
| | 72 | |
|
| | 73 | | partial void OnConstruction(); |
| | 74 | |
|
| | 75 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 76 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 77 | | public PBAudioSource(PBAudioSource other) : this() { |
| | 78 | | _hasBits0 = other._hasBits0; |
| | 79 | | playing_ = other.playing_; |
| | 80 | | volume_ = other.volume_; |
| | 81 | | loop_ = other.loop_; |
| | 82 | | pitch_ = other.pitch_; |
| | 83 | | audioClipUrl_ = other.audioClipUrl_; |
| | 84 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| | 85 | | } |
| | 86 | |
|
| | 87 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 88 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 89 | | public PBAudioSource Clone() { |
| | 90 | | return new PBAudioSource(this); |
| | 91 | | } |
| | 92 | |
|
| | 93 | | /// <summary>Field number for the "playing" field.</summary> |
| | 94 | | public const int PlayingFieldNumber = 1; |
| | 95 | | private bool playing_; |
| | 96 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 97 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 98 | | public bool Playing { |
| | 99 | | get { if ((_hasBits0 & 1) != 0) { return playing_; } else { return false; } } |
| | 100 | | set { |
| | 101 | | _hasBits0 |= 1; |
| | 102 | | playing_ = value; |
| | 103 | | } |
| | 104 | | } |
| | 105 | | /// <summary>Gets whether the "playing" field is set</summary> |
| | 106 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 107 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 108 | | public bool HasPlaying { |
| | 109 | | get { return (_hasBits0 & 1) != 0; } |
| | 110 | | } |
| | 111 | | /// <summary>Clears the value of the "playing" field</summary> |
| | 112 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 113 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 114 | | public void ClearPlaying() { |
| | 115 | | _hasBits0 &= ~1; |
| | 116 | | } |
| | 117 | |
|
| | 118 | | /// <summary>Field number for the "volume" field.</summary> |
| | 119 | | public const int VolumeFieldNumber = 2; |
| | 120 | | private float volume_; |
| | 121 | | /// <summary> |
| | 122 | | /// default=1.0f |
| | 123 | | /// </summary> |
| | 124 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 125 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 126 | | public float Volume { |
| | 127 | | get { if ((_hasBits0 & 2) != 0) { return volume_; } else { return 0F; } } |
| | 128 | | set { |
| | 129 | | _hasBits0 |= 2; |
| | 130 | | volume_ = value; |
| | 131 | | } |
| | 132 | | } |
| | 133 | | /// <summary>Gets whether the "volume" field is set</summary> |
| | 134 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 135 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 136 | | public bool HasVolume { |
| | 137 | | get { return (_hasBits0 & 2) != 0; } |
| | 138 | | } |
| | 139 | | /// <summary>Clears the value of the "volume" field</summary> |
| | 140 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 141 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 142 | | public void ClearVolume() { |
| | 143 | | _hasBits0 &= ~2; |
| | 144 | | } |
| | 145 | |
|
| | 146 | | /// <summary>Field number for the "loop" field.</summary> |
| | 147 | | public const int LoopFieldNumber = 3; |
| | 148 | | private bool loop_; |
| | 149 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 150 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 151 | | public bool Loop { |
| | 152 | | get { if ((_hasBits0 & 4) != 0) { return loop_; } else { return false; } } |
| | 153 | | set { |
| | 154 | | _hasBits0 |= 4; |
| | 155 | | loop_ = value; |
| | 156 | | } |
| | 157 | | } |
| | 158 | | /// <summary>Gets whether the "loop" field is set</summary> |
| | 159 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 160 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 161 | | public bool HasLoop { |
| | 162 | | get { return (_hasBits0 & 4) != 0; } |
| | 163 | | } |
| | 164 | | /// <summary>Clears the value of the "loop" field</summary> |
| | 165 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 166 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 167 | | public void ClearLoop() { |
| | 168 | | _hasBits0 &= ~4; |
| | 169 | | } |
| | 170 | |
|
| | 171 | | /// <summary>Field number for the "pitch" field.</summary> |
| | 172 | | public const int PitchFieldNumber = 4; |
| | 173 | | private float pitch_; |
| | 174 | | /// <summary> |
| | 175 | | /// default=1.0f |
| | 176 | | /// </summary> |
| | 177 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 178 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 179 | | public float Pitch { |
| | 180 | | get { if ((_hasBits0 & 8) != 0) { return pitch_; } else { return 0F; } } |
| | 181 | | set { |
| | 182 | | _hasBits0 |= 8; |
| | 183 | | pitch_ = value; |
| | 184 | | } |
| | 185 | | } |
| | 186 | | /// <summary>Gets whether the "pitch" field is set</summary> |
| | 187 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 188 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 189 | | public bool HasPitch { |
| | 190 | | get { return (_hasBits0 & 8) != 0; } |
| | 191 | | } |
| | 192 | | /// <summary>Clears the value of the "pitch" field</summary> |
| | 193 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 194 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 195 | | public void ClearPitch() { |
| | 196 | | _hasBits0 &= ~8; |
| | 197 | | } |
| | 198 | |
|
| | 199 | | /// <summary>Field number for the "audio_clip_url" field.</summary> |
| | 200 | | public const int AudioClipUrlFieldNumber = 5; |
| | 201 | | private string audioClipUrl_ = ""; |
| | 202 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 203 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 204 | | public string AudioClipUrl { |
| | 205 | | get { return audioClipUrl_; } |
| | 206 | | set { |
| | 207 | | audioClipUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| | 208 | | } |
| | 209 | | } |
| | 210 | |
|
| | 211 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 212 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 213 | | public override bool Equals(object other) { |
| | 214 | | return Equals(other as PBAudioSource); |
| | 215 | | } |
| | 216 | |
|
| | 217 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 218 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 219 | | public bool Equals(PBAudioSource other) { |
| | 220 | | if (ReferenceEquals(other, null)) { |
| | 221 | | return false; |
| | 222 | | } |
| | 223 | | if (ReferenceEquals(other, this)) { |
| | 224 | | return true; |
| | 225 | | } |
| | 226 | | if (Playing != other.Playing) return false; |
| | 227 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Volume, other.Volume)) return false; |
| | 228 | | if (Loop != other.Loop) return false; |
| | 229 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Pitch, other.Pitch)) return false; |
| | 230 | | if (AudioClipUrl != other.AudioClipUrl) return false; |
| | 231 | | return Equals(_unknownFields, other._unknownFields); |
| | 232 | | } |
| | 233 | |
|
| | 234 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 235 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 236 | | public override int GetHashCode() { |
| | 237 | | int hash = 1; |
| | 238 | | if (HasPlaying) hash ^= Playing.GetHashCode(); |
| | 239 | | if (HasVolume) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Volume); |
| | 240 | | if (HasLoop) hash ^= Loop.GetHashCode(); |
| | 241 | | if (HasPitch) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Pitch); |
| | 242 | | if (AudioClipUrl.Length != 0) hash ^= AudioClipUrl.GetHashCode(); |
| | 243 | | if (_unknownFields != null) { |
| | 244 | | hash ^= _unknownFields.GetHashCode(); |
| | 245 | | } |
| | 246 | | return hash; |
| | 247 | | } |
| | 248 | |
|
| | 249 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 250 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 251 | | public override string ToString() { |
| | 252 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 253 | | } |
| | 254 | |
|
| | 255 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 256 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 257 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 258 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 259 | | output.WriteRawMessage(this); |
| | 260 | | #else |
| | 261 | | if (HasPlaying) { |
| | 262 | | output.WriteRawTag(8); |
| | 263 | | output.WriteBool(Playing); |
| | 264 | | } |
| | 265 | | if (HasVolume) { |
| | 266 | | output.WriteRawTag(21); |
| | 267 | | output.WriteFloat(Volume); |
| | 268 | | } |
| | 269 | | if (HasLoop) { |
| | 270 | | output.WriteRawTag(24); |
| | 271 | | output.WriteBool(Loop); |
| | 272 | | } |
| | 273 | | if (HasPitch) { |
| | 274 | | output.WriteRawTag(37); |
| | 275 | | output.WriteFloat(Pitch); |
| | 276 | | } |
| | 277 | | if (AudioClipUrl.Length != 0) { |
| | 278 | | output.WriteRawTag(42); |
| | 279 | | output.WriteString(AudioClipUrl); |
| | 280 | | } |
| | 281 | | if (_unknownFields != null) { |
| | 282 | | _unknownFields.WriteTo(output); |
| | 283 | | } |
| | 284 | | #endif |
| | 285 | | } |
| | 286 | |
|
| | 287 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 288 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 289 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 290 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 291 | | if (HasPlaying) { |
| | 292 | | output.WriteRawTag(8); |
| | 293 | | output.WriteBool(Playing); |
| | 294 | | } |
| | 295 | | if (HasVolume) { |
| | 296 | | output.WriteRawTag(21); |
| | 297 | | output.WriteFloat(Volume); |
| | 298 | | } |
| | 299 | | if (HasLoop) { |
| | 300 | | output.WriteRawTag(24); |
| | 301 | | output.WriteBool(Loop); |
| | 302 | | } |
| | 303 | | if (HasPitch) { |
| | 304 | | output.WriteRawTag(37); |
| | 305 | | output.WriteFloat(Pitch); |
| | 306 | | } |
| | 307 | | if (AudioClipUrl.Length != 0) { |
| | 308 | | output.WriteRawTag(42); |
| | 309 | | output.WriteString(AudioClipUrl); |
| | 310 | | } |
| | 311 | | if (_unknownFields != null) { |
| | 312 | | _unknownFields.WriteTo(ref output); |
| | 313 | | } |
| | 314 | | } |
| | 315 | | #endif |
| | 316 | |
|
| | 317 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 318 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 319 | | public int CalculateSize() { |
| | 320 | | int size = 0; |
| | 321 | | if (HasPlaying) { |
| | 322 | | size += 1 + 1; |
| | 323 | | } |
| | 324 | | if (HasVolume) { |
| | 325 | | size += 1 + 4; |
| | 326 | | } |
| | 327 | | if (HasLoop) { |
| | 328 | | size += 1 + 1; |
| | 329 | | } |
| | 330 | | if (HasPitch) { |
| | 331 | | size += 1 + 4; |
| | 332 | | } |
| | 333 | | if (AudioClipUrl.Length != 0) { |
| | 334 | | size += 1 + pb::CodedOutputStream.ComputeStringSize(AudioClipUrl); |
| | 335 | | } |
| | 336 | | if (_unknownFields != null) { |
| | 337 | | size += _unknownFields.CalculateSize(); |
| | 338 | | } |
| | 339 | | return size; |
| | 340 | | } |
| | 341 | |
|
| | 342 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 343 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 344 | | public void MergeFrom(PBAudioSource other) { |
| | 345 | | if (other == null) { |
| | 346 | | return; |
| | 347 | | } |
| | 348 | | if (other.HasPlaying) { |
| | 349 | | Playing = other.Playing; |
| | 350 | | } |
| | 351 | | if (other.HasVolume) { |
| | 352 | | Volume = other.Volume; |
| | 353 | | } |
| | 354 | | if (other.HasLoop) { |
| | 355 | | Loop = other.Loop; |
| | 356 | | } |
| | 357 | | if (other.HasPitch) { |
| | 358 | | Pitch = other.Pitch; |
| | 359 | | } |
| | 360 | | if (other.AudioClipUrl.Length != 0) { |
| | 361 | | AudioClipUrl = other.AudioClipUrl; |
| | 362 | | } |
| | 363 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| | 364 | | } |
| | 365 | |
|
| | 366 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 367 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 368 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 369 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 370 | | input.ReadRawMessage(this); |
| | 371 | | #else |
| | 372 | | uint tag; |
| | 373 | | while ((tag = input.ReadTag()) != 0) { |
| | 374 | | switch(tag) { |
| | 375 | | default: |
| | 376 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| | 377 | | break; |
| | 378 | | case 8: { |
| | 379 | | Playing = input.ReadBool(); |
| | 380 | | break; |
| | 381 | | } |
| | 382 | | case 21: { |
| | 383 | | Volume = input.ReadFloat(); |
| | 384 | | break; |
| | 385 | | } |
| | 386 | | case 24: { |
| | 387 | | Loop = input.ReadBool(); |
| | 388 | | break; |
| | 389 | | } |
| | 390 | | case 37: { |
| | 391 | | Pitch = input.ReadFloat(); |
| | 392 | | break; |
| | 393 | | } |
| | 394 | | case 42: { |
| | 395 | | AudioClipUrl = input.ReadString(); |
| | 396 | | break; |
| | 397 | | } |
| | 398 | | } |
| | 399 | | } |
| | 400 | | #endif |
| | 401 | | } |
| | 402 | |
|
| | 403 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 404 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 405 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 406 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 407 | | uint tag; |
| | 408 | | while ((tag = input.ReadTag()) != 0) { |
| | 409 | | switch(tag) { |
| | 410 | | default: |
| | 411 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 412 | | break; |
| | 413 | | case 8: { |
| | 414 | | Playing = input.ReadBool(); |
| | 415 | | break; |
| | 416 | | } |
| | 417 | | case 21: { |
| | 418 | | Volume = input.ReadFloat(); |
| | 419 | | break; |
| | 420 | | } |
| | 421 | | case 24: { |
| | 422 | | Loop = input.ReadBool(); |
| | 423 | | break; |
| | 424 | | } |
| | 425 | | case 37: { |
| | 426 | | Pitch = input.ReadFloat(); |
| | 427 | | break; |
| | 428 | | } |
| | 429 | | case 42: { |
| | 430 | | AudioClipUrl = input.ReadString(); |
| | 431 | | break; |
| | 432 | | } |
| | 433 | | } |
| | 434 | | } |
| | 435 | | } |
| | 436 | | #endif |
| | 437 | |
|
| | 438 | | } |
| | 439 | |
|
| | 440 | | #endregion |
| | 441 | |
|
| | 442 | | } |
| | 443 | |
|
| | 444 | | #endregion Designer generated code |