|
|
// <auto-generated>
|
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
|
// source: broadcast.proto
|
|
|
// </auto-generated>
|
|
|
#pragma warning disable 1591, 0612, 3021
|
|
|
#region Designer generated code
|
|
|
|
|
|
using pb = global::Google.Protobuf;
|
|
|
using pbc = global::Google.Protobuf.Collections;
|
|
|
using pbr = global::Google.Protobuf.Reflection;
|
|
|
using scg = global::System.Collections.Generic;
|
|
|
namespace PbClient {
|
|
|
|
|
|
/// <summary>Holder for reflection information generated from broadcast.proto</summary>
|
|
|
public static partial class BroadcastReflection {
|
|
|
|
|
|
#region Descriptor
|
|
|
/// <summary>File descriptor for broadcast.proto</summary>
|
|
|
public static pbr::FileDescriptor Descriptor {
|
|
|
get { return descriptor; }
|
|
|
}
|
|
|
private static pbr::FileDescriptor descriptor;
|
|
|
|
|
|
static BroadcastReflection() {
|
|
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
|
|
string.Concat(
|
|
|
"Cg9icm9hZGNhc3QucHJvdG8SCHBiQ2xpZW50IjYKCFB1c2hVc2VyEgsKA3VJ",
|
|
|
"ZBgBIAEoAxINCgV1bmFtZRgCIAEoCRIOCgZhdmF0YXIYAyABKAkiLAoISm9p",
|
|
|
"bkdhbWUSIAoEdXNlchgBIAEoCzISLnBiQ2xpZW50LlB1c2hVc2VyIjwKCkNy",
|
|
|
"ZWF0ZVVuaXQSIAoEdXNlchgBIAEoCzISLnBiQ2xpZW50LlB1c2hVc2VyEgwK",
|
|
|
"BHVuaXQYAiABKAkiNgoETW92ZRIgCgR1c2VyGAEgASgLMhIucGJDbGllbnQu",
|
|
|
"UHVzaFVzZXISDAoEbGluZRgCIAEoCSIsCghPdXRicmVhaxIgCgR1c2VyGAEg",
|
|
|
"ASgLMhIucGJDbGllbnQuUHVzaFVzZXIifAoER2lmdBIgCgR1c2VyGAEgASgL",
|
|
|
"MhIucGJDbGllbnQuUHVzaFVzZXISDgoGZ2lmdElkGAIgASgDEgsKA251bRgD",
|
|
|
"IAEoAxIQCghnaWZ0TmFtZRgEIAEoCRIRCgl0b3RhbENvaW4YBSABKAMSEAoI",
|
|
|
"c2VuZFRpbWUYBiABKAMiJwoDV2FpEiAKBHVzZXIYASABKAsyEi5wYkNsaWVu",
|
|
|
"dC5QdXNoVXNlciI+CgxCdWlsZGluZ01vZGUSIAoEdXNlchgBIAEoCzISLnBi",
|
|
|
"Q2xpZW50LlB1c2hVc2VyEgwKBG1vZGUYAiABKAkiPwoKRGFubWFrdU1zZxIg",
|
|
|
"CgR1c2VyGAEgASgLMhIucGJDbGllbnQuUHVzaFVzZXISDwoHY29udGVudBgC",
|
|
|
"IAEoCUIJWgcvcGJQdXNoYgZwcm90bzM="));
|
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
|
|
new pbr::FileDescriptor[] { },
|
|
|
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::PbClient.PushUser), global::PbClient.PushUser.Parser, new[]{ "UId", "Uname", "Avatar" }, null, null, null, null),
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::PbClient.JoinGame), global::PbClient.JoinGame.Parser, new[]{ "User" }, null, null, null, null),
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::PbClient.CreateUnit), global::PbClient.CreateUnit.Parser, new[]{ "User", "Unit" }, null, null, null, null),
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::PbClient.Move), global::PbClient.Move.Parser, new[]{ "User", "Line" }, null, null, null, null),
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::PbClient.Outbreak), global::PbClient.Outbreak.Parser, new[]{ "User" }, null, null, null, null),
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::PbClient.Gift), global::PbClient.Gift.Parser, new[]{ "User", "GiftId", "Num", "GiftName", "TotalCoin", "SendTime" }, null, null, null, null),
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::PbClient.Wai), global::PbClient.Wai.Parser, new[]{ "User" }, null, null, null, null),
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::PbClient.BuildingMode), global::PbClient.BuildingMode.Parser, new[]{ "User", "Mode" }, null, null, null, null),
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::PbClient.DanmakuMsg), global::PbClient.DanmakuMsg.Parser, new[]{ "User", "Content" }, null, null, null, null)
|
|
|
}));
|
|
|
}
|
|
|
#endregion
|
|
|
|
|
|
}
|
|
|
#region Messages
|
|
|
public sealed partial class PushUser : pb::IMessage<PushUser>
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
|
, pb::IBufferMessage
|
|
|
#endif
|
|
|
{
|
|
|
private static readonly pb::MessageParser<PushUser> _parser = new pb::MessageParser<PushUser>(() => new PushUser());
|
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public static pb::MessageParser<PushUser> Parser { get { return _parser; } }
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
|
get { return global::PbClient.BroadcastReflection.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 PushUser() {
|
|
|
OnConstruction();
|
|
|
}
|
|
|
|
|
|
partial void OnConstruction();
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public PushUser(PushUser other) : this() {
|
|
|
uId_ = other.uId_;
|
|
|
uname_ = other.uname_;
|
|
|
avatar_ = other.avatar_;
|
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public PushUser Clone() {
|
|
|
return new PushUser(this);
|
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "uId" field.</summary>
|
|
|
public const int UIdFieldNumber = 1;
|
|
|
private long uId_;
|
|
|
/// <summary>
|
|
|
/// 用户id
|
|
|
/// </summary>
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public long UId {
|
|
|
get { return uId_; }
|
|
|
set {
|
|
|
uId_ = value;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "uname" field.</summary>
|
|
|
public const int UnameFieldNumber = 2;
|
|
|
private string uname_ = "";
|
|
|
/// <summary>
|
|
|
/// 用户名
|
|
|
/// </summary>
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public string Uname {
|
|
|
get { return uname_; }
|
|
|
set {
|
|
|
uname_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "avatar" field.</summary>
|
|
|
public const int AvatarFieldNumber = 3;
|
|
|
private string avatar_ = "";
|
|
|
/// <summary>
|
|
|
/// 头像
|
|
|
/// </summary>
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public string Avatar {
|
|
|
get { return avatar_; }
|
|
|
set {
|
|
|
avatar_ = 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 PushUser);
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public bool Equals(PushUser other) {
|
|
|
if (ReferenceEquals(other, null)) {
|
|
|
return false;
|
|
|
}
|
|
|
if (ReferenceEquals(other, this)) {
|
|
|
return true;
|
|
|
}
|
|
|
if (UId != other.UId) return false;
|
|
|
if (Uname != other.Uname) return false;
|
|
|
if (Avatar != other.Avatar) return false;
|
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public override int GetHashCode() {
|
|
|
int hash = 1;
|
|
|
if (UId != 0L) hash ^= UId.GetHashCode();
|
|
|
if (Uname.Length != 0) hash ^= Uname.GetHashCode();
|
|
|
if (Avatar.Length != 0) hash ^= Avatar.GetHashCode();
|
|
|
if (_unknownFields != null) {
|
|
|
hash ^= _unknownFields.GetHashCode();
|
|
|
}
|
|
|
return hash;
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public override string ToString() {
|
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
|
output.WriteRawMessage(this);
|
|
|
#else
|
|
|
if (UId != 0L) {
|
|
|
output.WriteRawTag(8);
|
|
|
output.WriteInt64(UId);
|
|
|
}
|
|
|
if (Uname.Length != 0) {
|
|
|
output.WriteRawTag(18);
|
|
|
output.WriteString(Uname);
|
|
|
}
|
|
|
if (Avatar.Length != 0) {
|
|
|
output.WriteRawTag(26);
|
|
|
output.WriteString(Avatar);
|
|
|
}
|
|
|
if (_unknownFields != null) {
|
|
|
_unknownFields.WriteTo(output);
|
|
|
}
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
|
|
if (UId != 0L) {
|
|
|
output.WriteRawTag(8);
|
|
|
output.WriteInt64(UId);
|
|
|
}
|
|
|
if (Uname.Length != 0) {
|
|
|
output.WriteRawTag(18);
|
|
|
output.WriteString(Uname);
|
|
|
}
|
|
|
if (Avatar.Length != 0) {
|
|
|
output.WriteRawTag(26);
|
|
|
output.WriteString(Avatar);
|
|
|
}
|
|
|
if (_unknownFields != null) {
|
|
|
_unknownFields.WriteTo(ref output);
|
|
|
}
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public int CalculateSize() {
|
|
|
int size = 0;
|
|
|
if (UId != 0L) {
|
|
|
size += 1 + pb::CodedOutputStream.ComputeInt64Size(UId);
|
|
|
}
|
|
|
if (Uname.Length != 0) {
|
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Uname);
|
|
|
}
|
|
|
if (Avatar.Length != 0) {
|
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Avatar);
|
|
|
}
|
|
|
if (_unknownFields != null) {
|
|
|
size += _unknownFields.CalculateSize();
|
|
|
}
|
|
|
return size;
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public void MergeFrom(PushUser other) {
|
|
|
if (other == null) {
|
|
|
return;
|
|
|
}
|
|
|
if (other.UId != 0L) {
|
|
|
UId = other.UId;
|
|
|
}
|
|
|
if (other.Uname.Length != 0) {
|
|
|
Uname = other.Uname;
|
|
|
}
|
|
|
if (other.Avatar.Length != 0) {
|
|
|
Avatar = other.Avatar;
|
|
|
}
|
|
|
_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: {
|
|
|
UId = input.ReadInt64();
|
|
|
break;
|
|
|
}
|
|
|
case 18: {
|
|
|
Uname = input.ReadString();
|
|
|
break;
|
|
|
}
|
|
|
case 26: {
|
|
|
Avatar = 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 8: {
|
|
|
UId = input.ReadInt64();
|
|
|
break;
|
|
|
}
|
|
|
case 18: {
|
|
|
Uname = input.ReadString();
|
|
|
break;
|
|
|
}
|
|
|
case 26: {
|
|
|
Avatar = input.ReadString();
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
}
|
|
|
|
|
|
public sealed partial class JoinGame : pb::IMessage<JoinGame>
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
|
, pb::IBufferMessage
|
|
|
#endif
|
|
|
{
|
|
|
private static readonly pb::MessageParser<JoinGame> _parser = new pb::MessageParser<JoinGame>(() => new JoinGame());
|
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public static pb::MessageParser<JoinGame> Parser { get { return _parser; } }
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
|
get { return global::PbClient.BroadcastReflection.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 JoinGame() {
|
|
|
OnConstruction();
|
|
|
}
|
|
|
|
|
|
partial void OnConstruction();
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public JoinGame(JoinGame other) : this() {
|
|
|
user_ = other.user_ != null ? other.user_.Clone() : null;
|
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public JoinGame Clone() {
|
|
|
return new JoinGame(this);
|
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "user" field.</summary>
|
|
|
public const int UserFieldNumber = 1;
|
|
|
private global::PbClient.PushUser user_;
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public global::PbClient.PushUser User {
|
|
|
get { return user_; }
|
|
|
set {
|
|
|
user_ = value;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public override bool Equals(object other) {
|
|
|
return Equals(other as JoinGame);
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public bool Equals(JoinGame other) {
|
|
|
if (ReferenceEquals(other, null)) {
|
|
|
return false;
|
|
|
}
|
|
|
if (ReferenceEquals(other, this)) {
|
|
|
return true;
|
|
|
}
|
|
|
if (!object.Equals(User, other.User)) 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 (user_ != null) hash ^= User.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 (user_ != null) {
|
|
|
output.WriteRawTag(10);
|
|
|
output.WriteMessage(User);
|
|
|
}
|
|
|
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 (user_ != null) {
|
|
|
output.WriteRawTag(10);
|
|
|
output.WriteMessage(User);
|
|
|
}
|
|
|
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 (user_ != null) {
|
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(User);
|
|
|
}
|
|
|
if (_unknownFields != null) {
|
|
|
size += _unknownFields.CalculateSize();
|
|
|
}
|
|
|
return size;
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public void MergeFrom(JoinGame other) {
|
|
|
if (other == null) {
|
|
|
return;
|
|
|
}
|
|
|
if (other.user_ != null) {
|
|
|
if (user_ == null) {
|
|
|
User = new global::PbClient.PushUser();
|
|
|
}
|
|
|
User.MergeFrom(other.User);
|
|
|
}
|
|
|
_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: {
|
|
|
if (user_ == null) {
|
|
|
User = new global::PbClient.PushUser();
|
|
|
}
|
|
|
input.ReadMessage(User);
|
|
|
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: {
|
|
|
if (user_ == null) {
|
|
|
User = new global::PbClient.PushUser();
|
|
|
}
|
|
|
input.ReadMessage(User);
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
}
|
|
|
|
|
|
public sealed partial class CreateUnit : pb::IMessage<CreateUnit>
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
|
, pb::IBufferMessage
|
|
|
#endif
|
|
|
{
|
|
|
private static readonly pb::MessageParser<CreateUnit> _parser = new pb::MessageParser<CreateUnit>(() => new CreateUnit());
|
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public static pb::MessageParser<CreateUnit> Parser { get { return _parser; } }
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
|
get { return global::PbClient.BroadcastReflection.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 CreateUnit() {
|
|
|
OnConstruction();
|
|
|
}
|
|
|
|
|
|
partial void OnConstruction();
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public CreateUnit(CreateUnit other) : this() {
|
|
|
user_ = other.user_ != null ? other.user_.Clone() : null;
|
|
|
unit_ = other.unit_;
|
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public CreateUnit Clone() {
|
|
|
return new CreateUnit(this);
|
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "user" field.</summary>
|
|
|
public const int UserFieldNumber = 1;
|
|
|
private global::PbClient.PushUser user_;
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public global::PbClient.PushUser User {
|
|
|
get { return user_; }
|
|
|
set {
|
|
|
user_ = value;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "unit" field.</summary>
|
|
|
public const int UnitFieldNumber = 2;
|
|
|
private string unit_ = "";
|
|
|
/// <summary>
|
|
|
///1-步兵,2-骑兵,3-弓箭手,4-法师
|
|
|
/// </summary>
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public string Unit {
|
|
|
get { return unit_; }
|
|
|
set {
|
|
|
unit_ = 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 CreateUnit);
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public bool Equals(CreateUnit other) {
|
|
|
if (ReferenceEquals(other, null)) {
|
|
|
return false;
|
|
|
}
|
|
|
if (ReferenceEquals(other, this)) {
|
|
|
return true;
|
|
|
}
|
|
|
if (!object.Equals(User, other.User)) return false;
|
|
|
if (Unit != other.Unit) 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 (user_ != null) hash ^= User.GetHashCode();
|
|
|
if (Unit.Length != 0) hash ^= Unit.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 (user_ != null) {
|
|
|
output.WriteRawTag(10);
|
|
|
output.WriteMessage(User);
|
|
|
}
|
|
|
if (Unit.Length != 0) {
|
|
|
output.WriteRawTag(18);
|
|
|
output.WriteString(Unit);
|
|
|
}
|
|
|
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 (user_ != null) {
|
|
|
output.WriteRawTag(10);
|
|
|
output.WriteMessage(User);
|
|
|
}
|
|
|
if (Unit.Length != 0) {
|
|
|
output.WriteRawTag(18);
|
|
|
output.WriteString(Unit);
|
|
|
}
|
|
|
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 (user_ != null) {
|
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(User);
|
|
|
}
|
|
|
if (Unit.Length != 0) {
|
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Unit);
|
|
|
}
|
|
|
if (_unknownFields != null) {
|
|
|
size += _unknownFields.CalculateSize();
|
|
|
}
|
|
|
return size;
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public void MergeFrom(CreateUnit other) {
|
|
|
if (other == null) {
|
|
|
return;
|
|
|
}
|
|
|
if (other.user_ != null) {
|
|
|
if (user_ == null) {
|
|
|
User = new global::PbClient.PushUser();
|
|
|
}
|
|
|
User.MergeFrom(other.User);
|
|
|
}
|
|
|
if (other.Unit.Length != 0) {
|
|
|
Unit = other.Unit;
|
|
|
}
|
|
|
_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: {
|
|
|
if (user_ == null) {
|
|
|
User = new global::PbClient.PushUser();
|
|
|
}
|
|
|
input.ReadMessage(User);
|
|
|
break;
|
|
|
}
|
|
|
case 18: {
|
|
|
Unit = 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: {
|
|
|
if (user_ == null) {
|
|
|
User = new global::PbClient.PushUser();
|
|
|
}
|
|
|
input.ReadMessage(User);
|
|
|
break;
|
|
|
}
|
|
|
case 18: {
|
|
|
Unit = input.ReadString();
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
}
|
|
|
|
|
|
public sealed partial class Move : pb::IMessage<Move>
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
|
, pb::IBufferMessage
|
|
|
#endif
|
|
|
{
|
|
|
private static readonly pb::MessageParser<Move> _parser = new pb::MessageParser<Move>(() => new Move());
|
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public static pb::MessageParser<Move> Parser { get { return _parser; } }
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
|
get { return global::PbClient.BroadcastReflection.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 Move() {
|
|
|
OnConstruction();
|
|
|
}
|
|
|
|
|
|
partial void OnConstruction();
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public Move(Move other) : this() {
|
|
|
user_ = other.user_ != null ? other.user_.Clone() : null;
|
|
|
line_ = other.line_;
|
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public Move Clone() {
|
|
|
return new Move(this);
|
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "user" field.</summary>
|
|
|
public const int UserFieldNumber = 1;
|
|
|
private global::PbClient.PushUser user_;
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public global::PbClient.PushUser User {
|
|
|
get { return user_; }
|
|
|
set {
|
|
|
user_ = value;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "line" field.</summary>
|
|
|
public const int LineFieldNumber = 2;
|
|
|
private string line_ = "";
|
|
|
/// <summary>
|
|
|
///1-上,2-中,3-下
|
|
|
/// </summary>
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public string Line {
|
|
|
get { return line_; }
|
|
|
set {
|
|
|
line_ = 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 Move);
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public bool Equals(Move other) {
|
|
|
if (ReferenceEquals(other, null)) {
|
|
|
return false;
|
|
|
}
|
|
|
if (ReferenceEquals(other, this)) {
|
|
|
return true;
|
|
|
}
|
|
|
if (!object.Equals(User, other.User)) return false;
|
|
|
if (Line != other.Line) 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 (user_ != null) hash ^= User.GetHashCode();
|
|
|
if (Line.Length != 0) hash ^= Line.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 (user_ != null) {
|
|
|
output.WriteRawTag(10);
|
|
|
output.WriteMessage(User);
|
|
|
}
|
|
|
if (Line.Length != 0) {
|
|
|
output.WriteRawTag(18);
|
|
|
output.WriteString(Line);
|
|
|
}
|
|
|
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 (user_ != null) {
|
|
|
output.WriteRawTag(10);
|
|
|
output.WriteMessage(User);
|
|
|
}
|
|
|
if (Line.Length != 0) {
|
|
|
output.WriteRawTag(18);
|
|
|
output.WriteString(Line);
|
|
|
}
|
|
|
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 (user_ != null) {
|
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(User);
|
|
|
}
|
|
|
if (Line.Length != 0) {
|
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Line);
|
|
|
}
|
|
|
if (_unknownFields != null) {
|
|
|
size += _unknownFields.CalculateSize();
|
|
|
}
|
|
|
return size;
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public void MergeFrom(Move other) {
|
|
|
if (other == null) {
|
|
|
return;
|
|
|
}
|
|
|
if (other.user_ != null) {
|
|
|
if (user_ == null) {
|
|
|
User = new global::PbClient.PushUser();
|
|
|
}
|
|
|
User.MergeFrom(other.User);
|
|
|
}
|
|
|
if (other.Line.Length != 0) {
|
|
|
Line = other.Line;
|
|
|
}
|
|
|
_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: {
|
|
|
if (user_ == null) {
|
|
|
User = new global::PbClient.PushUser();
|
|
|
}
|
|
|
input.ReadMessage(User);
|
|
|
break;
|
|
|
}
|
|
|
case 18: {
|
|
|
Line = 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: {
|
|
|
if (user_ == null) {
|
|
|
User = new global::PbClient.PushUser();
|
|
|
}
|
|
|
input.ReadMessage(User);
|
|
|
break;
|
|
|
}
|
|
|
case 18: {
|
|
|
Line = input.ReadString();
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
}
|
|
|
|
|
|
public sealed partial class Outbreak : pb::IMessage<Outbreak>
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
|
, pb::IBufferMessage
|
|
|
#endif
|
|
|
{
|
|
|
private static readonly pb::MessageParser<Outbreak> _parser = new pb::MessageParser<Outbreak>(() => new Outbreak());
|
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public static pb::MessageParser<Outbreak> Parser { get { return _parser; } }
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
|
get { return global::PbClient.BroadcastReflection.Descriptor.MessageTypes[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 Outbreak() {
|
|
|
OnConstruction();
|
|
|
}
|
|
|
|
|
|
partial void OnConstruction();
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public Outbreak(Outbreak other) : this() {
|
|
|
user_ = other.user_ != null ? other.user_.Clone() : null;
|
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public Outbreak Clone() {
|
|
|
return new Outbreak(this);
|
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "user" field.</summary>
|
|
|
public const int UserFieldNumber = 1;
|
|
|
private global::PbClient.PushUser user_;
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public global::PbClient.PushUser User {
|
|
|
get { return user_; }
|
|
|
set {
|
|
|
user_ = value;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public override bool Equals(object other) {
|
|
|
return Equals(other as Outbreak);
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public bool Equals(Outbreak other) {
|
|
|
if (ReferenceEquals(other, null)) {
|
|
|
return false;
|
|
|
}
|
|
|
if (ReferenceEquals(other, this)) {
|
|
|
return true;
|
|
|
}
|
|
|
if (!object.Equals(User, other.User)) 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 (user_ != null) hash ^= User.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 (user_ != null) {
|
|
|
output.WriteRawTag(10);
|
|
|
output.WriteMessage(User);
|
|
|
}
|
|
|
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 (user_ != null) {
|
|
|
output.WriteRawTag(10);
|
|
|
output.WriteMessage(User);
|
|
|
}
|
|
|
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 (user_ != null) {
|
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(User);
|
|
|
}
|
|
|
if (_unknownFields != null) {
|
|
|
size += _unknownFields.CalculateSize();
|
|
|
}
|
|
|
return size;
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public void MergeFrom(Outbreak other) {
|
|
|
if (other == null) {
|
|
|
return;
|
|
|
}
|
|
|
if (other.user_ != null) {
|
|
|
if (user_ == null) {
|
|
|
User = new global::PbClient.PushUser();
|
|
|
}
|
|
|
User.MergeFrom(other.User);
|
|
|
}
|
|
|
_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: {
|
|
|
if (user_ == null) {
|
|
|
User = new global::PbClient.PushUser();
|
|
|
}
|
|
|
input.ReadMessage(User);
|
|
|
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: {
|
|
|
if (user_ == null) {
|
|
|
User = new global::PbClient.PushUser();
|
|
|
}
|
|
|
input.ReadMessage(User);
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
}
|
|
|
|
|
|
public sealed partial class Gift : pb::IMessage<Gift>
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
|
, pb::IBufferMessage
|
|
|
#endif
|
|
|
{
|
|
|
private static readonly pb::MessageParser<Gift> _parser = new pb::MessageParser<Gift>(() => new Gift());
|
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public static pb::MessageParser<Gift> Parser { get { return _parser; } }
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
|
get { return global::PbClient.BroadcastReflection.Descriptor.MessageTypes[5]; }
|
|
|
}
|
|
|
|
|
|
[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 Gift() {
|
|
|
OnConstruction();
|
|
|
}
|
|
|
|
|
|
partial void OnConstruction();
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public Gift(Gift other) : this() {
|
|
|
user_ = other.user_ != null ? other.user_.Clone() : null;
|
|
|
giftId_ = other.giftId_;
|
|
|
num_ = other.num_;
|
|
|
giftName_ = other.giftName_;
|
|
|
totalCoin_ = other.totalCoin_;
|
|
|
sendTime_ = other.sendTime_;
|
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public Gift Clone() {
|
|
|
return new Gift(this);
|
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "user" field.</summary>
|
|
|
public const int UserFieldNumber = 1;
|
|
|
private global::PbClient.PushUser user_;
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public global::PbClient.PushUser User {
|
|
|
get { return user_; }
|
|
|
set {
|
|
|
user_ = value;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "giftId" field.</summary>
|
|
|
public const int GiftIdFieldNumber = 2;
|
|
|
private long giftId_;
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public long GiftId {
|
|
|
get { return giftId_; }
|
|
|
set {
|
|
|
giftId_ = value;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "num" field.</summary>
|
|
|
public const int NumFieldNumber = 3;
|
|
|
private long num_;
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public long Num {
|
|
|
get { return num_; }
|
|
|
set {
|
|
|
num_ = value;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "giftName" field.</summary>
|
|
|
public const int GiftNameFieldNumber = 4;
|
|
|
private string giftName_ = "";
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public string GiftName {
|
|
|
get { return giftName_; }
|
|
|
set {
|
|
|
giftName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "totalCoin" field.</summary>
|
|
|
public const int TotalCoinFieldNumber = 5;
|
|
|
private long totalCoin_;
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public long TotalCoin {
|
|
|
get { return totalCoin_; }
|
|
|
set {
|
|
|
totalCoin_ = value;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "sendTime" field.</summary>
|
|
|
public const int SendTimeFieldNumber = 6;
|
|
|
private long sendTime_;
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public long SendTime {
|
|
|
get { return sendTime_; }
|
|
|
set {
|
|
|
sendTime_ = value;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public override bool Equals(object other) {
|
|
|
return Equals(other as Gift);
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public bool Equals(Gift other) {
|
|
|
if (ReferenceEquals(other, null)) {
|
|
|
return false;
|
|
|
}
|
|
|
if (ReferenceEquals(other, this)) {
|
|
|
return true;
|
|
|
}
|
|
|
if (!object.Equals(User, other.User)) return false;
|
|
|
if (GiftId != other.GiftId) return false;
|
|
|
if (Num != other.Num) return false;
|
|
|
if (GiftName != other.GiftName) return false;
|
|
|
if (TotalCoin != other.TotalCoin) return false;
|
|
|
if (SendTime != other.SendTime) 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 (user_ != null) hash ^= User.GetHashCode();
|
|
|
if (GiftId != 0L) hash ^= GiftId.GetHashCode();
|
|
|
if (Num != 0L) hash ^= Num.GetHashCode();
|
|
|
if (GiftName.Length != 0) hash ^= GiftName.GetHashCode();
|
|
|
if (TotalCoin != 0L) hash ^= TotalCoin.GetHashCode();
|
|
|
if (SendTime != 0L) hash ^= SendTime.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 (user_ != null) {
|
|
|
output.WriteRawTag(10);
|
|
|
output.WriteMessage(User);
|
|
|
}
|
|
|
if (GiftId != 0L) {
|
|
|
output.WriteRawTag(16);
|
|
|
output.WriteInt64(GiftId);
|
|
|
}
|
|
|
if (Num != 0L) {
|
|
|
output.WriteRawTag(24);
|
|
|
output.WriteInt64(Num);
|
|
|
}
|
|
|
if (GiftName.Length != 0) {
|
|
|
output.WriteRawTag(34);
|
|
|
output.WriteString(GiftName);
|
|
|
}
|
|
|
if (TotalCoin != 0L) {
|
|
|
output.WriteRawTag(40);
|
|
|
output.WriteInt64(TotalCoin);
|
|
|
}
|
|
|
if (SendTime != 0L) {
|
|
|
output.WriteRawTag(48);
|
|
|
output.WriteInt64(SendTime);
|
|
|
}
|
|
|
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 (user_ != null) {
|
|
|
output.WriteRawTag(10);
|
|
|
output.WriteMessage(User);
|
|
|
}
|
|
|
if (GiftId != 0L) {
|
|
|
output.WriteRawTag(16);
|
|
|
output.WriteInt64(GiftId);
|
|
|
}
|
|
|
if (Num != 0L) {
|
|
|
output.WriteRawTag(24);
|
|
|
output.WriteInt64(Num);
|
|
|
}
|
|
|
if (GiftName.Length != 0) {
|
|
|
output.WriteRawTag(34);
|
|
|
output.WriteString(GiftName);
|
|
|
}
|
|
|
if (TotalCoin != 0L) {
|
|
|
output.WriteRawTag(40);
|
|
|
output.WriteInt64(TotalCoin);
|
|
|
}
|
|
|
if (SendTime != 0L) {
|
|
|
output.WriteRawTag(48);
|
|
|
output.WriteInt64(SendTime);
|
|
|
}
|
|
|
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 (user_ != null) {
|
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(User);
|
|
|
}
|
|
|
if (GiftId != 0L) {
|
|
|
size += 1 + pb::CodedOutputStream.ComputeInt64Size(GiftId);
|
|
|
}
|
|
|
if (Num != 0L) {
|
|
|
size += 1 + pb::CodedOutputStream.ComputeInt64Size(Num);
|
|
|
}
|
|
|
if (GiftName.Length != 0) {
|
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(GiftName);
|
|
|
}
|
|
|
if (TotalCoin != 0L) {
|
|
|
size += 1 + pb::CodedOutputStream.ComputeInt64Size(TotalCoin);
|
|
|
}
|
|
|
if (SendTime != 0L) {
|
|
|
size += 1 + pb::CodedOutputStream.ComputeInt64Size(SendTime);
|
|
|
}
|
|
|
if (_unknownFields != null) {
|
|
|
size += _unknownFields.CalculateSize();
|
|
|
}
|
|
|
return size;
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public void MergeFrom(Gift other) {
|
|
|
if (other == null) {
|
|
|
return;
|
|
|
}
|
|
|
if (other.user_ != null) {
|
|
|
if (user_ == null) {
|
|
|
User = new global::PbClient.PushUser();
|
|
|
}
|
|
|
User.MergeFrom(other.User);
|
|
|
}
|
|
|
if (other.GiftId != 0L) {
|
|
|
GiftId = other.GiftId;
|
|
|
}
|
|
|
if (other.Num != 0L) {
|
|
|
Num = other.Num;
|
|
|
}
|
|
|
if (other.GiftName.Length != 0) {
|
|
|
GiftName = other.GiftName;
|
|
|
}
|
|
|
if (other.TotalCoin != 0L) {
|
|
|
TotalCoin = other.TotalCoin;
|
|
|
}
|
|
|
if (other.SendTime != 0L) {
|
|
|
SendTime = other.SendTime;
|
|
|
}
|
|
|
_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: {
|
|
|
if (user_ == null) {
|
|
|
User = new global::PbClient.PushUser();
|
|
|
}
|
|
|
input.ReadMessage(User);
|
|
|
break;
|
|
|
}
|
|
|
case 16: {
|
|
|
GiftId = input.ReadInt64();
|
|
|
break;
|
|
|
}
|
|
|
case 24: {
|
|
|
Num = input.ReadInt64();
|
|
|
break;
|
|
|
}
|
|
|
case 34: {
|
|
|
GiftName = input.ReadString();
|
|
|
break;
|
|
|
}
|
|
|
case 40: {
|
|
|
TotalCoin = input.ReadInt64();
|
|
|
break;
|
|
|
}
|
|
|
case 48: {
|
|
|
SendTime = 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: {
|
|
|
if (user_ == null) {
|
|
|
User = new global::PbClient.PushUser();
|
|
|
}
|
|
|
input.ReadMessage(User);
|
|
|
break;
|
|
|
}
|
|
|
case 16: {
|
|
|
GiftId = input.ReadInt64();
|
|
|
break;
|
|
|
}
|
|
|
case 24: {
|
|
|
Num = input.ReadInt64();
|
|
|
break;
|
|
|
}
|
|
|
case 34: {
|
|
|
GiftName = input.ReadString();
|
|
|
break;
|
|
|
}
|
|
|
case 40: {
|
|
|
TotalCoin = input.ReadInt64();
|
|
|
break;
|
|
|
}
|
|
|
case 48: {
|
|
|
SendTime = input.ReadInt64();
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
}
|
|
|
|
|
|
public sealed partial class Wai : pb::IMessage<Wai>
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
|
, pb::IBufferMessage
|
|
|
#endif
|
|
|
{
|
|
|
private static readonly pb::MessageParser<Wai> _parser = new pb::MessageParser<Wai>(() => new Wai());
|
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public static pb::MessageParser<Wai> Parser { get { return _parser; } }
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
|
get { return global::PbClient.BroadcastReflection.Descriptor.MessageTypes[6]; }
|
|
|
}
|
|
|
|
|
|
[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 Wai() {
|
|
|
OnConstruction();
|
|
|
}
|
|
|
|
|
|
partial void OnConstruction();
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public Wai(Wai other) : this() {
|
|
|
user_ = other.user_ != null ? other.user_.Clone() : null;
|
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public Wai Clone() {
|
|
|
return new Wai(this);
|
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "user" field.</summary>
|
|
|
public const int UserFieldNumber = 1;
|
|
|
private global::PbClient.PushUser user_;
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public global::PbClient.PushUser User {
|
|
|
get { return user_; }
|
|
|
set {
|
|
|
user_ = value;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public override bool Equals(object other) {
|
|
|
return Equals(other as Wai);
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public bool Equals(Wai other) {
|
|
|
if (ReferenceEquals(other, null)) {
|
|
|
return false;
|
|
|
}
|
|
|
if (ReferenceEquals(other, this)) {
|
|
|
return true;
|
|
|
}
|
|
|
if (!object.Equals(User, other.User)) 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 (user_ != null) hash ^= User.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 (user_ != null) {
|
|
|
output.WriteRawTag(10);
|
|
|
output.WriteMessage(User);
|
|
|
}
|
|
|
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 (user_ != null) {
|
|
|
output.WriteRawTag(10);
|
|
|
output.WriteMessage(User);
|
|
|
}
|
|
|
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 (user_ != null) {
|
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(User);
|
|
|
}
|
|
|
if (_unknownFields != null) {
|
|
|
size += _unknownFields.CalculateSize();
|
|
|
}
|
|
|
return size;
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public void MergeFrom(Wai other) {
|
|
|
if (other == null) {
|
|
|
return;
|
|
|
}
|
|
|
if (other.user_ != null) {
|
|
|
if (user_ == null) {
|
|
|
User = new global::PbClient.PushUser();
|
|
|
}
|
|
|
User.MergeFrom(other.User);
|
|
|
}
|
|
|
_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: {
|
|
|
if (user_ == null) {
|
|
|
User = new global::PbClient.PushUser();
|
|
|
}
|
|
|
input.ReadMessage(User);
|
|
|
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: {
|
|
|
if (user_ == null) {
|
|
|
User = new global::PbClient.PushUser();
|
|
|
}
|
|
|
input.ReadMessage(User);
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
}
|
|
|
|
|
|
public sealed partial class BuildingMode : pb::IMessage<BuildingMode>
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
|
, pb::IBufferMessage
|
|
|
#endif
|
|
|
{
|
|
|
private static readonly pb::MessageParser<BuildingMode> _parser = new pb::MessageParser<BuildingMode>(() => new BuildingMode());
|
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public static pb::MessageParser<BuildingMode> Parser { get { return _parser; } }
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
|
get { return global::PbClient.BroadcastReflection.Descriptor.MessageTypes[7]; }
|
|
|
}
|
|
|
|
|
|
[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 BuildingMode() {
|
|
|
OnConstruction();
|
|
|
}
|
|
|
|
|
|
partial void OnConstruction();
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public BuildingMode(BuildingMode other) : this() {
|
|
|
user_ = other.user_ != null ? other.user_.Clone() : null;
|
|
|
mode_ = other.mode_;
|
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public BuildingMode Clone() {
|
|
|
return new BuildingMode(this);
|
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "user" field.</summary>
|
|
|
public const int UserFieldNumber = 1;
|
|
|
private global::PbClient.PushUser user_;
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public global::PbClient.PushUser User {
|
|
|
get { return user_; }
|
|
|
set {
|
|
|
user_ = value;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "mode" field.</summary>
|
|
|
public const int ModeFieldNumber = 2;
|
|
|
private string mode_ = "";
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public string Mode {
|
|
|
get { return mode_; }
|
|
|
set {
|
|
|
mode_ = 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 BuildingMode);
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public bool Equals(BuildingMode other) {
|
|
|
if (ReferenceEquals(other, null)) {
|
|
|
return false;
|
|
|
}
|
|
|
if (ReferenceEquals(other, this)) {
|
|
|
return true;
|
|
|
}
|
|
|
if (!object.Equals(User, other.User)) return false;
|
|
|
if (Mode != other.Mode) 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 (user_ != null) hash ^= User.GetHashCode();
|
|
|
if (Mode.Length != 0) hash ^= Mode.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 (user_ != null) {
|
|
|
output.WriteRawTag(10);
|
|
|
output.WriteMessage(User);
|
|
|
}
|
|
|
if (Mode.Length != 0) {
|
|
|
output.WriteRawTag(18);
|
|
|
output.WriteString(Mode);
|
|
|
}
|
|
|
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 (user_ != null) {
|
|
|
output.WriteRawTag(10);
|
|
|
output.WriteMessage(User);
|
|
|
}
|
|
|
if (Mode.Length != 0) {
|
|
|
output.WriteRawTag(18);
|
|
|
output.WriteString(Mode);
|
|
|
}
|
|
|
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 (user_ != null) {
|
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(User);
|
|
|
}
|
|
|
if (Mode.Length != 0) {
|
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Mode);
|
|
|
}
|
|
|
if (_unknownFields != null) {
|
|
|
size += _unknownFields.CalculateSize();
|
|
|
}
|
|
|
return size;
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public void MergeFrom(BuildingMode other) {
|
|
|
if (other == null) {
|
|
|
return;
|
|
|
}
|
|
|
if (other.user_ != null) {
|
|
|
if (user_ == null) {
|
|
|
User = new global::PbClient.PushUser();
|
|
|
}
|
|
|
User.MergeFrom(other.User);
|
|
|
}
|
|
|
if (other.Mode.Length != 0) {
|
|
|
Mode = other.Mode;
|
|
|
}
|
|
|
_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: {
|
|
|
if (user_ == null) {
|
|
|
User = new global::PbClient.PushUser();
|
|
|
}
|
|
|
input.ReadMessage(User);
|
|
|
break;
|
|
|
}
|
|
|
case 18: {
|
|
|
Mode = 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: {
|
|
|
if (user_ == null) {
|
|
|
User = new global::PbClient.PushUser();
|
|
|
}
|
|
|
input.ReadMessage(User);
|
|
|
break;
|
|
|
}
|
|
|
case 18: {
|
|
|
Mode = input.ReadString();
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
}
|
|
|
|
|
|
public sealed partial class DanmakuMsg : pb::IMessage<DanmakuMsg>
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
|
, pb::IBufferMessage
|
|
|
#endif
|
|
|
{
|
|
|
private static readonly pb::MessageParser<DanmakuMsg> _parser = new pb::MessageParser<DanmakuMsg>(() => new DanmakuMsg());
|
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public static pb::MessageParser<DanmakuMsg> Parser { get { return _parser; } }
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
|
get { return global::PbClient.BroadcastReflection.Descriptor.MessageTypes[8]; }
|
|
|
}
|
|
|
|
|
|
[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 DanmakuMsg() {
|
|
|
OnConstruction();
|
|
|
}
|
|
|
|
|
|
partial void OnConstruction();
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public DanmakuMsg(DanmakuMsg other) : this() {
|
|
|
user_ = other.user_ != null ? other.user_.Clone() : null;
|
|
|
content_ = other.content_;
|
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public DanmakuMsg Clone() {
|
|
|
return new DanmakuMsg(this);
|
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "user" field.</summary>
|
|
|
public const int UserFieldNumber = 1;
|
|
|
private global::PbClient.PushUser user_;
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public global::PbClient.PushUser User {
|
|
|
get { return user_; }
|
|
|
set {
|
|
|
user_ = value;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "content" field.</summary>
|
|
|
public const int ContentFieldNumber = 2;
|
|
|
private string content_ = "";
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public string Content {
|
|
|
get { return content_; }
|
|
|
set {
|
|
|
content_ = 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 DanmakuMsg);
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public bool Equals(DanmakuMsg other) {
|
|
|
if (ReferenceEquals(other, null)) {
|
|
|
return false;
|
|
|
}
|
|
|
if (ReferenceEquals(other, this)) {
|
|
|
return true;
|
|
|
}
|
|
|
if (!object.Equals(User, other.User)) return false;
|
|
|
if (Content != other.Content) 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 (user_ != null) hash ^= User.GetHashCode();
|
|
|
if (Content.Length != 0) hash ^= Content.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 (user_ != null) {
|
|
|
output.WriteRawTag(10);
|
|
|
output.WriteMessage(User);
|
|
|
}
|
|
|
if (Content.Length != 0) {
|
|
|
output.WriteRawTag(18);
|
|
|
output.WriteString(Content);
|
|
|
}
|
|
|
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 (user_ != null) {
|
|
|
output.WriteRawTag(10);
|
|
|
output.WriteMessage(User);
|
|
|
}
|
|
|
if (Content.Length != 0) {
|
|
|
output.WriteRawTag(18);
|
|
|
output.WriteString(Content);
|
|
|
}
|
|
|
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 (user_ != null) {
|
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(User);
|
|
|
}
|
|
|
if (Content.Length != 0) {
|
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Content);
|
|
|
}
|
|
|
if (_unknownFields != null) {
|
|
|
size += _unknownFields.CalculateSize();
|
|
|
}
|
|
|
return size;
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public void MergeFrom(DanmakuMsg other) {
|
|
|
if (other == null) {
|
|
|
return;
|
|
|
}
|
|
|
if (other.user_ != null) {
|
|
|
if (user_ == null) {
|
|
|
User = new global::PbClient.PushUser();
|
|
|
}
|
|
|
User.MergeFrom(other.User);
|
|
|
}
|
|
|
if (other.Content.Length != 0) {
|
|
|
Content = other.Content;
|
|
|
}
|
|
|
_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: {
|
|
|
if (user_ == null) {
|
|
|
User = new global::PbClient.PushUser();
|
|
|
}
|
|
|
input.ReadMessage(User);
|
|
|
break;
|
|
|
}
|
|
|
case 18: {
|
|
|
Content = 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: {
|
|
|
if (user_ == null) {
|
|
|
User = new global::PbClient.PushUser();
|
|
|
}
|
|
|
input.ReadMessage(User);
|
|
|
break;
|
|
|
}
|
|
|
case 18: {
|
|
|
Content = input.ReadString();
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
}
|
|
|
|
|
|
#endregion Designer generated code
|