mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-02 20:26:03 +08:00
414 lines
15 KiB
C#
414 lines
15 KiB
C#
// <auto-generated>
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: OfferingInfo.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 OfferingInfo.proto</summary>
|
|
public static partial class OfferingInfoReflection {
|
|
|
|
#region Descriptor
|
|
/// <summary>File descriptor for OfferingInfo.proto</summary>
|
|
public static pbr::FileDescriptor Descriptor {
|
|
get { return descriptor; }
|
|
}
|
|
private static pbr::FileDescriptor descriptor;
|
|
|
|
static OfferingInfoReflection() {
|
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
|
string.Concat(
|
|
"ChJPZmZlcmluZ0luZm8ucHJvdG8aE09mZmVyaW5nU3RhdGUucHJvdG8iqwEK",
|
|
"DE9mZmVyaW5nSW5mbxIgChhoYXNfdGFrZW5fcmV3YXJkX2lkX2xpc3QYBCAD",
|
|
"KA0SEQoJbGV2ZWxfZXhwGAEgASgNEhYKDm9mZmVyaW5nX2xldmVsGA8gASgN",
|
|
"EhMKC29mZmVyaW5nX2lkGA4gASgNEiYKDm9mZmVyaW5nX3N0YXRlGAwgASgO",
|
|
"Mg4uT2ZmZXJpbmdTdGF0ZRIRCgl0b3RhbF9leHAYCiABKA1CHqoCG0VnZ0xp",
|
|
"bmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z"));
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
|
new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.OfferingStateReflection.Descriptor, },
|
|
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.OfferingInfo), global::EggLink.DanhengServer.Proto.OfferingInfo.Parser, new[]{ "HasTakenRewardIdList", "LevelExp", "OfferingLevel", "OfferingId", "OfferingState", "TotalExp" }, null, null, null, null)
|
|
}));
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
#region Messages
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class OfferingInfo : pb::IMessage<OfferingInfo>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<OfferingInfo> _parser = new pb::MessageParser<OfferingInfo>(() => new OfferingInfo());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<OfferingInfo> 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.OfferingInfoReflection.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 OfferingInfo() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public OfferingInfo(OfferingInfo other) : this() {
|
|
hasTakenRewardIdList_ = other.hasTakenRewardIdList_.Clone();
|
|
levelExp_ = other.levelExp_;
|
|
offeringLevel_ = other.offeringLevel_;
|
|
offeringId_ = other.offeringId_;
|
|
offeringState_ = other.offeringState_;
|
|
totalExp_ = other.totalExp_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public OfferingInfo Clone() {
|
|
return new OfferingInfo(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "has_taken_reward_id_list" field.</summary>
|
|
public const int HasTakenRewardIdListFieldNumber = 4;
|
|
private static readonly pb::FieldCodec<uint> _repeated_hasTakenRewardIdList_codec
|
|
= pb::FieldCodec.ForUInt32(34);
|
|
private readonly pbc::RepeatedField<uint> hasTakenRewardIdList_ = new pbc::RepeatedField<uint>();
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public pbc::RepeatedField<uint> HasTakenRewardIdList {
|
|
get { return hasTakenRewardIdList_; }
|
|
}
|
|
|
|
/// <summary>Field number for the "level_exp" field.</summary>
|
|
public const int LevelExpFieldNumber = 1;
|
|
private uint levelExp_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint LevelExp {
|
|
get { return levelExp_; }
|
|
set {
|
|
levelExp_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "offering_level" field.</summary>
|
|
public const int OfferingLevelFieldNumber = 15;
|
|
private uint offeringLevel_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint OfferingLevel {
|
|
get { return offeringLevel_; }
|
|
set {
|
|
offeringLevel_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "offering_id" field.</summary>
|
|
public const int OfferingIdFieldNumber = 14;
|
|
private uint offeringId_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint OfferingId {
|
|
get { return offeringId_; }
|
|
set {
|
|
offeringId_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "offering_state" field.</summary>
|
|
public const int OfferingStateFieldNumber = 12;
|
|
private global::EggLink.DanhengServer.Proto.OfferingState offeringState_ = global::EggLink.DanhengServer.Proto.OfferingState.None;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::EggLink.DanhengServer.Proto.OfferingState OfferingState {
|
|
get { return offeringState_; }
|
|
set {
|
|
offeringState_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "total_exp" field.</summary>
|
|
public const int TotalExpFieldNumber = 10;
|
|
private uint totalExp_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint TotalExp {
|
|
get { return totalExp_; }
|
|
set {
|
|
totalExp_ = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as OfferingInfo);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(OfferingInfo other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if(!hasTakenRewardIdList_.Equals(other.hasTakenRewardIdList_)) return false;
|
|
if (LevelExp != other.LevelExp) return false;
|
|
if (OfferingLevel != other.OfferingLevel) return false;
|
|
if (OfferingId != other.OfferingId) return false;
|
|
if (OfferingState != other.OfferingState) return false;
|
|
if (TotalExp != other.TotalExp) 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 ^= hasTakenRewardIdList_.GetHashCode();
|
|
if (LevelExp != 0) hash ^= LevelExp.GetHashCode();
|
|
if (OfferingLevel != 0) hash ^= OfferingLevel.GetHashCode();
|
|
if (OfferingId != 0) hash ^= OfferingId.GetHashCode();
|
|
if (OfferingState != global::EggLink.DanhengServer.Proto.OfferingState.None) hash ^= OfferingState.GetHashCode();
|
|
if (TotalExp != 0) hash ^= TotalExp.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 (LevelExp != 0) {
|
|
output.WriteRawTag(8);
|
|
output.WriteUInt32(LevelExp);
|
|
}
|
|
hasTakenRewardIdList_.WriteTo(output, _repeated_hasTakenRewardIdList_codec);
|
|
if (TotalExp != 0) {
|
|
output.WriteRawTag(80);
|
|
output.WriteUInt32(TotalExp);
|
|
}
|
|
if (OfferingState != global::EggLink.DanhengServer.Proto.OfferingState.None) {
|
|
output.WriteRawTag(96);
|
|
output.WriteEnum((int) OfferingState);
|
|
}
|
|
if (OfferingId != 0) {
|
|
output.WriteRawTag(112);
|
|
output.WriteUInt32(OfferingId);
|
|
}
|
|
if (OfferingLevel != 0) {
|
|
output.WriteRawTag(120);
|
|
output.WriteUInt32(OfferingLevel);
|
|
}
|
|
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 (LevelExp != 0) {
|
|
output.WriteRawTag(8);
|
|
output.WriteUInt32(LevelExp);
|
|
}
|
|
hasTakenRewardIdList_.WriteTo(ref output, _repeated_hasTakenRewardIdList_codec);
|
|
if (TotalExp != 0) {
|
|
output.WriteRawTag(80);
|
|
output.WriteUInt32(TotalExp);
|
|
}
|
|
if (OfferingState != global::EggLink.DanhengServer.Proto.OfferingState.None) {
|
|
output.WriteRawTag(96);
|
|
output.WriteEnum((int) OfferingState);
|
|
}
|
|
if (OfferingId != 0) {
|
|
output.WriteRawTag(112);
|
|
output.WriteUInt32(OfferingId);
|
|
}
|
|
if (OfferingLevel != 0) {
|
|
output.WriteRawTag(120);
|
|
output.WriteUInt32(OfferingLevel);
|
|
}
|
|
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 += hasTakenRewardIdList_.CalculateSize(_repeated_hasTakenRewardIdList_codec);
|
|
if (LevelExp != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(LevelExp);
|
|
}
|
|
if (OfferingLevel != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(OfferingLevel);
|
|
}
|
|
if (OfferingId != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(OfferingId);
|
|
}
|
|
if (OfferingState != global::EggLink.DanhengServer.Proto.OfferingState.None) {
|
|
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) OfferingState);
|
|
}
|
|
if (TotalExp != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TotalExp);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(OfferingInfo other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
hasTakenRewardIdList_.Add(other.hasTakenRewardIdList_);
|
|
if (other.LevelExp != 0) {
|
|
LevelExp = other.LevelExp;
|
|
}
|
|
if (other.OfferingLevel != 0) {
|
|
OfferingLevel = other.OfferingLevel;
|
|
}
|
|
if (other.OfferingId != 0) {
|
|
OfferingId = other.OfferingId;
|
|
}
|
|
if (other.OfferingState != global::EggLink.DanhengServer.Proto.OfferingState.None) {
|
|
OfferingState = other.OfferingState;
|
|
}
|
|
if (other.TotalExp != 0) {
|
|
TotalExp = other.TotalExp;
|
|
}
|
|
_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 8: {
|
|
LevelExp = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 34:
|
|
case 32: {
|
|
hasTakenRewardIdList_.AddEntriesFrom(input, _repeated_hasTakenRewardIdList_codec);
|
|
break;
|
|
}
|
|
case 80: {
|
|
TotalExp = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 96: {
|
|
OfferingState = (global::EggLink.DanhengServer.Proto.OfferingState) input.ReadEnum();
|
|
break;
|
|
}
|
|
case 112: {
|
|
OfferingId = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 120: {
|
|
OfferingLevel = 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 8: {
|
|
LevelExp = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 34:
|
|
case 32: {
|
|
hasTakenRewardIdList_.AddEntriesFrom(ref input, _repeated_hasTakenRewardIdList_codec);
|
|
break;
|
|
}
|
|
case 80: {
|
|
TotalExp = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 96: {
|
|
OfferingState = (global::EggLink.DanhengServer.Proto.OfferingState) input.ReadEnum();
|
|
break;
|
|
}
|
|
case 112: {
|
|
OfferingId = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 120: {
|
|
OfferingLevel = input.ReadUInt32();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
#endregion Designer generated code
|