mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-03 04:36:03 +08:00
448 lines
15 KiB
C#
448 lines
15 KiB
C#
// <auto-generated>
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: Shop.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 Shop.proto</summary>
|
|
public static partial class ShopReflection {
|
|
|
|
#region Descriptor
|
|
/// <summary>File descriptor for Shop.proto</summary>
|
|
public static pbr::FileDescriptor Descriptor {
|
|
get { return descriptor; }
|
|
}
|
|
private static pbr::FileDescriptor descriptor;
|
|
|
|
static ShopReflection() {
|
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
|
string.Concat(
|
|
"CgpTaG9wLnByb3RvGgtHb29kcy5wcm90byKYAQoEU2hvcBIOCgZTaG9wSWQY",
|
|
"ByABKA0SEQoJQ2l0eUxldmVsGA8gASgNEhEKCUJlZ2luVGltZRgEIAEoAxIP",
|
|
"CgdDaXR5RXhwGAYgASgNEg8KB0VuZFRpbWUYCiABKAMSGgoKZ29vZHNfbGlz",
|
|
"dBgNIAMoCzIGLkdvb2RzEhwKFENpdHlUYWtlbkxldmVsUmV3YXJkGAUgASgE",
|
|
"Qh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw=="));
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
|
new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.GoodsReflection.Descriptor, },
|
|
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.Shop), global::EggLink.DanhengServer.Proto.Shop.Parser, new[]{ "ShopId", "CityLevel", "BeginTime", "CityExp", "EndTime", "GoodsList", "CityTakenLevelReward" }, null, null, null, null)
|
|
}));
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
#region Messages
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class Shop : pb::IMessage<Shop>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<Shop> _parser = new pb::MessageParser<Shop>(() => new Shop());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<Shop> 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.ShopReflection.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 Shop() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public Shop(Shop other) : this() {
|
|
shopId_ = other.shopId_;
|
|
cityLevel_ = other.cityLevel_;
|
|
beginTime_ = other.beginTime_;
|
|
cityExp_ = other.cityExp_;
|
|
endTime_ = other.endTime_;
|
|
goodsList_ = other.goodsList_.Clone();
|
|
cityTakenLevelReward_ = other.cityTakenLevelReward_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public Shop Clone() {
|
|
return new Shop(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "ShopId" field.</summary>
|
|
public const int ShopIdFieldNumber = 7;
|
|
private uint shopId_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint ShopId {
|
|
get { return shopId_; }
|
|
set {
|
|
shopId_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "CityLevel" field.</summary>
|
|
public const int CityLevelFieldNumber = 15;
|
|
private uint cityLevel_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint CityLevel {
|
|
get { return cityLevel_; }
|
|
set {
|
|
cityLevel_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "BeginTime" field.</summary>
|
|
public const int BeginTimeFieldNumber = 4;
|
|
private long beginTime_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public long BeginTime {
|
|
get { return beginTime_; }
|
|
set {
|
|
beginTime_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "CityExp" field.</summary>
|
|
public const int CityExpFieldNumber = 6;
|
|
private uint cityExp_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint CityExp {
|
|
get { return cityExp_; }
|
|
set {
|
|
cityExp_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "EndTime" field.</summary>
|
|
public const int EndTimeFieldNumber = 10;
|
|
private long endTime_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public long EndTime {
|
|
get { return endTime_; }
|
|
set {
|
|
endTime_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "goods_list" field.</summary>
|
|
public const int GoodsListFieldNumber = 13;
|
|
private static readonly pb::FieldCodec<global::EggLink.DanhengServer.Proto.Goods> _repeated_goodsList_codec
|
|
= pb::FieldCodec.ForMessage(106, global::EggLink.DanhengServer.Proto.Goods.Parser);
|
|
private readonly pbc::RepeatedField<global::EggLink.DanhengServer.Proto.Goods> goodsList_ = new pbc::RepeatedField<global::EggLink.DanhengServer.Proto.Goods>();
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public pbc::RepeatedField<global::EggLink.DanhengServer.Proto.Goods> GoodsList {
|
|
get { return goodsList_; }
|
|
}
|
|
|
|
/// <summary>Field number for the "CityTakenLevelReward" field.</summary>
|
|
public const int CityTakenLevelRewardFieldNumber = 5;
|
|
private ulong cityTakenLevelReward_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public ulong CityTakenLevelReward {
|
|
get { return cityTakenLevelReward_; }
|
|
set {
|
|
cityTakenLevelReward_ = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as Shop);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(Shop other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (ShopId != other.ShopId) return false;
|
|
if (CityLevel != other.CityLevel) return false;
|
|
if (BeginTime != other.BeginTime) return false;
|
|
if (CityExp != other.CityExp) return false;
|
|
if (EndTime != other.EndTime) return false;
|
|
if(!goodsList_.Equals(other.goodsList_)) return false;
|
|
if (CityTakenLevelReward != other.CityTakenLevelReward) 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 (ShopId != 0) hash ^= ShopId.GetHashCode();
|
|
if (CityLevel != 0) hash ^= CityLevel.GetHashCode();
|
|
if (BeginTime != 0L) hash ^= BeginTime.GetHashCode();
|
|
if (CityExp != 0) hash ^= CityExp.GetHashCode();
|
|
if (EndTime != 0L) hash ^= EndTime.GetHashCode();
|
|
hash ^= goodsList_.GetHashCode();
|
|
if (CityTakenLevelReward != 0UL) hash ^= CityTakenLevelReward.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 (BeginTime != 0L) {
|
|
output.WriteRawTag(32);
|
|
output.WriteInt64(BeginTime);
|
|
}
|
|
if (CityTakenLevelReward != 0UL) {
|
|
output.WriteRawTag(40);
|
|
output.WriteUInt64(CityTakenLevelReward);
|
|
}
|
|
if (CityExp != 0) {
|
|
output.WriteRawTag(48);
|
|
output.WriteUInt32(CityExp);
|
|
}
|
|
if (ShopId != 0) {
|
|
output.WriteRawTag(56);
|
|
output.WriteUInt32(ShopId);
|
|
}
|
|
if (EndTime != 0L) {
|
|
output.WriteRawTag(80);
|
|
output.WriteInt64(EndTime);
|
|
}
|
|
goodsList_.WriteTo(output, _repeated_goodsList_codec);
|
|
if (CityLevel != 0) {
|
|
output.WriteRawTag(120);
|
|
output.WriteUInt32(CityLevel);
|
|
}
|
|
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 (BeginTime != 0L) {
|
|
output.WriteRawTag(32);
|
|
output.WriteInt64(BeginTime);
|
|
}
|
|
if (CityTakenLevelReward != 0UL) {
|
|
output.WriteRawTag(40);
|
|
output.WriteUInt64(CityTakenLevelReward);
|
|
}
|
|
if (CityExp != 0) {
|
|
output.WriteRawTag(48);
|
|
output.WriteUInt32(CityExp);
|
|
}
|
|
if (ShopId != 0) {
|
|
output.WriteRawTag(56);
|
|
output.WriteUInt32(ShopId);
|
|
}
|
|
if (EndTime != 0L) {
|
|
output.WriteRawTag(80);
|
|
output.WriteInt64(EndTime);
|
|
}
|
|
goodsList_.WriteTo(ref output, _repeated_goodsList_codec);
|
|
if (CityLevel != 0) {
|
|
output.WriteRawTag(120);
|
|
output.WriteUInt32(CityLevel);
|
|
}
|
|
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 (ShopId != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ShopId);
|
|
}
|
|
if (CityLevel != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CityLevel);
|
|
}
|
|
if (BeginTime != 0L) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt64Size(BeginTime);
|
|
}
|
|
if (CityExp != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CityExp);
|
|
}
|
|
if (EndTime != 0L) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt64Size(EndTime);
|
|
}
|
|
size += goodsList_.CalculateSize(_repeated_goodsList_codec);
|
|
if (CityTakenLevelReward != 0UL) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(CityTakenLevelReward);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(Shop other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.ShopId != 0) {
|
|
ShopId = other.ShopId;
|
|
}
|
|
if (other.CityLevel != 0) {
|
|
CityLevel = other.CityLevel;
|
|
}
|
|
if (other.BeginTime != 0L) {
|
|
BeginTime = other.BeginTime;
|
|
}
|
|
if (other.CityExp != 0) {
|
|
CityExp = other.CityExp;
|
|
}
|
|
if (other.EndTime != 0L) {
|
|
EndTime = other.EndTime;
|
|
}
|
|
goodsList_.Add(other.goodsList_);
|
|
if (other.CityTakenLevelReward != 0UL) {
|
|
CityTakenLevelReward = other.CityTakenLevelReward;
|
|
}
|
|
_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: {
|
|
BeginTime = input.ReadInt64();
|
|
break;
|
|
}
|
|
case 40: {
|
|
CityTakenLevelReward = input.ReadUInt64();
|
|
break;
|
|
}
|
|
case 48: {
|
|
CityExp = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 56: {
|
|
ShopId = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 80: {
|
|
EndTime = input.ReadInt64();
|
|
break;
|
|
}
|
|
case 106: {
|
|
goodsList_.AddEntriesFrom(input, _repeated_goodsList_codec);
|
|
break;
|
|
}
|
|
case 120: {
|
|
CityLevel = 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 32: {
|
|
BeginTime = input.ReadInt64();
|
|
break;
|
|
}
|
|
case 40: {
|
|
CityTakenLevelReward = input.ReadUInt64();
|
|
break;
|
|
}
|
|
case 48: {
|
|
CityExp = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 56: {
|
|
ShopId = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 80: {
|
|
EndTime = input.ReadInt64();
|
|
break;
|
|
}
|
|
case 106: {
|
|
goodsList_.AddEntriesFrom(ref input, _repeated_goodsList_codec);
|
|
break;
|
|
}
|
|
case 120: {
|
|
CityLevel = input.ReadUInt32();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
#endregion Designer generated code
|