Files
Novaria/Novaria.Common/Protos/PublicMining.cs
2025-05-27 15:04:26 -04:00

2180 lines
76 KiB
C#

// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: public_mining.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 Proto {
/// <summary>Holder for reflection information generated from public_mining.proto</summary>
public static partial class PublicMiningReflection {
#region Descriptor
/// <summary>File descriptor for public_mining.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static PublicMiningReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChNwdWJsaWNfbWluaW5nLnByb3RvEgVwcm90byJWCg5NaW5pbmdUcmVhc3Vy",
"ZRIKCgJJZBgBIAEoDRIQCghQb3NJbmRleBgCIAMoDRIQCghSZWNlaXZlZBgD",
"IAEoCBIUCgtOZXh0UGFja2FnZRj/DyABKAwieQoKTWluaW5nR3JpZBIKCgJJ",
"ZBgBIAEoDRIQCghQb3NJbmRleBgCIAEoDRInCghHcmlkVHlwZRgDIAEoDjIV",
"LnByb3RvLk1pbmluZ0dyaWRUeXBlEg4KBk1hcmtlZBgEIAEoCBIUCgtOZXh0",
"UGFja2FnZRj/DyABKAwiWQoNTWluaW5nU3VwcG9ydBIKCgJJZBgBIAEoDRIT",
"CgtVc2FibGVDb3VudBgCIAEoBRIRCglVc2VkQ291bnQYAyABKAUSFAoLTmV4",
"dFBhY2thZ2UY/w8gASgMIm0KCU1pbmluZ01hcBIgCgVHcmlkcxgDIAMoCzIR",
"LnByb3RvLk1pbmluZ0dyaWQSKAoJVHJlYXN1cmVzGAIgAygLMhUucHJvdG8u",
"TWluaW5nVHJlYXN1cmUSFAoLTmV4dFBhY2thZ2UY/w8gASgMIooBCgtNaW5p",
"bmdMYXllchINCgVMYXllchgBIAEoDRIPCgdGaW5kS2V5GAIgASgIEh0KA01h",
"cBgDIAEoCzIQLnByb3RvLk1pbmluZ01hcBImCghTdXBwb3J0cxgEIAMoCzIU",
"LnByb3RvLk1pbmluZ1N1cHBvcnQSFAoLTmV4dFBhY2thZ2UY/w8gASgMImMK",
"DU1pbmluZ1Byb2Nlc3MSEgoKRWZmZWN0VHlwZRgBIAEoBRIoCg1FZmZlY3Rl",
"ZEdyaWRzGAIgAygLMhEucHJvdG8uTWluaW5nR3JpZBIUCgtOZXh0UGFja2Fn",
"ZRj/DyABKAwifQoQTWluaW5nQ2hhbmdlSW5mbxIPCgdGaW5kS2V5GAEgASgI",
"EicKCVByb2Nlc3NlcxgCIAMoCzIULnByb3RvLk1pbmluZ1Byb2Nlc3MSGQoR",
"UmVjZWl2ZWRUcmVhc3VyZXMYAyADKA0SFAoLTmV4dFBhY2thZ2UY/w8gASgM",
"KmIKDk1pbmluZ0dyaWRUeXBlEg0KCURlc3Ryb3llZBAAEgsKB0ZyYWdpbGUQ",
"ARIKCgZOb3JtYWwQAhIICgRIYXJkEAMSDQoJU3VwZXJIYXJkEAQSDwoLVHlw",
"ZUNvdW50ZXIQBWIGcHJvdG8z"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Proto.MiningGridType), }, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Proto.MiningTreasure), global::Proto.MiningTreasure.Parser, new[]{ "Id", "PosIndex", "Received", "NextPackage" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Proto.MiningGrid), global::Proto.MiningGrid.Parser, new[]{ "Id", "PosIndex", "GridType", "Marked", "NextPackage" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Proto.MiningSupport), global::Proto.MiningSupport.Parser, new[]{ "Id", "UsableCount", "UsedCount", "NextPackage" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Proto.MiningMap), global::Proto.MiningMap.Parser, new[]{ "Grids", "Treasures", "NextPackage" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Proto.MiningLayer), global::Proto.MiningLayer.Parser, new[]{ "Layer", "FindKey", "Map", "Supports", "NextPackage" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Proto.MiningProcess), global::Proto.MiningProcess.Parser, new[]{ "EffectType", "EffectedGrids", "NextPackage" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Proto.MiningChangeInfo), global::Proto.MiningChangeInfo.Parser, new[]{ "FindKey", "Processes", "ReceivedTreasures", "NextPackage" }, null, null, null, null)
}));
}
#endregion
}
#region Enums
public enum MiningGridType {
[pbr::OriginalName("Destroyed")] Destroyed = 0,
[pbr::OriginalName("Fragile")] Fragile = 1,
[pbr::OriginalName("Normal")] Normal = 2,
[pbr::OriginalName("Hard")] Hard = 3,
[pbr::OriginalName("SuperHard")] SuperHard = 4,
[pbr::OriginalName("TypeCounter")] TypeCounter = 5,
}
#endregion
#region Messages
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class MiningTreasure : pb::IMessage<MiningTreasure>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<MiningTreasure> _parser = new pb::MessageParser<MiningTreasure>(() => new MiningTreasure());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<MiningTreasure> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Proto.PublicMiningReflection.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 MiningTreasure() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public MiningTreasure(MiningTreasure other) : this() {
id_ = other.id_;
posIndex_ = other.posIndex_.Clone();
received_ = other.received_;
nextPackage_ = other.nextPackage_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public MiningTreasure Clone() {
return new MiningTreasure(this);
}
/// <summary>Field number for the "Id" field.</summary>
public const int IdFieldNumber = 1;
private uint id_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint Id {
get { return id_; }
set {
id_ = value;
}
}
/// <summary>Field number for the "PosIndex" field.</summary>
public const int PosIndexFieldNumber = 2;
private static readonly pb::FieldCodec<uint> _repeated_posIndex_codec
= pb::FieldCodec.ForUInt32(18);
private readonly pbc::RepeatedField<uint> posIndex_ = new pbc::RepeatedField<uint>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<uint> PosIndex {
get { return posIndex_; }
}
/// <summary>Field number for the "Received" field.</summary>
public const int ReceivedFieldNumber = 3;
private bool received_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Received {
get { return received_; }
set {
received_ = value;
}
}
/// <summary>Field number for the "NextPackage" field.</summary>
public const int NextPackageFieldNumber = 2047;
private pb::ByteString nextPackage_ = pb::ByteString.Empty;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pb::ByteString NextPackage {
get { return nextPackage_; }
set {
nextPackage_ = 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 MiningTreasure);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(MiningTreasure other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Id != other.Id) return false;
if(!posIndex_.Equals(other.posIndex_)) return false;
if (Received != other.Received) return false;
if (NextPackage != other.NextPackage) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (Id != 0) hash ^= Id.GetHashCode();
hash ^= posIndex_.GetHashCode();
if (Received != false) hash ^= Received.GetHashCode();
if (NextPackage.Length != 0) hash ^= NextPackage.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (Id != 0) {
output.WriteRawTag(8);
output.WriteUInt32(Id);
}
posIndex_.WriteTo(output, _repeated_posIndex_codec);
if (Received != false) {
output.WriteRawTag(24);
output.WriteBool(Received);
}
if (NextPackage.Length != 0) {
output.WriteRawTag(250, 127);
output.WriteBytes(NextPackage);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (Id != 0) {
output.WriteRawTag(8);
output.WriteUInt32(Id);
}
posIndex_.WriteTo(ref output, _repeated_posIndex_codec);
if (Received != false) {
output.WriteRawTag(24);
output.WriteBool(Received);
}
if (NextPackage.Length != 0) {
output.WriteRawTag(250, 127);
output.WriteBytes(NextPackage);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (Id != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id);
}
size += posIndex_.CalculateSize(_repeated_posIndex_codec);
if (Received != false) {
size += 1 + 1;
}
if (NextPackage.Length != 0) {
size += 2 + pb::CodedOutputStream.ComputeBytesSize(NextPackage);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(MiningTreasure other) {
if (other == null) {
return;
}
if (other.Id != 0) {
Id = other.Id;
}
posIndex_.Add(other.posIndex_);
if (other.Received != false) {
Received = other.Received;
}
if (other.NextPackage.Length != 0) {
NextPackage = other.NextPackage;
}
_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 18:
case 16: {
posIndex_.AddEntriesFrom(input, _repeated_posIndex_codec);
break;
}
case 24: {
Received = input.ReadBool();
break;
}
case 16378: {
NextPackage = input.ReadBytes();
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 18:
case 16: {
posIndex_.AddEntriesFrom(ref input, _repeated_posIndex_codec);
break;
}
case 24: {
Received = input.ReadBool();
break;
}
case 16378: {
NextPackage = input.ReadBytes();
break;
}
}
}
}
#endif
}
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class MiningGrid : pb::IMessage<MiningGrid>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<MiningGrid> _parser = new pb::MessageParser<MiningGrid>(() => new MiningGrid());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<MiningGrid> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Proto.PublicMiningReflection.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 MiningGrid() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public MiningGrid(MiningGrid other) : this() {
id_ = other.id_;
posIndex_ = other.posIndex_;
gridType_ = other.gridType_;
marked_ = other.marked_;
nextPackage_ = other.nextPackage_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public MiningGrid Clone() {
return new MiningGrid(this);
}
/// <summary>Field number for the "Id" field.</summary>
public const int IdFieldNumber = 1;
private uint id_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint Id {
get { return id_; }
set {
id_ = value;
}
}
/// <summary>Field number for the "PosIndex" field.</summary>
public const int PosIndexFieldNumber = 2;
private uint posIndex_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint PosIndex {
get { return posIndex_; }
set {
posIndex_ = value;
}
}
/// <summary>Field number for the "GridType" field.</summary>
public const int GridTypeFieldNumber = 3;
private global::Proto.MiningGridType gridType_ = global::Proto.MiningGridType.Destroyed;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Proto.MiningGridType GridType {
get { return gridType_; }
set {
gridType_ = value;
}
}
/// <summary>Field number for the "Marked" field.</summary>
public const int MarkedFieldNumber = 4;
private bool marked_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Marked {
get { return marked_; }
set {
marked_ = value;
}
}
/// <summary>Field number for the "NextPackage" field.</summary>
public const int NextPackageFieldNumber = 2047;
private pb::ByteString nextPackage_ = pb::ByteString.Empty;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pb::ByteString NextPackage {
get { return nextPackage_; }
set {
nextPackage_ = 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 MiningGrid);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(MiningGrid other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Id != other.Id) return false;
if (PosIndex != other.PosIndex) return false;
if (GridType != other.GridType) return false;
if (Marked != other.Marked) return false;
if (NextPackage != other.NextPackage) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (Id != 0) hash ^= Id.GetHashCode();
if (PosIndex != 0) hash ^= PosIndex.GetHashCode();
if (GridType != global::Proto.MiningGridType.Destroyed) hash ^= GridType.GetHashCode();
if (Marked != false) hash ^= Marked.GetHashCode();
if (NextPackage.Length != 0) hash ^= NextPackage.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (Id != 0) {
output.WriteRawTag(8);
output.WriteUInt32(Id);
}
if (PosIndex != 0) {
output.WriteRawTag(16);
output.WriteUInt32(PosIndex);
}
if (GridType != global::Proto.MiningGridType.Destroyed) {
output.WriteRawTag(24);
output.WriteEnum((int) GridType);
}
if (Marked != false) {
output.WriteRawTag(32);
output.WriteBool(Marked);
}
if (NextPackage.Length != 0) {
output.WriteRawTag(250, 127);
output.WriteBytes(NextPackage);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (Id != 0) {
output.WriteRawTag(8);
output.WriteUInt32(Id);
}
if (PosIndex != 0) {
output.WriteRawTag(16);
output.WriteUInt32(PosIndex);
}
if (GridType != global::Proto.MiningGridType.Destroyed) {
output.WriteRawTag(24);
output.WriteEnum((int) GridType);
}
if (Marked != false) {
output.WriteRawTag(32);
output.WriteBool(Marked);
}
if (NextPackage.Length != 0) {
output.WriteRawTag(250, 127);
output.WriteBytes(NextPackage);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (Id != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id);
}
if (PosIndex != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PosIndex);
}
if (GridType != global::Proto.MiningGridType.Destroyed) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) GridType);
}
if (Marked != false) {
size += 1 + 1;
}
if (NextPackage.Length != 0) {
size += 2 + pb::CodedOutputStream.ComputeBytesSize(NextPackage);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(MiningGrid other) {
if (other == null) {
return;
}
if (other.Id != 0) {
Id = other.Id;
}
if (other.PosIndex != 0) {
PosIndex = other.PosIndex;
}
if (other.GridType != global::Proto.MiningGridType.Destroyed) {
GridType = other.GridType;
}
if (other.Marked != false) {
Marked = other.Marked;
}
if (other.NextPackage.Length != 0) {
NextPackage = other.NextPackage;
}
_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: {
PosIndex = input.ReadUInt32();
break;
}
case 24: {
GridType = (global::Proto.MiningGridType) input.ReadEnum();
break;
}
case 32: {
Marked = input.ReadBool();
break;
}
case 16378: {
NextPackage = input.ReadBytes();
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: {
PosIndex = input.ReadUInt32();
break;
}
case 24: {
GridType = (global::Proto.MiningGridType) input.ReadEnum();
break;
}
case 32: {
Marked = input.ReadBool();
break;
}
case 16378: {
NextPackage = input.ReadBytes();
break;
}
}
}
}
#endif
}
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class MiningSupport : pb::IMessage<MiningSupport>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<MiningSupport> _parser = new pb::MessageParser<MiningSupport>(() => new MiningSupport());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<MiningSupport> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Proto.PublicMiningReflection.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 MiningSupport() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public MiningSupport(MiningSupport other) : this() {
id_ = other.id_;
usableCount_ = other.usableCount_;
usedCount_ = other.usedCount_;
nextPackage_ = other.nextPackage_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public MiningSupport Clone() {
return new MiningSupport(this);
}
/// <summary>Field number for the "Id" field.</summary>
public const int IdFieldNumber = 1;
private uint id_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint Id {
get { return id_; }
set {
id_ = value;
}
}
/// <summary>Field number for the "UsableCount" field.</summary>
public const int UsableCountFieldNumber = 2;
private int usableCount_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int UsableCount {
get { return usableCount_; }
set {
usableCount_ = value;
}
}
/// <summary>Field number for the "UsedCount" field.</summary>
public const int UsedCountFieldNumber = 3;
private int usedCount_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int UsedCount {
get { return usedCount_; }
set {
usedCount_ = value;
}
}
/// <summary>Field number for the "NextPackage" field.</summary>
public const int NextPackageFieldNumber = 2047;
private pb::ByteString nextPackage_ = pb::ByteString.Empty;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pb::ByteString NextPackage {
get { return nextPackage_; }
set {
nextPackage_ = 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 MiningSupport);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(MiningSupport other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Id != other.Id) return false;
if (UsableCount != other.UsableCount) return false;
if (UsedCount != other.UsedCount) return false;
if (NextPackage != other.NextPackage) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (Id != 0) hash ^= Id.GetHashCode();
if (UsableCount != 0) hash ^= UsableCount.GetHashCode();
if (UsedCount != 0) hash ^= UsedCount.GetHashCode();
if (NextPackage.Length != 0) hash ^= NextPackage.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (Id != 0) {
output.WriteRawTag(8);
output.WriteUInt32(Id);
}
if (UsableCount != 0) {
output.WriteRawTag(16);
output.WriteInt32(UsableCount);
}
if (UsedCount != 0) {
output.WriteRawTag(24);
output.WriteInt32(UsedCount);
}
if (NextPackage.Length != 0) {
output.WriteRawTag(250, 127);
output.WriteBytes(NextPackage);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (Id != 0) {
output.WriteRawTag(8);
output.WriteUInt32(Id);
}
if (UsableCount != 0) {
output.WriteRawTag(16);
output.WriteInt32(UsableCount);
}
if (UsedCount != 0) {
output.WriteRawTag(24);
output.WriteInt32(UsedCount);
}
if (NextPackage.Length != 0) {
output.WriteRawTag(250, 127);
output.WriteBytes(NextPackage);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (Id != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id);
}
if (UsableCount != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(UsableCount);
}
if (UsedCount != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(UsedCount);
}
if (NextPackage.Length != 0) {
size += 2 + pb::CodedOutputStream.ComputeBytesSize(NextPackage);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(MiningSupport other) {
if (other == null) {
return;
}
if (other.Id != 0) {
Id = other.Id;
}
if (other.UsableCount != 0) {
UsableCount = other.UsableCount;
}
if (other.UsedCount != 0) {
UsedCount = other.UsedCount;
}
if (other.NextPackage.Length != 0) {
NextPackage = other.NextPackage;
}
_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: {
UsableCount = input.ReadInt32();
break;
}
case 24: {
UsedCount = input.ReadInt32();
break;
}
case 16378: {
NextPackage = input.ReadBytes();
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: {
UsableCount = input.ReadInt32();
break;
}
case 24: {
UsedCount = input.ReadInt32();
break;
}
case 16378: {
NextPackage = input.ReadBytes();
break;
}
}
}
}
#endif
}
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class MiningMap : pb::IMessage<MiningMap>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<MiningMap> _parser = new pb::MessageParser<MiningMap>(() => new MiningMap());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<MiningMap> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Proto.PublicMiningReflection.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 MiningMap() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public MiningMap(MiningMap other) : this() {
grids_ = other.grids_.Clone();
treasures_ = other.treasures_.Clone();
nextPackage_ = other.nextPackage_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public MiningMap Clone() {
return new MiningMap(this);
}
/// <summary>Field number for the "Grids" field.</summary>
public const int GridsFieldNumber = 3;
private static readonly pb::FieldCodec<global::Proto.MiningGrid> _repeated_grids_codec
= pb::FieldCodec.ForMessage(26, global::Proto.MiningGrid.Parser);
private readonly pbc::RepeatedField<global::Proto.MiningGrid> grids_ = new pbc::RepeatedField<global::Proto.MiningGrid>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<global::Proto.MiningGrid> Grids {
get { return grids_; }
}
/// <summary>Field number for the "Treasures" field.</summary>
public const int TreasuresFieldNumber = 2;
private static readonly pb::FieldCodec<global::Proto.MiningTreasure> _repeated_treasures_codec
= pb::FieldCodec.ForMessage(18, global::Proto.MiningTreasure.Parser);
private readonly pbc::RepeatedField<global::Proto.MiningTreasure> treasures_ = new pbc::RepeatedField<global::Proto.MiningTreasure>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<global::Proto.MiningTreasure> Treasures {
get { return treasures_; }
}
/// <summary>Field number for the "NextPackage" field.</summary>
public const int NextPackageFieldNumber = 2047;
private pb::ByteString nextPackage_ = pb::ByteString.Empty;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pb::ByteString NextPackage {
get { return nextPackage_; }
set {
nextPackage_ = 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 MiningMap);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(MiningMap other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if(!grids_.Equals(other.grids_)) return false;
if(!treasures_.Equals(other.treasures_)) return false;
if (NextPackage != other.NextPackage) 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 ^= grids_.GetHashCode();
hash ^= treasures_.GetHashCode();
if (NextPackage.Length != 0) hash ^= NextPackage.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
treasures_.WriteTo(output, _repeated_treasures_codec);
grids_.WriteTo(output, _repeated_grids_codec);
if (NextPackage.Length != 0) {
output.WriteRawTag(250, 127);
output.WriteBytes(NextPackage);
}
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) {
treasures_.WriteTo(ref output, _repeated_treasures_codec);
grids_.WriteTo(ref output, _repeated_grids_codec);
if (NextPackage.Length != 0) {
output.WriteRawTag(250, 127);
output.WriteBytes(NextPackage);
}
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 += grids_.CalculateSize(_repeated_grids_codec);
size += treasures_.CalculateSize(_repeated_treasures_codec);
if (NextPackage.Length != 0) {
size += 2 + pb::CodedOutputStream.ComputeBytesSize(NextPackage);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(MiningMap other) {
if (other == null) {
return;
}
grids_.Add(other.grids_);
treasures_.Add(other.treasures_);
if (other.NextPackage.Length != 0) {
NextPackage = other.NextPackage;
}
_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 18: {
treasures_.AddEntriesFrom(input, _repeated_treasures_codec);
break;
}
case 26: {
grids_.AddEntriesFrom(input, _repeated_grids_codec);
break;
}
case 16378: {
NextPackage = input.ReadBytes();
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 18: {
treasures_.AddEntriesFrom(ref input, _repeated_treasures_codec);
break;
}
case 26: {
grids_.AddEntriesFrom(ref input, _repeated_grids_codec);
break;
}
case 16378: {
NextPackage = input.ReadBytes();
break;
}
}
}
}
#endif
}
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class MiningLayer : pb::IMessage<MiningLayer>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<MiningLayer> _parser = new pb::MessageParser<MiningLayer>(() => new MiningLayer());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<MiningLayer> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Proto.PublicMiningReflection.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 MiningLayer() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public MiningLayer(MiningLayer other) : this() {
layer_ = other.layer_;
findKey_ = other.findKey_;
map_ = other.map_ != null ? other.map_.Clone() : null;
supports_ = other.supports_.Clone();
nextPackage_ = other.nextPackage_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public MiningLayer Clone() {
return new MiningLayer(this);
}
/// <summary>Field number for the "Layer" field.</summary>
public const int LayerFieldNumber = 1;
private uint layer_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint Layer {
get { return layer_; }
set {
layer_ = value;
}
}
/// <summary>Field number for the "FindKey" field.</summary>
public const int FindKeyFieldNumber = 2;
private bool findKey_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool FindKey {
get { return findKey_; }
set {
findKey_ = value;
}
}
/// <summary>Field number for the "Map" field.</summary>
public const int MapFieldNumber = 3;
private global::Proto.MiningMap map_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Proto.MiningMap Map {
get { return map_; }
set {
map_ = value;
}
}
/// <summary>Field number for the "Supports" field.</summary>
public const int SupportsFieldNumber = 4;
private static readonly pb::FieldCodec<global::Proto.MiningSupport> _repeated_supports_codec
= pb::FieldCodec.ForMessage(34, global::Proto.MiningSupport.Parser);
private readonly pbc::RepeatedField<global::Proto.MiningSupport> supports_ = new pbc::RepeatedField<global::Proto.MiningSupport>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<global::Proto.MiningSupport> Supports {
get { return supports_; }
}
/// <summary>Field number for the "NextPackage" field.</summary>
public const int NextPackageFieldNumber = 2047;
private pb::ByteString nextPackage_ = pb::ByteString.Empty;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pb::ByteString NextPackage {
get { return nextPackage_; }
set {
nextPackage_ = 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 MiningLayer);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(MiningLayer other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Layer != other.Layer) return false;
if (FindKey != other.FindKey) return false;
if (!object.Equals(Map, other.Map)) return false;
if(!supports_.Equals(other.supports_)) return false;
if (NextPackage != other.NextPackage) 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 (Layer != 0) hash ^= Layer.GetHashCode();
if (FindKey != false) hash ^= FindKey.GetHashCode();
if (map_ != null) hash ^= Map.GetHashCode();
hash ^= supports_.GetHashCode();
if (NextPackage.Length != 0) hash ^= NextPackage.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 (Layer != 0) {
output.WriteRawTag(8);
output.WriteUInt32(Layer);
}
if (FindKey != false) {
output.WriteRawTag(16);
output.WriteBool(FindKey);
}
if (map_ != null) {
output.WriteRawTag(26);
output.WriteMessage(Map);
}
supports_.WriteTo(output, _repeated_supports_codec);
if (NextPackage.Length != 0) {
output.WriteRawTag(250, 127);
output.WriteBytes(NextPackage);
}
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 (Layer != 0) {
output.WriteRawTag(8);
output.WriteUInt32(Layer);
}
if (FindKey != false) {
output.WriteRawTag(16);
output.WriteBool(FindKey);
}
if (map_ != null) {
output.WriteRawTag(26);
output.WriteMessage(Map);
}
supports_.WriteTo(ref output, _repeated_supports_codec);
if (NextPackage.Length != 0) {
output.WriteRawTag(250, 127);
output.WriteBytes(NextPackage);
}
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 (Layer != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Layer);
}
if (FindKey != false) {
size += 1 + 1;
}
if (map_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Map);
}
size += supports_.CalculateSize(_repeated_supports_codec);
if (NextPackage.Length != 0) {
size += 2 + pb::CodedOutputStream.ComputeBytesSize(NextPackage);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(MiningLayer other) {
if (other == null) {
return;
}
if (other.Layer != 0) {
Layer = other.Layer;
}
if (other.FindKey != false) {
FindKey = other.FindKey;
}
if (other.map_ != null) {
if (map_ == null) {
Map = new global::Proto.MiningMap();
}
Map.MergeFrom(other.Map);
}
supports_.Add(other.supports_);
if (other.NextPackage.Length != 0) {
NextPackage = other.NextPackage;
}
_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: {
Layer = input.ReadUInt32();
break;
}
case 16: {
FindKey = input.ReadBool();
break;
}
case 26: {
if (map_ == null) {
Map = new global::Proto.MiningMap();
}
input.ReadMessage(Map);
break;
}
case 34: {
supports_.AddEntriesFrom(input, _repeated_supports_codec);
break;
}
case 16378: {
NextPackage = input.ReadBytes();
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: {
Layer = input.ReadUInt32();
break;
}
case 16: {
FindKey = input.ReadBool();
break;
}
case 26: {
if (map_ == null) {
Map = new global::Proto.MiningMap();
}
input.ReadMessage(Map);
break;
}
case 34: {
supports_.AddEntriesFrom(ref input, _repeated_supports_codec);
break;
}
case 16378: {
NextPackage = input.ReadBytes();
break;
}
}
}
}
#endif
}
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class MiningProcess : pb::IMessage<MiningProcess>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<MiningProcess> _parser = new pb::MessageParser<MiningProcess>(() => new MiningProcess());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<MiningProcess> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Proto.PublicMiningReflection.Descriptor.MessageTypes[5]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public MiningProcess() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public MiningProcess(MiningProcess other) : this() {
effectType_ = other.effectType_;
effectedGrids_ = other.effectedGrids_.Clone();
nextPackage_ = other.nextPackage_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public MiningProcess Clone() {
return new MiningProcess(this);
}
/// <summary>Field number for the "EffectType" field.</summary>
public const int EffectTypeFieldNumber = 1;
private int effectType_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int EffectType {
get { return effectType_; }
set {
effectType_ = value;
}
}
/// <summary>Field number for the "EffectedGrids" field.</summary>
public const int EffectedGridsFieldNumber = 2;
private static readonly pb::FieldCodec<global::Proto.MiningGrid> _repeated_effectedGrids_codec
= pb::FieldCodec.ForMessage(18, global::Proto.MiningGrid.Parser);
private readonly pbc::RepeatedField<global::Proto.MiningGrid> effectedGrids_ = new pbc::RepeatedField<global::Proto.MiningGrid>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<global::Proto.MiningGrid> EffectedGrids {
get { return effectedGrids_; }
}
/// <summary>Field number for the "NextPackage" field.</summary>
public const int NextPackageFieldNumber = 2047;
private pb::ByteString nextPackage_ = pb::ByteString.Empty;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pb::ByteString NextPackage {
get { return nextPackage_; }
set {
nextPackage_ = 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 MiningProcess);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(MiningProcess other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (EffectType != other.EffectType) return false;
if(!effectedGrids_.Equals(other.effectedGrids_)) return false;
if (NextPackage != other.NextPackage) 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 (EffectType != 0) hash ^= EffectType.GetHashCode();
hash ^= effectedGrids_.GetHashCode();
if (NextPackage.Length != 0) hash ^= NextPackage.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 (EffectType != 0) {
output.WriteRawTag(8);
output.WriteInt32(EffectType);
}
effectedGrids_.WriteTo(output, _repeated_effectedGrids_codec);
if (NextPackage.Length != 0) {
output.WriteRawTag(250, 127);
output.WriteBytes(NextPackage);
}
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 (EffectType != 0) {
output.WriteRawTag(8);
output.WriteInt32(EffectType);
}
effectedGrids_.WriteTo(ref output, _repeated_effectedGrids_codec);
if (NextPackage.Length != 0) {
output.WriteRawTag(250, 127);
output.WriteBytes(NextPackage);
}
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 (EffectType != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(EffectType);
}
size += effectedGrids_.CalculateSize(_repeated_effectedGrids_codec);
if (NextPackage.Length != 0) {
size += 2 + pb::CodedOutputStream.ComputeBytesSize(NextPackage);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(MiningProcess other) {
if (other == null) {
return;
}
if (other.EffectType != 0) {
EffectType = other.EffectType;
}
effectedGrids_.Add(other.effectedGrids_);
if (other.NextPackage.Length != 0) {
NextPackage = other.NextPackage;
}
_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: {
EffectType = input.ReadInt32();
break;
}
case 18: {
effectedGrids_.AddEntriesFrom(input, _repeated_effectedGrids_codec);
break;
}
case 16378: {
NextPackage = input.ReadBytes();
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: {
EffectType = input.ReadInt32();
break;
}
case 18: {
effectedGrids_.AddEntriesFrom(ref input, _repeated_effectedGrids_codec);
break;
}
case 16378: {
NextPackage = input.ReadBytes();
break;
}
}
}
}
#endif
}
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class MiningChangeInfo : pb::IMessage<MiningChangeInfo>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<MiningChangeInfo> _parser = new pb::MessageParser<MiningChangeInfo>(() => new MiningChangeInfo());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<MiningChangeInfo> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Proto.PublicMiningReflection.Descriptor.MessageTypes[6]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public MiningChangeInfo() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public MiningChangeInfo(MiningChangeInfo other) : this() {
findKey_ = other.findKey_;
processes_ = other.processes_.Clone();
receivedTreasures_ = other.receivedTreasures_.Clone();
nextPackage_ = other.nextPackage_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public MiningChangeInfo Clone() {
return new MiningChangeInfo(this);
}
/// <summary>Field number for the "FindKey" field.</summary>
public const int FindKeyFieldNumber = 1;
private bool findKey_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool FindKey {
get { return findKey_; }
set {
findKey_ = value;
}
}
/// <summary>Field number for the "Processes" field.</summary>
public const int ProcessesFieldNumber = 2;
private static readonly pb::FieldCodec<global::Proto.MiningProcess> _repeated_processes_codec
= pb::FieldCodec.ForMessage(18, global::Proto.MiningProcess.Parser);
private readonly pbc::RepeatedField<global::Proto.MiningProcess> processes_ = new pbc::RepeatedField<global::Proto.MiningProcess>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<global::Proto.MiningProcess> Processes {
get { return processes_; }
}
/// <summary>Field number for the "ReceivedTreasures" field.</summary>
public const int ReceivedTreasuresFieldNumber = 3;
private static readonly pb::FieldCodec<uint> _repeated_receivedTreasures_codec
= pb::FieldCodec.ForUInt32(26);
private readonly pbc::RepeatedField<uint> receivedTreasures_ = new pbc::RepeatedField<uint>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<uint> ReceivedTreasures {
get { return receivedTreasures_; }
}
/// <summary>Field number for the "NextPackage" field.</summary>
public const int NextPackageFieldNumber = 2047;
private pb::ByteString nextPackage_ = pb::ByteString.Empty;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pb::ByteString NextPackage {
get { return nextPackage_; }
set {
nextPackage_ = 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 MiningChangeInfo);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(MiningChangeInfo other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (FindKey != other.FindKey) return false;
if(!processes_.Equals(other.processes_)) return false;
if(!receivedTreasures_.Equals(other.receivedTreasures_)) return false;
if (NextPackage != other.NextPackage) 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 (FindKey != false) hash ^= FindKey.GetHashCode();
hash ^= processes_.GetHashCode();
hash ^= receivedTreasures_.GetHashCode();
if (NextPackage.Length != 0) hash ^= NextPackage.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 (FindKey != false) {
output.WriteRawTag(8);
output.WriteBool(FindKey);
}
processes_.WriteTo(output, _repeated_processes_codec);
receivedTreasures_.WriteTo(output, _repeated_receivedTreasures_codec);
if (NextPackage.Length != 0) {
output.WriteRawTag(250, 127);
output.WriteBytes(NextPackage);
}
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 (FindKey != false) {
output.WriteRawTag(8);
output.WriteBool(FindKey);
}
processes_.WriteTo(ref output, _repeated_processes_codec);
receivedTreasures_.WriteTo(ref output, _repeated_receivedTreasures_codec);
if (NextPackage.Length != 0) {
output.WriteRawTag(250, 127);
output.WriteBytes(NextPackage);
}
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 (FindKey != false) {
size += 1 + 1;
}
size += processes_.CalculateSize(_repeated_processes_codec);
size += receivedTreasures_.CalculateSize(_repeated_receivedTreasures_codec);
if (NextPackage.Length != 0) {
size += 2 + pb::CodedOutputStream.ComputeBytesSize(NextPackage);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(MiningChangeInfo other) {
if (other == null) {
return;
}
if (other.FindKey != false) {
FindKey = other.FindKey;
}
processes_.Add(other.processes_);
receivedTreasures_.Add(other.receivedTreasures_);
if (other.NextPackage.Length != 0) {
NextPackage = other.NextPackage;
}
_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: {
FindKey = input.ReadBool();
break;
}
case 18: {
processes_.AddEntriesFrom(input, _repeated_processes_codec);
break;
}
case 26:
case 24: {
receivedTreasures_.AddEntriesFrom(input, _repeated_receivedTreasures_codec);
break;
}
case 16378: {
NextPackage = input.ReadBytes();
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: {
FindKey = input.ReadBool();
break;
}
case 18: {
processes_.AddEntriesFrom(ref input, _repeated_processes_codec);
break;
}
case 26:
case 24: {
receivedTreasures_.AddEntriesFrom(ref input, _repeated_receivedTreasures_codec);
break;
}
case 16378: {
NextPackage = input.ReadBytes();
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code