mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-03 04:36:03 +08:00
388 lines
14 KiB
C#
388 lines
14 KiB
C#
// <auto-generated>
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: ItemCost.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 ItemCost.proto</summary>
|
|
public static partial class ItemCostReflection {
|
|
|
|
#region Descriptor
|
|
/// <summary>File descriptor for ItemCost.proto</summary>
|
|
public static pbr::FileDescriptor Descriptor {
|
|
get { return descriptor; }
|
|
}
|
|
private static pbr::FileDescriptor descriptor;
|
|
|
|
static ItemCostReflection() {
|
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
|
string.Concat(
|
|
"Cg5JdGVtQ29zdC5wcm90bxoOUGlsZUl0ZW0ucHJvdG8ibAoISXRlbUNvc3QS",
|
|
"HQoIUGlsZUl0ZW0YCiABKAsyCS5QaWxlSXRlbUgAEhsKEUVxdWlwbWVudFVu",
|
|
"aXF1ZUlkGAUgASgNSAASFwoNUmVsaWNVbmlxdWVJZBgEIAEoDUgAQgsKCWl0",
|
|
"ZW1DYXNlX0IeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90",
|
|
"bzM="));
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
|
new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.PileItemReflection.Descriptor, },
|
|
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ItemCost), global::EggLink.DanhengServer.Proto.ItemCost.Parser, new[]{ "PileItem", "EquipmentUniqueId", "RelicUniqueId" }, new[]{ "ItemCase" }, null, null, null)
|
|
}));
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
#region Messages
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class ItemCost : pb::IMessage<ItemCost>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<ItemCost> _parser = new pb::MessageParser<ItemCost>(() => new ItemCost());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<ItemCost> 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.ItemCostReflection.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 ItemCost() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public ItemCost(ItemCost other) : this() {
|
|
switch (other.ItemCaseCase) {
|
|
case ItemCaseOneofCase.PileItem:
|
|
PileItem = other.PileItem.Clone();
|
|
break;
|
|
case ItemCaseOneofCase.EquipmentUniqueId:
|
|
EquipmentUniqueId = other.EquipmentUniqueId;
|
|
break;
|
|
case ItemCaseOneofCase.RelicUniqueId:
|
|
RelicUniqueId = other.RelicUniqueId;
|
|
break;
|
|
}
|
|
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public ItemCost Clone() {
|
|
return new ItemCost(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "PileItem" field.</summary>
|
|
public const int PileItemFieldNumber = 10;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::EggLink.DanhengServer.Proto.PileItem PileItem {
|
|
get { return itemCaseCase_ == ItemCaseOneofCase.PileItem ? (global::EggLink.DanhengServer.Proto.PileItem) itemCase_ : null; }
|
|
set {
|
|
itemCase_ = value;
|
|
itemCaseCase_ = value == null ? ItemCaseOneofCase.None : ItemCaseOneofCase.PileItem;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "EquipmentUniqueId" field.</summary>
|
|
public const int EquipmentUniqueIdFieldNumber = 5;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint EquipmentUniqueId {
|
|
get { return HasEquipmentUniqueId ? (uint) itemCase_ : 0; }
|
|
set {
|
|
itemCase_ = value;
|
|
itemCaseCase_ = ItemCaseOneofCase.EquipmentUniqueId;
|
|
}
|
|
}
|
|
/// <summary>Gets whether the "EquipmentUniqueId" field is set</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool HasEquipmentUniqueId {
|
|
get { return itemCaseCase_ == ItemCaseOneofCase.EquipmentUniqueId; }
|
|
}
|
|
/// <summary> Clears the value of the oneof if it's currently set to "EquipmentUniqueId" </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void ClearEquipmentUniqueId() {
|
|
if (HasEquipmentUniqueId) {
|
|
ClearItemCase();
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "RelicUniqueId" field.</summary>
|
|
public const int RelicUniqueIdFieldNumber = 4;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint RelicUniqueId {
|
|
get { return HasRelicUniqueId ? (uint) itemCase_ : 0; }
|
|
set {
|
|
itemCase_ = value;
|
|
itemCaseCase_ = ItemCaseOneofCase.RelicUniqueId;
|
|
}
|
|
}
|
|
/// <summary>Gets whether the "RelicUniqueId" field is set</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool HasRelicUniqueId {
|
|
get { return itemCaseCase_ == ItemCaseOneofCase.RelicUniqueId; }
|
|
}
|
|
/// <summary> Clears the value of the oneof if it's currently set to "RelicUniqueId" </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void ClearRelicUniqueId() {
|
|
if (HasRelicUniqueId) {
|
|
ClearItemCase();
|
|
}
|
|
}
|
|
|
|
private object itemCase_;
|
|
/// <summary>Enum of possible cases for the "itemCase_" oneof.</summary>
|
|
public enum ItemCaseOneofCase {
|
|
None = 0,
|
|
PileItem = 10,
|
|
EquipmentUniqueId = 5,
|
|
RelicUniqueId = 4,
|
|
}
|
|
private ItemCaseOneofCase itemCaseCase_ = ItemCaseOneofCase.None;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public ItemCaseOneofCase ItemCaseCase {
|
|
get { return itemCaseCase_; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void ClearItemCase() {
|
|
itemCaseCase_ = ItemCaseOneofCase.None;
|
|
itemCase_ = null;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as ItemCost);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(ItemCost other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (!object.Equals(PileItem, other.PileItem)) return false;
|
|
if (EquipmentUniqueId != other.EquipmentUniqueId) return false;
|
|
if (RelicUniqueId != other.RelicUniqueId) return false;
|
|
if (ItemCaseCase != other.ItemCaseCase) 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 (itemCaseCase_ == ItemCaseOneofCase.PileItem) hash ^= PileItem.GetHashCode();
|
|
if (HasEquipmentUniqueId) hash ^= EquipmentUniqueId.GetHashCode();
|
|
if (HasRelicUniqueId) hash ^= RelicUniqueId.GetHashCode();
|
|
hash ^= (int) itemCaseCase_;
|
|
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 (HasRelicUniqueId) {
|
|
output.WriteRawTag(32);
|
|
output.WriteUInt32(RelicUniqueId);
|
|
}
|
|
if (HasEquipmentUniqueId) {
|
|
output.WriteRawTag(40);
|
|
output.WriteUInt32(EquipmentUniqueId);
|
|
}
|
|
if (itemCaseCase_ == ItemCaseOneofCase.PileItem) {
|
|
output.WriteRawTag(82);
|
|
output.WriteMessage(PileItem);
|
|
}
|
|
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 (HasRelicUniqueId) {
|
|
output.WriteRawTag(32);
|
|
output.WriteUInt32(RelicUniqueId);
|
|
}
|
|
if (HasEquipmentUniqueId) {
|
|
output.WriteRawTag(40);
|
|
output.WriteUInt32(EquipmentUniqueId);
|
|
}
|
|
if (itemCaseCase_ == ItemCaseOneofCase.PileItem) {
|
|
output.WriteRawTag(82);
|
|
output.WriteMessage(PileItem);
|
|
}
|
|
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 (itemCaseCase_ == ItemCaseOneofCase.PileItem) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(PileItem);
|
|
}
|
|
if (HasEquipmentUniqueId) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(EquipmentUniqueId);
|
|
}
|
|
if (HasRelicUniqueId) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RelicUniqueId);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(ItemCost other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
switch (other.ItemCaseCase) {
|
|
case ItemCaseOneofCase.PileItem:
|
|
if (PileItem == null) {
|
|
PileItem = new global::EggLink.DanhengServer.Proto.PileItem();
|
|
}
|
|
PileItem.MergeFrom(other.PileItem);
|
|
break;
|
|
case ItemCaseOneofCase.EquipmentUniqueId:
|
|
EquipmentUniqueId = other.EquipmentUniqueId;
|
|
break;
|
|
case ItemCaseOneofCase.RelicUniqueId:
|
|
RelicUniqueId = other.RelicUniqueId;
|
|
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 32: {
|
|
RelicUniqueId = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 40: {
|
|
EquipmentUniqueId = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 82: {
|
|
global::EggLink.DanhengServer.Proto.PileItem subBuilder = new global::EggLink.DanhengServer.Proto.PileItem();
|
|
if (itemCaseCase_ == ItemCaseOneofCase.PileItem) {
|
|
subBuilder.MergeFrom(PileItem);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
PileItem = 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 32: {
|
|
RelicUniqueId = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 40: {
|
|
EquipmentUniqueId = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 82: {
|
|
global::EggLink.DanhengServer.Proto.PileItem subBuilder = new global::EggLink.DanhengServer.Proto.PileItem();
|
|
if (itemCaseCase_ == ItemCaseOneofCase.PileItem) {
|
|
subBuilder.MergeFrom(PileItem);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
PileItem = subBuilder;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
#endregion Designer generated code
|