|
|
// <auto-generated>
|
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
|
// source: game/zhg/command.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 Pb.Game.Zhg {
|
|
|
|
|
|
/// <summary>Holder for reflection information generated from game/zhg/command.proto</summary>
|
|
|
public static partial class CommandReflection {
|
|
|
|
|
|
#region Descriptor
|
|
|
/// <summary>File descriptor for game/zhg/command.proto</summary>
|
|
|
public static pbr::FileDescriptor Descriptor {
|
|
|
get { return descriptor; }
|
|
|
}
|
|
|
private static pbr::FileDescriptor descriptor;
|
|
|
|
|
|
static CommandReflection() {
|
|
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
|
|
string.Concat(
|
|
|
"ChZnYW1lL3poZy9jb21tYW5kLnByb3RvEgtwYi5nYW1lLnpoZxoTY29tbW9u",
|
|
|
"L2NvbW1vbi5wcm90byJHCgVHcmFkZRINCgVncmFkZRgBIAEoBRINCgVsZXZl",
|
|
|
"bBgCIAEoBRIMCgRzdGFyGAMgASgFEhIKCmJyYXZlUG9pbnQYBCABKAMizQEK",
|
|
|
"CEpvaW5HYW1lEh8KBHVzZXIYASABKAsyES5wYi5jb21tb24uUGJVc2VyEhUK",
|
|
|
"DW5vYmlsaXR5TGV2ZWwYAiABKAUSDAoEY29pbhgDIAEoAxIhCgVncmFkZRgE",
|
|
|
"IAEoCzISLnBiLmdhbWUuemhnLkdyYWRlEioKDGN1cnJlbnRUaXRsZRgKIAEo",
|
|
|
"CzIULnBiLmNvbW1vbi5UaXRsZUl0ZW0SLAoMY3VycmVudEVsaXRlGAsgASgL",
|
|
|
"MhYucGIuZ2FtZS56aGcuRWxpdGVJdGVtIjsKCkNyZWF0ZVVuaXQSHwoEdXNl",
|
|
|
"chgBIAEoCzIRLnBiLmNvbW1vbi5QYlVzZXISDAoEdW5pdBgCIAEoCSI1CgRN",
|
|
|
"b3ZlEh8KBHVzZXIYASABKAsyES5wYi5jb21tb24uUGJVc2VyEgwKBGxpbmUY",
|
|
|
"AiABKAkiKwoIT3V0YnJlYWsSHwoEdXNlchgBIAEoCzIRLnBiLmNvbW1vbi5Q",
|
|
|
"YlVzZXIiXgoMT3V0YnJlYWtGb29kEh8KBHVzZXIYASABKAsyES5wYi5jb21t",
|
|
|
"b24uUGJVc2VyEhAKCHVuaXRUeXBlGAIgASgJEg0KBWNvdW50GAMgASgFEgwK",
|
|
|
"BGNvc3QYBCABKAMiJgoDV2FpEh8KBHVzZXIYASABKAsyES5wYi5jb21tb24u",
|
|
|
"UGJVc2VyIj0KDEJ1aWxkaW5nTW9kZRIfCgR1c2VyGAEgASgLMhEucGIuY29t",
|
|
|
"bW9uLlBiVXNlchIMCgRtb2RlGAIgASgJIk0KC0NoYW5nZUVsaXRlEgwKBGNv",
|
|
|
"ZGUYASABKAUSHwoEdXNlchgCIAEoCzIRLnBiLmNvbW1vbi5QYlVzZXISDwoH",
|
|
|
"ZWxpdGVJZBgDIAEoAyJbCgtDaGFuZ2VUaXRsZRIMCgRjb2RlGAEgASgFEh8K",
|
|
|
"BHVzZXIYAiABKAsyES5wYi5jb21tb24uUGJVc2VyEg8KB3RpdGxlSWQYAyAB",
|
|
|
"KAMSDAoEbmFtZRgEIAEoCSI7Cg1CdXlCYXR0bGVGb29kEg4KBnVzZXJJZBgB",
|
|
|
"IAEoAxIMCgRjb3N0GAIgASgDEgwKBGZvb2QYAyABKAMiNQoJRWxpdGVJdGVt",
|
|
|
"EgoKAmlkGAEgASgDEgwKBHNvcnQYAiABKAUSDgoGcmVtYWluGAMgASgFIvUC",
|
|
|
"CgxVc2VyUXVlcnlNc2cSHwoEdXNlchgBIAEoCzIRLnBiLmNvbW1vbi5QYlVz",
|
|
|
"ZXISMAoEcmFuaxgCIAMoCzIiLnBiLmdhbWUuemhnLlVzZXJRdWVyeU1zZy5S",
|
|
|
"YW5rSXRlbRIMCgRjb2luGAMgASgDEiEKBWdyYWRlGAQgASgLMhIucGIuZ2Ft",
|
|
|
"ZS56aGcuR3JhZGUSJAoGdGl0bGVzGAogAygLMhQucGIuY29tbW9uLlRpdGxl",
|
|
|
"SXRlbRImCgZlbGl0ZXMYCyADKAsyFi5wYi5nYW1lLnpoZy5FbGl0ZUl0ZW0S",
|
|
|
"KgoMY3VycmVudFRpdGxlGAwgASgLMhQucGIuY29tbW9uLlRpdGxlSXRlbRIs",
|
|
|
"CgxjdXJyZW50RWxpdGUYDSABKAsyFi5wYi5nYW1lLnpoZy5FbGl0ZUl0ZW0a",
|
|
|
"OQoIUmFua0l0ZW0SEAoIcmFua1R5cGUYASABKAUSDQoFc2NvcmUYAiABKAMS",
|
|
|
"DAoEcmFuaxgDIAEoBUIgWh5kY2cvZ2FtZS9wYi9nYW1lL3poZztwYkdhbWVa",
|
|
|
"aGdiBnByb3RvMw=="));
|
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
|
|
new pbr::FileDescriptor[] { global::Pb.Common.CommonReflection.Descriptor, },
|
|
|
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Pb.Game.Zhg.Grade), global::Pb.Game.Zhg.Grade.Parser, new[]{ "Grade_", "Level", "Star", "BravePoint" }, null, null, null, null),
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Pb.Game.Zhg.JoinGame), global::Pb.Game.Zhg.JoinGame.Parser, new[]{ "User", "NobilityLevel", "Coin", "Grade", "CurrentTitle", "CurrentElite" }, null, null, null, null),
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Pb.Game.Zhg.CreateUnit), global::Pb.Game.Zhg.CreateUnit.Parser, new[]{ "User", "Unit" }, null, null, null, null),
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Pb.Game.Zhg.Move), global::Pb.Game.Zhg.Move.Parser, new[]{ "User", "Line" }, null, null, null, null),
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Pb.Game.Zhg.Outbreak), global::Pb.Game.Zhg.Outbreak.Parser, new[]{ "User" }, null, null, null, null),
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Pb.Game.Zhg.OutbreakFood), global::Pb.Game.Zhg.OutbreakFood.Parser, new[]{ "User", "UnitType", "Count", "Cost" }, null, null, null, null),
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Pb.Game.Zhg.Wai), global::Pb.Game.Zhg.Wai.Parser, new[]{ "User" }, null, null, null, null),
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Pb.Game.Zhg.BuildingMode), global::Pb.Game.Zhg.BuildingMode.Parser, new[]{ "User", "Mode" }, null, null, null, null),
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Pb.Game.Zhg.ChangeElite), global::Pb.Game.Zhg.ChangeElite.Parser, new[]{ "Code", "User", "EliteId" }, null, null, null, null),
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Pb.Game.Zhg.ChangeTitle), global::Pb.Game.Zhg.ChangeTitle.Parser, new[]{ "Code", "User", "TitleId", "Name" }, null, null, null, null),
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Pb.Game.Zhg.BuyBattleFood), global::Pb.Game.Zhg.BuyBattleFood.Parser, new[]{ "UserId", "Cost", "Food" }, null, null, null, null),
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Pb.Game.Zhg.EliteItem), global::Pb.Game.Zhg.EliteItem.Parser, new[]{ "Id", "Sort", "Remain" }, null, null, null, null),
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Pb.Game.Zhg.UserQueryMsg), global::Pb.Game.Zhg.UserQueryMsg.Parser, new[]{ "User", "Rank", "Coin", "Grade", "Titles", "Elites", "CurrentTitle", "CurrentElite" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Pb.Game.Zhg.UserQueryMsg.Types.RankItem), global::Pb.Game.Zhg.UserQueryMsg.Types.RankItem.Parser, new[]{ "RankType", "Score", "Rank" }, null, null, null, null)})
|
|
|
}));
|
|
|
}
|
|
|
#endregion
|
|
|
|
|
|
}
|
|
|
#region Messages
|
|
|
public sealed partial class Grade : pb::IMessage<Grade>
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
|
, pb::IBufferMessage
|
|
|
#endif
|
|
|
{
|
|
|
private static readonly pb::MessageParser<Grade> _parser = new pb::MessageParser<Grade>(() => new Grade());
|
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public static pb::MessageParser<Grade> Parser { get { return _parser; } }
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
|
get { return global::Pb.Game.Zhg.CommandReflection.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 Grade() {
|
|
|
OnConstruction();
|
|
|
}
|
|
|
|
|
|
partial void OnConstruction();
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public Grade(Grade other) : this() {
|
|
|
grade_ = other.grade_;
|
|
|
level_ = other.level_;
|
|
|
star_ = other.star_;
|
|
|
bravePoint_ = other.bravePoint_;
|
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public Grade Clone() {
|
|
|
return new Grade(this);
|
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "grade" field.</summary>
|
|
|
public const int Grade_FieldNumber = 1;
|
|
|
private int grade_;
|
|
|
/// <summary>
|
|
|
/// 段位
|
|
|
/// </summary>
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public int Grade_ {
|
|
|
get { return grade_; }
|
|
|
set {
|
|
|
grade_ = value;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "level" field.</summary>
|
|
|
public const int LevelFieldNumber = 2;
|
|
|
private int level_;
|
|
|
/// <summary>
|
|
|
/// 段位等级
|
|
|
/// </summary>
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public int Level {
|
|
|
get { return level_; }
|
|
|
set {
|
|
|
level_ = value;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "star" field.</summary>
|
|
|
public const int StarFieldNumber = 3;
|
|
|
private int star_;
|
|
|
/// <summary>
|
|
|
/// 等级星级
|
|
|
/// </summary>
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public int Star {
|
|
|
get { return star_; }
|
|
|
set {
|
|
|
star_ = value;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "bravePoint" field.</summary>
|
|
|
public const int BravePointFieldNumber = 4;
|
|
|
private long bravePoint_;
|
|
|
/// <summary>
|
|
|
/// 剩余 骁勇分(历史评分累计)
|
|
|
/// </summary>
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public long BravePoint {
|
|
|
get { return bravePoint_; }
|
|
|
set {
|
|
|
bravePoint_ = value;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public override bool Equals(object other) {
|
|
|
return Equals(other as Grade);
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public bool Equals(Grade other) {
|
|
|
if (ReferenceEquals(other, null)) {
|
|
|
return false;
|
|
|
}
|
|
|
if (ReferenceEquals(other, this)) {
|
|
|
return true;
|
|
|
}
|
|
|
if (Grade_ != other.Grade_) return false;
|
|
|
if (Level != other.Level) return false;
|
|
|
if (Star != other.Star) return false;
|
|
|
if (BravePoint != other.BravePoint) 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 (Grade_ != 0) hash ^= Grade_.GetHashCode();
|
|
|
if (Level != 0) hash ^= Level.GetHashCode();
|
|
|
if (Star != 0) hash ^= Star.GetHashCode();
|
|
|
if (BravePoint != 0L) hash ^= BravePoint.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 (Grade_ != 0) {
|
|
|
output.WriteRawTag(8);
|
|
|
output.WriteInt32(Grade_);
|
|
|
}
|
|
|
if (Level != 0) {
|
|
|
output.WriteRawTag(16);
|
|
|
output.WriteInt32(Level);
|
|
|
}
|
|
|
if (Star != 0) {
|
|
|
output.WriteRawTag(24);
|
|
|
output.WriteInt32(Star);
|
|
|
}
|
|
|
if (BravePoint != 0L) {
|
|
|
output.WriteRawTag(32);
|
|
|
output.WriteInt64(BravePoint);
|
|
|
}
|
|
|
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 (Grade_ != 0) {
|
|
|
output.WriteRawTag(8);
|
|
|
output.WriteInt32(Grade_);
|
|
|
}
|
|
|
if (Level != 0) {
|
|
|
output.WriteRawTag(16);
|
|
|
output.WriteInt32(Level);
|
|
|
}
|
|
|
if (Star != 0) {
|
|
|
output.WriteRawTag(24);
|
|
|
output.WriteInt32(Star);
|
|
|
}
|
|
|
if (BravePoint != 0L) {
|
|
|
output.WriteRawTag(32);
|
|
|
output.WriteInt64(BravePoint);
|
|
|
}
|
|
|
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 (Grade_ != 0) {
|
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Grade_);
|
|
|
}
|
|
|
if (Level != 0) {
|
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Level);
|
|
|
}
|
|
|
if (Star != 0) {
|
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Star);
|
|
|
}
|
|
|
if (BravePoint != 0L) {
|
|
|
size += 1 + pb::CodedOutputStream.ComputeInt64Size(BravePoint);
|
|
|
}
|
|
|
if (_unknownFields != null) {
|
|
|
size += _unknownFields.CalculateSize();
|
|
|
}
|
|
|
return size;
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public void MergeFrom(Grade other) {
|
|
|
if (other == null) {
|
|
|
return;
|
|
|
}
|
|
|
if (other.Grade_ != 0) {
|
|
|
Grade_ = other.Grade_;
|
|
|
}
|
|
|
if (other.Level != 0) {
|
|
|
Level = other.Level;
|
|
|
}
|
|
|
if (other.Star != 0) {
|
|
|
Star = other.Star;
|
|
|
}
|
|
|
if (other.BravePoint != 0L) {
|
|
|
BravePoint = other.BravePoint;
|
|
|
}
|
|
|
_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: {
|
|
|
Grade_ = input.ReadInt32();
|
|
|
break;
|
|
|
}
|
|
|
case 16: {
|
|
|
Level = input.ReadInt32();
|
|
|
break;
|
|
|
}
|
|
|
case 24: {
|
|
|
Star = input.ReadInt32();
|
|
|
break;
|
|
|
}
|
|
|
case 32: {
|
|
|
BravePoint = 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: {
|
|
|
Grade_ = input.ReadInt32();
|
|
|
break;
|
|
|
}
|
|
|
case 16: {
|
|
|
Level = input.ReadInt32();
|
|
|
break;
|
|
|
}
|
|
|
case 24: {
|
|
|
Star = input.ReadInt32();
|
|
|
break;
|
|
|
}
|
|
|
case 32: {
|
|
|
BravePoint = input.ReadInt64();
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
/// 加入游戏 push -> game.join
|
|
|
/// </summary>
|
|
|
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::Pb.Game.Zhg.CommandReflection.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;
|
|
|
nobilityLevel_ = other.nobilityLevel_;
|
|
|
coin_ = other.coin_;
|
|
|
grade_ = other.grade_ != null ? other.grade_.Clone() : null;
|
|
|
currentTitle_ = other.currentTitle_ != null ? other.currentTitle_.Clone() : null;
|
|
|
currentElite_ = other.currentElite_ != null ? other.currentElite_.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::Pb.Common.PbUser user_;
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public global::Pb.Common.PbUser User {
|
|
|
get { return user_; }
|
|
|
set {
|
|
|
user_ = value;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "nobilityLevel" field.</summary>
|
|
|
public const int NobilityLevelFieldNumber = 2;
|
|
|
private int nobilityLevel_;
|
|
|
/// <summary>
|
|
|
/// 贵族等级 3舰长 0总督?
|
|
|
/// </summary>
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public int NobilityLevel {
|
|
|
get { return nobilityLevel_; }
|
|
|
set {
|
|
|
nobilityLevel_ = value;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "coin" field.</summary>
|
|
|
public const int CoinFieldNumber = 3;
|
|
|
private long coin_;
|
|
|
/// <summary>
|
|
|
/// 金币数量
|
|
|
/// </summary>
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public long Coin {
|
|
|
get { return coin_; }
|
|
|
set {
|
|
|
coin_ = value;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "grade" field.</summary>
|
|
|
public const int GradeFieldNumber = 4;
|
|
|
private global::Pb.Game.Zhg.Grade grade_;
|
|
|
/// <summary>
|
|
|
/// 段位
|
|
|
/// </summary>
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public global::Pb.Game.Zhg.Grade Grade {
|
|
|
get { return grade_; }
|
|
|
set {
|
|
|
grade_ = value;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "currentTitle" field.</summary>
|
|
|
public const int CurrentTitleFieldNumber = 10;
|
|
|
private global::Pb.Common.TitleItem currentTitle_;
|
|
|
/// <summary>
|
|
|
/// 当前佩戴的称号
|
|
|
/// </summary>
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public global::Pb.Common.TitleItem CurrentTitle {
|
|
|
get { return currentTitle_; }
|
|
|
set {
|
|
|
currentTitle_ = value;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "currentElite" field.</summary>
|
|
|
public const int CurrentEliteFieldNumber = 11;
|
|
|
private global::Pb.Game.Zhg.EliteItem currentElite_;
|
|
|
/// <summary>
|
|
|
/// 当前装备的精英单位
|
|
|
/// </summary>
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public global::Pb.Game.Zhg.EliteItem CurrentElite {
|
|
|
get { return currentElite_; }
|
|
|
set {
|
|
|
currentElite_ = 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;
|
|
|
if (NobilityLevel != other.NobilityLevel) return false;
|
|
|
if (Coin != other.Coin) return false;
|
|
|
if (!object.Equals(Grade, other.Grade)) return false;
|
|
|
if (!object.Equals(CurrentTitle, other.CurrentTitle)) return false;
|
|
|
if (!object.Equals(CurrentElite, other.CurrentElite)) 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 (NobilityLevel != 0) hash ^= NobilityLevel.GetHashCode();
|
|
|
if (Coin != 0L) hash ^= Coin.GetHashCode();
|
|
|
if (grade_ != null) hash ^= Grade.GetHashCode();
|
|
|
if (currentTitle_ != null) hash ^= CurrentTitle.GetHashCode();
|
|
|
if (currentElite_ != null) hash ^= CurrentElite.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 (NobilityLevel != 0) {
|
|
|
output.WriteRawTag(16);
|
|
|
output.WriteInt32(NobilityLevel);
|
|
|
}
|
|
|
if (Coin != 0L) {
|
|
|
output.WriteRawTag(24);
|
|
|
output.WriteInt64(Coin);
|
|
|
}
|
|
|
if (grade_ != null) {
|
|
|
output.WriteRawTag(34);
|
|
|
output.WriteMessage(Grade);
|
|
|
}
|
|
|
if (currentTitle_ != null) {
|
|
|
output.WriteRawTag(82);
|
|
|
output.WriteMessage(CurrentTitle);
|
|
|
}
|
|
|
if (currentElite_ != null) {
|
|
|
output.WriteRawTag(90);
|
|
|
output.WriteMessage(CurrentElite);
|
|
|
}
|
|
|
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 (NobilityLevel != 0) {
|
|
|
output.WriteRawTag(16);
|
|
|
output.WriteInt32(NobilityLevel);
|
|
|
}
|
|
|
if (Coin != 0L) {
|
|
|
output.WriteRawTag(24);
|
|
|
output.WriteInt64(Coin);
|
|
|
}
|
|
|
if (grade_ != null) {
|
|
|
output.WriteRawTag(34);
|
|
|
output.WriteMessage(Grade);
|
|
|
}
|
|
|
if (currentTitle_ != null) {
|
|
|
output.WriteRawTag(82);
|
|
|
output.WriteMessage(CurrentTitle);
|
|
|
}
|
|
|
if (currentElite_ != null) {
|
|
|
output.WriteRawTag(90);
|
|
|
output.WriteMessage(CurrentElite);
|
|
|
}
|
|
|
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 (NobilityLevel != 0) {
|
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(NobilityLevel);
|
|
|
}
|
|
|
if (Coin != 0L) {
|
|
|
size += 1 + pb::CodedOutputStream.ComputeInt64Size(Coin);
|
|
|
}
|
|
|
if (grade_ != null) {
|
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Grade);
|
|
|
}
|
|
|
if (currentTitle_ != null) {
|
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(CurrentTitle);
|
|
|
}
|
|
|
if (currentElite_ != null) {
|
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(CurrentElite);
|
|
|
}
|
|
|
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::Pb.Common.PbUser();
|
|
|
}
|
|
|
User.MergeFrom(other.User);
|
|
|
}
|
|
|
if (other.NobilityLevel != 0) {
|
|
|
NobilityLevel = other.NobilityLevel;
|
|
|
}
|
|
|
if (other.Coin != 0L) {
|
|
|
Coin = other.Coin;
|
|
|
}
|
|
|
if (other.grade_ != null) {
|
|
|
if (grade_ == null) {
|
|
|
Grade = new global::Pb.Game.Zhg.Grade();
|
|
|
}
|
|
|
Grade.MergeFrom(other.Grade);
|
|
|
}
|
|
|
if (other.currentTitle_ != null) {
|
|
|
if (currentTitle_ == null) {
|
|
|
CurrentTitle = new global::Pb.Common.TitleItem();
|
|
|
}
|
|
|
CurrentTitle.MergeFrom(other.CurrentTitle);
|
|
|
}
|
|
|
if (other.currentElite_ != null) {
|
|
|
if (currentElite_ == null) {
|
|
|
CurrentElite = new global::Pb.Game.Zhg.EliteItem();
|
|
|
}
|
|
|
CurrentElite.MergeFrom(other.CurrentElite);
|
|
|
}
|
|
|
_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::Pb.Common.PbUser();
|
|
|
}
|
|
|
input.ReadMessage(User);
|
|
|
break;
|
|
|
}
|
|
|
case 16: {
|
|
|
NobilityLevel = input.ReadInt32();
|
|
|
break;
|
|
|
}
|
|
|
case 24: {
|
|
|
Coin = input.ReadInt64();
|
|
|
break;
|
|
|
}
|
|
|
case 34: {
|
|
|
if (grade_ == null) {
|
|
|
Grade = new global::Pb.Game.Zhg.Grade();
|
|
|
}
|
|
|
input.ReadMessage(Grade);
|
|
|
break;
|
|
|
}
|
|
|
case 82: {
|
|
|
if (currentTitle_ == null) {
|
|
|
CurrentTitle = new global::Pb.Common.TitleItem();
|
|
|
}
|
|
|
input.ReadMessage(CurrentTitle);
|
|
|
break;
|
|
|
}
|
|
|
case 90: {
|
|
|
if (currentElite_ == null) {
|
|
|
CurrentElite = new global::Pb.Game.Zhg.EliteItem();
|
|
|
}
|
|
|
input.ReadMessage(CurrentElite);
|
|
|
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::Pb.Common.PbUser();
|
|
|
}
|
|
|
input.ReadMessage(User);
|
|
|
break;
|
|
|
}
|
|
|
case 16: {
|
|
|
NobilityLevel = input.ReadInt32();
|
|
|
break;
|
|
|
}
|
|
|
case 24: {
|
|
|
Coin = input.ReadInt64();
|
|
|
break;
|
|
|
}
|
|
|
case 34: {
|
|
|
if (grade_ == null) {
|
|
|
Grade = new global::Pb.Game.Zhg.Grade();
|
|
|
}
|
|
|
input.ReadMessage(Grade);
|
|
|
break;
|
|
|
}
|
|
|
case 82: {
|
|
|
if (currentTitle_ == null) {
|
|
|
CurrentTitle = new global::Pb.Common.TitleItem();
|
|
|
}
|
|
|
input.ReadMessage(CurrentTitle);
|
|
|
break;
|
|
|
}
|
|
|
case 90: {
|
|
|
if (currentElite_ == null) {
|
|
|
CurrentElite = new global::Pb.Game.Zhg.EliteItem();
|
|
|
}
|
|
|
input.ReadMessage(CurrentElite);
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
/// 切换生产单位种类 push -> game.createUnit
|
|
|
/// </summary>
|
|
|
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::Pb.Game.Zhg.CommandReflection.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::Pb.Common.PbUser user_;
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public global::Pb.Common.PbUser 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::Pb.Common.PbUser();
|
|
|
}
|
|
|
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::Pb.Common.PbUser();
|
|
|
}
|
|
|
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::Pb.Common.PbUser();
|
|
|
}
|
|
|
input.ReadMessage(User);
|
|
|
break;
|
|
|
}
|
|
|
case 18: {
|
|
|
Unit = input.ReadString();
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
/// 修改出兵路线 push -> game.move
|
|
|
/// </summary>
|
|
|
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::Pb.Game.Zhg.CommandReflection.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::Pb.Common.PbUser user_;
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public global::Pb.Common.PbUser 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::Pb.Common.PbUser();
|
|
|
}
|
|
|
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::Pb.Common.PbUser();
|
|
|
}
|
|
|
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::Pb.Common.PbUser();
|
|
|
}
|
|
|
input.ReadMessage(User);
|
|
|
break;
|
|
|
}
|
|
|
case 18: {
|
|
|
Line = input.ReadString();
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
/// 普通暴兵 push -> game.outbreak
|
|
|
/// </summary>
|
|
|
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::Pb.Game.Zhg.CommandReflection.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::Pb.Common.PbUser user_;
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public global::Pb.Common.PbUser 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::Pb.Common.PbUser();
|
|
|
}
|
|
|
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::Pb.Common.PbUser();
|
|
|
}
|
|
|
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::Pb.Common.PbUser();
|
|
|
}
|
|
|
input.ReadMessage(User);
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
/// 暴兵(粮草) push -> game.outbreak.food
|
|
|
/// </summary>
|
|
|
public sealed partial class OutbreakFood : pb::IMessage<OutbreakFood>
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
|
, pb::IBufferMessage
|
|
|
#endif
|
|
|
{
|
|
|
private static readonly pb::MessageParser<OutbreakFood> _parser = new pb::MessageParser<OutbreakFood>(() => new OutbreakFood());
|
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public static pb::MessageParser<OutbreakFood> Parser { get { return _parser; } }
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
|
get { return global::Pb.Game.Zhg.CommandReflection.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 OutbreakFood() {
|
|
|
OnConstruction();
|
|
|
}
|
|
|
|
|
|
partial void OnConstruction();
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public OutbreakFood(OutbreakFood other) : this() {
|
|
|
user_ = other.user_ != null ? other.user_.Clone() : null;
|
|
|
unitType_ = other.unitType_;
|
|
|
count_ = other.count_;
|
|
|
cost_ = other.cost_;
|
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public OutbreakFood Clone() {
|
|
|
return new OutbreakFood(this);
|
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "user" field.</summary>
|
|
|
public const int UserFieldNumber = 1;
|
|
|
private global::Pb.Common.PbUser user_;
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public global::Pb.Common.PbUser User {
|
|
|
get { return user_; }
|
|
|
set {
|
|
|
user_ = value;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "unitType" field.</summary>
|
|
|
public const int UnitTypeFieldNumber = 2;
|
|
|
private string unitType_ = "";
|
|
|
/// <summary>
|
|
|
/// 暴兵类型
|
|
|
/// </summary>
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public string UnitType {
|
|
|
get { return unitType_; }
|
|
|
set {
|
|
|
unitType_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "count" field.</summary>
|
|
|
public const int CountFieldNumber = 3;
|
|
|
private int count_;
|
|
|
/// <summary>
|
|
|
/// 数量
|
|
|
/// </summary>
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public int Count {
|
|
|
get { return count_; }
|
|
|
set {
|
|
|
count_ = value;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "cost" field.</summary>
|
|
|
public const int CostFieldNumber = 4;
|
|
|
private long cost_;
|
|
|
/// <summary>
|
|
|
/// 消耗
|
|
|
/// </summary>
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public long Cost {
|
|
|
get { return cost_; }
|
|
|
set {
|
|
|
cost_ = value;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public override bool Equals(object other) {
|
|
|
return Equals(other as OutbreakFood);
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public bool Equals(OutbreakFood other) {
|
|
|
if (ReferenceEquals(other, null)) {
|
|
|
return false;
|
|
|
}
|
|
|
if (ReferenceEquals(other, this)) {
|
|
|
return true;
|
|
|
}
|
|
|
if (!object.Equals(User, other.User)) return false;
|
|
|
if (UnitType != other.UnitType) return false;
|
|
|
if (Count != other.Count) return false;
|
|
|
if (Cost != other.Cost) 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 (UnitType.Length != 0) hash ^= UnitType.GetHashCode();
|
|
|
if (Count != 0) hash ^= Count.GetHashCode();
|
|
|
if (Cost != 0L) hash ^= Cost.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 (UnitType.Length != 0) {
|
|
|
output.WriteRawTag(18);
|
|
|
output.WriteString(UnitType);
|
|
|
}
|
|
|
if (Count != 0) {
|
|
|
output.WriteRawTag(24);
|
|
|
output.WriteInt32(Count);
|
|
|
}
|
|
|
if (Cost != 0L) {
|
|
|
output.WriteRawTag(32);
|
|
|
output.WriteInt64(Cost);
|
|
|
}
|
|
|
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 (UnitType.Length != 0) {
|
|
|
output.WriteRawTag(18);
|
|
|
output.WriteString(UnitType);
|
|
|
}
|
|
|
if (Count != 0) {
|
|
|
output.WriteRawTag(24);
|
|
|
output.WriteInt32(Count);
|
|
|
}
|
|
|
if (Cost != 0L) {
|
|
|
output.WriteRawTag(32);
|
|
|
output.WriteInt64(Cost);
|
|
|
}
|
|
|
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 (UnitType.Length != 0) {
|
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(UnitType);
|
|
|
}
|
|
|
if (Count != 0) {
|
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Count);
|
|
|
}
|
|
|
if (Cost != 0L) {
|
|
|
size += 1 + pb::CodedOutputStream.ComputeInt64Size(Cost);
|
|
|
}
|
|
|
if (_unknownFields != null) {
|
|
|
size += _unknownFields.CalculateSize();
|
|
|
}
|
|
|
return size;
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public void MergeFrom(OutbreakFood other) {
|
|
|
if (other == null) {
|
|
|
return;
|
|
|
}
|
|
|
if (other.user_ != null) {
|
|
|
if (user_ == null) {
|
|
|
User = new global::Pb.Common.PbUser();
|
|
|
}
|
|
|
User.MergeFrom(other.User);
|
|
|
}
|
|
|
if (other.UnitType.Length != 0) {
|
|
|
UnitType = other.UnitType;
|
|
|
}
|
|
|
if (other.Count != 0) {
|
|
|
Count = other.Count;
|
|
|
}
|
|
|
if (other.Cost != 0L) {
|
|
|
Cost = other.Cost;
|
|
|
}
|
|
|
_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::Pb.Common.PbUser();
|
|
|
}
|
|
|
input.ReadMessage(User);
|
|
|
break;
|
|
|
}
|
|
|
case 18: {
|
|
|
UnitType = input.ReadString();
|
|
|
break;
|
|
|
}
|
|
|
case 24: {
|
|
|
Count = input.ReadInt32();
|
|
|
break;
|
|
|
}
|
|
|
case 32: {
|
|
|
Cost = 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::Pb.Common.PbUser();
|
|
|
}
|
|
|
input.ReadMessage(User);
|
|
|
break;
|
|
|
}
|
|
|
case 18: {
|
|
|
UnitType = input.ReadString();
|
|
|
break;
|
|
|
}
|
|
|
case 24: {
|
|
|
Count = input.ReadInt32();
|
|
|
break;
|
|
|
}
|
|
|
case 32: {
|
|
|
Cost = input.ReadInt64();
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
/// 查询位置 push -> game.wai
|
|
|
/// </summary>
|
|
|
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::Pb.Game.Zhg.CommandReflection.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::Pb.Common.PbUser user_;
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public global::Pb.Common.PbUser 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::Pb.Common.PbUser();
|
|
|
}
|
|
|
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::Pb.Common.PbUser();
|
|
|
}
|
|
|
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::Pb.Common.PbUser();
|
|
|
}
|
|
|
input.ReadMessage(User);
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
/// 兵营模式 push -> game.mode
|
|
|
/// </summary>
|
|
|
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::Pb.Game.Zhg.CommandReflection.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::Pb.Common.PbUser user_;
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public global::Pb.Common.PbUser 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::Pb.Common.PbUser();
|
|
|
}
|
|
|
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::Pb.Common.PbUser();
|
|
|
}
|
|
|
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::Pb.Common.PbUser();
|
|
|
}
|
|
|
input.ReadMessage(User);
|
|
|
break;
|
|
|
}
|
|
|
case 18: {
|
|
|
Mode = input.ReadString();
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
/// 切换精英单位 push -> game.change.elite
|
|
|
/// </summary>
|
|
|
public sealed partial class ChangeElite : pb::IMessage<ChangeElite>
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
|
, pb::IBufferMessage
|
|
|
#endif
|
|
|
{
|
|
|
private static readonly pb::MessageParser<ChangeElite> _parser = new pb::MessageParser<ChangeElite>(() => new ChangeElite());
|
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public static pb::MessageParser<ChangeElite> Parser { get { return _parser; } }
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
|
get { return global::Pb.Game.Zhg.CommandReflection.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 ChangeElite() {
|
|
|
OnConstruction();
|
|
|
}
|
|
|
|
|
|
partial void OnConstruction();
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public ChangeElite(ChangeElite other) : this() {
|
|
|
code_ = other.code_;
|
|
|
user_ = other.user_ != null ? other.user_.Clone() : null;
|
|
|
eliteId_ = other.eliteId_;
|
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public ChangeElite Clone() {
|
|
|
return new ChangeElite(this);
|
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "code" field.</summary>
|
|
|
public const int CodeFieldNumber = 1;
|
|
|
private int code_;
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public int Code {
|
|
|
get { return code_; }
|
|
|
set {
|
|
|
code_ = value;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "user" field.</summary>
|
|
|
public const int UserFieldNumber = 2;
|
|
|
private global::Pb.Common.PbUser user_;
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public global::Pb.Common.PbUser User {
|
|
|
get { return user_; }
|
|
|
set {
|
|
|
user_ = value;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "eliteId" field.</summary>
|
|
|
public const int EliteIdFieldNumber = 3;
|
|
|
private long eliteId_;
|
|
|
/// <summary>
|
|
|
/// ID
|
|
|
/// </summary>
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public long EliteId {
|
|
|
get { return eliteId_; }
|
|
|
set {
|
|
|
eliteId_ = value;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public override bool Equals(object other) {
|
|
|
return Equals(other as ChangeElite);
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public bool Equals(ChangeElite other) {
|
|
|
if (ReferenceEquals(other, null)) {
|
|
|
return false;
|
|
|
}
|
|
|
if (ReferenceEquals(other, this)) {
|
|
|
return true;
|
|
|
}
|
|
|
if (Code != other.Code) return false;
|
|
|
if (!object.Equals(User, other.User)) return false;
|
|
|
if (EliteId != other.EliteId) 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 (Code != 0) hash ^= Code.GetHashCode();
|
|
|
if (user_ != null) hash ^= User.GetHashCode();
|
|
|
if (EliteId != 0L) hash ^= EliteId.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 (Code != 0) {
|
|
|
output.WriteRawTag(8);
|
|
|
output.WriteInt32(Code);
|
|
|
}
|
|
|
if (user_ != null) {
|
|
|
output.WriteRawTag(18);
|
|
|
output.WriteMessage(User);
|
|
|
}
|
|
|
if (EliteId != 0L) {
|
|
|
output.WriteRawTag(24);
|
|
|
output.WriteInt64(EliteId);
|
|
|
}
|
|
|
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 (Code != 0) {
|
|
|
output.WriteRawTag(8);
|
|
|
output.WriteInt32(Code);
|
|
|
}
|
|
|
if (user_ != null) {
|
|
|
output.WriteRawTag(18);
|
|
|
output.WriteMessage(User);
|
|
|
}
|
|
|
if (EliteId != 0L) {
|
|
|
output.WriteRawTag(24);
|
|
|
output.WriteInt64(EliteId);
|
|
|
}
|
|
|
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 (Code != 0) {
|
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Code);
|
|
|
}
|
|
|
if (user_ != null) {
|
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(User);
|
|
|
}
|
|
|
if (EliteId != 0L) {
|
|
|
size += 1 + pb::CodedOutputStream.ComputeInt64Size(EliteId);
|
|
|
}
|
|
|
if (_unknownFields != null) {
|
|
|
size += _unknownFields.CalculateSize();
|
|
|
}
|
|
|
return size;
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public void MergeFrom(ChangeElite other) {
|
|
|
if (other == null) {
|
|
|
return;
|
|
|
}
|
|
|
if (other.Code != 0) {
|
|
|
Code = other.Code;
|
|
|
}
|
|
|
if (other.user_ != null) {
|
|
|
if (user_ == null) {
|
|
|
User = new global::Pb.Common.PbUser();
|
|
|
}
|
|
|
User.MergeFrom(other.User);
|
|
|
}
|
|
|
if (other.EliteId != 0L) {
|
|
|
EliteId = other.EliteId;
|
|
|
}
|
|
|
_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: {
|
|
|
Code = input.ReadInt32();
|
|
|
break;
|
|
|
}
|
|
|
case 18: {
|
|
|
if (user_ == null) {
|
|
|
User = new global::Pb.Common.PbUser();
|
|
|
}
|
|
|
input.ReadMessage(User);
|
|
|
break;
|
|
|
}
|
|
|
case 24: {
|
|
|
EliteId = 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: {
|
|
|
Code = input.ReadInt32();
|
|
|
break;
|
|
|
}
|
|
|
case 18: {
|
|
|
if (user_ == null) {
|
|
|
User = new global::Pb.Common.PbUser();
|
|
|
}
|
|
|
input.ReadMessage(User);
|
|
|
break;
|
|
|
}
|
|
|
case 24: {
|
|
|
EliteId = input.ReadInt64();
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
/// 切换称号 push -> game.change.title
|
|
|
/// </summary>
|
|
|
public sealed partial class ChangeTitle : pb::IMessage<ChangeTitle>
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
|
, pb::IBufferMessage
|
|
|
#endif
|
|
|
{
|
|
|
private static readonly pb::MessageParser<ChangeTitle> _parser = new pb::MessageParser<ChangeTitle>(() => new ChangeTitle());
|
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public static pb::MessageParser<ChangeTitle> Parser { get { return _parser; } }
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
|
get { return global::Pb.Game.Zhg.CommandReflection.Descriptor.MessageTypes[9]; }
|
|
|
}
|
|
|
|
|
|
[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 ChangeTitle() {
|
|
|
OnConstruction();
|
|
|
}
|
|
|
|
|
|
partial void OnConstruction();
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public ChangeTitle(ChangeTitle other) : this() {
|
|
|
code_ = other.code_;
|
|
|
user_ = other.user_ != null ? other.user_.Clone() : null;
|
|
|
titleId_ = other.titleId_;
|
|
|
name_ = other.name_;
|
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public ChangeTitle Clone() {
|
|
|
return new ChangeTitle(this);
|
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "code" field.</summary>
|
|
|
public const int CodeFieldNumber = 1;
|
|
|
private int code_;
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public int Code {
|
|
|
get { return code_; }
|
|
|
set {
|
|
|
code_ = value;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "user" field.</summary>
|
|
|
public const int UserFieldNumber = 2;
|
|
|
private global::Pb.Common.PbUser user_;
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public global::Pb.Common.PbUser User {
|
|
|
get { return user_; }
|
|
|
set {
|
|
|
user_ = value;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "titleId" field.</summary>
|
|
|
public const int TitleIdFieldNumber = 3;
|
|
|
private long titleId_;
|
|
|
/// <summary>
|
|
|
/// ID
|
|
|
/// </summary>
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public long TitleId {
|
|
|
get { return titleId_; }
|
|
|
set {
|
|
|
titleId_ = value;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "name" field.</summary>
|
|
|
public const int NameFieldNumber = 4;
|
|
|
private string name_ = "";
|
|
|
/// <summary>
|
|
|
/// 名称
|
|
|
/// </summary>
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public string Name {
|
|
|
get { return name_; }
|
|
|
set {
|
|
|
name_ = 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 ChangeTitle);
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public bool Equals(ChangeTitle other) {
|
|
|
if (ReferenceEquals(other, null)) {
|
|
|
return false;
|
|
|
}
|
|
|
if (ReferenceEquals(other, this)) {
|
|
|
return true;
|
|
|
}
|
|
|
if (Code != other.Code) return false;
|
|
|
if (!object.Equals(User, other.User)) return false;
|
|
|
if (TitleId != other.TitleId) return false;
|
|
|
if (Name != other.Name) 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 (Code != 0) hash ^= Code.GetHashCode();
|
|
|
if (user_ != null) hash ^= User.GetHashCode();
|
|
|
if (TitleId != 0L) hash ^= TitleId.GetHashCode();
|
|
|
if (Name.Length != 0) hash ^= Name.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 (Code != 0) {
|
|
|
output.WriteRawTag(8);
|
|
|
output.WriteInt32(Code);
|
|
|
}
|
|
|
if (user_ != null) {
|
|
|
output.WriteRawTag(18);
|
|
|
output.WriteMessage(User);
|
|
|
}
|
|
|
if (TitleId != 0L) {
|
|
|
output.WriteRawTag(24);
|
|
|
output.WriteInt64(TitleId);
|
|
|
}
|
|
|
if (Name.Length != 0) {
|
|
|
output.WriteRawTag(34);
|
|
|
output.WriteString(Name);
|
|
|
}
|
|
|
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 (Code != 0) {
|
|
|
output.WriteRawTag(8);
|
|
|
output.WriteInt32(Code);
|
|
|
}
|
|
|
if (user_ != null) {
|
|
|
output.WriteRawTag(18);
|
|
|
output.WriteMessage(User);
|
|
|
}
|
|
|
if (TitleId != 0L) {
|
|
|
output.WriteRawTag(24);
|
|
|
output.WriteInt64(TitleId);
|
|
|
}
|
|
|
if (Name.Length != 0) {
|
|
|
output.WriteRawTag(34);
|
|
|
output.WriteString(Name);
|
|
|
}
|
|
|
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 (Code != 0) {
|
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Code);
|
|
|
}
|
|
|
if (user_ != null) {
|
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(User);
|
|
|
}
|
|
|
if (TitleId != 0L) {
|
|
|
size += 1 + pb::CodedOutputStream.ComputeInt64Size(TitleId);
|
|
|
}
|
|
|
if (Name.Length != 0) {
|
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
|
|
|
}
|
|
|
if (_unknownFields != null) {
|
|
|
size += _unknownFields.CalculateSize();
|
|
|
}
|
|
|
return size;
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public void MergeFrom(ChangeTitle other) {
|
|
|
if (other == null) {
|
|
|
return;
|
|
|
}
|
|
|
if (other.Code != 0) {
|
|
|
Code = other.Code;
|
|
|
}
|
|
|
if (other.user_ != null) {
|
|
|
if (user_ == null) {
|
|
|
User = new global::Pb.Common.PbUser();
|
|
|
}
|
|
|
User.MergeFrom(other.User);
|
|
|
}
|
|
|
if (other.TitleId != 0L) {
|
|
|
TitleId = other.TitleId;
|
|
|
}
|
|
|
if (other.Name.Length != 0) {
|
|
|
Name = other.Name;
|
|
|
}
|
|
|
_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: {
|
|
|
Code = input.ReadInt32();
|
|
|
break;
|
|
|
}
|
|
|
case 18: {
|
|
|
if (user_ == null) {
|
|
|
User = new global::Pb.Common.PbUser();
|
|
|
}
|
|
|
input.ReadMessage(User);
|
|
|
break;
|
|
|
}
|
|
|
case 24: {
|
|
|
TitleId = input.ReadInt64();
|
|
|
break;
|
|
|
}
|
|
|
case 34: {
|
|
|
Name = 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: {
|
|
|
Code = input.ReadInt32();
|
|
|
break;
|
|
|
}
|
|
|
case 18: {
|
|
|
if (user_ == null) {
|
|
|
User = new global::Pb.Common.PbUser();
|
|
|
}
|
|
|
input.ReadMessage(User);
|
|
|
break;
|
|
|
}
|
|
|
case 24: {
|
|
|
TitleId = input.ReadInt64();
|
|
|
break;
|
|
|
}
|
|
|
case 34: {
|
|
|
Name = input.ReadString();
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
/// BuyBattleFood 购买粮草 push -> game.buy.food
|
|
|
/// </summary>
|
|
|
public sealed partial class BuyBattleFood : pb::IMessage<BuyBattleFood>
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
|
, pb::IBufferMessage
|
|
|
#endif
|
|
|
{
|
|
|
private static readonly pb::MessageParser<BuyBattleFood> _parser = new pb::MessageParser<BuyBattleFood>(() => new BuyBattleFood());
|
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public static pb::MessageParser<BuyBattleFood> Parser { get { return _parser; } }
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
|
get { return global::Pb.Game.Zhg.CommandReflection.Descriptor.MessageTypes[10]; }
|
|
|
}
|
|
|
|
|
|
[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 BuyBattleFood() {
|
|
|
OnConstruction();
|
|
|
}
|
|
|
|
|
|
partial void OnConstruction();
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public BuyBattleFood(BuyBattleFood other) : this() {
|
|
|
userId_ = other.userId_;
|
|
|
cost_ = other.cost_;
|
|
|
food_ = other.food_;
|
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public BuyBattleFood Clone() {
|
|
|
return new BuyBattleFood(this);
|
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "userId" field.</summary>
|
|
|
public const int UserIdFieldNumber = 1;
|
|
|
private long userId_;
|
|
|
/// <summary>
|
|
|
/// 用户ID
|
|
|
/// </summary>
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public long UserId {
|
|
|
get { return userId_; }
|
|
|
set {
|
|
|
userId_ = value;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "cost" field.</summary>
|
|
|
public const int CostFieldNumber = 2;
|
|
|
private long cost_;
|
|
|
/// <summary>
|
|
|
/// 花费
|
|
|
/// </summary>
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public long Cost {
|
|
|
get { return cost_; }
|
|
|
set {
|
|
|
cost_ = value;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "food" field.</summary>
|
|
|
public const int FoodFieldNumber = 3;
|
|
|
private long food_;
|
|
|
/// <summary>
|
|
|
/// 购买到的粮草量
|
|
|
/// </summary>
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public long Food {
|
|
|
get { return food_; }
|
|
|
set {
|
|
|
food_ = value;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public override bool Equals(object other) {
|
|
|
return Equals(other as BuyBattleFood);
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public bool Equals(BuyBattleFood other) {
|
|
|
if (ReferenceEquals(other, null)) {
|
|
|
return false;
|
|
|
}
|
|
|
if (ReferenceEquals(other, this)) {
|
|
|
return true;
|
|
|
}
|
|
|
if (UserId != other.UserId) return false;
|
|
|
if (Cost != other.Cost) return false;
|
|
|
if (Food != other.Food) 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 (UserId != 0L) hash ^= UserId.GetHashCode();
|
|
|
if (Cost != 0L) hash ^= Cost.GetHashCode();
|
|
|
if (Food != 0L) hash ^= Food.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 (UserId != 0L) {
|
|
|
output.WriteRawTag(8);
|
|
|
output.WriteInt64(UserId);
|
|
|
}
|
|
|
if (Cost != 0L) {
|
|
|
output.WriteRawTag(16);
|
|
|
output.WriteInt64(Cost);
|
|
|
}
|
|
|
if (Food != 0L) {
|
|
|
output.WriteRawTag(24);
|
|
|
output.WriteInt64(Food);
|
|
|
}
|
|
|
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 (UserId != 0L) {
|
|
|
output.WriteRawTag(8);
|
|
|
output.WriteInt64(UserId);
|
|
|
}
|
|
|
if (Cost != 0L) {
|
|
|
output.WriteRawTag(16);
|
|
|
output.WriteInt64(Cost);
|
|
|
}
|
|
|
if (Food != 0L) {
|
|
|
output.WriteRawTag(24);
|
|
|
output.WriteInt64(Food);
|
|
|
}
|
|
|
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 (UserId != 0L) {
|
|
|
size += 1 + pb::CodedOutputStream.ComputeInt64Size(UserId);
|
|
|
}
|
|
|
if (Cost != 0L) {
|
|
|
size += 1 + pb::CodedOutputStream.ComputeInt64Size(Cost);
|
|
|
}
|
|
|
if (Food != 0L) {
|
|
|
size += 1 + pb::CodedOutputStream.ComputeInt64Size(Food);
|
|
|
}
|
|
|
if (_unknownFields != null) {
|
|
|
size += _unknownFields.CalculateSize();
|
|
|
}
|
|
|
return size;
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public void MergeFrom(BuyBattleFood other) {
|
|
|
if (other == null) {
|
|
|
return;
|
|
|
}
|
|
|
if (other.UserId != 0L) {
|
|
|
UserId = other.UserId;
|
|
|
}
|
|
|
if (other.Cost != 0L) {
|
|
|
Cost = other.Cost;
|
|
|
}
|
|
|
if (other.Food != 0L) {
|
|
|
Food = other.Food;
|
|
|
}
|
|
|
_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: {
|
|
|
UserId = input.ReadInt64();
|
|
|
break;
|
|
|
}
|
|
|
case 16: {
|
|
|
Cost = input.ReadInt64();
|
|
|
break;
|
|
|
}
|
|
|
case 24: {
|
|
|
Food = 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: {
|
|
|
UserId = input.ReadInt64();
|
|
|
break;
|
|
|
}
|
|
|
case 16: {
|
|
|
Cost = input.ReadInt64();
|
|
|
break;
|
|
|
}
|
|
|
case 24: {
|
|
|
Food = input.ReadInt64();
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
/// 精英单位 zw1 2
|
|
|
/// </summary>
|
|
|
public sealed partial class EliteItem : pb::IMessage<EliteItem>
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
|
, pb::IBufferMessage
|
|
|
#endif
|
|
|
{
|
|
|
private static readonly pb::MessageParser<EliteItem> _parser = new pb::MessageParser<EliteItem>(() => new EliteItem());
|
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public static pb::MessageParser<EliteItem> Parser { get { return _parser; } }
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
|
get { return global::Pb.Game.Zhg.CommandReflection.Descriptor.MessageTypes[11]; }
|
|
|
}
|
|
|
|
|
|
[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 EliteItem() {
|
|
|
OnConstruction();
|
|
|
}
|
|
|
|
|
|
partial void OnConstruction();
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public EliteItem(EliteItem other) : this() {
|
|
|
id_ = other.id_;
|
|
|
sort_ = other.sort_;
|
|
|
remain_ = other.remain_;
|
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public EliteItem Clone() {
|
|
|
return new EliteItem(this);
|
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "id" field.</summary>
|
|
|
public const int IdFieldNumber = 1;
|
|
|
private long id_;
|
|
|
/// <summary>
|
|
|
/// ID 1000(普通x) 1001(弓骑兵) 1002(牧师)
|
|
|
/// </summary>
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public long Id {
|
|
|
get { return id_; }
|
|
|
set {
|
|
|
id_ = value;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "sort" field.</summary>
|
|
|
public const int SortFieldNumber = 2;
|
|
|
private int sort_;
|
|
|
/// <summary>
|
|
|
/// 排序号
|
|
|
/// </summary>
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public int Sort {
|
|
|
get { return sort_; }
|
|
|
set {
|
|
|
sort_ = value;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "remain" field.</summary>
|
|
|
public const int RemainFieldNumber = 3;
|
|
|
private int remain_;
|
|
|
/// <summary>
|
|
|
/// 剩余时长(单位:天)-1无限制
|
|
|
/// </summary>
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public int Remain {
|
|
|
get { return remain_; }
|
|
|
set {
|
|
|
remain_ = value;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public override bool Equals(object other) {
|
|
|
return Equals(other as EliteItem);
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public bool Equals(EliteItem other) {
|
|
|
if (ReferenceEquals(other, null)) {
|
|
|
return false;
|
|
|
}
|
|
|
if (ReferenceEquals(other, this)) {
|
|
|
return true;
|
|
|
}
|
|
|
if (Id != other.Id) return false;
|
|
|
if (Sort != other.Sort) return false;
|
|
|
if (Remain != other.Remain) 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 (Id != 0L) hash ^= Id.GetHashCode();
|
|
|
if (Sort != 0) hash ^= Sort.GetHashCode();
|
|
|
if (Remain != 0) hash ^= Remain.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 (Id != 0L) {
|
|
|
output.WriteRawTag(8);
|
|
|
output.WriteInt64(Id);
|
|
|
}
|
|
|
if (Sort != 0) {
|
|
|
output.WriteRawTag(16);
|
|
|
output.WriteInt32(Sort);
|
|
|
}
|
|
|
if (Remain != 0) {
|
|
|
output.WriteRawTag(24);
|
|
|
output.WriteInt32(Remain);
|
|
|
}
|
|
|
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 (Id != 0L) {
|
|
|
output.WriteRawTag(8);
|
|
|
output.WriteInt64(Id);
|
|
|
}
|
|
|
if (Sort != 0) {
|
|
|
output.WriteRawTag(16);
|
|
|
output.WriteInt32(Sort);
|
|
|
}
|
|
|
if (Remain != 0) {
|
|
|
output.WriteRawTag(24);
|
|
|
output.WriteInt32(Remain);
|
|
|
}
|
|
|
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 (Id != 0L) {
|
|
|
size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id);
|
|
|
}
|
|
|
if (Sort != 0) {
|
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Sort);
|
|
|
}
|
|
|
if (Remain != 0) {
|
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Remain);
|
|
|
}
|
|
|
if (_unknownFields != null) {
|
|
|
size += _unknownFields.CalculateSize();
|
|
|
}
|
|
|
return size;
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public void MergeFrom(EliteItem other) {
|
|
|
if (other == null) {
|
|
|
return;
|
|
|
}
|
|
|
if (other.Id != 0L) {
|
|
|
Id = other.Id;
|
|
|
}
|
|
|
if (other.Sort != 0) {
|
|
|
Sort = other.Sort;
|
|
|
}
|
|
|
if (other.Remain != 0) {
|
|
|
Remain = other.Remain;
|
|
|
}
|
|
|
_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: {
|
|
|
Id = input.ReadInt64();
|
|
|
break;
|
|
|
}
|
|
|
case 16: {
|
|
|
Sort = input.ReadInt32();
|
|
|
break;
|
|
|
}
|
|
|
case 24: {
|
|
|
Remain = input.ReadInt32();
|
|
|
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: {
|
|
|
Id = input.ReadInt64();
|
|
|
break;
|
|
|
}
|
|
|
case 16: {
|
|
|
Sort = input.ReadInt32();
|
|
|
break;
|
|
|
}
|
|
|
case 24: {
|
|
|
Remain = input.ReadInt32();
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
/// QueryIntegralMsg 用户查询信息通知 push -> user.query
|
|
|
/// </summary>
|
|
|
public sealed partial class UserQueryMsg : pb::IMessage<UserQueryMsg>
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
|
, pb::IBufferMessage
|
|
|
#endif
|
|
|
{
|
|
|
private static readonly pb::MessageParser<UserQueryMsg> _parser = new pb::MessageParser<UserQueryMsg>(() => new UserQueryMsg());
|
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public static pb::MessageParser<UserQueryMsg> Parser { get { return _parser; } }
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
|
get { return global::Pb.Game.Zhg.CommandReflection.Descriptor.MessageTypes[12]; }
|
|
|
}
|
|
|
|
|
|
[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 UserQueryMsg() {
|
|
|
OnConstruction();
|
|
|
}
|
|
|
|
|
|
partial void OnConstruction();
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public UserQueryMsg(UserQueryMsg other) : this() {
|
|
|
user_ = other.user_ != null ? other.user_.Clone() : null;
|
|
|
rank_ = other.rank_.Clone();
|
|
|
coin_ = other.coin_;
|
|
|
grade_ = other.grade_ != null ? other.grade_.Clone() : null;
|
|
|
titles_ = other.titles_.Clone();
|
|
|
elites_ = other.elites_.Clone();
|
|
|
currentTitle_ = other.currentTitle_ != null ? other.currentTitle_.Clone() : null;
|
|
|
currentElite_ = other.currentElite_ != null ? other.currentElite_.Clone() : null;
|
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public UserQueryMsg Clone() {
|
|
|
return new UserQueryMsg(this);
|
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "user" field.</summary>
|
|
|
public const int UserFieldNumber = 1;
|
|
|
private global::Pb.Common.PbUser user_;
|
|
|
/// <summary>
|
|
|
/// 用户信息
|
|
|
/// </summary>
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public global::Pb.Common.PbUser User {
|
|
|
get { return user_; }
|
|
|
set {
|
|
|
user_ = value;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "rank" field.</summary>
|
|
|
public const int RankFieldNumber = 2;
|
|
|
private static readonly pb::FieldCodec<global::Pb.Game.Zhg.UserQueryMsg.Types.RankItem> _repeated_rank_codec
|
|
|
= pb::FieldCodec.ForMessage(18, global::Pb.Game.Zhg.UserQueryMsg.Types.RankItem.Parser);
|
|
|
private readonly pbc::RepeatedField<global::Pb.Game.Zhg.UserQueryMsg.Types.RankItem> rank_ = new pbc::RepeatedField<global::Pb.Game.Zhg.UserQueryMsg.Types.RankItem>();
|
|
|
/// <summary>
|
|
|
/// 排行数据(多个榜)
|
|
|
/// </summary>
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public pbc::RepeatedField<global::Pb.Game.Zhg.UserQueryMsg.Types.RankItem> Rank {
|
|
|
get { return rank_; }
|
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "coin" field.</summary>
|
|
|
public const int CoinFieldNumber = 3;
|
|
|
private long coin_;
|
|
|
/// <summary>
|
|
|
/// 弹币
|
|
|
/// </summary>
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public long Coin {
|
|
|
get { return coin_; }
|
|
|
set {
|
|
|
coin_ = value;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "grade" field.</summary>
|
|
|
public const int GradeFieldNumber = 4;
|
|
|
private global::Pb.Game.Zhg.Grade grade_;
|
|
|
/// <summary>
|
|
|
/// 段位
|
|
|
/// </summary>
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public global::Pb.Game.Zhg.Grade Grade {
|
|
|
get { return grade_; }
|
|
|
set {
|
|
|
grade_ = value;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "titles" field.</summary>
|
|
|
public const int TitlesFieldNumber = 10;
|
|
|
private static readonly pb::FieldCodec<global::Pb.Common.TitleItem> _repeated_titles_codec
|
|
|
= pb::FieldCodec.ForMessage(82, global::Pb.Common.TitleItem.Parser);
|
|
|
private readonly pbc::RepeatedField<global::Pb.Common.TitleItem> titles_ = new pbc::RepeatedField<global::Pb.Common.TitleItem>();
|
|
|
/// <summary>
|
|
|
/// 称号ID列表,具体称号配置 给接口取
|
|
|
/// </summary>
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public pbc::RepeatedField<global::Pb.Common.TitleItem> Titles {
|
|
|
get { return titles_; }
|
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "elites" field.</summary>
|
|
|
public const int ElitesFieldNumber = 11;
|
|
|
private static readonly pb::FieldCodec<global::Pb.Game.Zhg.EliteItem> _repeated_elites_codec
|
|
|
= pb::FieldCodec.ForMessage(90, global::Pb.Game.Zhg.EliteItem.Parser);
|
|
|
private readonly pbc::RepeatedField<global::Pb.Game.Zhg.EliteItem> elites_ = new pbc::RepeatedField<global::Pb.Game.Zhg.EliteItem>();
|
|
|
/// <summary>
|
|
|
/// 拥有的精英单位列表
|
|
|
/// </summary>
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public pbc::RepeatedField<global::Pb.Game.Zhg.EliteItem> Elites {
|
|
|
get { return elites_; }
|
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "currentTitle" field.</summary>
|
|
|
public const int CurrentTitleFieldNumber = 12;
|
|
|
private global::Pb.Common.TitleItem currentTitle_;
|
|
|
/// <summary>
|
|
|
/// 当前佩戴的称号
|
|
|
/// </summary>
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public global::Pb.Common.TitleItem CurrentTitle {
|
|
|
get { return currentTitle_; }
|
|
|
set {
|
|
|
currentTitle_ = value;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "currentElite" field.</summary>
|
|
|
public const int CurrentEliteFieldNumber = 13;
|
|
|
private global::Pb.Game.Zhg.EliteItem currentElite_;
|
|
|
/// <summary>
|
|
|
/// 当前使用的精英单位
|
|
|
/// </summary>
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public global::Pb.Game.Zhg.EliteItem CurrentElite {
|
|
|
get { return currentElite_; }
|
|
|
set {
|
|
|
currentElite_ = value;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public override bool Equals(object other) {
|
|
|
return Equals(other as UserQueryMsg);
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public bool Equals(UserQueryMsg other) {
|
|
|
if (ReferenceEquals(other, null)) {
|
|
|
return false;
|
|
|
}
|
|
|
if (ReferenceEquals(other, this)) {
|
|
|
return true;
|
|
|
}
|
|
|
if (!object.Equals(User, other.User)) return false;
|
|
|
if(!rank_.Equals(other.rank_)) return false;
|
|
|
if (Coin != other.Coin) return false;
|
|
|
if (!object.Equals(Grade, other.Grade)) return false;
|
|
|
if(!titles_.Equals(other.titles_)) return false;
|
|
|
if(!elites_.Equals(other.elites_)) return false;
|
|
|
if (!object.Equals(CurrentTitle, other.CurrentTitle)) return false;
|
|
|
if (!object.Equals(CurrentElite, other.CurrentElite)) 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();
|
|
|
hash ^= rank_.GetHashCode();
|
|
|
if (Coin != 0L) hash ^= Coin.GetHashCode();
|
|
|
if (grade_ != null) hash ^= Grade.GetHashCode();
|
|
|
hash ^= titles_.GetHashCode();
|
|
|
hash ^= elites_.GetHashCode();
|
|
|
if (currentTitle_ != null) hash ^= CurrentTitle.GetHashCode();
|
|
|
if (currentElite_ != null) hash ^= CurrentElite.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);
|
|
|
}
|
|
|
rank_.WriteTo(output, _repeated_rank_codec);
|
|
|
if (Coin != 0L) {
|
|
|
output.WriteRawTag(24);
|
|
|
output.WriteInt64(Coin);
|
|
|
}
|
|
|
if (grade_ != null) {
|
|
|
output.WriteRawTag(34);
|
|
|
output.WriteMessage(Grade);
|
|
|
}
|
|
|
titles_.WriteTo(output, _repeated_titles_codec);
|
|
|
elites_.WriteTo(output, _repeated_elites_codec);
|
|
|
if (currentTitle_ != null) {
|
|
|
output.WriteRawTag(98);
|
|
|
output.WriteMessage(CurrentTitle);
|
|
|
}
|
|
|
if (currentElite_ != null) {
|
|
|
output.WriteRawTag(106);
|
|
|
output.WriteMessage(CurrentElite);
|
|
|
}
|
|
|
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);
|
|
|
}
|
|
|
rank_.WriteTo(ref output, _repeated_rank_codec);
|
|
|
if (Coin != 0L) {
|
|
|
output.WriteRawTag(24);
|
|
|
output.WriteInt64(Coin);
|
|
|
}
|
|
|
if (grade_ != null) {
|
|
|
output.WriteRawTag(34);
|
|
|
output.WriteMessage(Grade);
|
|
|
}
|
|
|
titles_.WriteTo(ref output, _repeated_titles_codec);
|
|
|
elites_.WriteTo(ref output, _repeated_elites_codec);
|
|
|
if (currentTitle_ != null) {
|
|
|
output.WriteRawTag(98);
|
|
|
output.WriteMessage(CurrentTitle);
|
|
|
}
|
|
|
if (currentElite_ != null) {
|
|
|
output.WriteRawTag(106);
|
|
|
output.WriteMessage(CurrentElite);
|
|
|
}
|
|
|
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);
|
|
|
}
|
|
|
size += rank_.CalculateSize(_repeated_rank_codec);
|
|
|
if (Coin != 0L) {
|
|
|
size += 1 + pb::CodedOutputStream.ComputeInt64Size(Coin);
|
|
|
}
|
|
|
if (grade_ != null) {
|
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Grade);
|
|
|
}
|
|
|
size += titles_.CalculateSize(_repeated_titles_codec);
|
|
|
size += elites_.CalculateSize(_repeated_elites_codec);
|
|
|
if (currentTitle_ != null) {
|
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(CurrentTitle);
|
|
|
}
|
|
|
if (currentElite_ != null) {
|
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(CurrentElite);
|
|
|
}
|
|
|
if (_unknownFields != null) {
|
|
|
size += _unknownFields.CalculateSize();
|
|
|
}
|
|
|
return size;
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public void MergeFrom(UserQueryMsg other) {
|
|
|
if (other == null) {
|
|
|
return;
|
|
|
}
|
|
|
if (other.user_ != null) {
|
|
|
if (user_ == null) {
|
|
|
User = new global::Pb.Common.PbUser();
|
|
|
}
|
|
|
User.MergeFrom(other.User);
|
|
|
}
|
|
|
rank_.Add(other.rank_);
|
|
|
if (other.Coin != 0L) {
|
|
|
Coin = other.Coin;
|
|
|
}
|
|
|
if (other.grade_ != null) {
|
|
|
if (grade_ == null) {
|
|
|
Grade = new global::Pb.Game.Zhg.Grade();
|
|
|
}
|
|
|
Grade.MergeFrom(other.Grade);
|
|
|
}
|
|
|
titles_.Add(other.titles_);
|
|
|
elites_.Add(other.elites_);
|
|
|
if (other.currentTitle_ != null) {
|
|
|
if (currentTitle_ == null) {
|
|
|
CurrentTitle = new global::Pb.Common.TitleItem();
|
|
|
}
|
|
|
CurrentTitle.MergeFrom(other.CurrentTitle);
|
|
|
}
|
|
|
if (other.currentElite_ != null) {
|
|
|
if (currentElite_ == null) {
|
|
|
CurrentElite = new global::Pb.Game.Zhg.EliteItem();
|
|
|
}
|
|
|
CurrentElite.MergeFrom(other.CurrentElite);
|
|
|
}
|
|
|
_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::Pb.Common.PbUser();
|
|
|
}
|
|
|
input.ReadMessage(User);
|
|
|
break;
|
|
|
}
|
|
|
case 18: {
|
|
|
rank_.AddEntriesFrom(input, _repeated_rank_codec);
|
|
|
break;
|
|
|
}
|
|
|
case 24: {
|
|
|
Coin = input.ReadInt64();
|
|
|
break;
|
|
|
}
|
|
|
case 34: {
|
|
|
if (grade_ == null) {
|
|
|
Grade = new global::Pb.Game.Zhg.Grade();
|
|
|
}
|
|
|
input.ReadMessage(Grade);
|
|
|
break;
|
|
|
}
|
|
|
case 82: {
|
|
|
titles_.AddEntriesFrom(input, _repeated_titles_codec);
|
|
|
break;
|
|
|
}
|
|
|
case 90: {
|
|
|
elites_.AddEntriesFrom(input, _repeated_elites_codec);
|
|
|
break;
|
|
|
}
|
|
|
case 98: {
|
|
|
if (currentTitle_ == null) {
|
|
|
CurrentTitle = new global::Pb.Common.TitleItem();
|
|
|
}
|
|
|
input.ReadMessage(CurrentTitle);
|
|
|
break;
|
|
|
}
|
|
|
case 106: {
|
|
|
if (currentElite_ == null) {
|
|
|
CurrentElite = new global::Pb.Game.Zhg.EliteItem();
|
|
|
}
|
|
|
input.ReadMessage(CurrentElite);
|
|
|
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::Pb.Common.PbUser();
|
|
|
}
|
|
|
input.ReadMessage(User);
|
|
|
break;
|
|
|
}
|
|
|
case 18: {
|
|
|
rank_.AddEntriesFrom(ref input, _repeated_rank_codec);
|
|
|
break;
|
|
|
}
|
|
|
case 24: {
|
|
|
Coin = input.ReadInt64();
|
|
|
break;
|
|
|
}
|
|
|
case 34: {
|
|
|
if (grade_ == null) {
|
|
|
Grade = new global::Pb.Game.Zhg.Grade();
|
|
|
}
|
|
|
input.ReadMessage(Grade);
|
|
|
break;
|
|
|
}
|
|
|
case 82: {
|
|
|
titles_.AddEntriesFrom(ref input, _repeated_titles_codec);
|
|
|
break;
|
|
|
}
|
|
|
case 90: {
|
|
|
elites_.AddEntriesFrom(ref input, _repeated_elites_codec);
|
|
|
break;
|
|
|
}
|
|
|
case 98: {
|
|
|
if (currentTitle_ == null) {
|
|
|
CurrentTitle = new global::Pb.Common.TitleItem();
|
|
|
}
|
|
|
input.ReadMessage(CurrentTitle);
|
|
|
break;
|
|
|
}
|
|
|
case 106: {
|
|
|
if (currentElite_ == null) {
|
|
|
CurrentElite = new global::Pb.Game.Zhg.EliteItem();
|
|
|
}
|
|
|
input.ReadMessage(CurrentElite);
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
#region Nested types
|
|
|
/// <summary>Container for nested types declared in the UserQueryMsg message type.</summary>
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public static partial class Types {
|
|
|
/// <summary>
|
|
|
/// RankItem 排行数据结构
|
|
|
/// </summary>
|
|
|
public sealed partial class RankItem : pb::IMessage<RankItem>
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
|
, pb::IBufferMessage
|
|
|
#endif
|
|
|
{
|
|
|
private static readonly pb::MessageParser<RankItem> _parser = new pb::MessageParser<RankItem>(() => new RankItem());
|
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public static pb::MessageParser<RankItem> Parser { get { return _parser; } }
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
|
get { return global::Pb.Game.Zhg.UserQueryMsg.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 RankItem() {
|
|
|
OnConstruction();
|
|
|
}
|
|
|
|
|
|
partial void OnConstruction();
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public RankItem(RankItem other) : this() {
|
|
|
rankType_ = other.rankType_;
|
|
|
score_ = other.score_;
|
|
|
rank_ = other.rank_;
|
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public RankItem Clone() {
|
|
|
return new RankItem(this);
|
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "rankType" field.</summary>
|
|
|
public const int RankTypeFieldNumber = 1;
|
|
|
private int rankType_;
|
|
|
/// <summary>
|
|
|
/// 排行榜类型 (与pbGameZhg.RankType一致)
|
|
|
/// </summary>
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public int RankType {
|
|
|
get { return rankType_; }
|
|
|
set {
|
|
|
rankType_ = value;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "score" field.</summary>
|
|
|
public const int ScoreFieldNumber = 2;
|
|
|
private long score_;
|
|
|
/// <summary>
|
|
|
/// 具体分数
|
|
|
/// </summary>
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public long Score {
|
|
|
get { return score_; }
|
|
|
set {
|
|
|
score_ = value;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "rank" field.</summary>
|
|
|
public const int RankFieldNumber = 3;
|
|
|
private int rank_;
|
|
|
/// <summary>
|
|
|
/// 具体排名,不上榜为0
|
|
|
/// </summary>
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public int Rank {
|
|
|
get { return rank_; }
|
|
|
set {
|
|
|
rank_ = value;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public override bool Equals(object other) {
|
|
|
return Equals(other as RankItem);
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public bool Equals(RankItem other) {
|
|
|
if (ReferenceEquals(other, null)) {
|
|
|
return false;
|
|
|
}
|
|
|
if (ReferenceEquals(other, this)) {
|
|
|
return true;
|
|
|
}
|
|
|
if (RankType != other.RankType) return false;
|
|
|
if (Score != other.Score) return false;
|
|
|
if (Rank != other.Rank) 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 (RankType != 0) hash ^= RankType.GetHashCode();
|
|
|
if (Score != 0L) hash ^= Score.GetHashCode();
|
|
|
if (Rank != 0) hash ^= Rank.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 (RankType != 0) {
|
|
|
output.WriteRawTag(8);
|
|
|
output.WriteInt32(RankType);
|
|
|
}
|
|
|
if (Score != 0L) {
|
|
|
output.WriteRawTag(16);
|
|
|
output.WriteInt64(Score);
|
|
|
}
|
|
|
if (Rank != 0) {
|
|
|
output.WriteRawTag(24);
|
|
|
output.WriteInt32(Rank);
|
|
|
}
|
|
|
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 (RankType != 0) {
|
|
|
output.WriteRawTag(8);
|
|
|
output.WriteInt32(RankType);
|
|
|
}
|
|
|
if (Score != 0L) {
|
|
|
output.WriteRawTag(16);
|
|
|
output.WriteInt64(Score);
|
|
|
}
|
|
|
if (Rank != 0) {
|
|
|
output.WriteRawTag(24);
|
|
|
output.WriteInt32(Rank);
|
|
|
}
|
|
|
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 (RankType != 0) {
|
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(RankType);
|
|
|
}
|
|
|
if (Score != 0L) {
|
|
|
size += 1 + pb::CodedOutputStream.ComputeInt64Size(Score);
|
|
|
}
|
|
|
if (Rank != 0) {
|
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Rank);
|
|
|
}
|
|
|
if (_unknownFields != null) {
|
|
|
size += _unknownFields.CalculateSize();
|
|
|
}
|
|
|
return size;
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
|
public void MergeFrom(RankItem other) {
|
|
|
if (other == null) {
|
|
|
return;
|
|
|
}
|
|
|
if (other.RankType != 0) {
|
|
|
RankType = other.RankType;
|
|
|
}
|
|
|
if (other.Score != 0L) {
|
|
|
Score = other.Score;
|
|
|
}
|
|
|
if (other.Rank != 0) {
|
|
|
Rank = other.Rank;
|
|
|
}
|
|
|
_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: {
|
|
|
RankType = input.ReadInt32();
|
|
|
break;
|
|
|
}
|
|
|
case 16: {
|
|
|
Score = input.ReadInt64();
|
|
|
break;
|
|
|
}
|
|
|
case 24: {
|
|
|
Rank = input.ReadInt32();
|
|
|
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: {
|
|
|
RankType = input.ReadInt32();
|
|
|
break;
|
|
|
}
|
|
|
case 16: {
|
|
|
Score = input.ReadInt64();
|
|
|
break;
|
|
|
}
|
|
|
case 24: {
|
|
|
Rank = input.ReadInt32();
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
#endregion
|
|
|
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
}
|
|
|
|
|
|
#endregion Designer generated code
|