mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
1520 lines
54 KiB
C#
1520 lines
54 KiB
C#
// <auto-generated>
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: packages/core/src/protos/legacy_rating_leaderboard.proto
|
|
// </auto-generated>
|
|
#pragma warning disable 1591, 0612, 3021, 8981
|
|
#region Designer generated code
|
|
|
|
using pb = global::Google.Protobuf;
|
|
using pbc = global::Google.Protobuf.Collections;
|
|
using pbr = global::Google.Protobuf.Reflection;
|
|
using scg = global::System.Collections.Generic;
|
|
namespace Blitzkit {
|
|
|
|
/// <summary>Holder for reflection information generated from packages/core/src/protos/legacy_rating_leaderboard.proto</summary>
|
|
public static partial class LegacyRatingLeaderboardReflection {
|
|
|
|
#region Descriptor
|
|
/// <summary>File descriptor for packages/core/src/protos/legacy_rating_leaderboard.proto</summary>
|
|
public static pbr::FileDescriptor Descriptor {
|
|
get { return descriptor; }
|
|
}
|
|
private static pbr::FileDescriptor descriptor;
|
|
|
|
static LegacyRatingLeaderboardReflection() {
|
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
|
string.Concat(
|
|
"CjhwYWNrYWdlcy9jb3JlL3NyYy9wcm90b3MvbGVnYWN5X3JhdGluZ19sZWFk",
|
|
"ZXJib2FyZC5wcm90bxIIYmxpdHpraXQieAoRUmF0aW5nTGVhZGVyYm9hcmQS",
|
|
"KwoCdjEYASABKAsyHS5ibGl0emtpdC5SYXRpbmdMZWFkZXJib2FyZFYxSAAS",
|
|
"KwoCdjIYAiABKAsyHS5ibGl0emtpdC5SYXRpbmdMZWFkZXJib2FyZFYySABC",
|
|
"CQoHdmVyc2lvbiJKChNSYXRpbmdMZWFkZXJib2FyZFYxEjMKB2VudHJpZXMY",
|
|
"ASADKAsyIi5ibGl0emtpdC5SYXRpbmdMZWFkZXJib2FyZEVudHJ5VjEiNQoY",
|
|
"UmF0aW5nTGVhZGVyYm9hcmRFbnRyeVYxEgoKAmlkGAEgAigNEg0KBXNjb3Jl",
|
|
"GAIgAigNIkoKE1JhdGluZ0xlYWRlcmJvYXJkVjISMwoHZW50cmllcxgBIAMo",
|
|
"CzIiLmJsaXR6a2l0LlJhdGluZ0xlYWRlcmJvYXJkRW50cnlWMiKFAQoYUmF0",
|
|
"aW5nTGVhZGVyYm9hcmRFbnRyeVYyEgoKAmlkGAEgAigNEg0KBXNjb3JlGAIg",
|
|
"AigNEg8KB2JhdHRsZXMYAyACKA0SDAoEd2lucxgEIAIoDRIQCghzdXJ2aXZl",
|
|
"ZBgFIAIoDRIOCgZkYW1hZ2UYBiACKA0SDQoFa2lsbHMYByACKA0="));
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
|
new pbr::FileDescriptor[] { },
|
|
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Blitzkit.RatingLeaderboard), global::Blitzkit.RatingLeaderboard.Parser, new[]{ "V1", "V2" }, new[]{ "Version" }, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Blitzkit.RatingLeaderboardV1), global::Blitzkit.RatingLeaderboardV1.Parser, new[]{ "Entries" }, null, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Blitzkit.RatingLeaderboardEntryV1), global::Blitzkit.RatingLeaderboardEntryV1.Parser, new[]{ "Id", "Score" }, null, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Blitzkit.RatingLeaderboardV2), global::Blitzkit.RatingLeaderboardV2.Parser, new[]{ "Entries" }, null, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Blitzkit.RatingLeaderboardEntryV2), global::Blitzkit.RatingLeaderboardEntryV2.Parser, new[]{ "Id", "Score", "Battles", "Wins", "Survived", "Damage", "Kills" }, null, null, null, null)
|
|
}));
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
#region Messages
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class RatingLeaderboard : pb::IMessage<RatingLeaderboard>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<RatingLeaderboard> _parser = new pb::MessageParser<RatingLeaderboard>(() => new RatingLeaderboard());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<RatingLeaderboard> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Blitzkit.LegacyRatingLeaderboardReflection.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 RatingLeaderboard() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public RatingLeaderboard(RatingLeaderboard other) : this() {
|
|
switch (other.VersionCase) {
|
|
case VersionOneofCase.V1:
|
|
V1 = other.V1.Clone();
|
|
break;
|
|
case VersionOneofCase.V2:
|
|
V2 = other.V2.Clone();
|
|
break;
|
|
}
|
|
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public RatingLeaderboard Clone() {
|
|
return new RatingLeaderboard(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "v1" field.</summary>
|
|
public const int V1FieldNumber = 1;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::Blitzkit.RatingLeaderboardV1 V1 {
|
|
get { return versionCase_ == VersionOneofCase.V1 ? (global::Blitzkit.RatingLeaderboardV1) version_ : null; }
|
|
set {
|
|
version_ = value;
|
|
versionCase_ = value == null ? VersionOneofCase.None : VersionOneofCase.V1;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "v2" field.</summary>
|
|
public const int V2FieldNumber = 2;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::Blitzkit.RatingLeaderboardV2 V2 {
|
|
get { return versionCase_ == VersionOneofCase.V2 ? (global::Blitzkit.RatingLeaderboardV2) version_ : null; }
|
|
set {
|
|
version_ = value;
|
|
versionCase_ = value == null ? VersionOneofCase.None : VersionOneofCase.V2;
|
|
}
|
|
}
|
|
|
|
private object version_;
|
|
/// <summary>Enum of possible cases for the "version" oneof.</summary>
|
|
public enum VersionOneofCase {
|
|
None = 0,
|
|
V1 = 1,
|
|
V2 = 2,
|
|
}
|
|
private VersionOneofCase versionCase_ = VersionOneofCase.None;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public VersionOneofCase VersionCase {
|
|
get { return versionCase_; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void ClearVersion() {
|
|
versionCase_ = VersionOneofCase.None;
|
|
version_ = null;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as RatingLeaderboard);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(RatingLeaderboard other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (!object.Equals(V1, other.V1)) return false;
|
|
if (!object.Equals(V2, other.V2)) return false;
|
|
if (VersionCase != other.VersionCase) 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 (versionCase_ == VersionOneofCase.V1) hash ^= V1.GetHashCode();
|
|
if (versionCase_ == VersionOneofCase.V2) hash ^= V2.GetHashCode();
|
|
hash ^= (int) versionCase_;
|
|
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 (versionCase_ == VersionOneofCase.V1) {
|
|
output.WriteRawTag(10);
|
|
output.WriteMessage(V1);
|
|
}
|
|
if (versionCase_ == VersionOneofCase.V2) {
|
|
output.WriteRawTag(18);
|
|
output.WriteMessage(V2);
|
|
}
|
|
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 (versionCase_ == VersionOneofCase.V1) {
|
|
output.WriteRawTag(10);
|
|
output.WriteMessage(V1);
|
|
}
|
|
if (versionCase_ == VersionOneofCase.V2) {
|
|
output.WriteRawTag(18);
|
|
output.WriteMessage(V2);
|
|
}
|
|
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 (versionCase_ == VersionOneofCase.V1) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(V1);
|
|
}
|
|
if (versionCase_ == VersionOneofCase.V2) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(V2);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(RatingLeaderboard other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
switch (other.VersionCase) {
|
|
case VersionOneofCase.V1:
|
|
if (V1 == null) {
|
|
V1 = new global::Blitzkit.RatingLeaderboardV1();
|
|
}
|
|
V1.MergeFrom(other.V1);
|
|
break;
|
|
case VersionOneofCase.V2:
|
|
if (V2 == null) {
|
|
V2 = new global::Blitzkit.RatingLeaderboardV2();
|
|
}
|
|
V2.MergeFrom(other.V2);
|
|
break;
|
|
}
|
|
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
input.ReadRawMessage(this);
|
|
#else
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
if ((tag & 7) == 4) {
|
|
// Abort on any end group tag.
|
|
return;
|
|
}
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
global::Blitzkit.RatingLeaderboardV1 subBuilder = new global::Blitzkit.RatingLeaderboardV1();
|
|
if (versionCase_ == VersionOneofCase.V1) {
|
|
subBuilder.MergeFrom(V1);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
V1 = subBuilder;
|
|
break;
|
|
}
|
|
case 18: {
|
|
global::Blitzkit.RatingLeaderboardV2 subBuilder = new global::Blitzkit.RatingLeaderboardV2();
|
|
if (versionCase_ == VersionOneofCase.V2) {
|
|
subBuilder.MergeFrom(V2);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
V2 = subBuilder;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
}
|
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
if ((tag & 7) == 4) {
|
|
// Abort on any end group tag.
|
|
return;
|
|
}
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
|
break;
|
|
case 10: {
|
|
global::Blitzkit.RatingLeaderboardV1 subBuilder = new global::Blitzkit.RatingLeaderboardV1();
|
|
if (versionCase_ == VersionOneofCase.V1) {
|
|
subBuilder.MergeFrom(V1);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
V1 = subBuilder;
|
|
break;
|
|
}
|
|
case 18: {
|
|
global::Blitzkit.RatingLeaderboardV2 subBuilder = new global::Blitzkit.RatingLeaderboardV2();
|
|
if (versionCase_ == VersionOneofCase.V2) {
|
|
subBuilder.MergeFrom(V2);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
V2 = subBuilder;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class RatingLeaderboardV1 : pb::IMessage<RatingLeaderboardV1>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<RatingLeaderboardV1> _parser = new pb::MessageParser<RatingLeaderboardV1>(() => new RatingLeaderboardV1());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<RatingLeaderboardV1> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Blitzkit.LegacyRatingLeaderboardReflection.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 RatingLeaderboardV1() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public RatingLeaderboardV1(RatingLeaderboardV1 other) : this() {
|
|
entries_ = other.entries_.Clone();
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public RatingLeaderboardV1 Clone() {
|
|
return new RatingLeaderboardV1(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "entries" field.</summary>
|
|
public const int EntriesFieldNumber = 1;
|
|
private static readonly pb::FieldCodec<global::Blitzkit.RatingLeaderboardEntryV1> _repeated_entries_codec
|
|
= pb::FieldCodec.ForMessage(10, global::Blitzkit.RatingLeaderboardEntryV1.Parser);
|
|
private readonly pbc::RepeatedField<global::Blitzkit.RatingLeaderboardEntryV1> entries_ = new pbc::RepeatedField<global::Blitzkit.RatingLeaderboardEntryV1>();
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public pbc::RepeatedField<global::Blitzkit.RatingLeaderboardEntryV1> Entries {
|
|
get { return entries_; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as RatingLeaderboardV1);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(RatingLeaderboardV1 other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if(!entries_.Equals(other.entries_)) 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;
|
|
hash ^= entries_.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
|
|
entries_.WriteTo(output, _repeated_entries_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) {
|
|
entries_.WriteTo(ref output, _repeated_entries_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;
|
|
size += entries_.CalculateSize(_repeated_entries_codec);
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(RatingLeaderboardV1 other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
entries_.Add(other.entries_);
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
input.ReadRawMessage(this);
|
|
#else
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
if ((tag & 7) == 4) {
|
|
// Abort on any end group tag.
|
|
return;
|
|
}
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
entries_.AddEntriesFrom(input, _repeated_entries_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) {
|
|
if ((tag & 7) == 4) {
|
|
// Abort on any end group tag.
|
|
return;
|
|
}
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
|
break;
|
|
case 10: {
|
|
entries_.AddEntriesFrom(ref input, _repeated_entries_codec);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class RatingLeaderboardEntryV1 : pb::IMessage<RatingLeaderboardEntryV1>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<RatingLeaderboardEntryV1> _parser = new pb::MessageParser<RatingLeaderboardEntryV1>(() => new RatingLeaderboardEntryV1());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
private int _hasBits0;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<RatingLeaderboardEntryV1> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Blitzkit.LegacyRatingLeaderboardReflection.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 RatingLeaderboardEntryV1() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public RatingLeaderboardEntryV1(RatingLeaderboardEntryV1 other) : this() {
|
|
_hasBits0 = other._hasBits0;
|
|
id_ = other.id_;
|
|
score_ = other.score_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public RatingLeaderboardEntryV1 Clone() {
|
|
return new RatingLeaderboardEntryV1(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "id" field.</summary>
|
|
public const int IdFieldNumber = 1;
|
|
private readonly static uint IdDefaultValue = 0;
|
|
|
|
private uint id_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint Id {
|
|
get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } }
|
|
set {
|
|
_hasBits0 |= 1;
|
|
id_ = value;
|
|
}
|
|
}
|
|
/// <summary>Gets whether the "id" field is set</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool HasId {
|
|
get { return (_hasBits0 & 1) != 0; }
|
|
}
|
|
/// <summary>Clears the value of the "id" field</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void ClearId() {
|
|
_hasBits0 &= ~1;
|
|
}
|
|
|
|
/// <summary>Field number for the "score" field.</summary>
|
|
public const int ScoreFieldNumber = 2;
|
|
private readonly static uint ScoreDefaultValue = 0;
|
|
|
|
private uint score_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint Score {
|
|
get { if ((_hasBits0 & 2) != 0) { return score_; } else { return ScoreDefaultValue; } }
|
|
set {
|
|
_hasBits0 |= 2;
|
|
score_ = value;
|
|
}
|
|
}
|
|
/// <summary>Gets whether the "score" field is set</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool HasScore {
|
|
get { return (_hasBits0 & 2) != 0; }
|
|
}
|
|
/// <summary>Clears the value of the "score" field</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void ClearScore() {
|
|
_hasBits0 &= ~2;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as RatingLeaderboardEntryV1);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(RatingLeaderboardEntryV1 other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (Id != other.Id) return false;
|
|
if (Score != other.Score) 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 (HasId) hash ^= Id.GetHashCode();
|
|
if (HasScore) hash ^= Score.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 (HasId) {
|
|
output.WriteRawTag(8);
|
|
output.WriteUInt32(Id);
|
|
}
|
|
if (HasScore) {
|
|
output.WriteRawTag(16);
|
|
output.WriteUInt32(Score);
|
|
}
|
|
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 (HasId) {
|
|
output.WriteRawTag(8);
|
|
output.WriteUInt32(Id);
|
|
}
|
|
if (HasScore) {
|
|
output.WriteRawTag(16);
|
|
output.WriteUInt32(Score);
|
|
}
|
|
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 (HasId) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id);
|
|
}
|
|
if (HasScore) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Score);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(RatingLeaderboardEntryV1 other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.HasId) {
|
|
Id = other.Id;
|
|
}
|
|
if (other.HasScore) {
|
|
Score = other.Score;
|
|
}
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
input.ReadRawMessage(this);
|
|
#else
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
if ((tag & 7) == 4) {
|
|
// Abort on any end group tag.
|
|
return;
|
|
}
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 8: {
|
|
Id = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 16: {
|
|
Score = input.ReadUInt32();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
}
|
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
if ((tag & 7) == 4) {
|
|
// Abort on any end group tag.
|
|
return;
|
|
}
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
|
break;
|
|
case 8: {
|
|
Id = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 16: {
|
|
Score = input.ReadUInt32();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class RatingLeaderboardV2 : pb::IMessage<RatingLeaderboardV2>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<RatingLeaderboardV2> _parser = new pb::MessageParser<RatingLeaderboardV2>(() => new RatingLeaderboardV2());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<RatingLeaderboardV2> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Blitzkit.LegacyRatingLeaderboardReflection.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 RatingLeaderboardV2() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public RatingLeaderboardV2(RatingLeaderboardV2 other) : this() {
|
|
entries_ = other.entries_.Clone();
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public RatingLeaderboardV2 Clone() {
|
|
return new RatingLeaderboardV2(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "entries" field.</summary>
|
|
public const int EntriesFieldNumber = 1;
|
|
private static readonly pb::FieldCodec<global::Blitzkit.RatingLeaderboardEntryV2> _repeated_entries_codec
|
|
= pb::FieldCodec.ForMessage(10, global::Blitzkit.RatingLeaderboardEntryV2.Parser);
|
|
private readonly pbc::RepeatedField<global::Blitzkit.RatingLeaderboardEntryV2> entries_ = new pbc::RepeatedField<global::Blitzkit.RatingLeaderboardEntryV2>();
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public pbc::RepeatedField<global::Blitzkit.RatingLeaderboardEntryV2> Entries {
|
|
get { return entries_; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as RatingLeaderboardV2);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(RatingLeaderboardV2 other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if(!entries_.Equals(other.entries_)) 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;
|
|
hash ^= entries_.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
|
|
entries_.WriteTo(output, _repeated_entries_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) {
|
|
entries_.WriteTo(ref output, _repeated_entries_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;
|
|
size += entries_.CalculateSize(_repeated_entries_codec);
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(RatingLeaderboardV2 other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
entries_.Add(other.entries_);
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
input.ReadRawMessage(this);
|
|
#else
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
if ((tag & 7) == 4) {
|
|
// Abort on any end group tag.
|
|
return;
|
|
}
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
entries_.AddEntriesFrom(input, _repeated_entries_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) {
|
|
if ((tag & 7) == 4) {
|
|
// Abort on any end group tag.
|
|
return;
|
|
}
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
|
break;
|
|
case 10: {
|
|
entries_.AddEntriesFrom(ref input, _repeated_entries_codec);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class RatingLeaderboardEntryV2 : pb::IMessage<RatingLeaderboardEntryV2>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<RatingLeaderboardEntryV2> _parser = new pb::MessageParser<RatingLeaderboardEntryV2>(() => new RatingLeaderboardEntryV2());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
private int _hasBits0;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<RatingLeaderboardEntryV2> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Blitzkit.LegacyRatingLeaderboardReflection.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 RatingLeaderboardEntryV2() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public RatingLeaderboardEntryV2(RatingLeaderboardEntryV2 other) : this() {
|
|
_hasBits0 = other._hasBits0;
|
|
id_ = other.id_;
|
|
score_ = other.score_;
|
|
battles_ = other.battles_;
|
|
wins_ = other.wins_;
|
|
survived_ = other.survived_;
|
|
damage_ = other.damage_;
|
|
kills_ = other.kills_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public RatingLeaderboardEntryV2 Clone() {
|
|
return new RatingLeaderboardEntryV2(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "id" field.</summary>
|
|
public const int IdFieldNumber = 1;
|
|
private readonly static uint IdDefaultValue = 0;
|
|
|
|
private uint id_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint Id {
|
|
get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } }
|
|
set {
|
|
_hasBits0 |= 1;
|
|
id_ = value;
|
|
}
|
|
}
|
|
/// <summary>Gets whether the "id" field is set</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool HasId {
|
|
get { return (_hasBits0 & 1) != 0; }
|
|
}
|
|
/// <summary>Clears the value of the "id" field</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void ClearId() {
|
|
_hasBits0 &= ~1;
|
|
}
|
|
|
|
/// <summary>Field number for the "score" field.</summary>
|
|
public const int ScoreFieldNumber = 2;
|
|
private readonly static uint ScoreDefaultValue = 0;
|
|
|
|
private uint score_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint Score {
|
|
get { if ((_hasBits0 & 2) != 0) { return score_; } else { return ScoreDefaultValue; } }
|
|
set {
|
|
_hasBits0 |= 2;
|
|
score_ = value;
|
|
}
|
|
}
|
|
/// <summary>Gets whether the "score" field is set</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool HasScore {
|
|
get { return (_hasBits0 & 2) != 0; }
|
|
}
|
|
/// <summary>Clears the value of the "score" field</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void ClearScore() {
|
|
_hasBits0 &= ~2;
|
|
}
|
|
|
|
/// <summary>Field number for the "battles" field.</summary>
|
|
public const int BattlesFieldNumber = 3;
|
|
private readonly static uint BattlesDefaultValue = 0;
|
|
|
|
private uint battles_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint Battles {
|
|
get { if ((_hasBits0 & 4) != 0) { return battles_; } else { return BattlesDefaultValue; } }
|
|
set {
|
|
_hasBits0 |= 4;
|
|
battles_ = value;
|
|
}
|
|
}
|
|
/// <summary>Gets whether the "battles" field is set</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool HasBattles {
|
|
get { return (_hasBits0 & 4) != 0; }
|
|
}
|
|
/// <summary>Clears the value of the "battles" field</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void ClearBattles() {
|
|
_hasBits0 &= ~4;
|
|
}
|
|
|
|
/// <summary>Field number for the "wins" field.</summary>
|
|
public const int WinsFieldNumber = 4;
|
|
private readonly static uint WinsDefaultValue = 0;
|
|
|
|
private uint wins_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint Wins {
|
|
get { if ((_hasBits0 & 8) != 0) { return wins_; } else { return WinsDefaultValue; } }
|
|
set {
|
|
_hasBits0 |= 8;
|
|
wins_ = value;
|
|
}
|
|
}
|
|
/// <summary>Gets whether the "wins" field is set</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool HasWins {
|
|
get { return (_hasBits0 & 8) != 0; }
|
|
}
|
|
/// <summary>Clears the value of the "wins" field</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void ClearWins() {
|
|
_hasBits0 &= ~8;
|
|
}
|
|
|
|
/// <summary>Field number for the "survived" field.</summary>
|
|
public const int SurvivedFieldNumber = 5;
|
|
private readonly static uint SurvivedDefaultValue = 0;
|
|
|
|
private uint survived_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint Survived {
|
|
get { if ((_hasBits0 & 16) != 0) { return survived_; } else { return SurvivedDefaultValue; } }
|
|
set {
|
|
_hasBits0 |= 16;
|
|
survived_ = value;
|
|
}
|
|
}
|
|
/// <summary>Gets whether the "survived" field is set</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool HasSurvived {
|
|
get { return (_hasBits0 & 16) != 0; }
|
|
}
|
|
/// <summary>Clears the value of the "survived" field</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void ClearSurvived() {
|
|
_hasBits0 &= ~16;
|
|
}
|
|
|
|
/// <summary>Field number for the "damage" field.</summary>
|
|
public const int DamageFieldNumber = 6;
|
|
private readonly static uint DamageDefaultValue = 0;
|
|
|
|
private uint damage_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint Damage {
|
|
get { if ((_hasBits0 & 32) != 0) { return damage_; } else { return DamageDefaultValue; } }
|
|
set {
|
|
_hasBits0 |= 32;
|
|
damage_ = value;
|
|
}
|
|
}
|
|
/// <summary>Gets whether the "damage" field is set</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool HasDamage {
|
|
get { return (_hasBits0 & 32) != 0; }
|
|
}
|
|
/// <summary>Clears the value of the "damage" field</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void ClearDamage() {
|
|
_hasBits0 &= ~32;
|
|
}
|
|
|
|
/// <summary>Field number for the "kills" field.</summary>
|
|
public const int KillsFieldNumber = 7;
|
|
private readonly static uint KillsDefaultValue = 0;
|
|
|
|
private uint kills_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint Kills {
|
|
get { if ((_hasBits0 & 64) != 0) { return kills_; } else { return KillsDefaultValue; } }
|
|
set {
|
|
_hasBits0 |= 64;
|
|
kills_ = value;
|
|
}
|
|
}
|
|
/// <summary>Gets whether the "kills" field is set</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool HasKills {
|
|
get { return (_hasBits0 & 64) != 0; }
|
|
}
|
|
/// <summary>Clears the value of the "kills" field</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void ClearKills() {
|
|
_hasBits0 &= ~64;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as RatingLeaderboardEntryV2);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(RatingLeaderboardEntryV2 other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (Id != other.Id) return false;
|
|
if (Score != other.Score) return false;
|
|
if (Battles != other.Battles) return false;
|
|
if (Wins != other.Wins) return false;
|
|
if (Survived != other.Survived) return false;
|
|
if (Damage != other.Damage) return false;
|
|
if (Kills != other.Kills) 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 (HasId) hash ^= Id.GetHashCode();
|
|
if (HasScore) hash ^= Score.GetHashCode();
|
|
if (HasBattles) hash ^= Battles.GetHashCode();
|
|
if (HasWins) hash ^= Wins.GetHashCode();
|
|
if (HasSurvived) hash ^= Survived.GetHashCode();
|
|
if (HasDamage) hash ^= Damage.GetHashCode();
|
|
if (HasKills) hash ^= Kills.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 (HasId) {
|
|
output.WriteRawTag(8);
|
|
output.WriteUInt32(Id);
|
|
}
|
|
if (HasScore) {
|
|
output.WriteRawTag(16);
|
|
output.WriteUInt32(Score);
|
|
}
|
|
if (HasBattles) {
|
|
output.WriteRawTag(24);
|
|
output.WriteUInt32(Battles);
|
|
}
|
|
if (HasWins) {
|
|
output.WriteRawTag(32);
|
|
output.WriteUInt32(Wins);
|
|
}
|
|
if (HasSurvived) {
|
|
output.WriteRawTag(40);
|
|
output.WriteUInt32(Survived);
|
|
}
|
|
if (HasDamage) {
|
|
output.WriteRawTag(48);
|
|
output.WriteUInt32(Damage);
|
|
}
|
|
if (HasKills) {
|
|
output.WriteRawTag(56);
|
|
output.WriteUInt32(Kills);
|
|
}
|
|
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 (HasId) {
|
|
output.WriteRawTag(8);
|
|
output.WriteUInt32(Id);
|
|
}
|
|
if (HasScore) {
|
|
output.WriteRawTag(16);
|
|
output.WriteUInt32(Score);
|
|
}
|
|
if (HasBattles) {
|
|
output.WriteRawTag(24);
|
|
output.WriteUInt32(Battles);
|
|
}
|
|
if (HasWins) {
|
|
output.WriteRawTag(32);
|
|
output.WriteUInt32(Wins);
|
|
}
|
|
if (HasSurvived) {
|
|
output.WriteRawTag(40);
|
|
output.WriteUInt32(Survived);
|
|
}
|
|
if (HasDamage) {
|
|
output.WriteRawTag(48);
|
|
output.WriteUInt32(Damage);
|
|
}
|
|
if (HasKills) {
|
|
output.WriteRawTag(56);
|
|
output.WriteUInt32(Kills);
|
|
}
|
|
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 (HasId) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id);
|
|
}
|
|
if (HasScore) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Score);
|
|
}
|
|
if (HasBattles) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Battles);
|
|
}
|
|
if (HasWins) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Wins);
|
|
}
|
|
if (HasSurvived) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Survived);
|
|
}
|
|
if (HasDamage) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Damage);
|
|
}
|
|
if (HasKills) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Kills);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(RatingLeaderboardEntryV2 other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.HasId) {
|
|
Id = other.Id;
|
|
}
|
|
if (other.HasScore) {
|
|
Score = other.Score;
|
|
}
|
|
if (other.HasBattles) {
|
|
Battles = other.Battles;
|
|
}
|
|
if (other.HasWins) {
|
|
Wins = other.Wins;
|
|
}
|
|
if (other.HasSurvived) {
|
|
Survived = other.Survived;
|
|
}
|
|
if (other.HasDamage) {
|
|
Damage = other.Damage;
|
|
}
|
|
if (other.HasKills) {
|
|
Kills = other.Kills;
|
|
}
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
input.ReadRawMessage(this);
|
|
#else
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
if ((tag & 7) == 4) {
|
|
// Abort on any end group tag.
|
|
return;
|
|
}
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 8: {
|
|
Id = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 16: {
|
|
Score = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 24: {
|
|
Battles = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 32: {
|
|
Wins = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 40: {
|
|
Survived = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 48: {
|
|
Damage = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 56: {
|
|
Kills = input.ReadUInt32();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
}
|
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
if ((tag & 7) == 4) {
|
|
// Abort on any end group tag.
|
|
return;
|
|
}
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
|
break;
|
|
case 8: {
|
|
Id = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 16: {
|
|
Score = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 24: {
|
|
Battles = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 32: {
|
|
Wins = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 40: {
|
|
Survived = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 48: {
|
|
Damage = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 56: {
|
|
Kills = input.ReadUInt32();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
#endregion Designer generated code
|