Protobuf...
This commit is contained in:
466
VoiceSample.cs
Normal file
466
VoiceSample.cs
Normal file
@@ -0,0 +1,466 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: server/voice_sample.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 server/voice_sample.proto</summary>
|
||||
public static partial class VoiceSampleReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for server/voice_sample.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static VoiceSampleReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"ChlzZXJ2ZXIvdm9pY2Vfc2FtcGxlLnByb3RvEghyZWNfcm9vbSKUAQoLVm9p",
|
||||
"Y2VTYW1wbGUSEgoKYWNjb3VudF9pZBgBIAEoBRISCgphdWRpb19kYXRhGAIg",
|
||||
"ASgMEg8KB3Jvb21faWQYAyABKAMSEwoLc3ViX3Jvb21faWQYBCABKAMSEwoL",
|
||||
"aW5zdGFuY2VfaWQYBSABKAMSEwoLc2FtcGxlX3JhdGUYBiABKAUSDQoFbm9u",
|
||||
"Y2UYByABKANCE6oCEFJlY1Jvb20uUHJvdG9idWZiBnByb3RvMw=="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::RecRoom.Protobuf.VoiceSample), global::RecRoom.Protobuf.VoiceSample.Parser, new[]{ "AccountId", "AudioData", "RoomId", "SubRoomId", "InstanceId", "SampleRate", "Nonce" }, null, null, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
||||
public sealed partial class VoiceSample : pb::IMessage<VoiceSample>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<VoiceSample> _parser = new pb::MessageParser<VoiceSample>(() => new VoiceSample());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<VoiceSample> 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.VoiceSampleReflection.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 VoiceSample() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public VoiceSample(VoiceSample other) : this() {
|
||||
accountId_ = other.accountId_;
|
||||
audioData_ = other.audioData_;
|
||||
roomId_ = other.roomId_;
|
||||
subRoomId_ = other.subRoomId_;
|
||||
instanceId_ = other.instanceId_;
|
||||
sampleRate_ = other.sampleRate_;
|
||||
nonce_ = other.nonce_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public VoiceSample Clone() {
|
||||
return new VoiceSample(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "account_id" field.</summary>
|
||||
public const int AccountIdFieldNumber = 1;
|
||||
private int accountId_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int AccountId {
|
||||
get { return accountId_; }
|
||||
set {
|
||||
accountId_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "audio_data" field.</summary>
|
||||
public const int AudioDataFieldNumber = 2;
|
||||
private pb::ByteString audioData_ = pb::ByteString.Empty;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public pb::ByteString AudioData {
|
||||
get { return audioData_; }
|
||||
set {
|
||||
audioData_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "room_id" field.</summary>
|
||||
public const int RoomIdFieldNumber = 3;
|
||||
private long roomId_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public long RoomId {
|
||||
get { return roomId_; }
|
||||
set {
|
||||
roomId_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "sub_room_id" field.</summary>
|
||||
public const int SubRoomIdFieldNumber = 4;
|
||||
private long subRoomId_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public long SubRoomId {
|
||||
get { return subRoomId_; }
|
||||
set {
|
||||
subRoomId_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "instance_id" field.</summary>
|
||||
public const int InstanceIdFieldNumber = 5;
|
||||
private long instanceId_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public long InstanceId {
|
||||
get { return instanceId_; }
|
||||
set {
|
||||
instanceId_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "sample_rate" field.</summary>
|
||||
public const int SampleRateFieldNumber = 6;
|
||||
private int sampleRate_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int SampleRate {
|
||||
get { return sampleRate_; }
|
||||
set {
|
||||
sampleRate_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "nonce" field.</summary>
|
||||
public const int NonceFieldNumber = 7;
|
||||
private long nonce_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public long Nonce {
|
||||
get { return nonce_; }
|
||||
set {
|
||||
nonce_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as VoiceSample);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(VoiceSample other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (AccountId != other.AccountId) return false;
|
||||
if (AudioData != other.AudioData) return false;
|
||||
if (RoomId != other.RoomId) return false;
|
||||
if (SubRoomId != other.SubRoomId) return false;
|
||||
if (InstanceId != other.InstanceId) return false;
|
||||
if (SampleRate != other.SampleRate) return false;
|
||||
if (Nonce != other.Nonce) 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 (AccountId != 0) hash ^= AccountId.GetHashCode();
|
||||
if (AudioData.Length != 0) hash ^= AudioData.GetHashCode();
|
||||
if (RoomId != 0L) hash ^= RoomId.GetHashCode();
|
||||
if (SubRoomId != 0L) hash ^= SubRoomId.GetHashCode();
|
||||
if (InstanceId != 0L) hash ^= InstanceId.GetHashCode();
|
||||
if (SampleRate != 0) hash ^= SampleRate.GetHashCode();
|
||||
if (Nonce != 0L) hash ^= Nonce.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 (AccountId != 0) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteInt32(AccountId);
|
||||
}
|
||||
if (AudioData.Length != 0) {
|
||||
output.WriteRawTag(18);
|
||||
output.WriteBytes(AudioData);
|
||||
}
|
||||
if (RoomId != 0L) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteInt64(RoomId);
|
||||
}
|
||||
if (SubRoomId != 0L) {
|
||||
output.WriteRawTag(32);
|
||||
output.WriteInt64(SubRoomId);
|
||||
}
|
||||
if (InstanceId != 0L) {
|
||||
output.WriteRawTag(40);
|
||||
output.WriteInt64(InstanceId);
|
||||
}
|
||||
if (SampleRate != 0) {
|
||||
output.WriteRawTag(48);
|
||||
output.WriteInt32(SampleRate);
|
||||
}
|
||||
if (Nonce != 0L) {
|
||||
output.WriteRawTag(56);
|
||||
output.WriteInt64(Nonce);
|
||||
}
|
||||
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 (AccountId != 0) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteInt32(AccountId);
|
||||
}
|
||||
if (AudioData.Length != 0) {
|
||||
output.WriteRawTag(18);
|
||||
output.WriteBytes(AudioData);
|
||||
}
|
||||
if (RoomId != 0L) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteInt64(RoomId);
|
||||
}
|
||||
if (SubRoomId != 0L) {
|
||||
output.WriteRawTag(32);
|
||||
output.WriteInt64(SubRoomId);
|
||||
}
|
||||
if (InstanceId != 0L) {
|
||||
output.WriteRawTag(40);
|
||||
output.WriteInt64(InstanceId);
|
||||
}
|
||||
if (SampleRate != 0) {
|
||||
output.WriteRawTag(48);
|
||||
output.WriteInt32(SampleRate);
|
||||
}
|
||||
if (Nonce != 0L) {
|
||||
output.WriteRawTag(56);
|
||||
output.WriteInt64(Nonce);
|
||||
}
|
||||
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 (AccountId != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(AccountId);
|
||||
}
|
||||
if (AudioData.Length != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeBytesSize(AudioData);
|
||||
}
|
||||
if (RoomId != 0L) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt64Size(RoomId);
|
||||
}
|
||||
if (SubRoomId != 0L) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt64Size(SubRoomId);
|
||||
}
|
||||
if (InstanceId != 0L) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt64Size(InstanceId);
|
||||
}
|
||||
if (SampleRate != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(SampleRate);
|
||||
}
|
||||
if (Nonce != 0L) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt64Size(Nonce);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(VoiceSample other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.AccountId != 0) {
|
||||
AccountId = other.AccountId;
|
||||
}
|
||||
if (other.AudioData.Length != 0) {
|
||||
AudioData = other.AudioData;
|
||||
}
|
||||
if (other.RoomId != 0L) {
|
||||
RoomId = other.RoomId;
|
||||
}
|
||||
if (other.SubRoomId != 0L) {
|
||||
SubRoomId = other.SubRoomId;
|
||||
}
|
||||
if (other.InstanceId != 0L) {
|
||||
InstanceId = other.InstanceId;
|
||||
}
|
||||
if (other.SampleRate != 0) {
|
||||
SampleRate = other.SampleRate;
|
||||
}
|
||||
if (other.Nonce != 0L) {
|
||||
Nonce = other.Nonce;
|
||||
}
|
||||
_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: {
|
||||
AccountId = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
AudioData = input.ReadBytes();
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
RoomId = input.ReadInt64();
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
SubRoomId = input.ReadInt64();
|
||||
break;
|
||||
}
|
||||
case 40: {
|
||||
InstanceId = input.ReadInt64();
|
||||
break;
|
||||
}
|
||||
case 48: {
|
||||
SampleRate = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 56: {
|
||||
Nonce = input.ReadInt64();
|
||||
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: {
|
||||
AccountId = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
AudioData = input.ReadBytes();
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
RoomId = input.ReadInt64();
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
SubRoomId = input.ReadInt64();
|
||||
break;
|
||||
}
|
||||
case 40: {
|
||||
InstanceId = input.ReadInt64();
|
||||
break;
|
||||
}
|
||||
case 48: {
|
||||
SampleRate = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 56: {
|
||||
Nonce = input.ReadInt64();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
Reference in New Issue
Block a user