808 lines
25 KiB
C#
808 lines
25 KiB
C#
|
// <auto-generated>
|
||
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||
|
// source: voice.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;
|
||
|
/// <summary>Holder for reflection information generated from voice.proto</summary>
|
||
|
public static partial class VoiceReflection {
|
||
|
|
||
|
#region Descriptor
|
||
|
/// <summary>File descriptor for voice.proto</summary>
|
||
|
public static pbr::FileDescriptor Descriptor {
|
||
|
get { return descriptor; }
|
||
|
}
|
||
|
private static pbr::FileDescriptor descriptor;
|
||
|
|
||
|
static VoiceReflection() {
|
||
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||
|
string.Concat(
|
||
|
"Cgt2b2ljZS5wcm90byJjCgxWb2ljZVJlcXVlc3QSCwoDVWlkGAEgASgNEhMK",
|
||
|
"C0NoYW5uZWxOYW1lGAIgASgJEhMKC0NoYW5uZWxUeXBlGAUgASgJEg4KBnJv",
|
||
|
"b21JZBgIIAEoCRIMCgRyb2xlGAYgASgJIncKDVZvaWNlUmVzcG9uc2USCwoD",
|
||
|
"VWlkGAEgASgNEhMKC0NoYW5uZWxOYW1lGAIgASgJEhEKCUNoYW5uZWxJZBgD",
|
||
|
"IAEoCRINCgVUb2tlbhgEIAEoCRITCgtDaGFubmVsVHlwZRgFIAEoCRINCgVh",
|
||
|
"cHBJZBgHIAEoCUIHWgUuLztwYmIGcHJvdG8z"));
|
||
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||
|
new pbr::FileDescriptor[] { },
|
||
|
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||
|
new pbr::GeneratedClrTypeInfo(typeof(global::VoiceRequest), global::VoiceRequest.Parser, new[]{ "Uid", "ChannelName", "ChannelType", "RoomId", "Role" }, null, null, null, null),
|
||
|
new pbr::GeneratedClrTypeInfo(typeof(global::VoiceResponse), global::VoiceResponse.Parser, new[]{ "Uid", "ChannelName", "ChannelId", "Token", "ChannelType", "AppId" }, null, null, null, null)
|
||
|
}));
|
||
|
}
|
||
|
#endregion
|
||
|
|
||
|
}
|
||
|
#region Messages
|
||
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
||
|
public sealed partial class VoiceRequest : pb::IMessage<VoiceRequest>
|
||
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||
|
, pb::IBufferMessage
|
||
|
#endif
|
||
|
{
|
||
|
private static readonly pb::MessageParser<VoiceRequest> _parser = new pb::MessageParser<VoiceRequest>(() => new VoiceRequest());
|
||
|
private pb::UnknownFieldSet _unknownFields;
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public static pb::MessageParser<VoiceRequest> Parser { get { return _parser; } }
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public static pbr::MessageDescriptor Descriptor {
|
||
|
get { return global::VoiceReflection.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 VoiceRequest() {
|
||
|
OnConstruction();
|
||
|
}
|
||
|
|
||
|
partial void OnConstruction();
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public VoiceRequest(VoiceRequest other) : this() {
|
||
|
uid_ = other.uid_;
|
||
|
channelName_ = other.channelName_;
|
||
|
channelType_ = other.channelType_;
|
||
|
roomId_ = other.roomId_;
|
||
|
role_ = other.role_;
|
||
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||
|
}
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public VoiceRequest Clone() {
|
||
|
return new VoiceRequest(this);
|
||
|
}
|
||
|
|
||
|
/// <summary>Field number for the "Uid" field.</summary>
|
||
|
public const int UidFieldNumber = 1;
|
||
|
private uint uid_;
|
||
|
/// <summary>
|
||
|
/// 用户id
|
||
|
/// </summary>
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public uint Uid {
|
||
|
get { return uid_; }
|
||
|
set {
|
||
|
uid_ = value;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/// <summary>Field number for the "ChannelName" field.</summary>
|
||
|
public const int ChannelNameFieldNumber = 2;
|
||
|
private string channelName_ = "";
|
||
|
/// <summary>
|
||
|
/// 频道名称
|
||
|
/// </summary>
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public string ChannelName {
|
||
|
get { return channelName_; }
|
||
|
set {
|
||
|
channelName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/// <summary>Field number for the "ChannelType" field.</summary>
|
||
|
public const int ChannelTypeFieldNumber = 5;
|
||
|
private string channelType_ = "";
|
||
|
/// <summary>
|
||
|
/// 频道类型
|
||
|
/// </summary>
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public string ChannelType {
|
||
|
get { return channelType_; }
|
||
|
set {
|
||
|
channelType_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/// <summary>Field number for the "roomId" field.</summary>
|
||
|
public const int RoomIdFieldNumber = 8;
|
||
|
private string roomId_ = "";
|
||
|
/// <summary>
|
||
|
/// 游戏房间id
|
||
|
/// </summary>
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public string RoomId {
|
||
|
get { return roomId_; }
|
||
|
set {
|
||
|
roomId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/// <summary>Field number for the "role" field.</summary>
|
||
|
public const int RoleFieldNumber = 6;
|
||
|
private string role_ = "";
|
||
|
/// <summary>
|
||
|
/// 需要通知的角色 例如1,2,3,4
|
||
|
/// </summary>
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public string Role {
|
||
|
get { return role_; }
|
||
|
set {
|
||
|
role_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
|
}
|
||
|
}
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public override bool Equals(object other) {
|
||
|
return Equals(other as VoiceRequest);
|
||
|
}
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public bool Equals(VoiceRequest other) {
|
||
|
if (ReferenceEquals(other, null)) {
|
||
|
return false;
|
||
|
}
|
||
|
if (ReferenceEquals(other, this)) {
|
||
|
return true;
|
||
|
}
|
||
|
if (Uid != other.Uid) return false;
|
||
|
if (ChannelName != other.ChannelName) return false;
|
||
|
if (ChannelType != other.ChannelType) return false;
|
||
|
if (RoomId != other.RoomId) return false;
|
||
|
if (Role != other.Role) 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 (Uid != 0) hash ^= Uid.GetHashCode();
|
||
|
if (ChannelName.Length != 0) hash ^= ChannelName.GetHashCode();
|
||
|
if (ChannelType.Length != 0) hash ^= ChannelType.GetHashCode();
|
||
|
if (RoomId.Length != 0) hash ^= RoomId.GetHashCode();
|
||
|
if (Role.Length != 0) hash ^= Role.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 (Uid != 0) {
|
||
|
output.WriteRawTag(8);
|
||
|
output.WriteUInt32(Uid);
|
||
|
}
|
||
|
if (ChannelName.Length != 0) {
|
||
|
output.WriteRawTag(18);
|
||
|
output.WriteString(ChannelName);
|
||
|
}
|
||
|
if (ChannelType.Length != 0) {
|
||
|
output.WriteRawTag(42);
|
||
|
output.WriteString(ChannelType);
|
||
|
}
|
||
|
if (Role.Length != 0) {
|
||
|
output.WriteRawTag(50);
|
||
|
output.WriteString(Role);
|
||
|
}
|
||
|
if (RoomId.Length != 0) {
|
||
|
output.WriteRawTag(66);
|
||
|
output.WriteString(RoomId);
|
||
|
}
|
||
|
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 (Uid != 0) {
|
||
|
output.WriteRawTag(8);
|
||
|
output.WriteUInt32(Uid);
|
||
|
}
|
||
|
if (ChannelName.Length != 0) {
|
||
|
output.WriteRawTag(18);
|
||
|
output.WriteString(ChannelName);
|
||
|
}
|
||
|
if (ChannelType.Length != 0) {
|
||
|
output.WriteRawTag(42);
|
||
|
output.WriteString(ChannelType);
|
||
|
}
|
||
|
if (Role.Length != 0) {
|
||
|
output.WriteRawTag(50);
|
||
|
output.WriteString(Role);
|
||
|
}
|
||
|
if (RoomId.Length != 0) {
|
||
|
output.WriteRawTag(66);
|
||
|
output.WriteString(RoomId);
|
||
|
}
|
||
|
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 (Uid != 0) {
|
||
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Uid);
|
||
|
}
|
||
|
if (ChannelName.Length != 0) {
|
||
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(ChannelName);
|
||
|
}
|
||
|
if (ChannelType.Length != 0) {
|
||
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(ChannelType);
|
||
|
}
|
||
|
if (RoomId.Length != 0) {
|
||
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(RoomId);
|
||
|
}
|
||
|
if (Role.Length != 0) {
|
||
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Role);
|
||
|
}
|
||
|
if (_unknownFields != null) {
|
||
|
size += _unknownFields.CalculateSize();
|
||
|
}
|
||
|
return size;
|
||
|
}
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public void MergeFrom(VoiceRequest other) {
|
||
|
if (other == null) {
|
||
|
return;
|
||
|
}
|
||
|
if (other.Uid != 0) {
|
||
|
Uid = other.Uid;
|
||
|
}
|
||
|
if (other.ChannelName.Length != 0) {
|
||
|
ChannelName = other.ChannelName;
|
||
|
}
|
||
|
if (other.ChannelType.Length != 0) {
|
||
|
ChannelType = other.ChannelType;
|
||
|
}
|
||
|
if (other.RoomId.Length != 0) {
|
||
|
RoomId = other.RoomId;
|
||
|
}
|
||
|
if (other.Role.Length != 0) {
|
||
|
Role = other.Role;
|
||
|
}
|
||
|
_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: {
|
||
|
Uid = input.ReadUInt32();
|
||
|
break;
|
||
|
}
|
||
|
case 18: {
|
||
|
ChannelName = input.ReadString();
|
||
|
break;
|
||
|
}
|
||
|
case 42: {
|
||
|
ChannelType = input.ReadString();
|
||
|
break;
|
||
|
}
|
||
|
case 50: {
|
||
|
Role = input.ReadString();
|
||
|
break;
|
||
|
}
|
||
|
case 66: {
|
||
|
RoomId = input.ReadString();
|
||
|
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: {
|
||
|
Uid = input.ReadUInt32();
|
||
|
break;
|
||
|
}
|
||
|
case 18: {
|
||
|
ChannelName = input.ReadString();
|
||
|
break;
|
||
|
}
|
||
|
case 42: {
|
||
|
ChannelType = input.ReadString();
|
||
|
break;
|
||
|
}
|
||
|
case 50: {
|
||
|
Role = input.ReadString();
|
||
|
break;
|
||
|
}
|
||
|
case 66: {
|
||
|
RoomId = input.ReadString();
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
}
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
||
|
public sealed partial class VoiceResponse : pb::IMessage<VoiceResponse>
|
||
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||
|
, pb::IBufferMessage
|
||
|
#endif
|
||
|
{
|
||
|
private static readonly pb::MessageParser<VoiceResponse> _parser = new pb::MessageParser<VoiceResponse>(() => new VoiceResponse());
|
||
|
private pb::UnknownFieldSet _unknownFields;
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public static pb::MessageParser<VoiceResponse> Parser { get { return _parser; } }
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public static pbr::MessageDescriptor Descriptor {
|
||
|
get { return global::VoiceReflection.Descriptor.MessageTypes[1]; }
|
||
|
}
|
||
|
|
||
|
[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 VoiceResponse() {
|
||
|
OnConstruction();
|
||
|
}
|
||
|
|
||
|
partial void OnConstruction();
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public VoiceResponse(VoiceResponse other) : this() {
|
||
|
uid_ = other.uid_;
|
||
|
channelName_ = other.channelName_;
|
||
|
channelId_ = other.channelId_;
|
||
|
token_ = other.token_;
|
||
|
channelType_ = other.channelType_;
|
||
|
appId_ = other.appId_;
|
||
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||
|
}
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public VoiceResponse Clone() {
|
||
|
return new VoiceResponse(this);
|
||
|
}
|
||
|
|
||
|
/// <summary>Field number for the "Uid" field.</summary>
|
||
|
public const int UidFieldNumber = 1;
|
||
|
private uint uid_;
|
||
|
/// <summary>
|
||
|
/// 用户id
|
||
|
/// </summary>
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public uint Uid {
|
||
|
get { return uid_; }
|
||
|
set {
|
||
|
uid_ = value;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/// <summary>Field number for the "ChannelName" field.</summary>
|
||
|
public const int ChannelNameFieldNumber = 2;
|
||
|
private string channelName_ = "";
|
||
|
/// <summary>
|
||
|
/// 频道名称
|
||
|
/// </summary>
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public string ChannelName {
|
||
|
get { return channelName_; }
|
||
|
set {
|
||
|
channelName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/// <summary>Field number for the "ChannelId" field.</summary>
|
||
|
public const int ChannelIdFieldNumber = 3;
|
||
|
private string channelId_ = "";
|
||
|
/// <summary>
|
||
|
/// 频道id
|
||
|
/// </summary>
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public string ChannelId {
|
||
|
get { return channelId_; }
|
||
|
set {
|
||
|
channelId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/// <summary>Field number for the "Token" field.</summary>
|
||
|
public const int TokenFieldNumber = 4;
|
||
|
private string token_ = "";
|
||
|
/// <summary>
|
||
|
/// 语音token
|
||
|
/// </summary>
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public string Token {
|
||
|
get { return token_; }
|
||
|
set {
|
||
|
token_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/// <summary>Field number for the "ChannelType" field.</summary>
|
||
|
public const int ChannelTypeFieldNumber = 5;
|
||
|
private string channelType_ = "";
|
||
|
/// <summary>
|
||
|
/// 频道类型
|
||
|
/// </summary>
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public string ChannelType {
|
||
|
get { return channelType_; }
|
||
|
set {
|
||
|
channelType_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/// <summary>Field number for the "appId" field.</summary>
|
||
|
public const int AppIdFieldNumber = 7;
|
||
|
private string appId_ = "";
|
||
|
/// <summary>
|
||
|
/// 需要通知的角色
|
||
|
/// </summary>
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public string AppId {
|
||
|
get { return appId_; }
|
||
|
set {
|
||
|
appId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
|
}
|
||
|
}
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public override bool Equals(object other) {
|
||
|
return Equals(other as VoiceResponse);
|
||
|
}
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public bool Equals(VoiceResponse other) {
|
||
|
if (ReferenceEquals(other, null)) {
|
||
|
return false;
|
||
|
}
|
||
|
if (ReferenceEquals(other, this)) {
|
||
|
return true;
|
||
|
}
|
||
|
if (Uid != other.Uid) return false;
|
||
|
if (ChannelName != other.ChannelName) return false;
|
||
|
if (ChannelId != other.ChannelId) return false;
|
||
|
if (Token != other.Token) return false;
|
||
|
if (ChannelType != other.ChannelType) return false;
|
||
|
if (AppId != other.AppId) 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 (Uid != 0) hash ^= Uid.GetHashCode();
|
||
|
if (ChannelName.Length != 0) hash ^= ChannelName.GetHashCode();
|
||
|
if (ChannelId.Length != 0) hash ^= ChannelId.GetHashCode();
|
||
|
if (Token.Length != 0) hash ^= Token.GetHashCode();
|
||
|
if (ChannelType.Length != 0) hash ^= ChannelType.GetHashCode();
|
||
|
if (AppId.Length != 0) hash ^= AppId.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 (Uid != 0) {
|
||
|
output.WriteRawTag(8);
|
||
|
output.WriteUInt32(Uid);
|
||
|
}
|
||
|
if (ChannelName.Length != 0) {
|
||
|
output.WriteRawTag(18);
|
||
|
output.WriteString(ChannelName);
|
||
|
}
|
||
|
if (ChannelId.Length != 0) {
|
||
|
output.WriteRawTag(26);
|
||
|
output.WriteString(ChannelId);
|
||
|
}
|
||
|
if (Token.Length != 0) {
|
||
|
output.WriteRawTag(34);
|
||
|
output.WriteString(Token);
|
||
|
}
|
||
|
if (ChannelType.Length != 0) {
|
||
|
output.WriteRawTag(42);
|
||
|
output.WriteString(ChannelType);
|
||
|
}
|
||
|
if (AppId.Length != 0) {
|
||
|
output.WriteRawTag(58);
|
||
|
output.WriteString(AppId);
|
||
|
}
|
||
|
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 (Uid != 0) {
|
||
|
output.WriteRawTag(8);
|
||
|
output.WriteUInt32(Uid);
|
||
|
}
|
||
|
if (ChannelName.Length != 0) {
|
||
|
output.WriteRawTag(18);
|
||
|
output.WriteString(ChannelName);
|
||
|
}
|
||
|
if (ChannelId.Length != 0) {
|
||
|
output.WriteRawTag(26);
|
||
|
output.WriteString(ChannelId);
|
||
|
}
|
||
|
if (Token.Length != 0) {
|
||
|
output.WriteRawTag(34);
|
||
|
output.WriteString(Token);
|
||
|
}
|
||
|
if (ChannelType.Length != 0) {
|
||
|
output.WriteRawTag(42);
|
||
|
output.WriteString(ChannelType);
|
||
|
}
|
||
|
if (AppId.Length != 0) {
|
||
|
output.WriteRawTag(58);
|
||
|
output.WriteString(AppId);
|
||
|
}
|
||
|
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 (Uid != 0) {
|
||
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Uid);
|
||
|
}
|
||
|
if (ChannelName.Length != 0) {
|
||
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(ChannelName);
|
||
|
}
|
||
|
if (ChannelId.Length != 0) {
|
||
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(ChannelId);
|
||
|
}
|
||
|
if (Token.Length != 0) {
|
||
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Token);
|
||
|
}
|
||
|
if (ChannelType.Length != 0) {
|
||
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(ChannelType);
|
||
|
}
|
||
|
if (AppId.Length != 0) {
|
||
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(AppId);
|
||
|
}
|
||
|
if (_unknownFields != null) {
|
||
|
size += _unknownFields.CalculateSize();
|
||
|
}
|
||
|
return size;
|
||
|
}
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public void MergeFrom(VoiceResponse other) {
|
||
|
if (other == null) {
|
||
|
return;
|
||
|
}
|
||
|
if (other.Uid != 0) {
|
||
|
Uid = other.Uid;
|
||
|
}
|
||
|
if (other.ChannelName.Length != 0) {
|
||
|
ChannelName = other.ChannelName;
|
||
|
}
|
||
|
if (other.ChannelId.Length != 0) {
|
||
|
ChannelId = other.ChannelId;
|
||
|
}
|
||
|
if (other.Token.Length != 0) {
|
||
|
Token = other.Token;
|
||
|
}
|
||
|
if (other.ChannelType.Length != 0) {
|
||
|
ChannelType = other.ChannelType;
|
||
|
}
|
||
|
if (other.AppId.Length != 0) {
|
||
|
AppId = other.AppId;
|
||
|
}
|
||
|
_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: {
|
||
|
Uid = input.ReadUInt32();
|
||
|
break;
|
||
|
}
|
||
|
case 18: {
|
||
|
ChannelName = input.ReadString();
|
||
|
break;
|
||
|
}
|
||
|
case 26: {
|
||
|
ChannelId = input.ReadString();
|
||
|
break;
|
||
|
}
|
||
|
case 34: {
|
||
|
Token = input.ReadString();
|
||
|
break;
|
||
|
}
|
||
|
case 42: {
|
||
|
ChannelType = input.ReadString();
|
||
|
break;
|
||
|
}
|
||
|
case 58: {
|
||
|
AppId = input.ReadString();
|
||
|
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: {
|
||
|
Uid = input.ReadUInt32();
|
||
|
break;
|
||
|
}
|
||
|
case 18: {
|
||
|
ChannelName = input.ReadString();
|
||
|
break;
|
||
|
}
|
||
|
case 26: {
|
||
|
ChannelId = input.ReadString();
|
||
|
break;
|
||
|
}
|
||
|
case 34: {
|
||
|
Token = input.ReadString();
|
||
|
break;
|
||
|
}
|
||
|
case 42: {
|
||
|
ChannelType = input.ReadString();
|
||
|
break;
|
||
|
}
|
||
|
case 58: {
|
||
|
AppId = input.ReadString();
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
}
|
||
|
|
||
|
#endregion
|
||
|
|
||
|
|
||
|
#endregion Designer generated code
|