451 lines
14 KiB
Go
451 lines
14 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.28.0
|
|
// protoc v3.20.0
|
|
// source: equipment/equipment_msg.proto
|
|
|
|
package pb
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
//获取装备列表请求
|
|
type Equipment_GetList_Req struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
}
|
|
|
|
func (x *Equipment_GetList_Req) Reset() {
|
|
*x = Equipment_GetList_Req{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_equipment_equipment_msg_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *Equipment_GetList_Req) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Equipment_GetList_Req) ProtoMessage() {}
|
|
|
|
func (x *Equipment_GetList_Req) ProtoReflect() protoreflect.Message {
|
|
mi := &file_equipment_equipment_msg_proto_msgTypes[0]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Equipment_GetList_Req.ProtoReflect.Descriptor instead.
|
|
func (*Equipment_GetList_Req) Descriptor() ([]byte, []int) {
|
|
return file_equipment_equipment_msg_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
//获取装备列表请求 回应
|
|
type Equipment_GetList_Resp struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Equipments []*DB_Equipment `protobuf:"bytes,1,rep,name=Equipments,proto3" json:"Equipments"` //装备列表
|
|
}
|
|
|
|
func (x *Equipment_GetList_Resp) Reset() {
|
|
*x = Equipment_GetList_Resp{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_equipment_equipment_msg_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *Equipment_GetList_Resp) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Equipment_GetList_Resp) ProtoMessage() {}
|
|
|
|
func (x *Equipment_GetList_Resp) ProtoReflect() protoreflect.Message {
|
|
mi := &file_equipment_equipment_msg_proto_msgTypes[1]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Equipment_GetList_Resp.ProtoReflect.Descriptor instead.
|
|
func (*Equipment_GetList_Resp) Descriptor() ([]byte, []int) {
|
|
return file_equipment_equipment_msg_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *Equipment_GetList_Resp) GetEquipments() []*DB_Equipment {
|
|
if x != nil {
|
|
return x.Equipments
|
|
}
|
|
return nil
|
|
}
|
|
|
|
//装备挂在到英雄上
|
|
type Equipment_Equip_Req struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
HeroCardId string `protobuf:"bytes,1,opt,name=HeroCardId,proto3" json:"HeroCardId"` //英雄卡Id
|
|
EquipmentId []string `protobuf:"bytes,2,rep,name=EquipmentId,proto3" json:"EquipmentId"` //装备Id 固定长度的数组 0-5 对应的装备栏
|
|
}
|
|
|
|
func (x *Equipment_Equip_Req) Reset() {
|
|
*x = Equipment_Equip_Req{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_equipment_equipment_msg_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *Equipment_Equip_Req) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Equipment_Equip_Req) ProtoMessage() {}
|
|
|
|
func (x *Equipment_Equip_Req) ProtoReflect() protoreflect.Message {
|
|
mi := &file_equipment_equipment_msg_proto_msgTypes[2]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Equipment_Equip_Req.ProtoReflect.Descriptor instead.
|
|
func (*Equipment_Equip_Req) Descriptor() ([]byte, []int) {
|
|
return file_equipment_equipment_msg_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *Equipment_Equip_Req) GetHeroCardId() string {
|
|
if x != nil {
|
|
return x.HeroCardId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Equipment_Equip_Req) GetEquipmentId() []string {
|
|
if x != nil {
|
|
return x.EquipmentId
|
|
}
|
|
return nil
|
|
}
|
|
|
|
//装备挂在到英雄上 回应
|
|
type Equipment_Equip_Resp struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
}
|
|
|
|
func (x *Equipment_Equip_Resp) Reset() {
|
|
*x = Equipment_Equip_Resp{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_equipment_equipment_msg_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *Equipment_Equip_Resp) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Equipment_Equip_Resp) ProtoMessage() {}
|
|
|
|
func (x *Equipment_Equip_Resp) ProtoReflect() protoreflect.Message {
|
|
mi := &file_equipment_equipment_msg_proto_msgTypes[3]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Equipment_Equip_Resp.ProtoReflect.Descriptor instead.
|
|
func (*Equipment_Equip_Resp) Descriptor() ([]byte, []int) {
|
|
return file_equipment_equipment_msg_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
//装备升级
|
|
type Equipment_Upgrade_Req struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
EquipmentId string `protobuf:"bytes,1,opt,name=EquipmentId,proto3" json:"EquipmentId"` //装备Id
|
|
}
|
|
|
|
func (x *Equipment_Upgrade_Req) Reset() {
|
|
*x = Equipment_Upgrade_Req{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_equipment_equipment_msg_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *Equipment_Upgrade_Req) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Equipment_Upgrade_Req) ProtoMessage() {}
|
|
|
|
func (x *Equipment_Upgrade_Req) ProtoReflect() protoreflect.Message {
|
|
mi := &file_equipment_equipment_msg_proto_msgTypes[4]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Equipment_Upgrade_Req.ProtoReflect.Descriptor instead.
|
|
func (*Equipment_Upgrade_Req) Descriptor() ([]byte, []int) {
|
|
return file_equipment_equipment_msg_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *Equipment_Upgrade_Req) GetEquipmentId() string {
|
|
if x != nil {
|
|
return x.EquipmentId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
//装备升级 回应
|
|
type Equipment_Upgrade_Resp struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
}
|
|
|
|
func (x *Equipment_Upgrade_Resp) Reset() {
|
|
*x = Equipment_Upgrade_Resp{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_equipment_equipment_msg_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *Equipment_Upgrade_Resp) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Equipment_Upgrade_Resp) ProtoMessage() {}
|
|
|
|
func (x *Equipment_Upgrade_Resp) ProtoReflect() protoreflect.Message {
|
|
mi := &file_equipment_equipment_msg_proto_msgTypes[5]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Equipment_Upgrade_Resp.ProtoReflect.Descriptor instead.
|
|
func (*Equipment_Upgrade_Resp) Descriptor() ([]byte, []int) {
|
|
return file_equipment_equipment_msg_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
var File_equipment_equipment_msg_proto protoreflect.FileDescriptor
|
|
|
|
var file_equipment_equipment_msg_proto_rawDesc = []byte{
|
|
0x0a, 0x1d, 0x65, 0x71, 0x75, 0x69, 0x70, 0x6d, 0x65, 0x6e, 0x74, 0x2f, 0x65, 0x71, 0x75, 0x69,
|
|
0x70, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
|
|
0x1c, 0x65, 0x71, 0x75, 0x69, 0x70, 0x6d, 0x65, 0x6e, 0x74, 0x2f, 0x65, 0x71, 0x75, 0x69, 0x70,
|
|
0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x17, 0x0a,
|
|
0x15, 0x45, 0x71, 0x75, 0x69, 0x70, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x47, 0x65, 0x74, 0x4c, 0x69,
|
|
0x73, 0x74, 0x5f, 0x52, 0x65, 0x71, 0x22, 0x47, 0x0a, 0x16, 0x45, 0x71, 0x75, 0x69, 0x70, 0x6d,
|
|
0x65, 0x6e, 0x74, 0x5f, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x5f, 0x52, 0x65, 0x73, 0x70,
|
|
0x12, 0x2d, 0x0a, 0x0a, 0x45, 0x71, 0x75, 0x69, 0x70, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01,
|
|
0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x44, 0x42, 0x5f, 0x45, 0x71, 0x75, 0x69, 0x70, 0x6d,
|
|
0x65, 0x6e, 0x74, 0x52, 0x0a, 0x45, 0x71, 0x75, 0x69, 0x70, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x22,
|
|
0x57, 0x0a, 0x13, 0x45, 0x71, 0x75, 0x69, 0x70, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x45, 0x71, 0x75,
|
|
0x69, 0x70, 0x5f, 0x52, 0x65, 0x71, 0x12, 0x1e, 0x0a, 0x0a, 0x48, 0x65, 0x72, 0x6f, 0x43, 0x61,
|
|
0x72, 0x64, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x48, 0x65, 0x72, 0x6f,
|
|
0x43, 0x61, 0x72, 0x64, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x45, 0x71, 0x75, 0x69, 0x70, 0x6d,
|
|
0x65, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x45, 0x71, 0x75,
|
|
0x69, 0x70, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x16, 0x0a, 0x14, 0x45, 0x71, 0x75, 0x69,
|
|
0x70, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x45, 0x71, 0x75, 0x69, 0x70, 0x5f, 0x52, 0x65, 0x73, 0x70,
|
|
0x22, 0x39, 0x0a, 0x15, 0x45, 0x71, 0x75, 0x69, 0x70, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x55, 0x70,
|
|
0x67, 0x72, 0x61, 0x64, 0x65, 0x5f, 0x52, 0x65, 0x71, 0x12, 0x20, 0x0a, 0x0b, 0x45, 0x71, 0x75,
|
|
0x69, 0x70, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
|
|
0x45, 0x71, 0x75, 0x69, 0x70, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x18, 0x0a, 0x16, 0x45,
|
|
0x71, 0x75, 0x69, 0x70, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65,
|
|
0x5f, 0x52, 0x65, 0x73, 0x70, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70,
|
|
0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
}
|
|
|
|
var (
|
|
file_equipment_equipment_msg_proto_rawDescOnce sync.Once
|
|
file_equipment_equipment_msg_proto_rawDescData = file_equipment_equipment_msg_proto_rawDesc
|
|
)
|
|
|
|
func file_equipment_equipment_msg_proto_rawDescGZIP() []byte {
|
|
file_equipment_equipment_msg_proto_rawDescOnce.Do(func() {
|
|
file_equipment_equipment_msg_proto_rawDescData = protoimpl.X.CompressGZIP(file_equipment_equipment_msg_proto_rawDescData)
|
|
})
|
|
return file_equipment_equipment_msg_proto_rawDescData
|
|
}
|
|
|
|
var file_equipment_equipment_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
|
|
var file_equipment_equipment_msg_proto_goTypes = []interface{}{
|
|
(*Equipment_GetList_Req)(nil), // 0: Equipment_GetList_Req
|
|
(*Equipment_GetList_Resp)(nil), // 1: Equipment_GetList_Resp
|
|
(*Equipment_Equip_Req)(nil), // 2: Equipment_Equip_Req
|
|
(*Equipment_Equip_Resp)(nil), // 3: Equipment_Equip_Resp
|
|
(*Equipment_Upgrade_Req)(nil), // 4: Equipment_Upgrade_Req
|
|
(*Equipment_Upgrade_Resp)(nil), // 5: Equipment_Upgrade_Resp
|
|
(*DB_Equipment)(nil), // 6: DB_Equipment
|
|
}
|
|
var file_equipment_equipment_msg_proto_depIdxs = []int32{
|
|
6, // 0: Equipment_GetList_Resp.Equipments:type_name -> DB_Equipment
|
|
1, // [1:1] is the sub-list for method output_type
|
|
1, // [1:1] is the sub-list for method input_type
|
|
1, // [1:1] is the sub-list for extension type_name
|
|
1, // [1:1] is the sub-list for extension extendee
|
|
0, // [0:1] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_equipment_equipment_msg_proto_init() }
|
|
func file_equipment_equipment_msg_proto_init() {
|
|
if File_equipment_equipment_msg_proto != nil {
|
|
return
|
|
}
|
|
file_equipment_equipment_db_proto_init()
|
|
if !protoimpl.UnsafeEnabled {
|
|
file_equipment_equipment_msg_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*Equipment_GetList_Req); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_equipment_equipment_msg_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*Equipment_GetList_Resp); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_equipment_equipment_msg_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*Equipment_Equip_Req); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_equipment_equipment_msg_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*Equipment_Equip_Resp); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_equipment_equipment_msg_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*Equipment_Upgrade_Req); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_equipment_equipment_msg_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*Equipment_Upgrade_Resp); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: file_equipment_equipment_msg_proto_rawDesc,
|
|
NumEnums: 0,
|
|
NumMessages: 6,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_equipment_equipment_msg_proto_goTypes,
|
|
DependencyIndexes: file_equipment_equipment_msg_proto_depIdxs,
|
|
MessageInfos: file_equipment_equipment_msg_proto_msgTypes,
|
|
}.Build()
|
|
File_equipment_equipment_msg_proto = out.File
|
|
file_equipment_equipment_msg_proto_rawDesc = nil
|
|
file_equipment_equipment_msg_proto_goTypes = nil
|
|
file_equipment_equipment_msg_proto_depIdxs = nil
|
|
}
|