mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-02 20:26:03 +08:00
410 lines
16 KiB
C#
410 lines
16 KiB
C#
// <auto-generated>
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: GridFightShopGoodsInfo.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 GridFightShopGoodsInfo.proto</summary>
|
|
public static partial class GridFightShopGoodsInfoReflection {
|
|
|
|
#region Descriptor
|
|
/// <summary>File descriptor for GridFightShopGoodsInfo.proto</summary>
|
|
public static pbr::FileDescriptor Descriptor {
|
|
get { return descriptor; }
|
|
}
|
|
private static pbr::FileDescriptor descriptor;
|
|
|
|
static GridFightShopGoodsInfoReflection() {
|
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
|
string.Concat(
|
|
"ChxHcmlkRmlnaHRTaG9wR29vZHNJbmZvLnByb3RvGhxHcmlkRmlnaHRSb2xl",
|
|
"R29vZHNJbmZvLnByb3RvGh9HcmlkRmlnaHRTcGVjaWFsR29vZHNJbmZvLnBy",
|
|
"b3RvIsYBChZHcmlkRmlnaHRTaG9wR29vZHNJbmZvEjMKD3JvbGVfZ29vZHNf",
|
|
"aW5mbxinAyABKAsyFy5HcmlkRmlnaHRSb2xlR29vZHNJbmZvSAASOQoSc3Bl",
|
|
"Y2lhbF9nb29kc19pbmZvGOUMIAEoCzIaLkdyaWRGaWdodFNwZWNpYWxHb29k",
|
|
"c0luZm9IABITCgtpc19zb2xkX291dBgPIAEoCBIYChBzaG9wX2dvb2RzX3By",
|
|
"aWNlGA0gASgNQg0KC05ETk5GQktDREhNQh6qAhtFZ2dMaW5rLkRhbmhlbmdT",
|
|
"ZXJ2ZXIuUHJvdG9iBnByb3RvMw=="));
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
|
new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.GridFightRoleGoodsInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.GridFightSpecialGoodsInfoReflection.Descriptor, },
|
|
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GridFightShopGoodsInfo), global::EggLink.DanhengServer.Proto.GridFightShopGoodsInfo.Parser, new[]{ "RoleGoodsInfo", "SpecialGoodsInfo", "IsSoldOut", "ShopGoodsPrice" }, new[]{ "NDNNFBKCDHM" }, null, null, null)
|
|
}));
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
#region Messages
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class GridFightShopGoodsInfo : pb::IMessage<GridFightShopGoodsInfo>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<GridFightShopGoodsInfo> _parser = new pb::MessageParser<GridFightShopGoodsInfo>(() => new GridFightShopGoodsInfo());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<GridFightShopGoodsInfo> 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.GridFightShopGoodsInfoReflection.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 GridFightShopGoodsInfo() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public GridFightShopGoodsInfo(GridFightShopGoodsInfo other) : this() {
|
|
isSoldOut_ = other.isSoldOut_;
|
|
shopGoodsPrice_ = other.shopGoodsPrice_;
|
|
switch (other.NDNNFBKCDHMCase) {
|
|
case NDNNFBKCDHMOneofCase.RoleGoodsInfo:
|
|
RoleGoodsInfo = other.RoleGoodsInfo.Clone();
|
|
break;
|
|
case NDNNFBKCDHMOneofCase.SpecialGoodsInfo:
|
|
SpecialGoodsInfo = other.SpecialGoodsInfo.Clone();
|
|
break;
|
|
}
|
|
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public GridFightShopGoodsInfo Clone() {
|
|
return new GridFightShopGoodsInfo(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "role_goods_info" field.</summary>
|
|
public const int RoleGoodsInfoFieldNumber = 423;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::EggLink.DanhengServer.Proto.GridFightRoleGoodsInfo RoleGoodsInfo {
|
|
get { return nDNNFBKCDHMCase_ == NDNNFBKCDHMOneofCase.RoleGoodsInfo ? (global::EggLink.DanhengServer.Proto.GridFightRoleGoodsInfo) nDNNFBKCDHM_ : null; }
|
|
set {
|
|
nDNNFBKCDHM_ = value;
|
|
nDNNFBKCDHMCase_ = value == null ? NDNNFBKCDHMOneofCase.None : NDNNFBKCDHMOneofCase.RoleGoodsInfo;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "special_goods_info" field.</summary>
|
|
public const int SpecialGoodsInfoFieldNumber = 1637;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::EggLink.DanhengServer.Proto.GridFightSpecialGoodsInfo SpecialGoodsInfo {
|
|
get { return nDNNFBKCDHMCase_ == NDNNFBKCDHMOneofCase.SpecialGoodsInfo ? (global::EggLink.DanhengServer.Proto.GridFightSpecialGoodsInfo) nDNNFBKCDHM_ : null; }
|
|
set {
|
|
nDNNFBKCDHM_ = value;
|
|
nDNNFBKCDHMCase_ = value == null ? NDNNFBKCDHMOneofCase.None : NDNNFBKCDHMOneofCase.SpecialGoodsInfo;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "is_sold_out" field.</summary>
|
|
public const int IsSoldOutFieldNumber = 15;
|
|
private bool isSoldOut_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool IsSoldOut {
|
|
get { return isSoldOut_; }
|
|
set {
|
|
isSoldOut_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "shop_goods_price" field.</summary>
|
|
public const int ShopGoodsPriceFieldNumber = 13;
|
|
private uint shopGoodsPrice_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint ShopGoodsPrice {
|
|
get { return shopGoodsPrice_; }
|
|
set {
|
|
shopGoodsPrice_ = value;
|
|
}
|
|
}
|
|
|
|
private object nDNNFBKCDHM_;
|
|
/// <summary>Enum of possible cases for the "NDNNFBKCDHM" oneof.</summary>
|
|
public enum NDNNFBKCDHMOneofCase {
|
|
None = 0,
|
|
RoleGoodsInfo = 423,
|
|
SpecialGoodsInfo = 1637,
|
|
}
|
|
private NDNNFBKCDHMOneofCase nDNNFBKCDHMCase_ = NDNNFBKCDHMOneofCase.None;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public NDNNFBKCDHMOneofCase NDNNFBKCDHMCase {
|
|
get { return nDNNFBKCDHMCase_; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void ClearNDNNFBKCDHM() {
|
|
nDNNFBKCDHMCase_ = NDNNFBKCDHMOneofCase.None;
|
|
nDNNFBKCDHM_ = null;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as GridFightShopGoodsInfo);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(GridFightShopGoodsInfo other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (!object.Equals(RoleGoodsInfo, other.RoleGoodsInfo)) return false;
|
|
if (!object.Equals(SpecialGoodsInfo, other.SpecialGoodsInfo)) return false;
|
|
if (IsSoldOut != other.IsSoldOut) return false;
|
|
if (ShopGoodsPrice != other.ShopGoodsPrice) return false;
|
|
if (NDNNFBKCDHMCase != other.NDNNFBKCDHMCase) 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 (nDNNFBKCDHMCase_ == NDNNFBKCDHMOneofCase.RoleGoodsInfo) hash ^= RoleGoodsInfo.GetHashCode();
|
|
if (nDNNFBKCDHMCase_ == NDNNFBKCDHMOneofCase.SpecialGoodsInfo) hash ^= SpecialGoodsInfo.GetHashCode();
|
|
if (IsSoldOut != false) hash ^= IsSoldOut.GetHashCode();
|
|
if (ShopGoodsPrice != 0) hash ^= ShopGoodsPrice.GetHashCode();
|
|
hash ^= (int) nDNNFBKCDHMCase_;
|
|
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 (ShopGoodsPrice != 0) {
|
|
output.WriteRawTag(104);
|
|
output.WriteUInt32(ShopGoodsPrice);
|
|
}
|
|
if (IsSoldOut != false) {
|
|
output.WriteRawTag(120);
|
|
output.WriteBool(IsSoldOut);
|
|
}
|
|
if (nDNNFBKCDHMCase_ == NDNNFBKCDHMOneofCase.RoleGoodsInfo) {
|
|
output.WriteRawTag(186, 26);
|
|
output.WriteMessage(RoleGoodsInfo);
|
|
}
|
|
if (nDNNFBKCDHMCase_ == NDNNFBKCDHMOneofCase.SpecialGoodsInfo) {
|
|
output.WriteRawTag(170, 102);
|
|
output.WriteMessage(SpecialGoodsInfo);
|
|
}
|
|
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 (ShopGoodsPrice != 0) {
|
|
output.WriteRawTag(104);
|
|
output.WriteUInt32(ShopGoodsPrice);
|
|
}
|
|
if (IsSoldOut != false) {
|
|
output.WriteRawTag(120);
|
|
output.WriteBool(IsSoldOut);
|
|
}
|
|
if (nDNNFBKCDHMCase_ == NDNNFBKCDHMOneofCase.RoleGoodsInfo) {
|
|
output.WriteRawTag(186, 26);
|
|
output.WriteMessage(RoleGoodsInfo);
|
|
}
|
|
if (nDNNFBKCDHMCase_ == NDNNFBKCDHMOneofCase.SpecialGoodsInfo) {
|
|
output.WriteRawTag(170, 102);
|
|
output.WriteMessage(SpecialGoodsInfo);
|
|
}
|
|
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 (nDNNFBKCDHMCase_ == NDNNFBKCDHMOneofCase.RoleGoodsInfo) {
|
|
size += 2 + pb::CodedOutputStream.ComputeMessageSize(RoleGoodsInfo);
|
|
}
|
|
if (nDNNFBKCDHMCase_ == NDNNFBKCDHMOneofCase.SpecialGoodsInfo) {
|
|
size += 2 + pb::CodedOutputStream.ComputeMessageSize(SpecialGoodsInfo);
|
|
}
|
|
if (IsSoldOut != false) {
|
|
size += 1 + 1;
|
|
}
|
|
if (ShopGoodsPrice != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ShopGoodsPrice);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(GridFightShopGoodsInfo other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.IsSoldOut != false) {
|
|
IsSoldOut = other.IsSoldOut;
|
|
}
|
|
if (other.ShopGoodsPrice != 0) {
|
|
ShopGoodsPrice = other.ShopGoodsPrice;
|
|
}
|
|
switch (other.NDNNFBKCDHMCase) {
|
|
case NDNNFBKCDHMOneofCase.RoleGoodsInfo:
|
|
if (RoleGoodsInfo == null) {
|
|
RoleGoodsInfo = new global::EggLink.DanhengServer.Proto.GridFightRoleGoodsInfo();
|
|
}
|
|
RoleGoodsInfo.MergeFrom(other.RoleGoodsInfo);
|
|
break;
|
|
case NDNNFBKCDHMOneofCase.SpecialGoodsInfo:
|
|
if (SpecialGoodsInfo == null) {
|
|
SpecialGoodsInfo = new global::EggLink.DanhengServer.Proto.GridFightSpecialGoodsInfo();
|
|
}
|
|
SpecialGoodsInfo.MergeFrom(other.SpecialGoodsInfo);
|
|
break;
|
|
}
|
|
|
|
_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 104: {
|
|
ShopGoodsPrice = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 120: {
|
|
IsSoldOut = input.ReadBool();
|
|
break;
|
|
}
|
|
case 3386: {
|
|
global::EggLink.DanhengServer.Proto.GridFightRoleGoodsInfo subBuilder = new global::EggLink.DanhengServer.Proto.GridFightRoleGoodsInfo();
|
|
if (nDNNFBKCDHMCase_ == NDNNFBKCDHMOneofCase.RoleGoodsInfo) {
|
|
subBuilder.MergeFrom(RoleGoodsInfo);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
RoleGoodsInfo = subBuilder;
|
|
break;
|
|
}
|
|
case 13098: {
|
|
global::EggLink.DanhengServer.Proto.GridFightSpecialGoodsInfo subBuilder = new global::EggLink.DanhengServer.Proto.GridFightSpecialGoodsInfo();
|
|
if (nDNNFBKCDHMCase_ == NDNNFBKCDHMOneofCase.SpecialGoodsInfo) {
|
|
subBuilder.MergeFrom(SpecialGoodsInfo);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
SpecialGoodsInfo = subBuilder;
|
|
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 104: {
|
|
ShopGoodsPrice = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 120: {
|
|
IsSoldOut = input.ReadBool();
|
|
break;
|
|
}
|
|
case 3386: {
|
|
global::EggLink.DanhengServer.Proto.GridFightRoleGoodsInfo subBuilder = new global::EggLink.DanhengServer.Proto.GridFightRoleGoodsInfo();
|
|
if (nDNNFBKCDHMCase_ == NDNNFBKCDHMOneofCase.RoleGoodsInfo) {
|
|
subBuilder.MergeFrom(RoleGoodsInfo);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
RoleGoodsInfo = subBuilder;
|
|
break;
|
|
}
|
|
case 13098: {
|
|
global::EggLink.DanhengServer.Proto.GridFightSpecialGoodsInfo subBuilder = new global::EggLink.DanhengServer.Proto.GridFightSpecialGoodsInfo();
|
|
if (nDNNFBKCDHMCase_ == NDNNFBKCDHMOneofCase.SpecialGoodsInfo) {
|
|
subBuilder.MergeFrom(SpecialGoodsInfo);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
SpecialGoodsInfo = subBuilder;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
#endregion Designer generated code
|