//
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: rec_room/audio_stream_data.proto
//
#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 {
/// Holder for reflection information generated from rec_room/audio_stream_data.proto
public static partial class AudioStreamDataReflection {
#region Descriptor
/// File descriptor for rec_room/audio_stream_data.proto
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static AudioStreamDataReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CiByZWNfcm9vbS9hdWRpb19zdHJlYW1fZGF0YS5wcm90bxIIcmVjX3Jvb20i",
"mgIKD0F1ZGlvU3RyZWFtRGF0YRIQCghjaGFubmVscxgBIAEoBRITCgtzYW1w",
"bGVfcmF0ZRgCIAEoBRIUCgxzYW1wbGVfY291bnQYAyABKAUSMAoGZm9ybWF0",
"GAogASgOMiAucmVjX3Jvb20uQXVkaW9TdHJlYW1EYXRhLkZvcm1hdBIcChR1",
"bmNvbXByZXNzZWRfc2FtcGxlcxgLIAMoAhIXCg9jb21wcmVzc2VkX2RhdGEY",
"DCABKAwSGgoSY29tcHJlc3NlZF9iaXRyYXRlGA0gASgCEh8KF2NvbXByZXNz",
"ZWRfcGFja2V0X3NpemVzGA4gAygFIiQKBkZvcm1hdBIQCgxVTkNPTVBSRVNT",
"RUQQABIICgRPUFVTEAFCE6oCEFJlY1Jvb20uUHJvdG9idWZiBnByb3RvMw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::RecRoom.Protobuf.AudioStreamData), global::RecRoom.Protobuf.AudioStreamData.Parser, new[]{ "Channels", "SampleRate", "SampleCount", "Format", "UncompressedSamples", "CompressedData", "CompressedBitrate", "CompressedPacketSizes" }, null, new[]{ typeof(global::RecRoom.Protobuf.AudioStreamData.Types.Format) }, null, null)
}));
}
#endregion
}
#region Messages
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class AudioStreamData : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioStreamData());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser 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.AudioStreamDataReflection.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 AudioStreamData() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public AudioStreamData(AudioStreamData other) : this() {
channels_ = other.channels_;
sampleRate_ = other.sampleRate_;
sampleCount_ = other.sampleCount_;
format_ = other.format_;
uncompressedSamples_ = other.uncompressedSamples_.Clone();
compressedData_ = other.compressedData_;
compressedBitrate_ = other.compressedBitrate_;
compressedPacketSizes_ = other.compressedPacketSizes_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public AudioStreamData Clone() {
return new AudioStreamData(this);
}
/// Field number for the "channels" field.
public const int ChannelsFieldNumber = 1;
private int channels_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int Channels {
get { return channels_; }
set {
channels_ = value;
}
}
/// Field number for the "sample_rate" field.
public const int SampleRateFieldNumber = 2;
private int sampleRate_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int SampleRate {
get { return sampleRate_; }
set {
sampleRate_ = value;
}
}
/// Field number for the "sample_count" field.
public const int SampleCountFieldNumber = 3;
private int sampleCount_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int SampleCount {
get { return sampleCount_; }
set {
sampleCount_ = value;
}
}
/// Field number for the "format" field.
public const int FormatFieldNumber = 10;
private global::RecRoom.Protobuf.AudioStreamData.Types.Format format_ = global::RecRoom.Protobuf.AudioStreamData.Types.Format.Uncompressed;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::RecRoom.Protobuf.AudioStreamData.Types.Format Format {
get { return format_; }
set {
format_ = value;
}
}
/// Field number for the "uncompressed_samples" field.
public const int UncompressedSamplesFieldNumber = 11;
private static readonly pb::FieldCodec _repeated_uncompressedSamples_codec
= pb::FieldCodec.ForFloat(90);
private readonly pbc::RepeatedField uncompressedSamples_ = new pbc::RepeatedField();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField UncompressedSamples {
get { return uncompressedSamples_; }
}
/// Field number for the "compressed_data" field.
public const int CompressedDataFieldNumber = 12;
private pb::ByteString compressedData_ = pb::ByteString.Empty;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pb::ByteString CompressedData {
get { return compressedData_; }
set {
compressedData_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "compressed_bitrate" field.
public const int CompressedBitrateFieldNumber = 13;
private float compressedBitrate_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public float CompressedBitrate {
get { return compressedBitrate_; }
set {
compressedBitrate_ = value;
}
}
/// Field number for the "compressed_packet_sizes" field.
public const int CompressedPacketSizesFieldNumber = 14;
private static readonly pb::FieldCodec _repeated_compressedPacketSizes_codec
= pb::FieldCodec.ForInt32(114);
private readonly pbc::RepeatedField compressedPacketSizes_ = new pbc::RepeatedField();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField CompressedPacketSizes {
get { return compressedPacketSizes_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as AudioStreamData);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(AudioStreamData other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Channels != other.Channels) return false;
if (SampleRate != other.SampleRate) return false;
if (SampleCount != other.SampleCount) return false;
if (Format != other.Format) return false;
if(!uncompressedSamples_.Equals(other.uncompressedSamples_)) return false;
if (CompressedData != other.CompressedData) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(CompressedBitrate, other.CompressedBitrate)) return false;
if(!compressedPacketSizes_.Equals(other.compressedPacketSizes_)) 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 (Channels != 0) hash ^= Channels.GetHashCode();
if (SampleRate != 0) hash ^= SampleRate.GetHashCode();
if (SampleCount != 0) hash ^= SampleCount.GetHashCode();
if (Format != global::RecRoom.Protobuf.AudioStreamData.Types.Format.Uncompressed) hash ^= Format.GetHashCode();
hash ^= uncompressedSamples_.GetHashCode();
if (CompressedData.Length != 0) hash ^= CompressedData.GetHashCode();
if (CompressedBitrate != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(CompressedBitrate);
hash ^= compressedPacketSizes_.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 (Channels != 0) {
output.WriteRawTag(8);
output.WriteInt32(Channels);
}
if (SampleRate != 0) {
output.WriteRawTag(16);
output.WriteInt32(SampleRate);
}
if (SampleCount != 0) {
output.WriteRawTag(24);
output.WriteInt32(SampleCount);
}
if (Format != global::RecRoom.Protobuf.AudioStreamData.Types.Format.Uncompressed) {
output.WriteRawTag(80);
output.WriteEnum((int) Format);
}
uncompressedSamples_.WriteTo(output, _repeated_uncompressedSamples_codec);
if (CompressedData.Length != 0) {
output.WriteRawTag(98);
output.WriteBytes(CompressedData);
}
if (CompressedBitrate != 0F) {
output.WriteRawTag(109);
output.WriteFloat(CompressedBitrate);
}
compressedPacketSizes_.WriteTo(output, _repeated_compressedPacketSizes_codec);
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 (Channels != 0) {
output.WriteRawTag(8);
output.WriteInt32(Channels);
}
if (SampleRate != 0) {
output.WriteRawTag(16);
output.WriteInt32(SampleRate);
}
if (SampleCount != 0) {
output.WriteRawTag(24);
output.WriteInt32(SampleCount);
}
if (Format != global::RecRoom.Protobuf.AudioStreamData.Types.Format.Uncompressed) {
output.WriteRawTag(80);
output.WriteEnum((int) Format);
}
uncompressedSamples_.WriteTo(ref output, _repeated_uncompressedSamples_codec);
if (CompressedData.Length != 0) {
output.WriteRawTag(98);
output.WriteBytes(CompressedData);
}
if (CompressedBitrate != 0F) {
output.WriteRawTag(109);
output.WriteFloat(CompressedBitrate);
}
compressedPacketSizes_.WriteTo(ref output, _repeated_compressedPacketSizes_codec);
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 (Channels != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Channels);
}
if (SampleRate != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(SampleRate);
}
if (SampleCount != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(SampleCount);
}
if (Format != global::RecRoom.Protobuf.AudioStreamData.Types.Format.Uncompressed) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Format);
}
size += uncompressedSamples_.CalculateSize(_repeated_uncompressedSamples_codec);
if (CompressedData.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeBytesSize(CompressedData);
}
if (CompressedBitrate != 0F) {
size += 1 + 4;
}
size += compressedPacketSizes_.CalculateSize(_repeated_compressedPacketSizes_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(AudioStreamData other) {
if (other == null) {
return;
}
if (other.Channels != 0) {
Channels = other.Channels;
}
if (other.SampleRate != 0) {
SampleRate = other.SampleRate;
}
if (other.SampleCount != 0) {
SampleCount = other.SampleCount;
}
if (other.Format != global::RecRoom.Protobuf.AudioStreamData.Types.Format.Uncompressed) {
Format = other.Format;
}
uncompressedSamples_.Add(other.uncompressedSamples_);
if (other.CompressedData.Length != 0) {
CompressedData = other.CompressedData;
}
if (other.CompressedBitrate != 0F) {
CompressedBitrate = other.CompressedBitrate;
}
compressedPacketSizes_.Add(other.compressedPacketSizes_);
_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 8: {
Channels = input.ReadInt32();
break;
}
case 16: {
SampleRate = input.ReadInt32();
break;
}
case 24: {
SampleCount = input.ReadInt32();
break;
}
case 80: {
Format = (global::RecRoom.Protobuf.AudioStreamData.Types.Format) input.ReadEnum();
break;
}
case 90:
case 93: {
uncompressedSamples_.AddEntriesFrom(input, _repeated_uncompressedSamples_codec);
break;
}
case 98: {
CompressedData = input.ReadBytes();
break;
}
case 109: {
CompressedBitrate = input.ReadFloat();
break;
}
case 114:
case 112: {
compressedPacketSizes_.AddEntriesFrom(input, _repeated_compressedPacketSizes_codec);
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 8: {
Channels = input.ReadInt32();
break;
}
case 16: {
SampleRate = input.ReadInt32();
break;
}
case 24: {
SampleCount = input.ReadInt32();
break;
}
case 80: {
Format = (global::RecRoom.Protobuf.AudioStreamData.Types.Format) input.ReadEnum();
break;
}
case 90:
case 93: {
uncompressedSamples_.AddEntriesFrom(ref input, _repeated_uncompressedSamples_codec);
break;
}
case 98: {
CompressedData = input.ReadBytes();
break;
}
case 109: {
CompressedBitrate = input.ReadFloat();
break;
}
case 114:
case 112: {
compressedPacketSizes_.AddEntriesFrom(ref input, _repeated_compressedPacketSizes_codec);
break;
}
}
}
}
#endif
#region Nested types
/// Container for nested types declared in the AudioStreamData message type.
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
public enum Format {
[pbr::OriginalName("UNCOMPRESSED")] Uncompressed = 0,
[pbr::OriginalName("OPUS")] Opus = 1,
}
}
#endregion
}
#endregion
}
#endregion Designer generated code