Files
DanhengServer-OpenSource/Proto/Goods.cs
2024-10-26 22:27:53 +08:00

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(
"CgtHb29kcy5wcm90byJfCgVHb29kcxIQCghCdXlUaW1lcxgBIAEoDRIRCglC",
"ZWdpblRpbWUYCyABKAMSDwoHaXRlbV9pZBgIIAEoDRIPCgdHb29kc0lkGAcg",
"ASgNEg8KB0VuZFRpbWUYAyABKANCHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZl",
"ci5Qcm90b2IGcHJvdG8z"));
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[]{ "BuyTimes", "BeginTime", "ItemId", "GoodsId", "EndTime" }, 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() {
buyTimes_ = other.buyTimes_;
beginTime_ = other.beginTime_;
itemId_ = other.itemId_;
goodsId_ = other.goodsId_;
endTime_ = other.endTime_;
_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 "BuyTimes" field.</summary>
public const int BuyTimesFieldNumber = 1;
private uint buyTimes_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint BuyTimes {
get { return buyTimes_; }
set {
buyTimes_ = value;
}
}
/// <summary>Field number for the "BeginTime" field.</summary>
public const int BeginTimeFieldNumber = 11;
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 "item_id" field.</summary>
public const int ItemIdFieldNumber = 8;
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 "GoodsId" field.</summary>
public const int GoodsIdFieldNumber = 7;
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 "EndTime" field.</summary>
public const int EndTimeFieldNumber = 3;
private long endTime_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public long EndTime {
get { return endTime_; }
set {
endTime_ = 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 (BuyTimes != other.BuyTimes) return false;
if (BeginTime != other.BeginTime) return false;
if (ItemId != other.ItemId) return false;
if (GoodsId != other.GoodsId) return false;
if (EndTime != other.EndTime) 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 (BuyTimes != 0) hash ^= BuyTimes.GetHashCode();
if (BeginTime != 0L) hash ^= BeginTime.GetHashCode();
if (ItemId != 0) hash ^= ItemId.GetHashCode();
if (GoodsId != 0) hash ^= GoodsId.GetHashCode();
if (EndTime != 0L) hash ^= EndTime.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 (BuyTimes != 0) {
output.WriteRawTag(8);
output.WriteUInt32(BuyTimes);
}
if (EndTime != 0L) {
output.WriteRawTag(24);
output.WriteInt64(EndTime);
}
if (GoodsId != 0) {
output.WriteRawTag(56);
output.WriteUInt32(GoodsId);
}
if (ItemId != 0) {
output.WriteRawTag(64);
output.WriteUInt32(ItemId);
}
if (BeginTime != 0L) {
output.WriteRawTag(88);
output.WriteInt64(BeginTime);
}
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 (BuyTimes != 0) {
output.WriteRawTag(8);
output.WriteUInt32(BuyTimes);
}
if (EndTime != 0L) {
output.WriteRawTag(24);
output.WriteInt64(EndTime);
}
if (GoodsId != 0) {
output.WriteRawTag(56);
output.WriteUInt32(GoodsId);
}
if (ItemId != 0) {
output.WriteRawTag(64);
output.WriteUInt32(ItemId);
}
if (BeginTime != 0L) {
output.WriteRawTag(88);
output.WriteInt64(BeginTime);
}
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 (BuyTimes != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BuyTimes);
}
if (BeginTime != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(BeginTime);
}
if (ItemId != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ItemId);
}
if (GoodsId != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(GoodsId);
}
if (EndTime != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(EndTime);
}
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.BuyTimes != 0) {
BuyTimes = other.BuyTimes;
}
if (other.BeginTime != 0L) {
BeginTime = other.BeginTime;
}
if (other.ItemId != 0) {
ItemId = other.ItemId;
}
if (other.GoodsId != 0) {
GoodsId = other.GoodsId;
}
if (other.EndTime != 0L) {
EndTime = other.EndTime;
}
_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: {
BuyTimes = input.ReadUInt32();
break;
}
case 24: {
EndTime = input.ReadInt64();
break;
}
case 56: {
GoodsId = input.ReadUInt32();
break;
}
case 64: {
ItemId = input.ReadUInt32();
break;
}
case 88: {
BeginTime = input.ReadInt64();
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: {
BuyTimes = input.ReadUInt32();
break;
}
case 24: {
EndTime = input.ReadInt64();
break;
}
case 56: {
GoodsId = input.ReadUInt32();
break;
}
case 64: {
ItemId = input.ReadUInt32();
break;
}
case 88: {
BeginTime = input.ReadInt64();
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code