mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-03 04:36:03 +08:00
423 lines
15 KiB
C#
423 lines
15 KiB
C#
// <auto-generated>
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: UseItemCsReq.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 UseItemCsReq.proto</summary>
|
|
public static partial class UseItemCsReqReflection {
|
|
|
|
#region Descriptor
|
|
/// <summary>File descriptor for UseItemCsReq.proto</summary>
|
|
public static pbr::FileDescriptor Descriptor {
|
|
get { return descriptor; }
|
|
}
|
|
private static pbr::FileDescriptor descriptor;
|
|
|
|
static UseItemCsReqReflection() {
|
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
|
string.Concat(
|
|
"ChJVc2VJdGVtQ3NSZXEucHJvdG8aEEF2YXRhclR5cGUucHJvdG8iqgEKDFVz",
|
|
"ZUl0ZW1Dc1JlcRITCgt1c2VfaXRlbV9pZBgGIAEoDRIWCg5iYXNlX2F2YXRh",
|
|
"cl9pZBgBIAEoDRIkCg91c2VfYXZhdGFyX3R5cGUYAiABKA4yCy5BdmF0YXJU",
|
|
"eXBlEhYKDnVzZV9pdGVtX2NvdW50GAkgASgNEhoKEm9wdGlvbmFsX3Jld2Fy",
|
|
"ZF9pZBgPIAEoDRITCgtEQklPSEZMSkNKRhgOIAEoCEIeqgIbRWdnTGluay5E",
|
|
"YW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM="));
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
|
new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.AvatarTypeReflection.Descriptor, },
|
|
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.UseItemCsReq), global::EggLink.DanhengServer.Proto.UseItemCsReq.Parser, new[]{ "UseItemId", "BaseAvatarId", "UseAvatarType", "UseItemCount", "OptionalRewardId", "DBIOHFLJCJF" }, null, null, null, null)
|
|
}));
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
#region Messages
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class UseItemCsReq : pb::IMessage<UseItemCsReq>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<UseItemCsReq> _parser = new pb::MessageParser<UseItemCsReq>(() => new UseItemCsReq());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<UseItemCsReq> 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.UseItemCsReqReflection.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 UseItemCsReq() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public UseItemCsReq(UseItemCsReq other) : this() {
|
|
useItemId_ = other.useItemId_;
|
|
baseAvatarId_ = other.baseAvatarId_;
|
|
useAvatarType_ = other.useAvatarType_;
|
|
useItemCount_ = other.useItemCount_;
|
|
optionalRewardId_ = other.optionalRewardId_;
|
|
dBIOHFLJCJF_ = other.dBIOHFLJCJF_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public UseItemCsReq Clone() {
|
|
return new UseItemCsReq(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "use_item_id" field.</summary>
|
|
public const int UseItemIdFieldNumber = 6;
|
|
private uint useItemId_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint UseItemId {
|
|
get { return useItemId_; }
|
|
set {
|
|
useItemId_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "base_avatar_id" field.</summary>
|
|
public const int BaseAvatarIdFieldNumber = 1;
|
|
private uint baseAvatarId_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint BaseAvatarId {
|
|
get { return baseAvatarId_; }
|
|
set {
|
|
baseAvatarId_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "use_avatar_type" field.</summary>
|
|
public const int UseAvatarTypeFieldNumber = 2;
|
|
private global::EggLink.DanhengServer.Proto.AvatarType useAvatarType_ = global::EggLink.DanhengServer.Proto.AvatarType.None;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::EggLink.DanhengServer.Proto.AvatarType UseAvatarType {
|
|
get { return useAvatarType_; }
|
|
set {
|
|
useAvatarType_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "use_item_count" field.</summary>
|
|
public const int UseItemCountFieldNumber = 9;
|
|
private uint useItemCount_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint UseItemCount {
|
|
get { return useItemCount_; }
|
|
set {
|
|
useItemCount_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "optional_reward_id" field.</summary>
|
|
public const int OptionalRewardIdFieldNumber = 15;
|
|
private uint optionalRewardId_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint OptionalRewardId {
|
|
get { return optionalRewardId_; }
|
|
set {
|
|
optionalRewardId_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "DBIOHFLJCJF" field.</summary>
|
|
public const int DBIOHFLJCJFFieldNumber = 14;
|
|
private bool dBIOHFLJCJF_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool DBIOHFLJCJF {
|
|
get { return dBIOHFLJCJF_; }
|
|
set {
|
|
dBIOHFLJCJF_ = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as UseItemCsReq);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(UseItemCsReq other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (UseItemId != other.UseItemId) return false;
|
|
if (BaseAvatarId != other.BaseAvatarId) return false;
|
|
if (UseAvatarType != other.UseAvatarType) return false;
|
|
if (UseItemCount != other.UseItemCount) return false;
|
|
if (OptionalRewardId != other.OptionalRewardId) return false;
|
|
if (DBIOHFLJCJF != other.DBIOHFLJCJF) 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 (UseItemId != 0) hash ^= UseItemId.GetHashCode();
|
|
if (BaseAvatarId != 0) hash ^= BaseAvatarId.GetHashCode();
|
|
if (UseAvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) hash ^= UseAvatarType.GetHashCode();
|
|
if (UseItemCount != 0) hash ^= UseItemCount.GetHashCode();
|
|
if (OptionalRewardId != 0) hash ^= OptionalRewardId.GetHashCode();
|
|
if (DBIOHFLJCJF != false) hash ^= DBIOHFLJCJF.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 (BaseAvatarId != 0) {
|
|
output.WriteRawTag(8);
|
|
output.WriteUInt32(BaseAvatarId);
|
|
}
|
|
if (UseAvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) {
|
|
output.WriteRawTag(16);
|
|
output.WriteEnum((int) UseAvatarType);
|
|
}
|
|
if (UseItemId != 0) {
|
|
output.WriteRawTag(48);
|
|
output.WriteUInt32(UseItemId);
|
|
}
|
|
if (UseItemCount != 0) {
|
|
output.WriteRawTag(72);
|
|
output.WriteUInt32(UseItemCount);
|
|
}
|
|
if (DBIOHFLJCJF != false) {
|
|
output.WriteRawTag(112);
|
|
output.WriteBool(DBIOHFLJCJF);
|
|
}
|
|
if (OptionalRewardId != 0) {
|
|
output.WriteRawTag(120);
|
|
output.WriteUInt32(OptionalRewardId);
|
|
}
|
|
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 (BaseAvatarId != 0) {
|
|
output.WriteRawTag(8);
|
|
output.WriteUInt32(BaseAvatarId);
|
|
}
|
|
if (UseAvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) {
|
|
output.WriteRawTag(16);
|
|
output.WriteEnum((int) UseAvatarType);
|
|
}
|
|
if (UseItemId != 0) {
|
|
output.WriteRawTag(48);
|
|
output.WriteUInt32(UseItemId);
|
|
}
|
|
if (UseItemCount != 0) {
|
|
output.WriteRawTag(72);
|
|
output.WriteUInt32(UseItemCount);
|
|
}
|
|
if (DBIOHFLJCJF != false) {
|
|
output.WriteRawTag(112);
|
|
output.WriteBool(DBIOHFLJCJF);
|
|
}
|
|
if (OptionalRewardId != 0) {
|
|
output.WriteRawTag(120);
|
|
output.WriteUInt32(OptionalRewardId);
|
|
}
|
|
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 (UseItemId != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(UseItemId);
|
|
}
|
|
if (BaseAvatarId != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BaseAvatarId);
|
|
}
|
|
if (UseAvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) {
|
|
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) UseAvatarType);
|
|
}
|
|
if (UseItemCount != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(UseItemCount);
|
|
}
|
|
if (OptionalRewardId != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(OptionalRewardId);
|
|
}
|
|
if (DBIOHFLJCJF != false) {
|
|
size += 1 + 1;
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(UseItemCsReq other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.UseItemId != 0) {
|
|
UseItemId = other.UseItemId;
|
|
}
|
|
if (other.BaseAvatarId != 0) {
|
|
BaseAvatarId = other.BaseAvatarId;
|
|
}
|
|
if (other.UseAvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) {
|
|
UseAvatarType = other.UseAvatarType;
|
|
}
|
|
if (other.UseItemCount != 0) {
|
|
UseItemCount = other.UseItemCount;
|
|
}
|
|
if (other.OptionalRewardId != 0) {
|
|
OptionalRewardId = other.OptionalRewardId;
|
|
}
|
|
if (other.DBIOHFLJCJF != false) {
|
|
DBIOHFLJCJF = other.DBIOHFLJCJF;
|
|
}
|
|
_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: {
|
|
BaseAvatarId = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 16: {
|
|
UseAvatarType = (global::EggLink.DanhengServer.Proto.AvatarType) input.ReadEnum();
|
|
break;
|
|
}
|
|
case 48: {
|
|
UseItemId = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 72: {
|
|
UseItemCount = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 112: {
|
|
DBIOHFLJCJF = input.ReadBool();
|
|
break;
|
|
}
|
|
case 120: {
|
|
OptionalRewardId = input.ReadUInt32();
|
|
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: {
|
|
BaseAvatarId = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 16: {
|
|
UseAvatarType = (global::EggLink.DanhengServer.Proto.AvatarType) input.ReadEnum();
|
|
break;
|
|
}
|
|
case 48: {
|
|
UseItemId = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 72: {
|
|
UseItemCount = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 112: {
|
|
DBIOHFLJCJF = input.ReadBool();
|
|
break;
|
|
}
|
|
case 120: {
|
|
OptionalRewardId = input.ReadUInt32();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
#endregion Designer generated code
|