Files
DanhengServer-OpenSource/Proto/Product.cs
2025-09-27 13:58:04 +08:00

535 lines
18 KiB
C#

// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Product.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 Product.proto</summary>
public static partial class ProductReflection {
#region Descriptor
/// <summary>File descriptor for Product.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static ProductReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"Cg1Qcm9kdWN0LnByb3RvGhVQcm9kdWN0R2lmdFR5cGUucHJvdG8i0gEKB1By",
"b2R1Y3QSEwoLSUVDQUVBQkFDRE0YDSABKA0SEgoKcHJvZHVjdF9pZBgGIAEo",
"CRIVCg1kb3VibGVfcmV3YXJkGA8gASgIEhMKC0lPR0xQRUJKTURCGAIgASgN",
"EhIKCnByaWNlX3RpZXIYASABKAkSEAoIZW5kX3RpbWUYCCABKAMSIwoJZ2lm",
"dF90eXBlGAsgASgOMhAuUHJvZHVjdEdpZnRUeXBlEhMKC0dDQk9CQU1DQUxL",
"GAkgASgNEhIKCmJlZ2luX3RpbWUYDiABKANCHqoCG0VnZ0xpbmsuRGFuaGVu",
"Z1NlcnZlci5Qcm90b2IGcHJvdG8z"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ProductGiftTypeReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.Product), global::EggLink.DanhengServer.Proto.Product.Parser, new[]{ "IECAEABACDM", "ProductId", "DoubleReward", "IOGLPEBJMDB", "PriceTier", "EndTime", "GiftType", "GCBOBAMCALK", "BeginTime" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class Product : pb::IMessage<Product>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<Product> _parser = new pb::MessageParser<Product>(() => new Product());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<Product> 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.ProductReflection.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 Product() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Product(Product other) : this() {
iECAEABACDM_ = other.iECAEABACDM_;
productId_ = other.productId_;
doubleReward_ = other.doubleReward_;
iOGLPEBJMDB_ = other.iOGLPEBJMDB_;
priceTier_ = other.priceTier_;
endTime_ = other.endTime_;
giftType_ = other.giftType_;
gCBOBAMCALK_ = other.gCBOBAMCALK_;
beginTime_ = other.beginTime_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Product Clone() {
return new Product(this);
}
/// <summary>Field number for the "IECAEABACDM" field.</summary>
public const int IECAEABACDMFieldNumber = 13;
private uint iECAEABACDM_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint IECAEABACDM {
get { return iECAEABACDM_; }
set {
iECAEABACDM_ = value;
}
}
/// <summary>Field number for the "product_id" field.</summary>
public const int ProductIdFieldNumber = 6;
private string productId_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string ProductId {
get { return productId_; }
set {
productId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "double_reward" field.</summary>
public const int DoubleRewardFieldNumber = 15;
private bool doubleReward_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool DoubleReward {
get { return doubleReward_; }
set {
doubleReward_ = value;
}
}
/// <summary>Field number for the "IOGLPEBJMDB" field.</summary>
public const int IOGLPEBJMDBFieldNumber = 2;
private uint iOGLPEBJMDB_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint IOGLPEBJMDB {
get { return iOGLPEBJMDB_; }
set {
iOGLPEBJMDB_ = value;
}
}
/// <summary>Field number for the "price_tier" field.</summary>
public const int PriceTierFieldNumber = 1;
private string priceTier_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string PriceTier {
get { return priceTier_; }
set {
priceTier_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "end_time" field.</summary>
public const int EndTimeFieldNumber = 8;
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 "gift_type" field.</summary>
public const int GiftTypeFieldNumber = 11;
private global::EggLink.DanhengServer.Proto.ProductGiftType giftType_ = global::EggLink.DanhengServer.Proto.ProductGiftType.ProductGiftNone;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::EggLink.DanhengServer.Proto.ProductGiftType GiftType {
get { return giftType_; }
set {
giftType_ = value;
}
}
/// <summary>Field number for the "GCBOBAMCALK" field.</summary>
public const int GCBOBAMCALKFieldNumber = 9;
private uint gCBOBAMCALK_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint GCBOBAMCALK {
get { return gCBOBAMCALK_; }
set {
gCBOBAMCALK_ = value;
}
}
/// <summary>Field number for the "begin_time" field.</summary>
public const int BeginTimeFieldNumber = 14;
private long beginTime_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public long BeginTime {
get { return beginTime_; }
set {
beginTime_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as Product);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(Product other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (IECAEABACDM != other.IECAEABACDM) return false;
if (ProductId != other.ProductId) return false;
if (DoubleReward != other.DoubleReward) return false;
if (IOGLPEBJMDB != other.IOGLPEBJMDB) return false;
if (PriceTier != other.PriceTier) return false;
if (EndTime != other.EndTime) return false;
if (GiftType != other.GiftType) return false;
if (GCBOBAMCALK != other.GCBOBAMCALK) return false;
if (BeginTime != other.BeginTime) 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 (IECAEABACDM != 0) hash ^= IECAEABACDM.GetHashCode();
if (ProductId.Length != 0) hash ^= ProductId.GetHashCode();
if (DoubleReward != false) hash ^= DoubleReward.GetHashCode();
if (IOGLPEBJMDB != 0) hash ^= IOGLPEBJMDB.GetHashCode();
if (PriceTier.Length != 0) hash ^= PriceTier.GetHashCode();
if (EndTime != 0L) hash ^= EndTime.GetHashCode();
if (GiftType != global::EggLink.DanhengServer.Proto.ProductGiftType.ProductGiftNone) hash ^= GiftType.GetHashCode();
if (GCBOBAMCALK != 0) hash ^= GCBOBAMCALK.GetHashCode();
if (BeginTime != 0L) hash ^= BeginTime.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 (PriceTier.Length != 0) {
output.WriteRawTag(10);
output.WriteString(PriceTier);
}
if (IOGLPEBJMDB != 0) {
output.WriteRawTag(16);
output.WriteUInt32(IOGLPEBJMDB);
}
if (ProductId.Length != 0) {
output.WriteRawTag(50);
output.WriteString(ProductId);
}
if (EndTime != 0L) {
output.WriteRawTag(64);
output.WriteInt64(EndTime);
}
if (GCBOBAMCALK != 0) {
output.WriteRawTag(72);
output.WriteUInt32(GCBOBAMCALK);
}
if (GiftType != global::EggLink.DanhengServer.Proto.ProductGiftType.ProductGiftNone) {
output.WriteRawTag(88);
output.WriteEnum((int) GiftType);
}
if (IECAEABACDM != 0) {
output.WriteRawTag(104);
output.WriteUInt32(IECAEABACDM);
}
if (BeginTime != 0L) {
output.WriteRawTag(112);
output.WriteInt64(BeginTime);
}
if (DoubleReward != false) {
output.WriteRawTag(120);
output.WriteBool(DoubleReward);
}
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 (PriceTier.Length != 0) {
output.WriteRawTag(10);
output.WriteString(PriceTier);
}
if (IOGLPEBJMDB != 0) {
output.WriteRawTag(16);
output.WriteUInt32(IOGLPEBJMDB);
}
if (ProductId.Length != 0) {
output.WriteRawTag(50);
output.WriteString(ProductId);
}
if (EndTime != 0L) {
output.WriteRawTag(64);
output.WriteInt64(EndTime);
}
if (GCBOBAMCALK != 0) {
output.WriteRawTag(72);
output.WriteUInt32(GCBOBAMCALK);
}
if (GiftType != global::EggLink.DanhengServer.Proto.ProductGiftType.ProductGiftNone) {
output.WriteRawTag(88);
output.WriteEnum((int) GiftType);
}
if (IECAEABACDM != 0) {
output.WriteRawTag(104);
output.WriteUInt32(IECAEABACDM);
}
if (BeginTime != 0L) {
output.WriteRawTag(112);
output.WriteInt64(BeginTime);
}
if (DoubleReward != false) {
output.WriteRawTag(120);
output.WriteBool(DoubleReward);
}
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 (IECAEABACDM != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(IECAEABACDM);
}
if (ProductId.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ProductId);
}
if (DoubleReward != false) {
size += 1 + 1;
}
if (IOGLPEBJMDB != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(IOGLPEBJMDB);
}
if (PriceTier.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(PriceTier);
}
if (EndTime != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(EndTime);
}
if (GiftType != global::EggLink.DanhengServer.Proto.ProductGiftType.ProductGiftNone) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) GiftType);
}
if (GCBOBAMCALK != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(GCBOBAMCALK);
}
if (BeginTime != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(BeginTime);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(Product other) {
if (other == null) {
return;
}
if (other.IECAEABACDM != 0) {
IECAEABACDM = other.IECAEABACDM;
}
if (other.ProductId.Length != 0) {
ProductId = other.ProductId;
}
if (other.DoubleReward != false) {
DoubleReward = other.DoubleReward;
}
if (other.IOGLPEBJMDB != 0) {
IOGLPEBJMDB = other.IOGLPEBJMDB;
}
if (other.PriceTier.Length != 0) {
PriceTier = other.PriceTier;
}
if (other.EndTime != 0L) {
EndTime = other.EndTime;
}
if (other.GiftType != global::EggLink.DanhengServer.Proto.ProductGiftType.ProductGiftNone) {
GiftType = other.GiftType;
}
if (other.GCBOBAMCALK != 0) {
GCBOBAMCALK = other.GCBOBAMCALK;
}
if (other.BeginTime != 0L) {
BeginTime = other.BeginTime;
}
_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 10: {
PriceTier = input.ReadString();
break;
}
case 16: {
IOGLPEBJMDB = input.ReadUInt32();
break;
}
case 50: {
ProductId = input.ReadString();
break;
}
case 64: {
EndTime = input.ReadInt64();
break;
}
case 72: {
GCBOBAMCALK = input.ReadUInt32();
break;
}
case 88: {
GiftType = (global::EggLink.DanhengServer.Proto.ProductGiftType) input.ReadEnum();
break;
}
case 104: {
IECAEABACDM = input.ReadUInt32();
break;
}
case 112: {
BeginTime = input.ReadInt64();
break;
}
case 120: {
DoubleReward = input.ReadBool();
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 10: {
PriceTier = input.ReadString();
break;
}
case 16: {
IOGLPEBJMDB = input.ReadUInt32();
break;
}
case 50: {
ProductId = input.ReadString();
break;
}
case 64: {
EndTime = input.ReadInt64();
break;
}
case 72: {
GCBOBAMCALK = input.ReadUInt32();
break;
}
case 88: {
GiftType = (global::EggLink.DanhengServer.Proto.ProductGiftType) input.ReadEnum();
break;
}
case 104: {
IECAEABACDM = input.ReadUInt32();
break;
}
case 112: {
BeginTime = input.ReadInt64();
break;
}
case 120: {
DoubleReward = input.ReadBool();
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code