mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-02 20:26:03 +08:00
384 lines
12 KiB
C#
384 lines
12 KiB
C#
// <auto-generated>
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: Goods.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 Goods.proto</summary>
|
|
public static partial class GoodsReflection {
|
|
|
|
#region Descriptor
|
|
/// <summary>File descriptor for Goods.proto</summary>
|
|
public static pbr::FileDescriptor Descriptor {
|
|
get { return descriptor; }
|
|
}
|
|
private static pbr::FileDescriptor descriptor;
|
|
|
|
static GoodsReflection() {
|
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
|
string.Concat(
|
|
"CgtHb29kcy5wcm90byJjCgVHb29kcxIQCghnb29kc19pZBgCIAEoDRIQCghl",
|
|
"bmRfdGltZRgFIAEoAxIPCgdpdGVtX2lkGA4gASgNEhIKCmJlZ2luX3RpbWUY",
|
|
"CSABKAMSEQoJYnV5X3RpbWVzGAQgASgNQh6qAhtFZ2dMaW5rLkRhbmhlbmdT",
|
|
"ZXJ2ZXIuUHJvdG9iBnByb3RvMw=="));
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
|
new pbr::FileDescriptor[] { },
|
|
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.Goods), global::EggLink.DanhengServer.Proto.Goods.Parser, new[]{ "GoodsId", "EndTime", "ItemId", "BeginTime", "BuyTimes" }, null, null, null, null)
|
|
}));
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
#region Messages
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class Goods : pb::IMessage<Goods>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<Goods> _parser = new pb::MessageParser<Goods>(() => new Goods());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<Goods> 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.GoodsReflection.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 Goods() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public Goods(Goods other) : this() {
|
|
goodsId_ = other.goodsId_;
|
|
endTime_ = other.endTime_;
|
|
itemId_ = other.itemId_;
|
|
beginTime_ = other.beginTime_;
|
|
buyTimes_ = other.buyTimes_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public Goods Clone() {
|
|
return new Goods(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "goods_id" field.</summary>
|
|
public const int GoodsIdFieldNumber = 2;
|
|
private uint goodsId_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint GoodsId {
|
|
get { return goodsId_; }
|
|
set {
|
|
goodsId_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "end_time" field.</summary>
|
|
public const int EndTimeFieldNumber = 5;
|
|
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 "item_id" field.</summary>
|
|
public const int ItemIdFieldNumber = 14;
|
|
private uint itemId_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint ItemId {
|
|
get { return itemId_; }
|
|
set {
|
|
itemId_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "begin_time" field.</summary>
|
|
public const int BeginTimeFieldNumber = 9;
|
|
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 "buy_times" field.</summary>
|
|
public const int BuyTimesFieldNumber = 4;
|
|
private uint buyTimes_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint BuyTimes {
|
|
get { return buyTimes_; }
|
|
set {
|
|
buyTimes_ = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as Goods);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(Goods other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (GoodsId != other.GoodsId) return false;
|
|
if (EndTime != other.EndTime) return false;
|
|
if (ItemId != other.ItemId) return false;
|
|
if (BeginTime != other.BeginTime) return false;
|
|
if (BuyTimes != other.BuyTimes) 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 (GoodsId != 0) hash ^= GoodsId.GetHashCode();
|
|
if (EndTime != 0L) hash ^= EndTime.GetHashCode();
|
|
if (ItemId != 0) hash ^= ItemId.GetHashCode();
|
|
if (BeginTime != 0L) hash ^= BeginTime.GetHashCode();
|
|
if (BuyTimes != 0) hash ^= BuyTimes.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 (GoodsId != 0) {
|
|
output.WriteRawTag(16);
|
|
output.WriteUInt32(GoodsId);
|
|
}
|
|
if (BuyTimes != 0) {
|
|
output.WriteRawTag(32);
|
|
output.WriteUInt32(BuyTimes);
|
|
}
|
|
if (EndTime != 0L) {
|
|
output.WriteRawTag(40);
|
|
output.WriteInt64(EndTime);
|
|
}
|
|
if (BeginTime != 0L) {
|
|
output.WriteRawTag(72);
|
|
output.WriteInt64(BeginTime);
|
|
}
|
|
if (ItemId != 0) {
|
|
output.WriteRawTag(112);
|
|
output.WriteUInt32(ItemId);
|
|
}
|
|
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 (GoodsId != 0) {
|
|
output.WriteRawTag(16);
|
|
output.WriteUInt32(GoodsId);
|
|
}
|
|
if (BuyTimes != 0) {
|
|
output.WriteRawTag(32);
|
|
output.WriteUInt32(BuyTimes);
|
|
}
|
|
if (EndTime != 0L) {
|
|
output.WriteRawTag(40);
|
|
output.WriteInt64(EndTime);
|
|
}
|
|
if (BeginTime != 0L) {
|
|
output.WriteRawTag(72);
|
|
output.WriteInt64(BeginTime);
|
|
}
|
|
if (ItemId != 0) {
|
|
output.WriteRawTag(112);
|
|
output.WriteUInt32(ItemId);
|
|
}
|
|
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 (GoodsId != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(GoodsId);
|
|
}
|
|
if (EndTime != 0L) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt64Size(EndTime);
|
|
}
|
|
if (ItemId != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ItemId);
|
|
}
|
|
if (BeginTime != 0L) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt64Size(BeginTime);
|
|
}
|
|
if (BuyTimes != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BuyTimes);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(Goods other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.GoodsId != 0) {
|
|
GoodsId = other.GoodsId;
|
|
}
|
|
if (other.EndTime != 0L) {
|
|
EndTime = other.EndTime;
|
|
}
|
|
if (other.ItemId != 0) {
|
|
ItemId = other.ItemId;
|
|
}
|
|
if (other.BeginTime != 0L) {
|
|
BeginTime = other.BeginTime;
|
|
}
|
|
if (other.BuyTimes != 0) {
|
|
BuyTimes = other.BuyTimes;
|
|
}
|
|
_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 16: {
|
|
GoodsId = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 32: {
|
|
BuyTimes = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 40: {
|
|
EndTime = input.ReadInt64();
|
|
break;
|
|
}
|
|
case 72: {
|
|
BeginTime = input.ReadInt64();
|
|
break;
|
|
}
|
|
case 112: {
|
|
ItemId = 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 16: {
|
|
GoodsId = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 32: {
|
|
BuyTimes = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 40: {
|
|
EndTime = input.ReadInt64();
|
|
break;
|
|
}
|
|
case 72: {
|
|
BeginTime = input.ReadInt64();
|
|
break;
|
|
}
|
|
case 112: {
|
|
ItemId = input.ReadUInt32();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
#endregion Designer generated code
|