| | 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 | | "ChFBdWRpb1NvdXJjZS5wcm90bxIQZGVjZW50cmFsYW5kLmVjcyJlCg1QQkF1", |
| | 28 | | "ZGlvU291cmNlEg8KB3BsYXlpbmcYASABKAgSDgoGdm9sdW1lGAIgASgCEgwK", |
| | 29 | | "BGxvb3AYAyABKAgSDQoFcGl0Y2gYBCABKAISFgoOYXVkaW9fY2xpcF91cmwY", |
| | 30 | | "BSABKAlCFKoCEURDTC5FQ1NDb21wb25lbnRzYgZwcm90bzM=")); |
| 0 | 31 | | descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
| | 32 | | new pbr::FileDescriptor[] { }, |
| | 33 | | new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { |
| | 34 | | new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBAudioSource), global::DCL.ECSComponents.PBA |
| | 35 | | })); |
| 0 | 36 | | } |
| | 37 | | #endregion |
| | 38 | |
|
| | 39 | | } |
| | 40 | | #region Messages |
| | 41 | | public sealed partial class PBAudioSource : pb::IMessage<PBAudioSource> { |
| | 42 | | private static readonly pb::MessageParser<PBAudioSource> _parser = new pb::MessageParser<PBAudioSource>(() => new PB |
| | 43 | | private pb::UnknownFieldSet _unknownFields; |
| | 44 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 45 | | public static pb::MessageParser<PBAudioSource> Parser { get { return _parser; } } |
| | 46 | |
|
| | 47 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 48 | | public static pbr::MessageDescriptor Descriptor { |
| | 49 | | get { return global::DCL.ECSComponents.AudioSourceReflection.Descriptor.MessageTypes[0]; } |
| | 50 | | } |
| | 51 | |
|
| | 52 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 53 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| | 54 | | get { return Descriptor; } |
| | 55 | | } |
| | 56 | |
|
| | 57 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 58 | | public PBAudioSource() { |
| | 59 | | OnConstruction(); |
| | 60 | | } |
| | 61 | |
|
| | 62 | | partial void OnConstruction(); |
| | 63 | |
|
| | 64 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 65 | | public PBAudioSource(PBAudioSource other) : this() { |
| | 66 | | playing_ = other.playing_; |
| | 67 | | volume_ = other.volume_; |
| | 68 | | loop_ = other.loop_; |
| | 69 | | pitch_ = other.pitch_; |
| | 70 | | audioClipUrl_ = other.audioClipUrl_; |
| | 71 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| | 72 | | } |
| | 73 | |
|
| | 74 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 75 | | public PBAudioSource Clone() { |
| | 76 | | return new PBAudioSource(this); |
| | 77 | | } |
| | 78 | |
|
| | 79 | | /// <summary>Field number for the "playing" field.</summary> |
| | 80 | | public const int PlayingFieldNumber = 1; |
| | 81 | | private bool playing_; |
| | 82 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 83 | | public bool Playing { |
| | 84 | | get { return playing_; } |
| | 85 | | set { |
| | 86 | | playing_ = value; |
| | 87 | | } |
| | 88 | | } |
| | 89 | |
|
| | 90 | | /// <summary>Field number for the "volume" field.</summary> |
| | 91 | | public const int VolumeFieldNumber = 2; |
| | 92 | | private float volume_; |
| | 93 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 94 | | public float Volume { |
| | 95 | | get { return volume_; } |
| | 96 | | set { |
| | 97 | | volume_ = value; |
| | 98 | | } |
| | 99 | | } |
| | 100 | |
|
| | 101 | | /// <summary>Field number for the "loop" field.</summary> |
| | 102 | | public const int LoopFieldNumber = 3; |
| | 103 | | private bool loop_; |
| | 104 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 105 | | public bool Loop { |
| | 106 | | get { return loop_; } |
| | 107 | | set { |
| | 108 | | loop_ = value; |
| | 109 | | } |
| | 110 | | } |
| | 111 | |
|
| | 112 | | /// <summary>Field number for the "pitch" field.</summary> |
| | 113 | | public const int PitchFieldNumber = 4; |
| | 114 | | private float pitch_; |
| | 115 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 116 | | public float Pitch { |
| | 117 | | get { return pitch_; } |
| | 118 | | set { |
| | 119 | | pitch_ = value; |
| | 120 | | } |
| | 121 | | } |
| | 122 | |
|
| | 123 | | /// <summary>Field number for the "audio_clip_url" field.</summary> |
| | 124 | | public const int AudioClipUrlFieldNumber = 5; |
| | 125 | | private string audioClipUrl_ = ""; |
| | 126 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 127 | | public string AudioClipUrl { |
| | 128 | | get { return audioClipUrl_; } |
| | 129 | | set { |
| | 130 | | audioClipUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| | 131 | | } |
| | 132 | | } |
| | 133 | |
|
| | 134 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 135 | | public override bool Equals(object other) { |
| | 136 | | return Equals(other as PBAudioSource); |
| | 137 | | } |
| | 138 | |
|
| | 139 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 140 | | public bool Equals(PBAudioSource other) { |
| | 141 | | if (ReferenceEquals(other, null)) { |
| | 142 | | return false; |
| | 143 | | } |
| | 144 | | if (ReferenceEquals(other, this)) { |
| | 145 | | return true; |
| | 146 | | } |
| | 147 | | if (Playing != other.Playing) return false; |
| | 148 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Volume, other.Volume)) return false; |
| | 149 | | if (Loop != other.Loop) return false; |
| | 150 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Pitch, other.Pitch)) return false; |
| | 151 | | if (AudioClipUrl != other.AudioClipUrl) return false; |
| | 152 | | return Equals(_unknownFields, other._unknownFields); |
| | 153 | | } |
| | 154 | |
|
| | 155 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 156 | | public override int GetHashCode() { |
| | 157 | | int hash = 1; |
| | 158 | | if (Playing != false) hash ^= Playing.GetHashCode(); |
| | 159 | | if (Volume != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Volume); |
| | 160 | | if (Loop != false) hash ^= Loop.GetHashCode(); |
| | 161 | | if (Pitch != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Pitch); |
| | 162 | | if (AudioClipUrl.Length != 0) hash ^= AudioClipUrl.GetHashCode(); |
| | 163 | | if (_unknownFields != null) { |
| | 164 | | hash ^= _unknownFields.GetHashCode(); |
| | 165 | | } |
| | 166 | | return hash; |
| | 167 | | } |
| | 168 | |
|
| | 169 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 170 | | public override string ToString() { |
| | 171 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 172 | | } |
| | 173 | |
|
| | 174 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 175 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 176 | | if (Playing != false) { |
| | 177 | | output.WriteRawTag(8); |
| | 178 | | output.WriteBool(Playing); |
| | 179 | | } |
| | 180 | | if (Volume != 0F) { |
| | 181 | | output.WriteRawTag(21); |
| | 182 | | output.WriteFloat(Volume); |
| | 183 | | } |
| | 184 | | if (Loop != false) { |
| | 185 | | output.WriteRawTag(24); |
| | 186 | | output.WriteBool(Loop); |
| | 187 | | } |
| | 188 | | if (Pitch != 0F) { |
| | 189 | | output.WriteRawTag(37); |
| | 190 | | output.WriteFloat(Pitch); |
| | 191 | | } |
| | 192 | | if (AudioClipUrl.Length != 0) { |
| | 193 | | output.WriteRawTag(42); |
| | 194 | | output.WriteString(AudioClipUrl); |
| | 195 | | } |
| | 196 | | if (_unknownFields != null) { |
| | 197 | | _unknownFields.WriteTo(output); |
| | 198 | | } |
| | 199 | | } |
| | 200 | |
|
| | 201 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 202 | | public int CalculateSize() { |
| | 203 | | int size = 0; |
| | 204 | | if (Playing != false) { |
| | 205 | | size += 1 + 1; |
| | 206 | | } |
| | 207 | | if (Volume != 0F) { |
| | 208 | | size += 1 + 4; |
| | 209 | | } |
| | 210 | | if (Loop != false) { |
| | 211 | | size += 1 + 1; |
| | 212 | | } |
| | 213 | | if (Pitch != 0F) { |
| | 214 | | size += 1 + 4; |
| | 215 | | } |
| | 216 | | if (AudioClipUrl.Length != 0) { |
| | 217 | | size += 1 + pb::CodedOutputStream.ComputeStringSize(AudioClipUrl); |
| | 218 | | } |
| | 219 | | if (_unknownFields != null) { |
| | 220 | | size += _unknownFields.CalculateSize(); |
| | 221 | | } |
| | 222 | | return size; |
| | 223 | | } |
| | 224 | |
|
| | 225 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 226 | | public void MergeFrom(PBAudioSource other) { |
| | 227 | | if (other == null) { |
| | 228 | | return; |
| | 229 | | } |
| | 230 | | if (other.Playing != false) { |
| | 231 | | Playing = other.Playing; |
| | 232 | | } |
| | 233 | | if (other.Volume != 0F) { |
| | 234 | | Volume = other.Volume; |
| | 235 | | } |
| | 236 | | if (other.Loop != false) { |
| | 237 | | Loop = other.Loop; |
| | 238 | | } |
| | 239 | | if (other.Pitch != 0F) { |
| | 240 | | Pitch = other.Pitch; |
| | 241 | | } |
| | 242 | | if (other.AudioClipUrl.Length != 0) { |
| | 243 | | AudioClipUrl = other.AudioClipUrl; |
| | 244 | | } |
| | 245 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| | 246 | | } |
| | 247 | |
|
| | 248 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 249 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 250 | | uint tag; |
| | 251 | | while ((tag = input.ReadTag()) != 0) { |
| | 252 | | switch(tag) { |
| | 253 | | default: |
| | 254 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| | 255 | | break; |
| | 256 | | case 8: { |
| | 257 | | Playing = input.ReadBool(); |
| | 258 | | break; |
| | 259 | | } |
| | 260 | | case 21: { |
| | 261 | | Volume = input.ReadFloat(); |
| | 262 | | break; |
| | 263 | | } |
| | 264 | | case 24: { |
| | 265 | | Loop = input.ReadBool(); |
| | 266 | | break; |
| | 267 | | } |
| | 268 | | case 37: { |
| | 269 | | Pitch = input.ReadFloat(); |
| | 270 | | break; |
| | 271 | | } |
| | 272 | | case 42: { |
| | 273 | | AudioClipUrl = input.ReadString(); |
| | 274 | | break; |
| | 275 | | } |
| | 276 | | } |
| | 277 | | } |
| | 278 | | } |
| | 279 | |
|
| | 280 | | } |
| | 281 | |
|
| | 282 | | #endregion |
| | 283 | |
|
| | 284 | | } |
| | 285 | |
|
| | 286 | | #endregion Designer generated code |