You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
828 lines
28 KiB
C#
828 lines
28 KiB
C#
3 years ago
|
// <auto-generated>
|
||
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||
|
// source: rank.proto
|
||
|
// </auto-generated>
|
||
|
#pragma warning disable 1591, 0612, 3021
|
||
|
#region Designer generated code
|
||
|
|
||
|
using pb = global::Google.Protobuf;
|
||
|
using pbc = global::Google.Protobuf.Collections;
|
||
|
using pbr = global::Google.Protobuf.Reflection;
|
||
|
using scg = global::System.Collections.Generic;
|
||
|
namespace PbClient {
|
||
|
|
||
|
/// <summary>Holder for reflection information generated from rank.proto</summary>
|
||
|
public static partial class RankReflection {
|
||
|
|
||
|
#region Descriptor
|
||
|
/// <summary>File descriptor for rank.proto</summary>
|
||
|
public static pbr::FileDescriptor Descriptor {
|
||
|
get { return descriptor; }
|
||
|
}
|
||
|
private static pbr::FileDescriptor descriptor;
|
||
|
|
||
|
static RankReflection() {
|
||
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||
|
string.Concat(
|
||
|
"CgpyYW5rLnByb3RvEghwYkNsaWVudCIoCgpSYW5rUHZwUmVxEgwKBHR5cGUY",
|
||
|
"ASABKAUSDAoEdG9wThgCIAEoBSKJAQoLUmFua1B2cFJlc3ASDAoEdHlwZRgB",
|
||
|
"IAEoBRIpCgVpdGVtcxgCIAMoCzIaLnBiQ2xpZW50LlJhbmtQdnBSZXNwLkl0",
|
||
|
"ZW0aQQoESXRlbRILCgN1aWQYASABKAMSDQoFdW5hbWUYAiABKAkSDQoFc2Nv",
|
||
|
"cmUYAyABKAMSDgoGYXZhdGFyGAQgASgJKk4KCFJhbmtUeXBlEgsKB1Vua25v",
|
||
|
"d24QABIKCgZEYW1hZ2UQARILCgdHZW5lcmFsEAISDAoIS2lsbFVuaXQQAxIO",
|
||
|
"CgpLaWxsUGxheWVyEARCCVoHL3BiUmFua2IGcHJvdG8z"));
|
||
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||
|
new pbr::FileDescriptor[] { },
|
||
|
new pbr::GeneratedClrTypeInfo(new[] {typeof(global::PbClient.RankType), }, null, new pbr::GeneratedClrTypeInfo[] {
|
||
|
new pbr::GeneratedClrTypeInfo(typeof(global::PbClient.RankPvpReq), global::PbClient.RankPvpReq.Parser, new[]{ "Type", "TopN" }, null, null, null, null),
|
||
|
new pbr::GeneratedClrTypeInfo(typeof(global::PbClient.RankPvpResp), global::PbClient.RankPvpResp.Parser, new[]{ "Type", "Items" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::PbClient.RankPvpResp.Types.Item), global::PbClient.RankPvpResp.Types.Item.Parser, new[]{ "Uid", "Uname", "Score", "Avatar" }, null, null, null, null)})
|
||
|
}));
|
||
|
}
|
||
|
#endregion
|
||
|
|
||
|
}
|
||
|
#region Enums
|
||
|
public enum RankType {
|
||
|
[pbr::OriginalName("Unknown")] Unknown = 0,
|
||
|
[pbr::OriginalName("Damage")] Damage = 1,
|
||
|
[pbr::OriginalName("General")] General = 2,
|
||
|
[pbr::OriginalName("KillUnit")] KillUnit = 3,
|
||
|
[pbr::OriginalName("KillPlayer")] KillPlayer = 4,
|
||
|
}
|
||
|
|
||
|
#endregion
|
||
|
|
||
|
#region Messages
|
||
|
/// <summary>
|
||
|
/// RankPvpReq 获取排行榜 request > rank.pvp
|
||
|
/// </summary>
|
||
|
public sealed partial class RankPvpReq : pb::IMessage<RankPvpReq>
|
||
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||
|
, pb::IBufferMessage
|
||
|
#endif
|
||
|
{
|
||
|
private static readonly pb::MessageParser<RankPvpReq> _parser = new pb::MessageParser<RankPvpReq>(() => new RankPvpReq());
|
||
|
private pb::UnknownFieldSet _unknownFields;
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public static pb::MessageParser<RankPvpReq> Parser { get { return _parser; } }
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public static pbr::MessageDescriptor Descriptor {
|
||
|
get { return global::PbClient.RankReflection.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 RankPvpReq() {
|
||
|
OnConstruction();
|
||
|
}
|
||
|
|
||
|
partial void OnConstruction();
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public RankPvpReq(RankPvpReq other) : this() {
|
||
|
type_ = other.type_;
|
||
|
topN_ = other.topN_;
|
||
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||
|
}
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public RankPvpReq Clone() {
|
||
|
return new RankPvpReq(this);
|
||
|
}
|
||
|
|
||
|
/// <summary>Field number for the "type" field.</summary>
|
||
|
public const int TypeFieldNumber = 1;
|
||
|
private int type_;
|
||
|
/// <summary>
|
||
|
/// rank类型
|
||
|
/// </summary>
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public int Type {
|
||
|
get { return type_; }
|
||
|
set {
|
||
|
type_ = value;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/// <summary>Field number for the "topN" field.</summary>
|
||
|
public const int TopNFieldNumber = 2;
|
||
|
private int topN_;
|
||
|
/// <summary>
|
||
|
/// TopN
|
||
|
/// </summary>
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public int TopN {
|
||
|
get { return topN_; }
|
||
|
set {
|
||
|
topN_ = value;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public override bool Equals(object other) {
|
||
|
return Equals(other as RankPvpReq);
|
||
|
}
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public bool Equals(RankPvpReq other) {
|
||
|
if (ReferenceEquals(other, null)) {
|
||
|
return false;
|
||
|
}
|
||
|
if (ReferenceEquals(other, this)) {
|
||
|
return true;
|
||
|
}
|
||
|
if (Type != other.Type) return false;
|
||
|
if (TopN != other.TopN) 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 (Type != 0) hash ^= Type.GetHashCode();
|
||
|
if (TopN != 0) hash ^= TopN.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 (Type != 0) {
|
||
|
output.WriteRawTag(8);
|
||
|
output.WriteInt32(Type);
|
||
|
}
|
||
|
if (TopN != 0) {
|
||
|
output.WriteRawTag(16);
|
||
|
output.WriteInt32(TopN);
|
||
|
}
|
||
|
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 (Type != 0) {
|
||
|
output.WriteRawTag(8);
|
||
|
output.WriteInt32(Type);
|
||
|
}
|
||
|
if (TopN != 0) {
|
||
|
output.WriteRawTag(16);
|
||
|
output.WriteInt32(TopN);
|
||
|
}
|
||
|
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 (Type != 0) {
|
||
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Type);
|
||
|
}
|
||
|
if (TopN != 0) {
|
||
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(TopN);
|
||
|
}
|
||
|
if (_unknownFields != null) {
|
||
|
size += _unknownFields.CalculateSize();
|
||
|
}
|
||
|
return size;
|
||
|
}
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public void MergeFrom(RankPvpReq other) {
|
||
|
if (other == null) {
|
||
|
return;
|
||
|
}
|
||
|
if (other.Type != 0) {
|
||
|
Type = other.Type;
|
||
|
}
|
||
|
if (other.TopN != 0) {
|
||
|
TopN = other.TopN;
|
||
|
}
|
||
|
_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: {
|
||
|
Type = input.ReadInt32();
|
||
|
break;
|
||
|
}
|
||
|
case 16: {
|
||
|
TopN = 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: {
|
||
|
Type = input.ReadInt32();
|
||
|
break;
|
||
|
}
|
||
|
case 16: {
|
||
|
TopN = input.ReadInt32();
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// RankPvpResp 排行榜数据 response > rank.pvp
|
||
|
/// </summary>
|
||
|
public sealed partial class RankPvpResp : pb::IMessage<RankPvpResp>
|
||
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||
|
, pb::IBufferMessage
|
||
|
#endif
|
||
|
{
|
||
|
private static readonly pb::MessageParser<RankPvpResp> _parser = new pb::MessageParser<RankPvpResp>(() => new RankPvpResp());
|
||
|
private pb::UnknownFieldSet _unknownFields;
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public static pb::MessageParser<RankPvpResp> Parser { get { return _parser; } }
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public static pbr::MessageDescriptor Descriptor {
|
||
|
get { return global::PbClient.RankReflection.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 RankPvpResp() {
|
||
|
OnConstruction();
|
||
|
}
|
||
|
|
||
|
partial void OnConstruction();
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public RankPvpResp(RankPvpResp other) : this() {
|
||
|
type_ = other.type_;
|
||
|
items_ = other.items_.Clone();
|
||
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||
|
}
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public RankPvpResp Clone() {
|
||
|
return new RankPvpResp(this);
|
||
|
}
|
||
|
|
||
|
/// <summary>Field number for the "type" field.</summary>
|
||
|
public const int TypeFieldNumber = 1;
|
||
|
private int type_;
|
||
|
/// <summary>
|
||
|
/// rank类型
|
||
|
/// </summary>
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public int Type {
|
||
|
get { return type_; }
|
||
|
set {
|
||
|
type_ = value;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/// <summary>Field number for the "items" field.</summary>
|
||
|
public const int ItemsFieldNumber = 2;
|
||
|
private static readonly pb::FieldCodec<global::PbClient.RankPvpResp.Types.Item> _repeated_items_codec
|
||
|
= pb::FieldCodec.ForMessage(18, global::PbClient.RankPvpResp.Types.Item.Parser);
|
||
|
private readonly pbc::RepeatedField<global::PbClient.RankPvpResp.Types.Item> items_ = new pbc::RepeatedField<global::PbClient.RankPvpResp.Types.Item>();
|
||
|
/// <summary>
|
||
|
/// rank数据
|
||
|
/// </summary>
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public pbc::RepeatedField<global::PbClient.RankPvpResp.Types.Item> Items {
|
||
|
get { return items_; }
|
||
|
}
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public override bool Equals(object other) {
|
||
|
return Equals(other as RankPvpResp);
|
||
|
}
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public bool Equals(RankPvpResp other) {
|
||
|
if (ReferenceEquals(other, null)) {
|
||
|
return false;
|
||
|
}
|
||
|
if (ReferenceEquals(other, this)) {
|
||
|
return true;
|
||
|
}
|
||
|
if (Type != other.Type) return false;
|
||
|
if(!items_.Equals(other.items_)) 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 (Type != 0) hash ^= Type.GetHashCode();
|
||
|
hash ^= items_.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 (Type != 0) {
|
||
|
output.WriteRawTag(8);
|
||
|
output.WriteInt32(Type);
|
||
|
}
|
||
|
items_.WriteTo(output, _repeated_items_codec);
|
||
|
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 (Type != 0) {
|
||
|
output.WriteRawTag(8);
|
||
|
output.WriteInt32(Type);
|
||
|
}
|
||
|
items_.WriteTo(ref output, _repeated_items_codec);
|
||
|
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 (Type != 0) {
|
||
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Type);
|
||
|
}
|
||
|
size += items_.CalculateSize(_repeated_items_codec);
|
||
|
if (_unknownFields != null) {
|
||
|
size += _unknownFields.CalculateSize();
|
||
|
}
|
||
|
return size;
|
||
|
}
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public void MergeFrom(RankPvpResp other) {
|
||
|
if (other == null) {
|
||
|
return;
|
||
|
}
|
||
|
if (other.Type != 0) {
|
||
|
Type = other.Type;
|
||
|
}
|
||
|
items_.Add(other.items_);
|
||
|
_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: {
|
||
|
Type = input.ReadInt32();
|
||
|
break;
|
||
|
}
|
||
|
case 18: {
|
||
|
items_.AddEntriesFrom(input, _repeated_items_codec);
|
||
|
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: {
|
||
|
Type = input.ReadInt32();
|
||
|
break;
|
||
|
}
|
||
|
case 18: {
|
||
|
items_.AddEntriesFrom(ref input, _repeated_items_codec);
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
#region Nested types
|
||
|
/// <summary>Container for nested types declared in the RankPvpResp message type.</summary>
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public static partial class Types {
|
||
|
public sealed partial class Item : pb::IMessage<Item>
|
||
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||
|
, pb::IBufferMessage
|
||
|
#endif
|
||
|
{
|
||
|
private static readonly pb::MessageParser<Item> _parser = new pb::MessageParser<Item>(() => new Item());
|
||
|
private pb::UnknownFieldSet _unknownFields;
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public static pb::MessageParser<Item> Parser { get { return _parser; } }
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public static pbr::MessageDescriptor Descriptor {
|
||
|
get { return global::PbClient.RankPvpResp.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 Item() {
|
||
|
OnConstruction();
|
||
|
}
|
||
|
|
||
|
partial void OnConstruction();
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public Item(Item other) : this() {
|
||
|
uid_ = other.uid_;
|
||
|
uname_ = other.uname_;
|
||
|
score_ = other.score_;
|
||
|
avatar_ = other.avatar_;
|
||
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||
|
}
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public Item Clone() {
|
||
|
return new Item(this);
|
||
|
}
|
||
|
|
||
|
/// <summary>Field number for the "uid" field.</summary>
|
||
|
public const int UidFieldNumber = 1;
|
||
|
private long uid_;
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public long Uid {
|
||
|
get { return uid_; }
|
||
|
set {
|
||
|
uid_ = value;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/// <summary>Field number for the "uname" field.</summary>
|
||
|
public const int UnameFieldNumber = 2;
|
||
|
private string uname_ = "";
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public string Uname {
|
||
|
get { return uname_; }
|
||
|
set {
|
||
|
uname_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/// <summary>Field number for the "score" field.</summary>
|
||
|
public const int ScoreFieldNumber = 3;
|
||
|
private long score_;
|
||
|
[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 "avatar" field.</summary>
|
||
|
public const int AvatarFieldNumber = 4;
|
||
|
private string avatar_ = "";
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public string Avatar {
|
||
|
get { return avatar_; }
|
||
|
set {
|
||
|
avatar_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
|
}
|
||
|
}
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public override bool Equals(object other) {
|
||
|
return Equals(other as Item);
|
||
|
}
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public bool Equals(Item other) {
|
||
|
if (ReferenceEquals(other, null)) {
|
||
|
return false;
|
||
|
}
|
||
|
if (ReferenceEquals(other, this)) {
|
||
|
return true;
|
||
|
}
|
||
|
if (Uid != other.Uid) return false;
|
||
|
if (Uname != other.Uname) return false;
|
||
|
if (Score != other.Score) return false;
|
||
|
if (Avatar != other.Avatar) return false;
|
||
|
return Equals(_unknownFields, other._unknownFields);
|
||
|
}
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public override int GetHashCode() {
|
||
|
int hash = 1;
|
||
|
if (Uid != 0L) hash ^= Uid.GetHashCode();
|
||
|
if (Uname.Length != 0) hash ^= Uname.GetHashCode();
|
||
|
if (Score != 0L) hash ^= Score.GetHashCode();
|
||
|
if (Avatar.Length != 0) hash ^= Avatar.GetHashCode();
|
||
|
if (_unknownFields != null) {
|
||
|
hash ^= _unknownFields.GetHashCode();
|
||
|
}
|
||
|
return hash;
|
||
|
}
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public override string ToString() {
|
||
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
||
|
}
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public void WriteTo(pb::CodedOutputStream output) {
|
||
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||
|
output.WriteRawMessage(this);
|
||
|
#else
|
||
|
if (Uid != 0L) {
|
||
|
output.WriteRawTag(8);
|
||
|
output.WriteInt64(Uid);
|
||
|
}
|
||
|
if (Uname.Length != 0) {
|
||
|
output.WriteRawTag(18);
|
||
|
output.WriteString(Uname);
|
||
|
}
|
||
|
if (Score != 0L) {
|
||
|
output.WriteRawTag(24);
|
||
|
output.WriteInt64(Score);
|
||
|
}
|
||
|
if (Avatar.Length != 0) {
|
||
|
output.WriteRawTag(34);
|
||
|
output.WriteString(Avatar);
|
||
|
}
|
||
|
if (_unknownFields != null) {
|
||
|
_unknownFields.WriteTo(output);
|
||
|
}
|
||
|
#endif
|
||
|
}
|
||
|
|
||
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
||
|
if (Uid != 0L) {
|
||
|
output.WriteRawTag(8);
|
||
|
output.WriteInt64(Uid);
|
||
|
}
|
||
|
if (Uname.Length != 0) {
|
||
|
output.WriteRawTag(18);
|
||
|
output.WriteString(Uname);
|
||
|
}
|
||
|
if (Score != 0L) {
|
||
|
output.WriteRawTag(24);
|
||
|
output.WriteInt64(Score);
|
||
|
}
|
||
|
if (Avatar.Length != 0) {
|
||
|
output.WriteRawTag(34);
|
||
|
output.WriteString(Avatar);
|
||
|
}
|
||
|
if (_unknownFields != null) {
|
||
|
_unknownFields.WriteTo(ref output);
|
||
|
}
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public int CalculateSize() {
|
||
|
int size = 0;
|
||
|
if (Uid != 0L) {
|
||
|
size += 1 + pb::CodedOutputStream.ComputeInt64Size(Uid);
|
||
|
}
|
||
|
if (Uname.Length != 0) {
|
||
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Uname);
|
||
|
}
|
||
|
if (Score != 0L) {
|
||
|
size += 1 + pb::CodedOutputStream.ComputeInt64Size(Score);
|
||
|
}
|
||
|
if (Avatar.Length != 0) {
|
||
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Avatar);
|
||
|
}
|
||
|
if (_unknownFields != null) {
|
||
|
size += _unknownFields.CalculateSize();
|
||
|
}
|
||
|
return size;
|
||
|
}
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public void MergeFrom(Item other) {
|
||
|
if (other == null) {
|
||
|
return;
|
||
|
}
|
||
|
if (other.Uid != 0L) {
|
||
|
Uid = other.Uid;
|
||
|
}
|
||
|
if (other.Uname.Length != 0) {
|
||
|
Uname = other.Uname;
|
||
|
}
|
||
|
if (other.Score != 0L) {
|
||
|
Score = other.Score;
|
||
|
}
|
||
|
if (other.Avatar.Length != 0) {
|
||
|
Avatar = other.Avatar;
|
||
|
}
|
||
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||
|
}
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public void MergeFrom(pb::CodedInputStream input) {
|
||
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||
|
input.ReadRawMessage(this);
|
||
|
#else
|
||
|
uint tag;
|
||
|
while ((tag = input.ReadTag()) != 0) {
|
||
|
switch(tag) {
|
||
|
default:
|
||
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||
|
break;
|
||
|
case 8: {
|
||
|
Uid = input.ReadInt64();
|
||
|
break;
|
||
|
}
|
||
|
case 18: {
|
||
|
Uname = input.ReadString();
|
||
|
break;
|
||
|
}
|
||
|
case 24: {
|
||
|
Score = input.ReadInt64();
|
||
|
break;
|
||
|
}
|
||
|
case 34: {
|
||
|
Avatar = input.ReadString();
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
#endif
|
||
|
}
|
||
|
|
||
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
||
|
uint tag;
|
||
|
while ((tag = input.ReadTag()) != 0) {
|
||
|
switch(tag) {
|
||
|
default:
|
||
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||
|
break;
|
||
|
case 8: {
|
||
|
Uid = input.ReadInt64();
|
||
|
break;
|
||
|
}
|
||
|
case 18: {
|
||
|
Uname = input.ReadString();
|
||
|
break;
|
||
|
}
|
||
|
case 24: {
|
||
|
Score = input.ReadInt64();
|
||
|
break;
|
||
|
}
|
||
|
case 34: {
|
||
|
Avatar = input.ReadString();
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
#endregion
|
||
|
|
||
|
}
|
||
|
|
||
|
#endregion
|
||
|
|
||
|
}
|
||
|
|
||
|
#endregion Designer generated code
|