Files
DanhengServer-OpenSource/Proto/Product.cs
2025-01-15 23:20:16 +08:00

423 lines
15 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(
"Cg1Qcm9kdWN0LnByb3RvGhVQcm9kdWN0R2lmdFR5cGUucHJvdG8ilwEKB1By",
"b2R1Y3QSEgoKcHJvZHVjdF9pZBgPIAEoCRISCgpwcmljZV90aWVyGAkgASgJ",
"EhMKC0lPR0xQRUJKTURCGAIgASgNEhUKDWRvdWJsZV9yZXdhcmQYBSABKAgS",
"EwoLR0NCT0JBTUNBTEsYCyABKA0SIwoJZ2lmdF90eXBlGAggASgOMhAuUHJv",
"ZHVjdEdpZnRUeXBlQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9i",
"BnByb3RvMw=="));
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[]{ "ProductId", "PriceTier", "IOGLPEBJMDB", "DoubleReward", "GCBOBAMCALK", "GiftType" }, 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() {
productId_ = other.productId_;
priceTier_ = other.priceTier_;
iOGLPEBJMDB_ = other.iOGLPEBJMDB_;
doubleReward_ = other.doubleReward_;
gCBOBAMCALK_ = other.gCBOBAMCALK_;
giftType_ = other.giftType_;
_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 "product_id" field.</summary>
public const int ProductIdFieldNumber = 15;
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 "price_tier" field.</summary>
public const int PriceTierFieldNumber = 9;
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 "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 "double_reward" field.</summary>
public const int DoubleRewardFieldNumber = 5;
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 "GCBOBAMCALK" field.</summary>
public const int GCBOBAMCALKFieldNumber = 11;
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 "gift_type" field.</summary>
public const int GiftTypeFieldNumber = 8;
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;
}
}
[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 (ProductId != other.ProductId) return false;
if (PriceTier != other.PriceTier) return false;
if (IOGLPEBJMDB != other.IOGLPEBJMDB) return false;
if (DoubleReward != other.DoubleReward) return false;
if (GCBOBAMCALK != other.GCBOBAMCALK) return false;
if (GiftType != other.GiftType) 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 (ProductId.Length != 0) hash ^= ProductId.GetHashCode();
if (PriceTier.Length != 0) hash ^= PriceTier.GetHashCode();
if (IOGLPEBJMDB != 0) hash ^= IOGLPEBJMDB.GetHashCode();
if (DoubleReward != false) hash ^= DoubleReward.GetHashCode();
if (GCBOBAMCALK != 0) hash ^= GCBOBAMCALK.GetHashCode();
if (GiftType != global::EggLink.DanhengServer.Proto.ProductGiftType.ProductGiftNone) hash ^= GiftType.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 (IOGLPEBJMDB != 0) {
output.WriteRawTag(16);
output.WriteUInt32(IOGLPEBJMDB);
}
if (DoubleReward != false) {
output.WriteRawTag(40);
output.WriteBool(DoubleReward);
}
if (GiftType != global::EggLink.DanhengServer.Proto.ProductGiftType.ProductGiftNone) {
output.WriteRawTag(64);
output.WriteEnum((int) GiftType);
}
if (PriceTier.Length != 0) {
output.WriteRawTag(74);
output.WriteString(PriceTier);
}
if (GCBOBAMCALK != 0) {
output.WriteRawTag(88);
output.WriteUInt32(GCBOBAMCALK);
}
if (ProductId.Length != 0) {
output.WriteRawTag(122);
output.WriteString(ProductId);
}
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 (IOGLPEBJMDB != 0) {
output.WriteRawTag(16);
output.WriteUInt32(IOGLPEBJMDB);
}
if (DoubleReward != false) {
output.WriteRawTag(40);
output.WriteBool(DoubleReward);
}
if (GiftType != global::EggLink.DanhengServer.Proto.ProductGiftType.ProductGiftNone) {
output.WriteRawTag(64);
output.WriteEnum((int) GiftType);
}
if (PriceTier.Length != 0) {
output.WriteRawTag(74);
output.WriteString(PriceTier);
}
if (GCBOBAMCALK != 0) {
output.WriteRawTag(88);
output.WriteUInt32(GCBOBAMCALK);
}
if (ProductId.Length != 0) {
output.WriteRawTag(122);
output.WriteString(ProductId);
}
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 (ProductId.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ProductId);
}
if (PriceTier.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(PriceTier);
}
if (IOGLPEBJMDB != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(IOGLPEBJMDB);
}
if (DoubleReward != false) {
size += 1 + 1;
}
if (GCBOBAMCALK != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(GCBOBAMCALK);
}
if (GiftType != global::EggLink.DanhengServer.Proto.ProductGiftType.ProductGiftNone) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) GiftType);
}
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.ProductId.Length != 0) {
ProductId = other.ProductId;
}
if (other.PriceTier.Length != 0) {
PriceTier = other.PriceTier;
}
if (other.IOGLPEBJMDB != 0) {
IOGLPEBJMDB = other.IOGLPEBJMDB;
}
if (other.DoubleReward != false) {
DoubleReward = other.DoubleReward;
}
if (other.GCBOBAMCALK != 0) {
GCBOBAMCALK = other.GCBOBAMCALK;
}
if (other.GiftType != global::EggLink.DanhengServer.Proto.ProductGiftType.ProductGiftNone) {
GiftType = other.GiftType;
}
_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: {
IOGLPEBJMDB = input.ReadUInt32();
break;
}
case 40: {
DoubleReward = input.ReadBool();
break;
}
case 64: {
GiftType = (global::EggLink.DanhengServer.Proto.ProductGiftType) input.ReadEnum();
break;
}
case 74: {
PriceTier = input.ReadString();
break;
}
case 88: {
GCBOBAMCALK = input.ReadUInt32();
break;
}
case 122: {
ProductId = input.ReadString();
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: {
IOGLPEBJMDB = input.ReadUInt32();
break;
}
case 40: {
DoubleReward = input.ReadBool();
break;
}
case 64: {
GiftType = (global::EggLink.DanhengServer.Proto.ProductGiftType) input.ReadEnum();
break;
}
case 74: {
PriceTier = input.ReadString();
break;
}
case 88: {
GCBOBAMCALK = input.ReadUInt32();
break;
}
case 122: {
ProductId = input.ReadString();
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code