3580 lines
129 KiB
C#
3580 lines
129 KiB
C#
// <auto-generated>
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: ClientToChat.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 ClientToChat.proto</summary>
|
|
public static partial class ClientToChatReflection {
|
|
|
|
#region Descriptor
|
|
/// <summary>File descriptor for ClientToChat.proto</summary>
|
|
public static pbr::FileDescriptor Descriptor {
|
|
get { return descriptor; }
|
|
}
|
|
private static pbr::FileDescriptor descriptor;
|
|
|
|
static ClientToChatReflection() {
|
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
|
string.Concat(
|
|
"ChJDbGllbnRUb0NoYXQucHJvdG8aE0RlZmluZV9Db21tb24ucHJvdG8aE0Rl",
|
|
"ZmluZV9SZXN1bHQucHJvdG8aG0RlZmluZV9Qcm9ncmFtVmVyc2lvbi5wcm90",
|
|
"byKrAwoPQ2xpZW50VG9DaGF0UmVxEi0KCGxvZ2luUmVxGAEgASgLMhkuQ2xp",
|
|
"ZW50VG9DaGF0UmVxLkxvZ2luUmVxSAASLwoJbG9nb3V0UmVxGAIgASgLMhou",
|
|
"Q2xpZW50VG9DaGF0UmVxLkxvZ291dFJlcUgAEisKB2NoYXRSZXEYAyABKAsy",
|
|
"GC5DbGllbnRUb0NoYXRSZXEuQ2hhdFJlcUgAEjsKD2pvaW5DaGF0Um9vbVJl",
|
|
"cRgEIAEoCzIgLkNsaWVudFRvQ2hhdFJlcS5Kb2luQ2hhdFJvb21SZXFIABI9",
|
|
"ChBsZWF2ZUNoYXRSb29tUmVxGAUgASgLMiEuQ2xpZW50VG9DaGF0UmVxLkxl",
|
|
"YXZlQ2hhdFJvb21SZXFIABooCghMb2dpblJlcRIMCgRuYW1lGAEgASgJEg4K",
|
|
"BnJvb21JZBgCIAEoAxoLCglMb2dvdXRSZXEaGgoHQ2hhdFJlcRIPCgdtZXNz",
|
|
"YWdlGAEgASgJGiEKD0pvaW5DaGF0Um9vbVJlcRIOCgZyb29tSWQYASABKAMa",
|
|
"EgoQTGVhdmVDaGF0Um9vbVJlcUIFCgNtc2cisQMKD0NsaWVudFRvQ2hhdFJl",
|
|
"cxIjCgllcnJvckNvZGUYASABKA4yEC5TZXJ2ZXJFcnJvckNvZGUSLQoIbG9n",
|
|
"aW5SZXMYAiABKAsyGS5DbGllbnRUb0NoYXRSZXMuTG9naW5SZXNIABIvCgls",
|
|
"b2dvdXRSZXMYAyABKAsyGi5DbGllbnRUb0NoYXRSZXMuTG9nb3V0UmVzSAAS",
|
|
"KwoHY2hhdFJlcxgEIAEoCzIYLkNsaWVudFRvQ2hhdFJlcy5DaGF0UmVzSAAS",
|
|
"OwoPam9pbkNoYXRSb29tUmVzGAUgASgLMiAuQ2xpZW50VG9DaGF0UmVzLkpv",
|
|
"aW5DaGF0Um9vbVJlc0gAEj0KEGxlYXZlQ2hhdFJvb21SZXMYBiABKAsyIS5D",
|
|
"bGllbnRUb0NoYXRSZXMuTGVhdmVDaGF0Um9vbVJlc0gAGhoKCExvZ2luUmVz",
|
|
"Eg4KBnJvb21JZBgCIAEoAxoLCglMb2dvdXRSZXMaCQoHQ2hhdFJlcxohCg9K",
|
|
"b2luQ2hhdFJvb21SZXMSDgoGcm9vbUlkGAEgASgDGhIKEExlYXZlQ2hhdFJv",
|
|
"b21SZXNCBQoDbXNnInAKE0NsaWVudFRvQ2hhdE1lc3NhZ2USKQoEY2hhdBgB",
|
|
"IAEoCzIZLkNsaWVudFRvQ2hhdE1lc3NhZ2UuQ2hhdEgAGicKBENoYXQSDgoG",
|
|
"c2VuZGVyGAEgASgJEg8KB21lc3NhZ2UYAiABKAlCBQoDbXNnIokBCgxDbGll",
|
|
"bnRUb0NoYXQSIwoHcmVxdWVzdBgBIAEoCzIQLkNsaWVudFRvQ2hhdFJlcUgA",
|
|
"EiQKCHJlc3BvbnNlGAIgASgLMhAuQ2xpZW50VG9DaGF0UmVzSAASJwoHbWVz",
|
|
"c2FnZRgDIAEoCzIULkNsaWVudFRvQ2hhdE1lc3NhZ2VIAEIFCgNtc2diBnBy",
|
|
"b3RvMw=="));
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
|
new pbr::FileDescriptor[] { global::DefineCommonReflection.Descriptor, global::DefineResultReflection.Descriptor, global::DefineProgramVersionReflection.Descriptor, },
|
|
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::ClientToChatReq), global::ClientToChatReq.Parser, new[]{ "LoginReq", "LogoutReq", "ChatReq", "JoinChatRoomReq", "LeaveChatRoomReq" }, new[]{ "Msg" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::ClientToChatReq.Types.LoginReq), global::ClientToChatReq.Types.LoginReq.Parser, new[]{ "Name", "RoomId" }, null, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::ClientToChatReq.Types.LogoutReq), global::ClientToChatReq.Types.LogoutReq.Parser, null, null, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::ClientToChatReq.Types.ChatReq), global::ClientToChatReq.Types.ChatReq.Parser, new[]{ "Message" }, null, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::ClientToChatReq.Types.JoinChatRoomReq), global::ClientToChatReq.Types.JoinChatRoomReq.Parser, new[]{ "RoomId" }, null, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::ClientToChatReq.Types.LeaveChatRoomReq), global::ClientToChatReq.Types.LeaveChatRoomReq.Parser, null, null, null, null, null)}),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::ClientToChatRes), global::ClientToChatRes.Parser, new[]{ "ErrorCode", "LoginRes", "LogoutRes", "ChatRes", "JoinChatRoomRes", "LeaveChatRoomRes" }, new[]{ "Msg" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::ClientToChatRes.Types.LoginRes), global::ClientToChatRes.Types.LoginRes.Parser, new[]{ "RoomId" }, null, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::ClientToChatRes.Types.LogoutRes), global::ClientToChatRes.Types.LogoutRes.Parser, null, null, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::ClientToChatRes.Types.ChatRes), global::ClientToChatRes.Types.ChatRes.Parser, null, null, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::ClientToChatRes.Types.JoinChatRoomRes), global::ClientToChatRes.Types.JoinChatRoomRes.Parser, new[]{ "RoomId" }, null, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::ClientToChatRes.Types.LeaveChatRoomRes), global::ClientToChatRes.Types.LeaveChatRoomRes.Parser, null, null, null, null, null)}),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::ClientToChatMessage), global::ClientToChatMessage.Parser, new[]{ "Chat" }, new[]{ "Msg" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::ClientToChatMessage.Types.Chat), global::ClientToChatMessage.Types.Chat.Parser, new[]{ "Sender", "Message" }, null, null, null, null)}),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::ClientToChat), global::ClientToChat.Parser, new[]{ "Request", "Response", "Message" }, new[]{ "Msg" }, null, null, null)
|
|
}));
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
#region Messages
|
|
[global::System.SerializableAttribute]
|
|
public sealed partial class ClientToChatReq : pb::IMessage<ClientToChatReq>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<ClientToChatReq> _parser = new pb::MessageParser<ClientToChatReq>(() => new ClientToChatReq());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<ClientToChatReq> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::ClientToChatReflection.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 ClientToChatReq() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public ClientToChatReq(ClientToChatReq other) : this() {
|
|
switch (other.MsgCase) {
|
|
case MsgOneofCase.LoginReq:
|
|
LoginReq = other.LoginReq.Clone();
|
|
break;
|
|
case MsgOneofCase.LogoutReq:
|
|
LogoutReq = other.LogoutReq.Clone();
|
|
break;
|
|
case MsgOneofCase.ChatReq:
|
|
ChatReq = other.ChatReq.Clone();
|
|
break;
|
|
case MsgOneofCase.JoinChatRoomReq:
|
|
JoinChatRoomReq = other.JoinChatRoomReq.Clone();
|
|
break;
|
|
case MsgOneofCase.LeaveChatRoomReq:
|
|
LeaveChatRoomReq = other.LeaveChatRoomReq.Clone();
|
|
break;
|
|
}
|
|
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public ClientToChatReq Clone() {
|
|
return new ClientToChatReq(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "loginReq" field.</summary>
|
|
public const int LoginReqFieldNumber = 1;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::ClientToChatReq.Types.LoginReq LoginReq {
|
|
get { return msgCase_ == MsgOneofCase.LoginReq ? (global::ClientToChatReq.Types.LoginReq) msg_ : null; }
|
|
set {
|
|
msg_ = value;
|
|
msgCase_ = value == null ? MsgOneofCase.None : MsgOneofCase.LoginReq;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "logoutReq" field.</summary>
|
|
public const int LogoutReqFieldNumber = 2;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::ClientToChatReq.Types.LogoutReq LogoutReq {
|
|
get { return msgCase_ == MsgOneofCase.LogoutReq ? (global::ClientToChatReq.Types.LogoutReq) msg_ : null; }
|
|
set {
|
|
msg_ = value;
|
|
msgCase_ = value == null ? MsgOneofCase.None : MsgOneofCase.LogoutReq;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "chatReq" field.</summary>
|
|
public const int ChatReqFieldNumber = 3;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::ClientToChatReq.Types.ChatReq ChatReq {
|
|
get { return msgCase_ == MsgOneofCase.ChatReq ? (global::ClientToChatReq.Types.ChatReq) msg_ : null; }
|
|
set {
|
|
msg_ = value;
|
|
msgCase_ = value == null ? MsgOneofCase.None : MsgOneofCase.ChatReq;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "joinChatRoomReq" field.</summary>
|
|
public const int JoinChatRoomReqFieldNumber = 4;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::ClientToChatReq.Types.JoinChatRoomReq JoinChatRoomReq {
|
|
get { return msgCase_ == MsgOneofCase.JoinChatRoomReq ? (global::ClientToChatReq.Types.JoinChatRoomReq) msg_ : null; }
|
|
set {
|
|
msg_ = value;
|
|
msgCase_ = value == null ? MsgOneofCase.None : MsgOneofCase.JoinChatRoomReq;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "leaveChatRoomReq" field.</summary>
|
|
public const int LeaveChatRoomReqFieldNumber = 5;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::ClientToChatReq.Types.LeaveChatRoomReq LeaveChatRoomReq {
|
|
get { return msgCase_ == MsgOneofCase.LeaveChatRoomReq ? (global::ClientToChatReq.Types.LeaveChatRoomReq) msg_ : null; }
|
|
set {
|
|
msg_ = value;
|
|
msgCase_ = value == null ? MsgOneofCase.None : MsgOneofCase.LeaveChatRoomReq;
|
|
}
|
|
}
|
|
|
|
private object msg_;
|
|
/// <summary>Enum of possible cases for the "msg" oneof.</summary>
|
|
public enum MsgOneofCase {
|
|
None = 0,
|
|
LoginReq = 1,
|
|
LogoutReq = 2,
|
|
ChatReq = 3,
|
|
JoinChatRoomReq = 4,
|
|
LeaveChatRoomReq = 5,
|
|
}
|
|
private MsgOneofCase msgCase_ = MsgOneofCase.None;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public MsgOneofCase MsgCase {
|
|
get { return msgCase_; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void ClearMsg() {
|
|
msgCase_ = MsgOneofCase.None;
|
|
msg_ = null;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as ClientToChatReq);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(ClientToChatReq other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (!object.Equals(LoginReq, other.LoginReq)) return false;
|
|
if (!object.Equals(LogoutReq, other.LogoutReq)) return false;
|
|
if (!object.Equals(ChatReq, other.ChatReq)) return false;
|
|
if (!object.Equals(JoinChatRoomReq, other.JoinChatRoomReq)) return false;
|
|
if (!object.Equals(LeaveChatRoomReq, other.LeaveChatRoomReq)) return false;
|
|
if (MsgCase != other.MsgCase) 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 (msgCase_ == MsgOneofCase.LoginReq) hash ^= LoginReq.GetHashCode();
|
|
if (msgCase_ == MsgOneofCase.LogoutReq) hash ^= LogoutReq.GetHashCode();
|
|
if (msgCase_ == MsgOneofCase.ChatReq) hash ^= ChatReq.GetHashCode();
|
|
if (msgCase_ == MsgOneofCase.JoinChatRoomReq) hash ^= JoinChatRoomReq.GetHashCode();
|
|
if (msgCase_ == MsgOneofCase.LeaveChatRoomReq) hash ^= LeaveChatRoomReq.GetHashCode();
|
|
hash ^= (int) msgCase_;
|
|
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 (msgCase_ == MsgOneofCase.LoginReq) {
|
|
output.WriteRawTag(10);
|
|
output.WriteMessage(LoginReq);
|
|
}
|
|
if (msgCase_ == MsgOneofCase.LogoutReq) {
|
|
output.WriteRawTag(18);
|
|
output.WriteMessage(LogoutReq);
|
|
}
|
|
if (msgCase_ == MsgOneofCase.ChatReq) {
|
|
output.WriteRawTag(26);
|
|
output.WriteMessage(ChatReq);
|
|
}
|
|
if (msgCase_ == MsgOneofCase.JoinChatRoomReq) {
|
|
output.WriteRawTag(34);
|
|
output.WriteMessage(JoinChatRoomReq);
|
|
}
|
|
if (msgCase_ == MsgOneofCase.LeaveChatRoomReq) {
|
|
output.WriteRawTag(42);
|
|
output.WriteMessage(LeaveChatRoomReq);
|
|
}
|
|
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 (msgCase_ == MsgOneofCase.LoginReq) {
|
|
output.WriteRawTag(10);
|
|
output.WriteMessage(LoginReq);
|
|
}
|
|
if (msgCase_ == MsgOneofCase.LogoutReq) {
|
|
output.WriteRawTag(18);
|
|
output.WriteMessage(LogoutReq);
|
|
}
|
|
if (msgCase_ == MsgOneofCase.ChatReq) {
|
|
output.WriteRawTag(26);
|
|
output.WriteMessage(ChatReq);
|
|
}
|
|
if (msgCase_ == MsgOneofCase.JoinChatRoomReq) {
|
|
output.WriteRawTag(34);
|
|
output.WriteMessage(JoinChatRoomReq);
|
|
}
|
|
if (msgCase_ == MsgOneofCase.LeaveChatRoomReq) {
|
|
output.WriteRawTag(42);
|
|
output.WriteMessage(LeaveChatRoomReq);
|
|
}
|
|
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 (msgCase_ == MsgOneofCase.LoginReq) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(LoginReq);
|
|
}
|
|
if (msgCase_ == MsgOneofCase.LogoutReq) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(LogoutReq);
|
|
}
|
|
if (msgCase_ == MsgOneofCase.ChatReq) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(ChatReq);
|
|
}
|
|
if (msgCase_ == MsgOneofCase.JoinChatRoomReq) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(JoinChatRoomReq);
|
|
}
|
|
if (msgCase_ == MsgOneofCase.LeaveChatRoomReq) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(LeaveChatRoomReq);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(ClientToChatReq other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
switch (other.MsgCase) {
|
|
case MsgOneofCase.LoginReq:
|
|
if (LoginReq == null) {
|
|
LoginReq = new global::ClientToChatReq.Types.LoginReq();
|
|
}
|
|
LoginReq.MergeFrom(other.LoginReq);
|
|
break;
|
|
case MsgOneofCase.LogoutReq:
|
|
if (LogoutReq == null) {
|
|
LogoutReq = new global::ClientToChatReq.Types.LogoutReq();
|
|
}
|
|
LogoutReq.MergeFrom(other.LogoutReq);
|
|
break;
|
|
case MsgOneofCase.ChatReq:
|
|
if (ChatReq == null) {
|
|
ChatReq = new global::ClientToChatReq.Types.ChatReq();
|
|
}
|
|
ChatReq.MergeFrom(other.ChatReq);
|
|
break;
|
|
case MsgOneofCase.JoinChatRoomReq:
|
|
if (JoinChatRoomReq == null) {
|
|
JoinChatRoomReq = new global::ClientToChatReq.Types.JoinChatRoomReq();
|
|
}
|
|
JoinChatRoomReq.MergeFrom(other.JoinChatRoomReq);
|
|
break;
|
|
case MsgOneofCase.LeaveChatRoomReq:
|
|
if (LeaveChatRoomReq == null) {
|
|
LeaveChatRoomReq = new global::ClientToChatReq.Types.LeaveChatRoomReq();
|
|
}
|
|
LeaveChatRoomReq.MergeFrom(other.LeaveChatRoomReq);
|
|
break;
|
|
}
|
|
|
|
_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) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
global::ClientToChatReq.Types.LoginReq subBuilder = new global::ClientToChatReq.Types.LoginReq();
|
|
if (msgCase_ == MsgOneofCase.LoginReq) {
|
|
subBuilder.MergeFrom(LoginReq);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
LoginReq = subBuilder;
|
|
break;
|
|
}
|
|
case 18: {
|
|
global::ClientToChatReq.Types.LogoutReq subBuilder = new global::ClientToChatReq.Types.LogoutReq();
|
|
if (msgCase_ == MsgOneofCase.LogoutReq) {
|
|
subBuilder.MergeFrom(LogoutReq);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
LogoutReq = subBuilder;
|
|
break;
|
|
}
|
|
case 26: {
|
|
global::ClientToChatReq.Types.ChatReq subBuilder = new global::ClientToChatReq.Types.ChatReq();
|
|
if (msgCase_ == MsgOneofCase.ChatReq) {
|
|
subBuilder.MergeFrom(ChatReq);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
ChatReq = subBuilder;
|
|
break;
|
|
}
|
|
case 34: {
|
|
global::ClientToChatReq.Types.JoinChatRoomReq subBuilder = new global::ClientToChatReq.Types.JoinChatRoomReq();
|
|
if (msgCase_ == MsgOneofCase.JoinChatRoomReq) {
|
|
subBuilder.MergeFrom(JoinChatRoomReq);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
JoinChatRoomReq = subBuilder;
|
|
break;
|
|
}
|
|
case 42: {
|
|
global::ClientToChatReq.Types.LeaveChatRoomReq subBuilder = new global::ClientToChatReq.Types.LeaveChatRoomReq();
|
|
if (msgCase_ == MsgOneofCase.LeaveChatRoomReq) {
|
|
subBuilder.MergeFrom(LeaveChatRoomReq);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
LeaveChatRoomReq = subBuilder;
|
|
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) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
|
break;
|
|
case 10: {
|
|
global::ClientToChatReq.Types.LoginReq subBuilder = new global::ClientToChatReq.Types.LoginReq();
|
|
if (msgCase_ == MsgOneofCase.LoginReq) {
|
|
subBuilder.MergeFrom(LoginReq);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
LoginReq = subBuilder;
|
|
break;
|
|
}
|
|
case 18: {
|
|
global::ClientToChatReq.Types.LogoutReq subBuilder = new global::ClientToChatReq.Types.LogoutReq();
|
|
if (msgCase_ == MsgOneofCase.LogoutReq) {
|
|
subBuilder.MergeFrom(LogoutReq);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
LogoutReq = subBuilder;
|
|
break;
|
|
}
|
|
case 26: {
|
|
global::ClientToChatReq.Types.ChatReq subBuilder = new global::ClientToChatReq.Types.ChatReq();
|
|
if (msgCase_ == MsgOneofCase.ChatReq) {
|
|
subBuilder.MergeFrom(ChatReq);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
ChatReq = subBuilder;
|
|
break;
|
|
}
|
|
case 34: {
|
|
global::ClientToChatReq.Types.JoinChatRoomReq subBuilder = new global::ClientToChatReq.Types.JoinChatRoomReq();
|
|
if (msgCase_ == MsgOneofCase.JoinChatRoomReq) {
|
|
subBuilder.MergeFrom(JoinChatRoomReq);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
JoinChatRoomReq = subBuilder;
|
|
break;
|
|
}
|
|
case 42: {
|
|
global::ClientToChatReq.Types.LeaveChatRoomReq subBuilder = new global::ClientToChatReq.Types.LeaveChatRoomReq();
|
|
if (msgCase_ == MsgOneofCase.LeaveChatRoomReq) {
|
|
subBuilder.MergeFrom(LeaveChatRoomReq);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
LeaveChatRoomReq = subBuilder;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#region Nested types
|
|
/// <summary>Container for nested types declared in the ClientToChatReq message type.</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static partial class Types {
|
|
[global::System.SerializableAttribute]
|
|
public sealed partial class LoginReq : pb::IMessage<LoginReq>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<LoginReq> _parser = new pb::MessageParser<LoginReq>(() => new LoginReq());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<LoginReq> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::ClientToChatReq.Descriptor.NestedTypes[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 LoginReq() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public LoginReq(LoginReq other) : this() {
|
|
name_ = other.name_;
|
|
roomId_ = other.roomId_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public LoginReq Clone() {
|
|
return new LoginReq(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "name" field.</summary>
|
|
public const int NameFieldNumber = 1;
|
|
private string name_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string Name {
|
|
get { return name_; }
|
|
set {
|
|
name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "roomId" field.</summary>
|
|
public const int RoomIdFieldNumber = 2;
|
|
private long roomId_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public long RoomId {
|
|
get { return roomId_; }
|
|
set {
|
|
roomId_ = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as LoginReq);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(LoginReq other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (Name != other.Name) return false;
|
|
if (RoomId != other.RoomId) 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 (Name.Length != 0) hash ^= Name.GetHashCode();
|
|
if (RoomId != 0L) hash ^= RoomId.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 (Name.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(Name);
|
|
}
|
|
if (RoomId != 0L) {
|
|
output.WriteRawTag(16);
|
|
output.WriteInt64(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 (Name.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(Name);
|
|
}
|
|
if (RoomId != 0L) {
|
|
output.WriteRawTag(16);
|
|
output.WriteInt64(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 (Name.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
|
|
}
|
|
if (RoomId != 0L) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt64Size(RoomId);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(LoginReq other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.Name.Length != 0) {
|
|
Name = other.Name;
|
|
}
|
|
if (other.RoomId != 0L) {
|
|
RoomId = other.RoomId;
|
|
}
|
|
_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) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
Name = input.ReadString();
|
|
break;
|
|
}
|
|
case 16: {
|
|
RoomId = 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) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
|
break;
|
|
case 10: {
|
|
Name = input.ReadString();
|
|
break;
|
|
}
|
|
case 16: {
|
|
RoomId = input.ReadInt64();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
[global::System.SerializableAttribute]
|
|
public sealed partial class LogoutReq : pb::IMessage<LogoutReq>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<LogoutReq> _parser = new pb::MessageParser<LogoutReq>(() => new LogoutReq());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<LogoutReq> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::ClientToChatReq.Descriptor.NestedTypes[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 LogoutReq() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public LogoutReq(LogoutReq other) : this() {
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public LogoutReq Clone() {
|
|
return new LogoutReq(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as LogoutReq);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(LogoutReq other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
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 (_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 (_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 (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(LogoutReq other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
_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) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
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) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
[global::System.SerializableAttribute]
|
|
public sealed partial class ChatReq : pb::IMessage<ChatReq>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<ChatReq> _parser = new pb::MessageParser<ChatReq>(() => new ChatReq());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<ChatReq> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::ClientToChatReq.Descriptor.NestedTypes[2]; }
|
|
}
|
|
|
|
[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 ChatReq() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public ChatReq(ChatReq other) : this() {
|
|
message_ = other.message_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public ChatReq Clone() {
|
|
return new ChatReq(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "message" field.</summary>
|
|
public const int MessageFieldNumber = 1;
|
|
private string message_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string Message {
|
|
get { return message_; }
|
|
set {
|
|
message_ = 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 ChatReq);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(ChatReq other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (Message != other.Message) 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 (Message.Length != 0) hash ^= Message.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 (Message.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(Message);
|
|
}
|
|
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 (Message.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(Message);
|
|
}
|
|
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 (Message.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Message);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(ChatReq other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.Message.Length != 0) {
|
|
Message = other.Message;
|
|
}
|
|
_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) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
Message = 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) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
|
break;
|
|
case 10: {
|
|
Message = input.ReadString();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
[global::System.SerializableAttribute]
|
|
public sealed partial class JoinChatRoomReq : pb::IMessage<JoinChatRoomReq>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<JoinChatRoomReq> _parser = new pb::MessageParser<JoinChatRoomReq>(() => new JoinChatRoomReq());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<JoinChatRoomReq> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::ClientToChatReq.Descriptor.NestedTypes[3]; }
|
|
}
|
|
|
|
[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 JoinChatRoomReq() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public JoinChatRoomReq(JoinChatRoomReq other) : this() {
|
|
roomId_ = other.roomId_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public JoinChatRoomReq Clone() {
|
|
return new JoinChatRoomReq(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "roomId" field.</summary>
|
|
public const int RoomIdFieldNumber = 1;
|
|
private long roomId_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public long RoomId {
|
|
get { return roomId_; }
|
|
set {
|
|
roomId_ = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as JoinChatRoomReq);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(JoinChatRoomReq other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (RoomId != other.RoomId) 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 (RoomId != 0L) hash ^= RoomId.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 (RoomId != 0L) {
|
|
output.WriteRawTag(8);
|
|
output.WriteInt64(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 (RoomId != 0L) {
|
|
output.WriteRawTag(8);
|
|
output.WriteInt64(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 (RoomId != 0L) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt64Size(RoomId);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(JoinChatRoomReq other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.RoomId != 0L) {
|
|
RoomId = other.RoomId;
|
|
}
|
|
_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) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 8: {
|
|
RoomId = 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) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
|
break;
|
|
case 8: {
|
|
RoomId = input.ReadInt64();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
[global::System.SerializableAttribute]
|
|
public sealed partial class LeaveChatRoomReq : pb::IMessage<LeaveChatRoomReq>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<LeaveChatRoomReq> _parser = new pb::MessageParser<LeaveChatRoomReq>(() => new LeaveChatRoomReq());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<LeaveChatRoomReq> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::ClientToChatReq.Descriptor.NestedTypes[4]; }
|
|
}
|
|
|
|
[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 LeaveChatRoomReq() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public LeaveChatRoomReq(LeaveChatRoomReq other) : this() {
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public LeaveChatRoomReq Clone() {
|
|
return new LeaveChatRoomReq(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as LeaveChatRoomReq);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(LeaveChatRoomReq other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
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 (_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 (_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 (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(LeaveChatRoomReq other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
_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) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
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) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
|
|
[global::System.SerializableAttribute]
|
|
public sealed partial class ClientToChatRes : pb::IMessage<ClientToChatRes>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<ClientToChatRes> _parser = new pb::MessageParser<ClientToChatRes>(() => new ClientToChatRes());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<ClientToChatRes> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::ClientToChatReflection.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 ClientToChatRes() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public ClientToChatRes(ClientToChatRes other) : this() {
|
|
errorCode_ = other.errorCode_;
|
|
switch (other.MsgCase) {
|
|
case MsgOneofCase.LoginRes:
|
|
LoginRes = other.LoginRes.Clone();
|
|
break;
|
|
case MsgOneofCase.LogoutRes:
|
|
LogoutRes = other.LogoutRes.Clone();
|
|
break;
|
|
case MsgOneofCase.ChatRes:
|
|
ChatRes = other.ChatRes.Clone();
|
|
break;
|
|
case MsgOneofCase.JoinChatRoomRes:
|
|
JoinChatRoomRes = other.JoinChatRoomRes.Clone();
|
|
break;
|
|
case MsgOneofCase.LeaveChatRoomRes:
|
|
LeaveChatRoomRes = other.LeaveChatRoomRes.Clone();
|
|
break;
|
|
}
|
|
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public ClientToChatRes Clone() {
|
|
return new ClientToChatRes(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "errorCode" field.</summary>
|
|
public const int ErrorCodeFieldNumber = 1;
|
|
private global::ServerErrorCode errorCode_ = global::ServerErrorCode.Success;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::ServerErrorCode ErrorCode {
|
|
get { return errorCode_; }
|
|
set {
|
|
errorCode_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "loginRes" field.</summary>
|
|
public const int LoginResFieldNumber = 2;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::ClientToChatRes.Types.LoginRes LoginRes {
|
|
get { return msgCase_ == MsgOneofCase.LoginRes ? (global::ClientToChatRes.Types.LoginRes) msg_ : null; }
|
|
set {
|
|
msg_ = value;
|
|
msgCase_ = value == null ? MsgOneofCase.None : MsgOneofCase.LoginRes;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "logoutRes" field.</summary>
|
|
public const int LogoutResFieldNumber = 3;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::ClientToChatRes.Types.LogoutRes LogoutRes {
|
|
get { return msgCase_ == MsgOneofCase.LogoutRes ? (global::ClientToChatRes.Types.LogoutRes) msg_ : null; }
|
|
set {
|
|
msg_ = value;
|
|
msgCase_ = value == null ? MsgOneofCase.None : MsgOneofCase.LogoutRes;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "chatRes" field.</summary>
|
|
public const int ChatResFieldNumber = 4;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::ClientToChatRes.Types.ChatRes ChatRes {
|
|
get { return msgCase_ == MsgOneofCase.ChatRes ? (global::ClientToChatRes.Types.ChatRes) msg_ : null; }
|
|
set {
|
|
msg_ = value;
|
|
msgCase_ = value == null ? MsgOneofCase.None : MsgOneofCase.ChatRes;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "joinChatRoomRes" field.</summary>
|
|
public const int JoinChatRoomResFieldNumber = 5;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::ClientToChatRes.Types.JoinChatRoomRes JoinChatRoomRes {
|
|
get { return msgCase_ == MsgOneofCase.JoinChatRoomRes ? (global::ClientToChatRes.Types.JoinChatRoomRes) msg_ : null; }
|
|
set {
|
|
msg_ = value;
|
|
msgCase_ = value == null ? MsgOneofCase.None : MsgOneofCase.JoinChatRoomRes;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "leaveChatRoomRes" field.</summary>
|
|
public const int LeaveChatRoomResFieldNumber = 6;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::ClientToChatRes.Types.LeaveChatRoomRes LeaveChatRoomRes {
|
|
get { return msgCase_ == MsgOneofCase.LeaveChatRoomRes ? (global::ClientToChatRes.Types.LeaveChatRoomRes) msg_ : null; }
|
|
set {
|
|
msg_ = value;
|
|
msgCase_ = value == null ? MsgOneofCase.None : MsgOneofCase.LeaveChatRoomRes;
|
|
}
|
|
}
|
|
|
|
private object msg_;
|
|
/// <summary>Enum of possible cases for the "msg" oneof.</summary>
|
|
public enum MsgOneofCase {
|
|
None = 0,
|
|
LoginRes = 2,
|
|
LogoutRes = 3,
|
|
ChatRes = 4,
|
|
JoinChatRoomRes = 5,
|
|
LeaveChatRoomRes = 6,
|
|
}
|
|
private MsgOneofCase msgCase_ = MsgOneofCase.None;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public MsgOneofCase MsgCase {
|
|
get { return msgCase_; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void ClearMsg() {
|
|
msgCase_ = MsgOneofCase.None;
|
|
msg_ = null;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as ClientToChatRes);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(ClientToChatRes other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (ErrorCode != other.ErrorCode) return false;
|
|
if (!object.Equals(LoginRes, other.LoginRes)) return false;
|
|
if (!object.Equals(LogoutRes, other.LogoutRes)) return false;
|
|
if (!object.Equals(ChatRes, other.ChatRes)) return false;
|
|
if (!object.Equals(JoinChatRoomRes, other.JoinChatRoomRes)) return false;
|
|
if (!object.Equals(LeaveChatRoomRes, other.LeaveChatRoomRes)) return false;
|
|
if (MsgCase != other.MsgCase) 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 (ErrorCode != global::ServerErrorCode.Success) hash ^= ErrorCode.GetHashCode();
|
|
if (msgCase_ == MsgOneofCase.LoginRes) hash ^= LoginRes.GetHashCode();
|
|
if (msgCase_ == MsgOneofCase.LogoutRes) hash ^= LogoutRes.GetHashCode();
|
|
if (msgCase_ == MsgOneofCase.ChatRes) hash ^= ChatRes.GetHashCode();
|
|
if (msgCase_ == MsgOneofCase.JoinChatRoomRes) hash ^= JoinChatRoomRes.GetHashCode();
|
|
if (msgCase_ == MsgOneofCase.LeaveChatRoomRes) hash ^= LeaveChatRoomRes.GetHashCode();
|
|
hash ^= (int) msgCase_;
|
|
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 (ErrorCode != global::ServerErrorCode.Success) {
|
|
output.WriteRawTag(8);
|
|
output.WriteEnum((int) ErrorCode);
|
|
}
|
|
if (msgCase_ == MsgOneofCase.LoginRes) {
|
|
output.WriteRawTag(18);
|
|
output.WriteMessage(LoginRes);
|
|
}
|
|
if (msgCase_ == MsgOneofCase.LogoutRes) {
|
|
output.WriteRawTag(26);
|
|
output.WriteMessage(LogoutRes);
|
|
}
|
|
if (msgCase_ == MsgOneofCase.ChatRes) {
|
|
output.WriteRawTag(34);
|
|
output.WriteMessage(ChatRes);
|
|
}
|
|
if (msgCase_ == MsgOneofCase.JoinChatRoomRes) {
|
|
output.WriteRawTag(42);
|
|
output.WriteMessage(JoinChatRoomRes);
|
|
}
|
|
if (msgCase_ == MsgOneofCase.LeaveChatRoomRes) {
|
|
output.WriteRawTag(50);
|
|
output.WriteMessage(LeaveChatRoomRes);
|
|
}
|
|
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 (ErrorCode != global::ServerErrorCode.Success) {
|
|
output.WriteRawTag(8);
|
|
output.WriteEnum((int) ErrorCode);
|
|
}
|
|
if (msgCase_ == MsgOneofCase.LoginRes) {
|
|
output.WriteRawTag(18);
|
|
output.WriteMessage(LoginRes);
|
|
}
|
|
if (msgCase_ == MsgOneofCase.LogoutRes) {
|
|
output.WriteRawTag(26);
|
|
output.WriteMessage(LogoutRes);
|
|
}
|
|
if (msgCase_ == MsgOneofCase.ChatRes) {
|
|
output.WriteRawTag(34);
|
|
output.WriteMessage(ChatRes);
|
|
}
|
|
if (msgCase_ == MsgOneofCase.JoinChatRoomRes) {
|
|
output.WriteRawTag(42);
|
|
output.WriteMessage(JoinChatRoomRes);
|
|
}
|
|
if (msgCase_ == MsgOneofCase.LeaveChatRoomRes) {
|
|
output.WriteRawTag(50);
|
|
output.WriteMessage(LeaveChatRoomRes);
|
|
}
|
|
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 (ErrorCode != global::ServerErrorCode.Success) {
|
|
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ErrorCode);
|
|
}
|
|
if (msgCase_ == MsgOneofCase.LoginRes) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(LoginRes);
|
|
}
|
|
if (msgCase_ == MsgOneofCase.LogoutRes) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(LogoutRes);
|
|
}
|
|
if (msgCase_ == MsgOneofCase.ChatRes) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(ChatRes);
|
|
}
|
|
if (msgCase_ == MsgOneofCase.JoinChatRoomRes) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(JoinChatRoomRes);
|
|
}
|
|
if (msgCase_ == MsgOneofCase.LeaveChatRoomRes) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(LeaveChatRoomRes);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(ClientToChatRes other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.ErrorCode != global::ServerErrorCode.Success) {
|
|
ErrorCode = other.ErrorCode;
|
|
}
|
|
switch (other.MsgCase) {
|
|
case MsgOneofCase.LoginRes:
|
|
if (LoginRes == null) {
|
|
LoginRes = new global::ClientToChatRes.Types.LoginRes();
|
|
}
|
|
LoginRes.MergeFrom(other.LoginRes);
|
|
break;
|
|
case MsgOneofCase.LogoutRes:
|
|
if (LogoutRes == null) {
|
|
LogoutRes = new global::ClientToChatRes.Types.LogoutRes();
|
|
}
|
|
LogoutRes.MergeFrom(other.LogoutRes);
|
|
break;
|
|
case MsgOneofCase.ChatRes:
|
|
if (ChatRes == null) {
|
|
ChatRes = new global::ClientToChatRes.Types.ChatRes();
|
|
}
|
|
ChatRes.MergeFrom(other.ChatRes);
|
|
break;
|
|
case MsgOneofCase.JoinChatRoomRes:
|
|
if (JoinChatRoomRes == null) {
|
|
JoinChatRoomRes = new global::ClientToChatRes.Types.JoinChatRoomRes();
|
|
}
|
|
JoinChatRoomRes.MergeFrom(other.JoinChatRoomRes);
|
|
break;
|
|
case MsgOneofCase.LeaveChatRoomRes:
|
|
if (LeaveChatRoomRes == null) {
|
|
LeaveChatRoomRes = new global::ClientToChatRes.Types.LeaveChatRoomRes();
|
|
}
|
|
LeaveChatRoomRes.MergeFrom(other.LeaveChatRoomRes);
|
|
break;
|
|
}
|
|
|
|
_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) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 8: {
|
|
ErrorCode = (global::ServerErrorCode) input.ReadEnum();
|
|
break;
|
|
}
|
|
case 18: {
|
|
global::ClientToChatRes.Types.LoginRes subBuilder = new global::ClientToChatRes.Types.LoginRes();
|
|
if (msgCase_ == MsgOneofCase.LoginRes) {
|
|
subBuilder.MergeFrom(LoginRes);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
LoginRes = subBuilder;
|
|
break;
|
|
}
|
|
case 26: {
|
|
global::ClientToChatRes.Types.LogoutRes subBuilder = new global::ClientToChatRes.Types.LogoutRes();
|
|
if (msgCase_ == MsgOneofCase.LogoutRes) {
|
|
subBuilder.MergeFrom(LogoutRes);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
LogoutRes = subBuilder;
|
|
break;
|
|
}
|
|
case 34: {
|
|
global::ClientToChatRes.Types.ChatRes subBuilder = new global::ClientToChatRes.Types.ChatRes();
|
|
if (msgCase_ == MsgOneofCase.ChatRes) {
|
|
subBuilder.MergeFrom(ChatRes);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
ChatRes = subBuilder;
|
|
break;
|
|
}
|
|
case 42: {
|
|
global::ClientToChatRes.Types.JoinChatRoomRes subBuilder = new global::ClientToChatRes.Types.JoinChatRoomRes();
|
|
if (msgCase_ == MsgOneofCase.JoinChatRoomRes) {
|
|
subBuilder.MergeFrom(JoinChatRoomRes);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
JoinChatRoomRes = subBuilder;
|
|
break;
|
|
}
|
|
case 50: {
|
|
global::ClientToChatRes.Types.LeaveChatRoomRes subBuilder = new global::ClientToChatRes.Types.LeaveChatRoomRes();
|
|
if (msgCase_ == MsgOneofCase.LeaveChatRoomRes) {
|
|
subBuilder.MergeFrom(LeaveChatRoomRes);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
LeaveChatRoomRes = subBuilder;
|
|
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) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
|
break;
|
|
case 8: {
|
|
ErrorCode = (global::ServerErrorCode) input.ReadEnum();
|
|
break;
|
|
}
|
|
case 18: {
|
|
global::ClientToChatRes.Types.LoginRes subBuilder = new global::ClientToChatRes.Types.LoginRes();
|
|
if (msgCase_ == MsgOneofCase.LoginRes) {
|
|
subBuilder.MergeFrom(LoginRes);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
LoginRes = subBuilder;
|
|
break;
|
|
}
|
|
case 26: {
|
|
global::ClientToChatRes.Types.LogoutRes subBuilder = new global::ClientToChatRes.Types.LogoutRes();
|
|
if (msgCase_ == MsgOneofCase.LogoutRes) {
|
|
subBuilder.MergeFrom(LogoutRes);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
LogoutRes = subBuilder;
|
|
break;
|
|
}
|
|
case 34: {
|
|
global::ClientToChatRes.Types.ChatRes subBuilder = new global::ClientToChatRes.Types.ChatRes();
|
|
if (msgCase_ == MsgOneofCase.ChatRes) {
|
|
subBuilder.MergeFrom(ChatRes);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
ChatRes = subBuilder;
|
|
break;
|
|
}
|
|
case 42: {
|
|
global::ClientToChatRes.Types.JoinChatRoomRes subBuilder = new global::ClientToChatRes.Types.JoinChatRoomRes();
|
|
if (msgCase_ == MsgOneofCase.JoinChatRoomRes) {
|
|
subBuilder.MergeFrom(JoinChatRoomRes);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
JoinChatRoomRes = subBuilder;
|
|
break;
|
|
}
|
|
case 50: {
|
|
global::ClientToChatRes.Types.LeaveChatRoomRes subBuilder = new global::ClientToChatRes.Types.LeaveChatRoomRes();
|
|
if (msgCase_ == MsgOneofCase.LeaveChatRoomRes) {
|
|
subBuilder.MergeFrom(LeaveChatRoomRes);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
LeaveChatRoomRes = subBuilder;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#region Nested types
|
|
/// <summary>Container for nested types declared in the ClientToChatRes message type.</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static partial class Types {
|
|
[global::System.SerializableAttribute]
|
|
public sealed partial class LoginRes : pb::IMessage<LoginRes>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<LoginRes> _parser = new pb::MessageParser<LoginRes>(() => new LoginRes());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<LoginRes> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::ClientToChatRes.Descriptor.NestedTypes[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 LoginRes() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public LoginRes(LoginRes other) : this() {
|
|
roomId_ = other.roomId_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public LoginRes Clone() {
|
|
return new LoginRes(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "roomId" field.</summary>
|
|
public const int RoomIdFieldNumber = 2;
|
|
private long roomId_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public long RoomId {
|
|
get { return roomId_; }
|
|
set {
|
|
roomId_ = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as LoginRes);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(LoginRes other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (RoomId != other.RoomId) 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 (RoomId != 0L) hash ^= RoomId.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 (RoomId != 0L) {
|
|
output.WriteRawTag(16);
|
|
output.WriteInt64(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 (RoomId != 0L) {
|
|
output.WriteRawTag(16);
|
|
output.WriteInt64(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 (RoomId != 0L) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt64Size(RoomId);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(LoginRes other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.RoomId != 0L) {
|
|
RoomId = other.RoomId;
|
|
}
|
|
_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) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 16: {
|
|
RoomId = 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) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
|
break;
|
|
case 16: {
|
|
RoomId = input.ReadInt64();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
[global::System.SerializableAttribute]
|
|
public sealed partial class LogoutRes : pb::IMessage<LogoutRes>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<LogoutRes> _parser = new pb::MessageParser<LogoutRes>(() => new LogoutRes());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<LogoutRes> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::ClientToChatRes.Descriptor.NestedTypes[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 LogoutRes() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public LogoutRes(LogoutRes other) : this() {
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public LogoutRes Clone() {
|
|
return new LogoutRes(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as LogoutRes);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(LogoutRes other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
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 (_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 (_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 (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(LogoutRes other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
_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) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
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) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
[global::System.SerializableAttribute]
|
|
public sealed partial class ChatRes : pb::IMessage<ChatRes>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<ChatRes> _parser = new pb::MessageParser<ChatRes>(() => new ChatRes());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<ChatRes> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::ClientToChatRes.Descriptor.NestedTypes[2]; }
|
|
}
|
|
|
|
[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 ChatRes() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public ChatRes(ChatRes other) : this() {
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public ChatRes Clone() {
|
|
return new ChatRes(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as ChatRes);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(ChatRes other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
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 (_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 (_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 (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(ChatRes other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
_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) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
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) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
[global::System.SerializableAttribute]
|
|
public sealed partial class JoinChatRoomRes : pb::IMessage<JoinChatRoomRes>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<JoinChatRoomRes> _parser = new pb::MessageParser<JoinChatRoomRes>(() => new JoinChatRoomRes());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<JoinChatRoomRes> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::ClientToChatRes.Descriptor.NestedTypes[3]; }
|
|
}
|
|
|
|
[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 JoinChatRoomRes() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public JoinChatRoomRes(JoinChatRoomRes other) : this() {
|
|
roomId_ = other.roomId_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public JoinChatRoomRes Clone() {
|
|
return new JoinChatRoomRes(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "roomId" field.</summary>
|
|
public const int RoomIdFieldNumber = 1;
|
|
private long roomId_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public long RoomId {
|
|
get { return roomId_; }
|
|
set {
|
|
roomId_ = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as JoinChatRoomRes);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(JoinChatRoomRes other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (RoomId != other.RoomId) 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 (RoomId != 0L) hash ^= RoomId.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 (RoomId != 0L) {
|
|
output.WriteRawTag(8);
|
|
output.WriteInt64(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 (RoomId != 0L) {
|
|
output.WriteRawTag(8);
|
|
output.WriteInt64(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 (RoomId != 0L) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt64Size(RoomId);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(JoinChatRoomRes other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.RoomId != 0L) {
|
|
RoomId = other.RoomId;
|
|
}
|
|
_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) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 8: {
|
|
RoomId = 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) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
|
break;
|
|
case 8: {
|
|
RoomId = input.ReadInt64();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
[global::System.SerializableAttribute]
|
|
public sealed partial class LeaveChatRoomRes : pb::IMessage<LeaveChatRoomRes>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<LeaveChatRoomRes> _parser = new pb::MessageParser<LeaveChatRoomRes>(() => new LeaveChatRoomRes());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<LeaveChatRoomRes> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::ClientToChatRes.Descriptor.NestedTypes[4]; }
|
|
}
|
|
|
|
[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 LeaveChatRoomRes() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public LeaveChatRoomRes(LeaveChatRoomRes other) : this() {
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public LeaveChatRoomRes Clone() {
|
|
return new LeaveChatRoomRes(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as LeaveChatRoomRes);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(LeaveChatRoomRes other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
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 (_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 (_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 (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(LeaveChatRoomRes other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
_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) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
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) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
|
|
[global::System.SerializableAttribute]
|
|
public sealed partial class ClientToChatMessage : pb::IMessage<ClientToChatMessage>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<ClientToChatMessage> _parser = new pb::MessageParser<ClientToChatMessage>(() => new ClientToChatMessage());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<ClientToChatMessage> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::ClientToChatReflection.Descriptor.MessageTypes[2]; }
|
|
}
|
|
|
|
[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 ClientToChatMessage() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public ClientToChatMessage(ClientToChatMessage other) : this() {
|
|
switch (other.MsgCase) {
|
|
case MsgOneofCase.Chat:
|
|
Chat = other.Chat.Clone();
|
|
break;
|
|
}
|
|
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public ClientToChatMessage Clone() {
|
|
return new ClientToChatMessage(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "chat" field.</summary>
|
|
public const int ChatFieldNumber = 1;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::ClientToChatMessage.Types.Chat Chat {
|
|
get { return msgCase_ == MsgOneofCase.Chat ? (global::ClientToChatMessage.Types.Chat) msg_ : null; }
|
|
set {
|
|
msg_ = value;
|
|
msgCase_ = value == null ? MsgOneofCase.None : MsgOneofCase.Chat;
|
|
}
|
|
}
|
|
|
|
private object msg_;
|
|
/// <summary>Enum of possible cases for the "msg" oneof.</summary>
|
|
public enum MsgOneofCase {
|
|
None = 0,
|
|
Chat = 1,
|
|
}
|
|
private MsgOneofCase msgCase_ = MsgOneofCase.None;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public MsgOneofCase MsgCase {
|
|
get { return msgCase_; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void ClearMsg() {
|
|
msgCase_ = MsgOneofCase.None;
|
|
msg_ = null;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as ClientToChatMessage);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(ClientToChatMessage other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (!object.Equals(Chat, other.Chat)) return false;
|
|
if (MsgCase != other.MsgCase) 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 (msgCase_ == MsgOneofCase.Chat) hash ^= Chat.GetHashCode();
|
|
hash ^= (int) msgCase_;
|
|
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 (msgCase_ == MsgOneofCase.Chat) {
|
|
output.WriteRawTag(10);
|
|
output.WriteMessage(Chat);
|
|
}
|
|
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 (msgCase_ == MsgOneofCase.Chat) {
|
|
output.WriteRawTag(10);
|
|
output.WriteMessage(Chat);
|
|
}
|
|
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 (msgCase_ == MsgOneofCase.Chat) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Chat);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(ClientToChatMessage other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
switch (other.MsgCase) {
|
|
case MsgOneofCase.Chat:
|
|
if (Chat == null) {
|
|
Chat = new global::ClientToChatMessage.Types.Chat();
|
|
}
|
|
Chat.MergeFrom(other.Chat);
|
|
break;
|
|
}
|
|
|
|
_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) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
global::ClientToChatMessage.Types.Chat subBuilder = new global::ClientToChatMessage.Types.Chat();
|
|
if (msgCase_ == MsgOneofCase.Chat) {
|
|
subBuilder.MergeFrom(Chat);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
Chat = subBuilder;
|
|
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) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
|
break;
|
|
case 10: {
|
|
global::ClientToChatMessage.Types.Chat subBuilder = new global::ClientToChatMessage.Types.Chat();
|
|
if (msgCase_ == MsgOneofCase.Chat) {
|
|
subBuilder.MergeFrom(Chat);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
Chat = subBuilder;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#region Nested types
|
|
/// <summary>Container for nested types declared in the ClientToChatMessage message type.</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static partial class Types {
|
|
[global::System.SerializableAttribute]
|
|
public sealed partial class Chat : pb::IMessage<Chat>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<Chat> _parser = new pb::MessageParser<Chat>(() => new Chat());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<Chat> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::ClientToChatMessage.Descriptor.NestedTypes[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 Chat() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public Chat(Chat other) : this() {
|
|
sender_ = other.sender_;
|
|
message_ = other.message_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public Chat Clone() {
|
|
return new Chat(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "sender" field.</summary>
|
|
public const int SenderFieldNumber = 1;
|
|
private string sender_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string Sender {
|
|
get { return sender_; }
|
|
set {
|
|
sender_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "message" field.</summary>
|
|
public const int MessageFieldNumber = 2;
|
|
private string message_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string Message {
|
|
get { return message_; }
|
|
set {
|
|
message_ = 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 Chat);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(Chat other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (Sender != other.Sender) return false;
|
|
if (Message != other.Message) 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 (Sender.Length != 0) hash ^= Sender.GetHashCode();
|
|
if (Message.Length != 0) hash ^= Message.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 (Sender.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(Sender);
|
|
}
|
|
if (Message.Length != 0) {
|
|
output.WriteRawTag(18);
|
|
output.WriteString(Message);
|
|
}
|
|
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 (Sender.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(Sender);
|
|
}
|
|
if (Message.Length != 0) {
|
|
output.WriteRawTag(18);
|
|
output.WriteString(Message);
|
|
}
|
|
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 (Sender.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Sender);
|
|
}
|
|
if (Message.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Message);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(Chat other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.Sender.Length != 0) {
|
|
Sender = other.Sender;
|
|
}
|
|
if (other.Message.Length != 0) {
|
|
Message = other.Message;
|
|
}
|
|
_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) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
Sender = input.ReadString();
|
|
break;
|
|
}
|
|
case 18: {
|
|
Message = 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) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
|
break;
|
|
case 10: {
|
|
Sender = input.ReadString();
|
|
break;
|
|
}
|
|
case 18: {
|
|
Message = input.ReadString();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
|
|
[global::System.SerializableAttribute]
|
|
public sealed partial class ClientToChat : pb::IMessage<ClientToChat>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<ClientToChat> _parser = new pb::MessageParser<ClientToChat>(() => new ClientToChat());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<ClientToChat> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::ClientToChatReflection.Descriptor.MessageTypes[3]; }
|
|
}
|
|
|
|
[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 ClientToChat() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public ClientToChat(ClientToChat other) : this() {
|
|
switch (other.MsgCase) {
|
|
case MsgOneofCase.Request:
|
|
Request = other.Request.Clone();
|
|
break;
|
|
case MsgOneofCase.Response:
|
|
Response = other.Response.Clone();
|
|
break;
|
|
case MsgOneofCase.Message:
|
|
Message = other.Message.Clone();
|
|
break;
|
|
}
|
|
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public ClientToChat Clone() {
|
|
return new ClientToChat(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "request" field.</summary>
|
|
public const int RequestFieldNumber = 1;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::ClientToChatReq Request {
|
|
get { return msgCase_ == MsgOneofCase.Request ? (global::ClientToChatReq) msg_ : null; }
|
|
set {
|
|
msg_ = value;
|
|
msgCase_ = value == null ? MsgOneofCase.None : MsgOneofCase.Request;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "response" field.</summary>
|
|
public const int ResponseFieldNumber = 2;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::ClientToChatRes Response {
|
|
get { return msgCase_ == MsgOneofCase.Response ? (global::ClientToChatRes) msg_ : null; }
|
|
set {
|
|
msg_ = value;
|
|
msgCase_ = value == null ? MsgOneofCase.None : MsgOneofCase.Response;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "message" field.</summary>
|
|
public const int MessageFieldNumber = 3;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::ClientToChatMessage Message {
|
|
get { return msgCase_ == MsgOneofCase.Message ? (global::ClientToChatMessage) msg_ : null; }
|
|
set {
|
|
msg_ = value;
|
|
msgCase_ = value == null ? MsgOneofCase.None : MsgOneofCase.Message;
|
|
}
|
|
}
|
|
|
|
private object msg_;
|
|
/// <summary>Enum of possible cases for the "msg" oneof.</summary>
|
|
public enum MsgOneofCase {
|
|
None = 0,
|
|
Request = 1,
|
|
Response = 2,
|
|
Message = 3,
|
|
}
|
|
private MsgOneofCase msgCase_ = MsgOneofCase.None;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public MsgOneofCase MsgCase {
|
|
get { return msgCase_; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void ClearMsg() {
|
|
msgCase_ = MsgOneofCase.None;
|
|
msg_ = null;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as ClientToChat);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(ClientToChat other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (!object.Equals(Request, other.Request)) return false;
|
|
if (!object.Equals(Response, other.Response)) return false;
|
|
if (!object.Equals(Message, other.Message)) return false;
|
|
if (MsgCase != other.MsgCase) 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 (msgCase_ == MsgOneofCase.Request) hash ^= Request.GetHashCode();
|
|
if (msgCase_ == MsgOneofCase.Response) hash ^= Response.GetHashCode();
|
|
if (msgCase_ == MsgOneofCase.Message) hash ^= Message.GetHashCode();
|
|
hash ^= (int) msgCase_;
|
|
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 (msgCase_ == MsgOneofCase.Request) {
|
|
output.WriteRawTag(10);
|
|
output.WriteMessage(Request);
|
|
}
|
|
if (msgCase_ == MsgOneofCase.Response) {
|
|
output.WriteRawTag(18);
|
|
output.WriteMessage(Response);
|
|
}
|
|
if (msgCase_ == MsgOneofCase.Message) {
|
|
output.WriteRawTag(26);
|
|
output.WriteMessage(Message);
|
|
}
|
|
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 (msgCase_ == MsgOneofCase.Request) {
|
|
output.WriteRawTag(10);
|
|
output.WriteMessage(Request);
|
|
}
|
|
if (msgCase_ == MsgOneofCase.Response) {
|
|
output.WriteRawTag(18);
|
|
output.WriteMessage(Response);
|
|
}
|
|
if (msgCase_ == MsgOneofCase.Message) {
|
|
output.WriteRawTag(26);
|
|
output.WriteMessage(Message);
|
|
}
|
|
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 (msgCase_ == MsgOneofCase.Request) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Request);
|
|
}
|
|
if (msgCase_ == MsgOneofCase.Response) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Response);
|
|
}
|
|
if (msgCase_ == MsgOneofCase.Message) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Message);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(ClientToChat other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
switch (other.MsgCase) {
|
|
case MsgOneofCase.Request:
|
|
if (Request == null) {
|
|
Request = new global::ClientToChatReq();
|
|
}
|
|
Request.MergeFrom(other.Request);
|
|
break;
|
|
case MsgOneofCase.Response:
|
|
if (Response == null) {
|
|
Response = new global::ClientToChatRes();
|
|
}
|
|
Response.MergeFrom(other.Response);
|
|
break;
|
|
case MsgOneofCase.Message:
|
|
if (Message == null) {
|
|
Message = new global::ClientToChatMessage();
|
|
}
|
|
Message.MergeFrom(other.Message);
|
|
break;
|
|
}
|
|
|
|
_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) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
global::ClientToChatReq subBuilder = new global::ClientToChatReq();
|
|
if (msgCase_ == MsgOneofCase.Request) {
|
|
subBuilder.MergeFrom(Request);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
Request = subBuilder;
|
|
break;
|
|
}
|
|
case 18: {
|
|
global::ClientToChatRes subBuilder = new global::ClientToChatRes();
|
|
if (msgCase_ == MsgOneofCase.Response) {
|
|
subBuilder.MergeFrom(Response);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
Response = subBuilder;
|
|
break;
|
|
}
|
|
case 26: {
|
|
global::ClientToChatMessage subBuilder = new global::ClientToChatMessage();
|
|
if (msgCase_ == MsgOneofCase.Message) {
|
|
subBuilder.MergeFrom(Message);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
Message = subBuilder;
|
|
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) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
|
break;
|
|
case 10: {
|
|
global::ClientToChatReq subBuilder = new global::ClientToChatReq();
|
|
if (msgCase_ == MsgOneofCase.Request) {
|
|
subBuilder.MergeFrom(Request);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
Request = subBuilder;
|
|
break;
|
|
}
|
|
case 18: {
|
|
global::ClientToChatRes subBuilder = new global::ClientToChatRes();
|
|
if (msgCase_ == MsgOneofCase.Response) {
|
|
subBuilder.MergeFrom(Response);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
Response = subBuilder;
|
|
break;
|
|
}
|
|
case 26: {
|
|
global::ClientToChatMessage subBuilder = new global::ClientToChatMessage();
|
|
if (msgCase_ == MsgOneofCase.Message) {
|
|
subBuilder.MergeFrom(Message);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
Message = subBuilder;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
|
|
#endregion Designer generated code
|