Files
DanhengServer-OpenSource/Proto/UseItemCsReq.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: 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",
"ZUl0ZW1Dc1JlcRIWCg51c2VfaXRlbV9jb3VudBgLIAEoDRIWCg5iYXNlX2F2",
"YXRhcl9pZBgKIAEoDRIkCg91c2VfYXZhdGFyX3R5cGUYDyABKA4yCy5BdmF0",
"YXJUeXBlEhoKEm9wdGlvbmFsX3Jld2FyZF9pZBgDIAEoDRITCgtGRUxDSUVN",
"S0NHRhgNIAEoCBITCgt1c2VfaXRlbV9pZBgMIAEoDUIeqgIbRWdnTGluay5E",
"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[]{ "UseItemCount", "BaseAvatarId", "UseAvatarType", "OptionalRewardId", "FELCIEMKCGF", "UseItemId" }, 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() {
useItemCount_ = other.useItemCount_;
baseAvatarId_ = other.baseAvatarId_;
useAvatarType_ = other.useAvatarType_;
optionalRewardId_ = other.optionalRewardId_;
fELCIEMKCGF_ = other.fELCIEMKCGF_;
useItemId_ = other.useItemId_;
_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_count" field.</summary>
public const int UseItemCountFieldNumber = 11;
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 "base_avatar_id" field.</summary>
public const int BaseAvatarIdFieldNumber = 10;
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 = 15;
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 "optional_reward_id" field.</summary>
public const int OptionalRewardIdFieldNumber = 3;
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 "FELCIEMKCGF" field.</summary>
public const int FELCIEMKCGFFieldNumber = 13;
private bool fELCIEMKCGF_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool FELCIEMKCGF {
get { return fELCIEMKCGF_; }
set {
fELCIEMKCGF_ = value;
}
}
/// <summary>Field number for the "use_item_id" field.</summary>
public const int UseItemIdFieldNumber = 12;
private uint useItemId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint UseItemId {
get { return useItemId_; }
set {
useItemId_ = 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 (UseItemCount != other.UseItemCount) return false;
if (BaseAvatarId != other.BaseAvatarId) return false;
if (UseAvatarType != other.UseAvatarType) return false;
if (OptionalRewardId != other.OptionalRewardId) return false;
if (FELCIEMKCGF != other.FELCIEMKCGF) return false;
if (UseItemId != other.UseItemId) 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 (UseItemCount != 0) hash ^= UseItemCount.GetHashCode();
if (BaseAvatarId != 0) hash ^= BaseAvatarId.GetHashCode();
if (UseAvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) hash ^= UseAvatarType.GetHashCode();
if (OptionalRewardId != 0) hash ^= OptionalRewardId.GetHashCode();
if (FELCIEMKCGF != false) hash ^= FELCIEMKCGF.GetHashCode();
if (UseItemId != 0) hash ^= UseItemId.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 (OptionalRewardId != 0) {
output.WriteRawTag(24);
output.WriteUInt32(OptionalRewardId);
}
if (BaseAvatarId != 0) {
output.WriteRawTag(80);
output.WriteUInt32(BaseAvatarId);
}
if (UseItemCount != 0) {
output.WriteRawTag(88);
output.WriteUInt32(UseItemCount);
}
if (UseItemId != 0) {
output.WriteRawTag(96);
output.WriteUInt32(UseItemId);
}
if (FELCIEMKCGF != false) {
output.WriteRawTag(104);
output.WriteBool(FELCIEMKCGF);
}
if (UseAvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) {
output.WriteRawTag(120);
output.WriteEnum((int) UseAvatarType);
}
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 (OptionalRewardId != 0) {
output.WriteRawTag(24);
output.WriteUInt32(OptionalRewardId);
}
if (BaseAvatarId != 0) {
output.WriteRawTag(80);
output.WriteUInt32(BaseAvatarId);
}
if (UseItemCount != 0) {
output.WriteRawTag(88);
output.WriteUInt32(UseItemCount);
}
if (UseItemId != 0) {
output.WriteRawTag(96);
output.WriteUInt32(UseItemId);
}
if (FELCIEMKCGF != false) {
output.WriteRawTag(104);
output.WriteBool(FELCIEMKCGF);
}
if (UseAvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) {
output.WriteRawTag(120);
output.WriteEnum((int) UseAvatarType);
}
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 (UseItemCount != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(UseItemCount);
}
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 (OptionalRewardId != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(OptionalRewardId);
}
if (FELCIEMKCGF != false) {
size += 1 + 1;
}
if (UseItemId != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(UseItemId);
}
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.UseItemCount != 0) {
UseItemCount = other.UseItemCount;
}
if (other.BaseAvatarId != 0) {
BaseAvatarId = other.BaseAvatarId;
}
if (other.UseAvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) {
UseAvatarType = other.UseAvatarType;
}
if (other.OptionalRewardId != 0) {
OptionalRewardId = other.OptionalRewardId;
}
if (other.FELCIEMKCGF != false) {
FELCIEMKCGF = other.FELCIEMKCGF;
}
if (other.UseItemId != 0) {
UseItemId = other.UseItemId;
}
_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 24: {
OptionalRewardId = input.ReadUInt32();
break;
}
case 80: {
BaseAvatarId = input.ReadUInt32();
break;
}
case 88: {
UseItemCount = input.ReadUInt32();
break;
}
case 96: {
UseItemId = input.ReadUInt32();
break;
}
case 104: {
FELCIEMKCGF = input.ReadBool();
break;
}
case 120: {
UseAvatarType = (global::EggLink.DanhengServer.Proto.AvatarType) input.ReadEnum();
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 24: {
OptionalRewardId = input.ReadUInt32();
break;
}
case 80: {
BaseAvatarId = input.ReadUInt32();
break;
}
case 88: {
UseItemCount = input.ReadUInt32();
break;
}
case 96: {
UseItemId = input.ReadUInt32();
break;
}
case 104: {
FELCIEMKCGF = input.ReadBool();
break;
}
case 120: {
UseAvatarType = (global::EggLink.DanhengServer.Proto.AvatarType) input.ReadEnum();
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code