450 lines
14 KiB
Go
450 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 EquipmentGetListReq struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
}
|
|
|
|
func (x *EquipmentGetListReq) Reset() {
|
|
*x = EquipmentGetListReq{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_equipment_equipment_msg_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *EquipmentGetListReq) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*EquipmentGetListReq) ProtoMessage() {}
|
|
|
|
func (x *EquipmentGetListReq) 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 EquipmentGetListReq.ProtoReflect.Descriptor instead.
|
|
func (*EquipmentGetListReq) Descriptor() ([]byte, []int) {
|
|
return file_equipment_equipment_msg_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
//获取装备列表请求 回应
|
|
type EquipmentGetListResp struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Equipments []*DB_Equipment `protobuf:"bytes,1,rep,name=Equipments,proto3" json:"Equipments"` //装备列表
|
|
}
|
|
|
|
func (x *EquipmentGetListResp) Reset() {
|
|
*x = EquipmentGetListResp{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_equipment_equipment_msg_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *EquipmentGetListResp) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*EquipmentGetListResp) ProtoMessage() {}
|
|
|
|
func (x *EquipmentGetListResp) 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 EquipmentGetListResp.ProtoReflect.Descriptor instead.
|
|
func (*EquipmentGetListResp) Descriptor() ([]byte, []int) {
|
|
return file_equipment_equipment_msg_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *EquipmentGetListResp) GetEquipments() []*DB_Equipment {
|
|
if x != nil {
|
|
return x.Equipments
|
|
}
|
|
return nil
|
|
}
|
|
|
|
//装备挂在到英雄上
|
|
type EquipmentEquipReq 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 *EquipmentEquipReq) Reset() {
|
|
*x = EquipmentEquipReq{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_equipment_equipment_msg_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *EquipmentEquipReq) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*EquipmentEquipReq) ProtoMessage() {}
|
|
|
|
func (x *EquipmentEquipReq) 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 EquipmentEquipReq.ProtoReflect.Descriptor instead.
|
|
func (*EquipmentEquipReq) Descriptor() ([]byte, []int) {
|
|
return file_equipment_equipment_msg_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *EquipmentEquipReq) GetHeroCardId() string {
|
|
if x != nil {
|
|
return x.HeroCardId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *EquipmentEquipReq) GetEquipmentId() []string {
|
|
if x != nil {
|
|
return x.EquipmentId
|
|
}
|
|
return nil
|
|
}
|
|
|
|
//装备挂在到英雄上 回应
|
|
type EquipmentEquipResp struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
}
|
|
|
|
func (x *EquipmentEquipResp) Reset() {
|
|
*x = EquipmentEquipResp{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_equipment_equipment_msg_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *EquipmentEquipResp) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*EquipmentEquipResp) ProtoMessage() {}
|
|
|
|
func (x *EquipmentEquipResp) 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 EquipmentEquipResp.ProtoReflect.Descriptor instead.
|
|
func (*EquipmentEquipResp) Descriptor() ([]byte, []int) {
|
|
return file_equipment_equipment_msg_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
//装备升级
|
|
type EquipmentUpgradeReq struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
EquipmentId string `protobuf:"bytes,1,opt,name=EquipmentId,proto3" json:"EquipmentId"` //装备Id
|
|
}
|
|
|
|
func (x *EquipmentUpgradeReq) Reset() {
|
|
*x = EquipmentUpgradeReq{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_equipment_equipment_msg_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *EquipmentUpgradeReq) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*EquipmentUpgradeReq) ProtoMessage() {}
|
|
|
|
func (x *EquipmentUpgradeReq) 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 EquipmentUpgradeReq.ProtoReflect.Descriptor instead.
|
|
func (*EquipmentUpgradeReq) Descriptor() ([]byte, []int) {
|
|
return file_equipment_equipment_msg_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *EquipmentUpgradeReq) GetEquipmentId() string {
|
|
if x != nil {
|
|
return x.EquipmentId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
//装备升级 回应
|
|
type EquipmentUpgradeResp struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
}
|
|
|
|
func (x *EquipmentUpgradeResp) Reset() {
|
|
*x = EquipmentUpgradeResp{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_equipment_equipment_msg_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *EquipmentUpgradeResp) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*EquipmentUpgradeResp) ProtoMessage() {}
|
|
|
|
func (x *EquipmentUpgradeResp) 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 EquipmentUpgradeResp.ProtoReflect.Descriptor instead.
|
|
func (*EquipmentUpgradeResp) 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, 0x15, 0x0a,
|
|
0x13, 0x45, 0x71, 0x75, 0x69, 0x70, 0x6d, 0x65, 0x6e, 0x74, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x73,
|
|
0x74, 0x52, 0x65, 0x71, 0x22, 0x45, 0x0a, 0x14, 0x45, 0x71, 0x75, 0x69, 0x70, 0x6d, 0x65, 0x6e,
|
|
0x74, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x73, 0x74, 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, 0x55, 0x0a, 0x11, 0x45,
|
|
0x71, 0x75, 0x69, 0x70, 0x6d, 0x65, 0x6e, 0x74, 0x45, 0x71, 0x75, 0x69, 0x70, 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, 0x14, 0x0a, 0x12, 0x45, 0x71, 0x75, 0x69, 0x70, 0x6d, 0x65, 0x6e, 0x74, 0x45,
|
|
0x71, 0x75, 0x69, 0x70, 0x52, 0x65, 0x73, 0x70, 0x22, 0x37, 0x0a, 0x13, 0x45, 0x71, 0x75, 0x69,
|
|
0x70, 0x6d, 0x65, 0x6e, 0x74, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 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, 0x16, 0x0a, 0x14, 0x45, 0x71, 0x75, 0x69, 0x70, 0x6d, 0x65, 0x6e, 0x74, 0x55, 0x70,
|
|
0x67, 0x72, 0x61, 0x64, 0x65, 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{}{
|
|
(*EquipmentGetListReq)(nil), // 0: EquipmentGetListReq
|
|
(*EquipmentGetListResp)(nil), // 1: EquipmentGetListResp
|
|
(*EquipmentEquipReq)(nil), // 2: EquipmentEquipReq
|
|
(*EquipmentEquipResp)(nil), // 3: EquipmentEquipResp
|
|
(*EquipmentUpgradeReq)(nil), // 4: EquipmentUpgradeReq
|
|
(*EquipmentUpgradeResp)(nil), // 5: EquipmentUpgradeResp
|
|
(*DB_Equipment)(nil), // 6: DB_Equipment
|
|
}
|
|
var file_equipment_equipment_msg_proto_depIdxs = []int32{
|
|
6, // 0: EquipmentGetListResp.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.(*EquipmentGetListReq); 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.(*EquipmentGetListResp); 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.(*EquipmentEquipReq); 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.(*EquipmentEquipResp); 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.(*EquipmentUpgradeReq); 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.(*EquipmentUpgradeResp); 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
|
|
}
|