//
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ChessRogueCellUpdateNotify.proto
//
#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 {
/// Holder for reflection information generated from ChessRogueCellUpdateNotify.proto
public static partial class ChessRogueCellUpdateNotifyReflection {
#region Descriptor
/// File descriptor for ChessRogueCellUpdateNotify.proto
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static ChessRogueCellUpdateNotifyReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CiBDaGVzc1JvZ3VlQ2VsbFVwZGF0ZU5vdGlmeS5wcm90bxodUm9ndWVNb2Rp",
"ZmllclNvdXJjZVR5cGUucHJvdG8aIENoZXNzUm9ndWVDZWxsVXBkYXRlUmVh",
"c29uLnByb3RvGhRDaGVzc1JvZ3VlQ2VsbC5wcm90byKyAQoaQ2hlc3NSb2d1",
"ZUNlbGxVcGRhdGVOb3RpZnkSMQoPbW9kaWZpZXJfc291cmNlGA8gASgOMhgu",
"Um9ndWVNb2RpZmllclNvdXJjZVR5cGUSKwoGcmVhc29uGAsgASgOMhsuQ2hl",
"c3NSb2d1ZUNlbGxVcGRhdGVSZWFzb24SEAoIYm9hcmRfaWQYByABKA0SIgoJ",
"Y2VsbF9saXN0GAggAygLMg8uQ2hlc3NSb2d1ZUNlbGxCHqoCG0VnZ0xpbmsu",
"RGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueModifierSourceTypeReflection.Descriptor, global::EggLink.DanhengServer.Proto.ChessRogueCellUpdateReasonReflection.Descriptor, global::EggLink.DanhengServer.Proto.ChessRogueCellReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ChessRogueCellUpdateNotify), global::EggLink.DanhengServer.Proto.ChessRogueCellUpdateNotify.Parser, new[]{ "ModifierSource", "Reason", "BoardId", "CellList" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class ChessRogueCellUpdateNotify : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChessRogueCellUpdateNotify());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser 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.ChessRogueCellUpdateNotifyReflection.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 ChessRogueCellUpdateNotify() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ChessRogueCellUpdateNotify(ChessRogueCellUpdateNotify other) : this() {
modifierSource_ = other.modifierSource_;
reason_ = other.reason_;
boardId_ = other.boardId_;
cellList_ = other.cellList_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ChessRogueCellUpdateNotify Clone() {
return new ChessRogueCellUpdateNotify(this);
}
/// Field number for the "modifier_source" field.
public const int ModifierSourceFieldNumber = 15;
private global::EggLink.DanhengServer.Proto.RogueModifierSourceType modifierSource_ = global::EggLink.DanhengServer.Proto.RogueModifierSourceType.RogueModifierSourceNone;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::EggLink.DanhengServer.Proto.RogueModifierSourceType ModifierSource {
get { return modifierSource_; }
set {
modifierSource_ = value;
}
}
/// Field number for the "reason" field.
public const int ReasonFieldNumber = 11;
private global::EggLink.DanhengServer.Proto.ChessRogueCellUpdateReason reason_ = global::EggLink.DanhengServer.Proto.ChessRogueCellUpdateReason.None;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::EggLink.DanhengServer.Proto.ChessRogueCellUpdateReason Reason {
get { return reason_; }
set {
reason_ = value;
}
}
/// Field number for the "board_id" field.
public const int BoardIdFieldNumber = 7;
private uint boardId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint BoardId {
get { return boardId_; }
set {
boardId_ = value;
}
}
/// Field number for the "cell_list" field.
public const int CellListFieldNumber = 8;
private static readonly pb::FieldCodec _repeated_cellList_codec
= pb::FieldCodec.ForMessage(66, global::EggLink.DanhengServer.Proto.ChessRogueCell.Parser);
private readonly pbc::RepeatedField cellList_ = new pbc::RepeatedField();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField CellList {
get { return cellList_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as ChessRogueCellUpdateNotify);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(ChessRogueCellUpdateNotify other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (ModifierSource != other.ModifierSource) return false;
if (Reason != other.Reason) return false;
if (BoardId != other.BoardId) return false;
if(!cellList_.Equals(other.cellList_)) 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 (ModifierSource != global::EggLink.DanhengServer.Proto.RogueModifierSourceType.RogueModifierSourceNone) hash ^= ModifierSource.GetHashCode();
if (Reason != global::EggLink.DanhengServer.Proto.ChessRogueCellUpdateReason.None) hash ^= Reason.GetHashCode();
if (BoardId != 0) hash ^= BoardId.GetHashCode();
hash ^= cellList_.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 (BoardId != 0) {
output.WriteRawTag(56);
output.WriteUInt32(BoardId);
}
cellList_.WriteTo(output, _repeated_cellList_codec);
if (Reason != global::EggLink.DanhengServer.Proto.ChessRogueCellUpdateReason.None) {
output.WriteRawTag(88);
output.WriteEnum((int) Reason);
}
if (ModifierSource != global::EggLink.DanhengServer.Proto.RogueModifierSourceType.RogueModifierSourceNone) {
output.WriteRawTag(120);
output.WriteEnum((int) ModifierSource);
}
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 (BoardId != 0) {
output.WriteRawTag(56);
output.WriteUInt32(BoardId);
}
cellList_.WriteTo(ref output, _repeated_cellList_codec);
if (Reason != global::EggLink.DanhengServer.Proto.ChessRogueCellUpdateReason.None) {
output.WriteRawTag(88);
output.WriteEnum((int) Reason);
}
if (ModifierSource != global::EggLink.DanhengServer.Proto.RogueModifierSourceType.RogueModifierSourceNone) {
output.WriteRawTag(120);
output.WriteEnum((int) ModifierSource);
}
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 (ModifierSource != global::EggLink.DanhengServer.Proto.RogueModifierSourceType.RogueModifierSourceNone) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ModifierSource);
}
if (Reason != global::EggLink.DanhengServer.Proto.ChessRogueCellUpdateReason.None) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Reason);
}
if (BoardId != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BoardId);
}
size += cellList_.CalculateSize(_repeated_cellList_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(ChessRogueCellUpdateNotify other) {
if (other == null) {
return;
}
if (other.ModifierSource != global::EggLink.DanhengServer.Proto.RogueModifierSourceType.RogueModifierSourceNone) {
ModifierSource = other.ModifierSource;
}
if (other.Reason != global::EggLink.DanhengServer.Proto.ChessRogueCellUpdateReason.None) {
Reason = other.Reason;
}
if (other.BoardId != 0) {
BoardId = other.BoardId;
}
cellList_.Add(other.cellList_);
_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 56: {
BoardId = input.ReadUInt32();
break;
}
case 66: {
cellList_.AddEntriesFrom(input, _repeated_cellList_codec);
break;
}
case 88: {
Reason = (global::EggLink.DanhengServer.Proto.ChessRogueCellUpdateReason) input.ReadEnum();
break;
}
case 120: {
ModifierSource = (global::EggLink.DanhengServer.Proto.RogueModifierSourceType) input.ReadEnum();
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 56: {
BoardId = input.ReadUInt32();
break;
}
case 66: {
cellList_.AddEntriesFrom(ref input, _repeated_cellList_codec);
break;
}
case 88: {
Reason = (global::EggLink.DanhengServer.Proto.ChessRogueCellUpdateReason) input.ReadEnum();
break;
}
case 120: {
ModifierSource = (global::EggLink.DanhengServer.Proto.RogueModifierSourceType) input.ReadEnum();
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code