Files
DanhengServer-OpenSource/Proto/WorkbenchEnhanceBuffFuncInfo.cs
2024-10-02 15:08:37 +08:00

302 lines
11 KiB
C#

// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: WorkbenchEnhanceBuffFuncInfo.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 WorkbenchEnhanceBuffFuncInfo.proto</summary>
public static partial class WorkbenchEnhanceBuffFuncInfoReflection {
#region Descriptor
/// <summary>File descriptor for WorkbenchEnhanceBuffFuncInfo.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static WorkbenchEnhanceBuffFuncInfoReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CiJXb3JrYmVuY2hFbmhhbmNlQnVmZkZ1bmNJbmZvLnByb3RvItEBChxXb3Jr",
"YmVuY2hFbmhhbmNlQnVmZkZ1bmNJbmZvEg8KB2N1cl9udW0YCSABKA0SVAoV",
"YnVmZl9lbmhhbmNlX2Nvc3RfbWFwGA0gAygLMjUuV29ya2JlbmNoRW5oYW5j",
"ZUJ1ZmZGdW5jSW5mby5CdWZmRW5oYW5jZUNvc3RNYXBFbnRyeRIPCgdtYXhf",
"bnVtGAQgASgNGjkKF0J1ZmZFbmhhbmNlQ29zdE1hcEVudHJ5EgsKA2tleRgB",
"IAEoDRINCgV2YWx1ZRgCIAEoDToCOAFCHqoCG0VnZ0xpbmsuRGFuaGVuZ1Nl",
"cnZlci5Qcm90b2IGcHJvdG8z"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.WorkbenchEnhanceBuffFuncInfo), global::EggLink.DanhengServer.Proto.WorkbenchEnhanceBuffFuncInfo.Parser, new[]{ "CurNum", "BuffEnhanceCostMap", "MaxNum" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, })
}));
}
#endregion
}
#region Messages
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class WorkbenchEnhanceBuffFuncInfo : pb::IMessage<WorkbenchEnhanceBuffFuncInfo>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<WorkbenchEnhanceBuffFuncInfo> _parser = new pb::MessageParser<WorkbenchEnhanceBuffFuncInfo>(() => new WorkbenchEnhanceBuffFuncInfo());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<WorkbenchEnhanceBuffFuncInfo> 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.WorkbenchEnhanceBuffFuncInfoReflection.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 WorkbenchEnhanceBuffFuncInfo() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public WorkbenchEnhanceBuffFuncInfo(WorkbenchEnhanceBuffFuncInfo other) : this() {
curNum_ = other.curNum_;
buffEnhanceCostMap_ = other.buffEnhanceCostMap_.Clone();
maxNum_ = other.maxNum_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public WorkbenchEnhanceBuffFuncInfo Clone() {
return new WorkbenchEnhanceBuffFuncInfo(this);
}
/// <summary>Field number for the "cur_num" field.</summary>
public const int CurNumFieldNumber = 9;
private uint curNum_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint CurNum {
get { return curNum_; }
set {
curNum_ = value;
}
}
/// <summary>Field number for the "buff_enhance_cost_map" field.</summary>
public const int BuffEnhanceCostMapFieldNumber = 13;
private static readonly pbc::MapField<uint, uint>.Codec _map_buffEnhanceCostMap_codec
= new pbc::MapField<uint, uint>.Codec(pb::FieldCodec.ForUInt32(8, 0), pb::FieldCodec.ForUInt32(16, 0), 106);
private readonly pbc::MapField<uint, uint> buffEnhanceCostMap_ = new pbc::MapField<uint, uint>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::MapField<uint, uint> BuffEnhanceCostMap {
get { return buffEnhanceCostMap_; }
}
/// <summary>Field number for the "max_num" field.</summary>
public const int MaxNumFieldNumber = 4;
private uint maxNum_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint MaxNum {
get { return maxNum_; }
set {
maxNum_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as WorkbenchEnhanceBuffFuncInfo);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(WorkbenchEnhanceBuffFuncInfo other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (CurNum != other.CurNum) return false;
if (!BuffEnhanceCostMap.Equals(other.BuffEnhanceCostMap)) return false;
if (MaxNum != other.MaxNum) 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 (CurNum != 0) hash ^= CurNum.GetHashCode();
hash ^= BuffEnhanceCostMap.GetHashCode();
if (MaxNum != 0) hash ^= MaxNum.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 (MaxNum != 0) {
output.WriteRawTag(32);
output.WriteUInt32(MaxNum);
}
if (CurNum != 0) {
output.WriteRawTag(72);
output.WriteUInt32(CurNum);
}
buffEnhanceCostMap_.WriteTo(output, _map_buffEnhanceCostMap_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (MaxNum != 0) {
output.WriteRawTag(32);
output.WriteUInt32(MaxNum);
}
if (CurNum != 0) {
output.WriteRawTag(72);
output.WriteUInt32(CurNum);
}
buffEnhanceCostMap_.WriteTo(ref output, _map_buffEnhanceCostMap_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (CurNum != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CurNum);
}
size += buffEnhanceCostMap_.CalculateSize(_map_buffEnhanceCostMap_codec);
if (MaxNum != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MaxNum);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(WorkbenchEnhanceBuffFuncInfo other) {
if (other == null) {
return;
}
if (other.CurNum != 0) {
CurNum = other.CurNum;
}
buffEnhanceCostMap_.MergeFrom(other.buffEnhanceCostMap_);
if (other.MaxNum != 0) {
MaxNum = other.MaxNum;
}
_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 32: {
MaxNum = input.ReadUInt32();
break;
}
case 72: {
CurNum = input.ReadUInt32();
break;
}
case 106: {
buffEnhanceCostMap_.AddEntriesFrom(input, _map_buffEnhanceCostMap_codec);
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 32: {
MaxNum = input.ReadUInt32();
break;
}
case 72: {
CurNum = input.ReadUInt32();
break;
}
case 106: {
buffEnhanceCostMap_.AddEntriesFrom(ref input, _map_buffEnhanceCostMap_codec);
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code