506 lines
17 KiB
C#
506 lines
17 KiB
C#
// <auto-generated>
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: rec_room/persistence/persisted_sfx_data.proto
|
|
// </auto-generated>
|
|
#pragma warning disable 1591, 0612, 3021, 8981
|
|
#region Designer generated code
|
|
|
|
using pb = global::Google.Protobuf;
|
|
using pbc = global::Google.Protobuf.Collections;
|
|
using pbr = global::Google.Protobuf.Reflection;
|
|
using scg = global::System.Collections.Generic;
|
|
namespace RecRoom.Protobuf {
|
|
|
|
/// <summary>Holder for reflection information generated from rec_room/persistence/persisted_sfx_data.proto</summary>
|
|
public static partial class PersistedSfxDataReflection {
|
|
|
|
#region Descriptor
|
|
/// <summary>File descriptor for rec_room/persistence/persisted_sfx_data.proto</summary>
|
|
public static pbr::FileDescriptor Descriptor {
|
|
get { return descriptor; }
|
|
}
|
|
private static pbr::FileDescriptor descriptor;
|
|
|
|
static PersistedSfxDataReflection() {
|
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
|
string.Concat(
|
|
"Ci1yZWNfcm9vbS9wZXJzaXN0ZW5jZS9wZXJzaXN0ZWRfc2Z4X2RhdGEucHJv",
|
|
"dG8SCHJlY19yb29tIr4BChBQZXJzaXN0ZWRTRlhEYXRhEhAKCHRyYWNrX2lk",
|
|
"GAEgASgMEgwKBGxvb3AYAiABKAgSDwoHc2h1ZmZsZRgDIAEoCBIOCgZwYXVz",
|
|
"ZWQYBCABKAgSGQoRdXNlX3NwYXRpYWxfYXVkaW8YBSABKAgSHwoXaW50ZXJy",
|
|
"dXB0X2N1cnJlbnRfc291bmQYBiABKAgSFwoPdm9sdW1lX21vZGlmaWVyGAcg",
|
|
"ASgFEhQKDHBsYXlfZm9yX2FsbBgIIAEoCEITqgIQUmVjUm9vbS5Qcm90b2J1",
|
|
"ZmIGcHJvdG8z"));
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
|
new pbr::FileDescriptor[] { },
|
|
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::RecRoom.Protobuf.PersistedSFXData), global::RecRoom.Protobuf.PersistedSFXData.Parser, new[]{ "TrackId", "Loop", "Shuffle", "Paused", "UseSpatialAudio", "InterruptCurrentSound", "VolumeModifier", "PlayForAll" }, null, null, null, null)
|
|
}));
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
#region Messages
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class PersistedSFXData : pb::IMessage<PersistedSFXData>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<PersistedSFXData> _parser = new pb::MessageParser<PersistedSFXData>(() => new PersistedSFXData());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<PersistedSFXData> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::RecRoom.Protobuf.PersistedSfxDataReflection.Descriptor.MessageTypes[0]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public PersistedSFXData() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public PersistedSFXData(PersistedSFXData other) : this() {
|
|
trackId_ = other.trackId_;
|
|
loop_ = other.loop_;
|
|
shuffle_ = other.shuffle_;
|
|
paused_ = other.paused_;
|
|
useSpatialAudio_ = other.useSpatialAudio_;
|
|
interruptCurrentSound_ = other.interruptCurrentSound_;
|
|
volumeModifier_ = other.volumeModifier_;
|
|
playForAll_ = other.playForAll_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public PersistedSFXData Clone() {
|
|
return new PersistedSFXData(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "track_id" field.</summary>
|
|
public const int TrackIdFieldNumber = 1;
|
|
private pb::ByteString trackId_ = pb::ByteString.Empty;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public pb::ByteString TrackId {
|
|
get { return trackId_; }
|
|
set {
|
|
trackId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "loop" field.</summary>
|
|
public const int LoopFieldNumber = 2;
|
|
private bool loop_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Loop {
|
|
get { return loop_; }
|
|
set {
|
|
loop_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "shuffle" field.</summary>
|
|
public const int ShuffleFieldNumber = 3;
|
|
private bool shuffle_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Shuffle {
|
|
get { return shuffle_; }
|
|
set {
|
|
shuffle_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "paused" field.</summary>
|
|
public const int PausedFieldNumber = 4;
|
|
private bool paused_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Paused {
|
|
get { return paused_; }
|
|
set {
|
|
paused_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "use_spatial_audio" field.</summary>
|
|
public const int UseSpatialAudioFieldNumber = 5;
|
|
private bool useSpatialAudio_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool UseSpatialAudio {
|
|
get { return useSpatialAudio_; }
|
|
set {
|
|
useSpatialAudio_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "interrupt_current_sound" field.</summary>
|
|
public const int InterruptCurrentSoundFieldNumber = 6;
|
|
private bool interruptCurrentSound_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool InterruptCurrentSound {
|
|
get { return interruptCurrentSound_; }
|
|
set {
|
|
interruptCurrentSound_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "volume_modifier" field.</summary>
|
|
public const int VolumeModifierFieldNumber = 7;
|
|
private int volumeModifier_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int VolumeModifier {
|
|
get { return volumeModifier_; }
|
|
set {
|
|
volumeModifier_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "play_for_all" field.</summary>
|
|
public const int PlayForAllFieldNumber = 8;
|
|
private bool playForAll_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool PlayForAll {
|
|
get { return playForAll_; }
|
|
set {
|
|
playForAll_ = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as PersistedSFXData);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(PersistedSFXData other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (TrackId != other.TrackId) return false;
|
|
if (Loop != other.Loop) return false;
|
|
if (Shuffle != other.Shuffle) return false;
|
|
if (Paused != other.Paused) return false;
|
|
if (UseSpatialAudio != other.UseSpatialAudio) return false;
|
|
if (InterruptCurrentSound != other.InterruptCurrentSound) return false;
|
|
if (VolumeModifier != other.VolumeModifier) return false;
|
|
if (PlayForAll != other.PlayForAll) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
if (TrackId.Length != 0) hash ^= TrackId.GetHashCode();
|
|
if (Loop != false) hash ^= Loop.GetHashCode();
|
|
if (Shuffle != false) hash ^= Shuffle.GetHashCode();
|
|
if (Paused != false) hash ^= Paused.GetHashCode();
|
|
if (UseSpatialAudio != false) hash ^= UseSpatialAudio.GetHashCode();
|
|
if (InterruptCurrentSound != false) hash ^= InterruptCurrentSound.GetHashCode();
|
|
if (VolumeModifier != 0) hash ^= VolumeModifier.GetHashCode();
|
|
if (PlayForAll != false) hash ^= PlayForAll.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
output.WriteRawMessage(this);
|
|
#else
|
|
if (TrackId.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteBytes(TrackId);
|
|
}
|
|
if (Loop != false) {
|
|
output.WriteRawTag(16);
|
|
output.WriteBool(Loop);
|
|
}
|
|
if (Shuffle != false) {
|
|
output.WriteRawTag(24);
|
|
output.WriteBool(Shuffle);
|
|
}
|
|
if (Paused != false) {
|
|
output.WriteRawTag(32);
|
|
output.WriteBool(Paused);
|
|
}
|
|
if (UseSpatialAudio != false) {
|
|
output.WriteRawTag(40);
|
|
output.WriteBool(UseSpatialAudio);
|
|
}
|
|
if (InterruptCurrentSound != false) {
|
|
output.WriteRawTag(48);
|
|
output.WriteBool(InterruptCurrentSound);
|
|
}
|
|
if (VolumeModifier != 0) {
|
|
output.WriteRawTag(56);
|
|
output.WriteInt32(VolumeModifier);
|
|
}
|
|
if (PlayForAll != false) {
|
|
output.WriteRawTag(64);
|
|
output.WriteBool(PlayForAll);
|
|
}
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
#endif
|
|
}
|
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
|
if (TrackId.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteBytes(TrackId);
|
|
}
|
|
if (Loop != false) {
|
|
output.WriteRawTag(16);
|
|
output.WriteBool(Loop);
|
|
}
|
|
if (Shuffle != false) {
|
|
output.WriteRawTag(24);
|
|
output.WriteBool(Shuffle);
|
|
}
|
|
if (Paused != false) {
|
|
output.WriteRawTag(32);
|
|
output.WriteBool(Paused);
|
|
}
|
|
if (UseSpatialAudio != false) {
|
|
output.WriteRawTag(40);
|
|
output.WriteBool(UseSpatialAudio);
|
|
}
|
|
if (InterruptCurrentSound != false) {
|
|
output.WriteRawTag(48);
|
|
output.WriteBool(InterruptCurrentSound);
|
|
}
|
|
if (VolumeModifier != 0) {
|
|
output.WriteRawTag(56);
|
|
output.WriteInt32(VolumeModifier);
|
|
}
|
|
if (PlayForAll != false) {
|
|
output.WriteRawTag(64);
|
|
output.WriteBool(PlayForAll);
|
|
}
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(ref output);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (TrackId.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeBytesSize(TrackId);
|
|
}
|
|
if (Loop != false) {
|
|
size += 1 + 1;
|
|
}
|
|
if (Shuffle != false) {
|
|
size += 1 + 1;
|
|
}
|
|
if (Paused != false) {
|
|
size += 1 + 1;
|
|
}
|
|
if (UseSpatialAudio != false) {
|
|
size += 1 + 1;
|
|
}
|
|
if (InterruptCurrentSound != false) {
|
|
size += 1 + 1;
|
|
}
|
|
if (VolumeModifier != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(VolumeModifier);
|
|
}
|
|
if (PlayForAll != false) {
|
|
size += 1 + 1;
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(PersistedSFXData other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.TrackId.Length != 0) {
|
|
TrackId = other.TrackId;
|
|
}
|
|
if (other.Loop != false) {
|
|
Loop = other.Loop;
|
|
}
|
|
if (other.Shuffle != false) {
|
|
Shuffle = other.Shuffle;
|
|
}
|
|
if (other.Paused != false) {
|
|
Paused = other.Paused;
|
|
}
|
|
if (other.UseSpatialAudio != false) {
|
|
UseSpatialAudio = other.UseSpatialAudio;
|
|
}
|
|
if (other.InterruptCurrentSound != false) {
|
|
InterruptCurrentSound = other.InterruptCurrentSound;
|
|
}
|
|
if (other.VolumeModifier != 0) {
|
|
VolumeModifier = other.VolumeModifier;
|
|
}
|
|
if (other.PlayForAll != false) {
|
|
PlayForAll = other.PlayForAll;
|
|
}
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
input.ReadRawMessage(this);
|
|
#else
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
if ((tag & 7) == 4) {
|
|
// Abort on any end group tag.
|
|
return;
|
|
}
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
TrackId = input.ReadBytes();
|
|
break;
|
|
}
|
|
case 16: {
|
|
Loop = input.ReadBool();
|
|
break;
|
|
}
|
|
case 24: {
|
|
Shuffle = input.ReadBool();
|
|
break;
|
|
}
|
|
case 32: {
|
|
Paused = input.ReadBool();
|
|
break;
|
|
}
|
|
case 40: {
|
|
UseSpatialAudio = input.ReadBool();
|
|
break;
|
|
}
|
|
case 48: {
|
|
InterruptCurrentSound = input.ReadBool();
|
|
break;
|
|
}
|
|
case 56: {
|
|
VolumeModifier = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 64: {
|
|
PlayForAll = input.ReadBool();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
}
|
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
if ((tag & 7) == 4) {
|
|
// Abort on any end group tag.
|
|
return;
|
|
}
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
|
break;
|
|
case 10: {
|
|
TrackId = input.ReadBytes();
|
|
break;
|
|
}
|
|
case 16: {
|
|
Loop = input.ReadBool();
|
|
break;
|
|
}
|
|
case 24: {
|
|
Shuffle = input.ReadBool();
|
|
break;
|
|
}
|
|
case 32: {
|
|
Paused = input.ReadBool();
|
|
break;
|
|
}
|
|
case 40: {
|
|
UseSpatialAudio = input.ReadBool();
|
|
break;
|
|
}
|
|
case 48: {
|
|
InterruptCurrentSound = input.ReadBool();
|
|
break;
|
|
}
|
|
case 56: {
|
|
VolumeModifier = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 64: {
|
|
PlayForAll = input.ReadBool();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
#endregion Designer generated code
|