mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-02 20:26:03 +08:00
343 lines
12 KiB
C#
343 lines
12 KiB
C#
// <auto-generated>
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: ChessRogueDice.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 EggLink.DanhengServer.Proto {
|
|
|
|
/// <summary>Holder for reflection information generated from ChessRogueDice.proto</summary>
|
|
public static partial class ChessRogueDiceReflection {
|
|
|
|
#region Descriptor
|
|
/// <summary>File descriptor for ChessRogueDice.proto</summary>
|
|
public static pbr::FileDescriptor Descriptor {
|
|
get { return descriptor; }
|
|
}
|
|
private static pbr::FileDescriptor descriptor;
|
|
|
|
static ChessRogueDiceReflection() {
|
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
|
string.Concat(
|
|
"ChRDaGVzc1JvZ3VlRGljZS5wcm90bxofQ2hlc3NSb2d1ZURpY2VTdXJmYWNl",
|
|
"SW5mby5wcm90byJ6Cg5DaGVzc1JvZ3VlRGljZRIRCglicmFuY2hfaWQYByAB",
|
|
"KA0SMAoMc3VyZmFjZV9saXN0GAQgAygLMhouQ2hlc3NSb2d1ZURpY2VTdXJm",
|
|
"YWNlSW5mbxISCgpzdXJmYWNlX2lkGAYgASgNEg8KB3Nsb3RfaWQYCSABKA1C",
|
|
"HqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z"));
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
|
new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ChessRogueDiceSurfaceInfoReflection.Descriptor, },
|
|
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ChessRogueDice), global::EggLink.DanhengServer.Proto.ChessRogueDice.Parser, new[]{ "BranchId", "SurfaceList", "SurfaceId", "SlotId" }, null, null, null, null)
|
|
}));
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
#region Messages
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class ChessRogueDice : pb::IMessage<ChessRogueDice>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<ChessRogueDice> _parser = new pb::MessageParser<ChessRogueDice>(() => new ChessRogueDice());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<ChessRogueDice> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::EggLink.DanhengServer.Proto.ChessRogueDiceReflection.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 ChessRogueDice() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public ChessRogueDice(ChessRogueDice other) : this() {
|
|
branchId_ = other.branchId_;
|
|
surfaceList_ = other.surfaceList_.Clone();
|
|
surfaceId_ = other.surfaceId_;
|
|
slotId_ = other.slotId_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public ChessRogueDice Clone() {
|
|
return new ChessRogueDice(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "branch_id" field.</summary>
|
|
public const int BranchIdFieldNumber = 7;
|
|
private uint branchId_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint BranchId {
|
|
get { return branchId_; }
|
|
set {
|
|
branchId_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "surface_list" field.</summary>
|
|
public const int SurfaceListFieldNumber = 4;
|
|
private static readonly pb::FieldCodec<global::EggLink.DanhengServer.Proto.ChessRogueDiceSurfaceInfo> _repeated_surfaceList_codec
|
|
= pb::FieldCodec.ForMessage(34, global::EggLink.DanhengServer.Proto.ChessRogueDiceSurfaceInfo.Parser);
|
|
private readonly pbc::RepeatedField<global::EggLink.DanhengServer.Proto.ChessRogueDiceSurfaceInfo> surfaceList_ = new pbc::RepeatedField<global::EggLink.DanhengServer.Proto.ChessRogueDiceSurfaceInfo>();
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public pbc::RepeatedField<global::EggLink.DanhengServer.Proto.ChessRogueDiceSurfaceInfo> SurfaceList {
|
|
get { return surfaceList_; }
|
|
}
|
|
|
|
/// <summary>Field number for the "surface_id" field.</summary>
|
|
public const int SurfaceIdFieldNumber = 6;
|
|
private uint surfaceId_;
|
|
/// <summary>
|
|
/// 9
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint SurfaceId {
|
|
get { return surfaceId_; }
|
|
set {
|
|
surfaceId_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "slot_id" field.</summary>
|
|
public const int SlotIdFieldNumber = 9;
|
|
private uint slotId_;
|
|
/// <summary>
|
|
/// 6
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint SlotId {
|
|
get { return slotId_; }
|
|
set {
|
|
slotId_ = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as ChessRogueDice);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(ChessRogueDice other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (BranchId != other.BranchId) return false;
|
|
if(!surfaceList_.Equals(other.surfaceList_)) return false;
|
|
if (SurfaceId != other.SurfaceId) return false;
|
|
if (SlotId != other.SlotId) 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 (BranchId != 0) hash ^= BranchId.GetHashCode();
|
|
hash ^= surfaceList_.GetHashCode();
|
|
if (SurfaceId != 0) hash ^= SurfaceId.GetHashCode();
|
|
if (SlotId != 0) hash ^= SlotId.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
|
|
surfaceList_.WriteTo(output, _repeated_surfaceList_codec);
|
|
if (SurfaceId != 0) {
|
|
output.WriteRawTag(48);
|
|
output.WriteUInt32(SurfaceId);
|
|
}
|
|
if (BranchId != 0) {
|
|
output.WriteRawTag(56);
|
|
output.WriteUInt32(BranchId);
|
|
}
|
|
if (SlotId != 0) {
|
|
output.WriteRawTag(72);
|
|
output.WriteUInt32(SlotId);
|
|
}
|
|
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) {
|
|
surfaceList_.WriteTo(ref output, _repeated_surfaceList_codec);
|
|
if (SurfaceId != 0) {
|
|
output.WriteRawTag(48);
|
|
output.WriteUInt32(SurfaceId);
|
|
}
|
|
if (BranchId != 0) {
|
|
output.WriteRawTag(56);
|
|
output.WriteUInt32(BranchId);
|
|
}
|
|
if (SlotId != 0) {
|
|
output.WriteRawTag(72);
|
|
output.WriteUInt32(SlotId);
|
|
}
|
|
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 (BranchId != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BranchId);
|
|
}
|
|
size += surfaceList_.CalculateSize(_repeated_surfaceList_codec);
|
|
if (SurfaceId != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SurfaceId);
|
|
}
|
|
if (SlotId != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SlotId);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(ChessRogueDice other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.BranchId != 0) {
|
|
BranchId = other.BranchId;
|
|
}
|
|
surfaceList_.Add(other.surfaceList_);
|
|
if (other.SurfaceId != 0) {
|
|
SurfaceId = other.SurfaceId;
|
|
}
|
|
if (other.SlotId != 0) {
|
|
SlotId = other.SlotId;
|
|
}
|
|
_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 34: {
|
|
surfaceList_.AddEntriesFrom(input, _repeated_surfaceList_codec);
|
|
break;
|
|
}
|
|
case 48: {
|
|
SurfaceId = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 56: {
|
|
BranchId = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 72: {
|
|
SlotId = 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) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
|
break;
|
|
case 34: {
|
|
surfaceList_.AddEntriesFrom(ref input, _repeated_surfaceList_codec);
|
|
break;
|
|
}
|
|
case 48: {
|
|
SurfaceId = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 56: {
|
|
BranchId = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 72: {
|
|
SlotId = input.ReadUInt32();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
#endregion Designer generated code
|