371 lines
12 KiB
Go
371 lines
12 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.28.0
|
|
// protoc v3.20.0
|
|
// source: herotask/herotask_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 HeroTaskInfoReq struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
}
|
|
|
|
func (x *HeroTaskInfoReq) Reset() {
|
|
*x = HeroTaskInfoReq{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_herotask_herotask_msg_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *HeroTaskInfoReq) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*HeroTaskInfoReq) ProtoMessage() {}
|
|
|
|
func (x *HeroTaskInfoReq) ProtoReflect() protoreflect.Message {
|
|
mi := &file_herotask_herotask_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 HeroTaskInfoReq.ProtoReflect.Descriptor instead.
|
|
func (*HeroTaskInfoReq) Descriptor() ([]byte, []int) {
|
|
return file_herotask_herotask_msg_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
//开服任务数据
|
|
type HeroTaskInfoResp struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
// repeated ConIProgress conlds = 1; //子任务进度数据
|
|
Heros map[int32]*DBHeroItem `protobuf:"bytes,2,rep,name=heros,proto3" json:"heros" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
|
}
|
|
|
|
func (x *HeroTaskInfoResp) Reset() {
|
|
*x = HeroTaskInfoResp{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_herotask_herotask_msg_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *HeroTaskInfoResp) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*HeroTaskInfoResp) ProtoMessage() {}
|
|
|
|
func (x *HeroTaskInfoResp) ProtoReflect() protoreflect.Message {
|
|
mi := &file_herotask_herotask_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 HeroTaskInfoResp.ProtoReflect.Descriptor instead.
|
|
func (*HeroTaskInfoResp) Descriptor() ([]byte, []int) {
|
|
return file_herotask_herotask_msg_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *HeroTaskInfoResp) GetHeros() map[int32]*DBHeroItem {
|
|
if x != nil {
|
|
return x.Heros
|
|
}
|
|
return nil
|
|
}
|
|
|
|
//领奖 请求
|
|
type HeroTaskReceiveReq struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Hero int32 `protobuf:"varint,1,opt,name=hero,proto3" json:"hero"`
|
|
Stage int32 `protobuf:"varint,2,opt,name=stage,proto3" json:"stage"`
|
|
}
|
|
|
|
func (x *HeroTaskReceiveReq) Reset() {
|
|
*x = HeroTaskReceiveReq{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_herotask_herotask_msg_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *HeroTaskReceiveReq) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*HeroTaskReceiveReq) ProtoMessage() {}
|
|
|
|
func (x *HeroTaskReceiveReq) ProtoReflect() protoreflect.Message {
|
|
mi := &file_herotask_herotask_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 HeroTaskReceiveReq.ProtoReflect.Descriptor instead.
|
|
func (*HeroTaskReceiveReq) Descriptor() ([]byte, []int) {
|
|
return file_herotask_herotask_msg_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *HeroTaskReceiveReq) GetHero() int32 {
|
|
if x != nil {
|
|
return x.Hero
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *HeroTaskReceiveReq) GetStage() int32 {
|
|
if x != nil {
|
|
return x.Stage
|
|
}
|
|
return 0
|
|
}
|
|
|
|
//领奖 请求回应
|
|
type HeroTaskReceiveResp struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Hero int32 `protobuf:"varint,1,opt,name=hero,proto3" json:"hero"`
|
|
Stage int32 `protobuf:"varint,2,opt,name=stage,proto3" json:"stage"`
|
|
Award []*UserAssets `protobuf:"bytes,3,rep,name=award,proto3" json:"award"` //奖励
|
|
}
|
|
|
|
func (x *HeroTaskReceiveResp) Reset() {
|
|
*x = HeroTaskReceiveResp{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_herotask_herotask_msg_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *HeroTaskReceiveResp) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*HeroTaskReceiveResp) ProtoMessage() {}
|
|
|
|
func (x *HeroTaskReceiveResp) ProtoReflect() protoreflect.Message {
|
|
mi := &file_herotask_herotask_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 HeroTaskReceiveResp.ProtoReflect.Descriptor instead.
|
|
func (*HeroTaskReceiveResp) Descriptor() ([]byte, []int) {
|
|
return file_herotask_herotask_msg_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *HeroTaskReceiveResp) GetHero() int32 {
|
|
if x != nil {
|
|
return x.Hero
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *HeroTaskReceiveResp) GetStage() int32 {
|
|
if x != nil {
|
|
return x.Stage
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *HeroTaskReceiveResp) GetAward() []*UserAssets {
|
|
if x != nil {
|
|
return x.Award
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_herotask_herotask_msg_proto protoreflect.FileDescriptor
|
|
|
|
var file_herotask_herotask_msg_proto_rawDesc = []byte{
|
|
0x0a, 0x1b, 0x68, 0x65, 0x72, 0x6f, 0x74, 0x61, 0x73, 0x6b, 0x2f, 0x68, 0x65, 0x72, 0x6f, 0x74,
|
|
0x61, 0x73, 0x6b, 0x5f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x68,
|
|
0x65, 0x72, 0x6f, 0x74, 0x61, 0x73, 0x6b, 0x2f, 0x68, 0x65, 0x72, 0x6f, 0x74, 0x61, 0x73, 0x6b,
|
|
0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x2e,
|
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x11, 0x0a, 0x0f, 0x48, 0x65, 0x72, 0x6f, 0x54, 0x61, 0x73,
|
|
0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x22, 0x8d, 0x01, 0x0a, 0x10, 0x48, 0x65, 0x72,
|
|
0x6f, 0x54, 0x61, 0x73, 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x12, 0x32, 0x0a,
|
|
0x05, 0x68, 0x65, 0x72, 0x6f, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x48,
|
|
0x65, 0x72, 0x6f, 0x54, 0x61, 0x73, 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x2e,
|
|
0x48, 0x65, 0x72, 0x6f, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x68, 0x65, 0x72, 0x6f,
|
|
0x73, 0x1a, 0x45, 0x0a, 0x0a, 0x48, 0x65, 0x72, 0x6f, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12,
|
|
0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65,
|
|
0x79, 0x12, 0x21, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
|
|
0x32, 0x0b, 0x2e, 0x44, 0x42, 0x48, 0x65, 0x72, 0x6f, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x05, 0x76,
|
|
0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x3e, 0x0a, 0x12, 0x48, 0x65, 0x72, 0x6f,
|
|
0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x52, 0x65, 0x71, 0x12, 0x12,
|
|
0x0a, 0x04, 0x68, 0x65, 0x72, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x68, 0x65,
|
|
0x72, 0x6f, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
|
|
0x05, 0x52, 0x05, 0x73, 0x74, 0x61, 0x67, 0x65, 0x22, 0x62, 0x0a, 0x13, 0x48, 0x65, 0x72, 0x6f,
|
|
0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12,
|
|
0x12, 0x0a, 0x04, 0x68, 0x65, 0x72, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x68,
|
|
0x65, 0x72, 0x6f, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01,
|
|
0x28, 0x05, 0x52, 0x05, 0x73, 0x74, 0x61, 0x67, 0x65, 0x12, 0x21, 0x0a, 0x05, 0x61, 0x77, 0x61,
|
|
0x72, 0x64, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x41,
|
|
0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x05, 0x61, 0x77, 0x61, 0x72, 0x64, 0x42, 0x06, 0x5a, 0x04,
|
|
0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
}
|
|
|
|
var (
|
|
file_herotask_herotask_msg_proto_rawDescOnce sync.Once
|
|
file_herotask_herotask_msg_proto_rawDescData = file_herotask_herotask_msg_proto_rawDesc
|
|
)
|
|
|
|
func file_herotask_herotask_msg_proto_rawDescGZIP() []byte {
|
|
file_herotask_herotask_msg_proto_rawDescOnce.Do(func() {
|
|
file_herotask_herotask_msg_proto_rawDescData = protoimpl.X.CompressGZIP(file_herotask_herotask_msg_proto_rawDescData)
|
|
})
|
|
return file_herotask_herotask_msg_proto_rawDescData
|
|
}
|
|
|
|
var file_herotask_herotask_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
|
|
var file_herotask_herotask_msg_proto_goTypes = []interface{}{
|
|
(*HeroTaskInfoReq)(nil), // 0: HeroTaskInfoReq
|
|
(*HeroTaskInfoResp)(nil), // 1: HeroTaskInfoResp
|
|
(*HeroTaskReceiveReq)(nil), // 2: HeroTaskReceiveReq
|
|
(*HeroTaskReceiveResp)(nil), // 3: HeroTaskReceiveResp
|
|
nil, // 4: HeroTaskInfoResp.HerosEntry
|
|
(*UserAssets)(nil), // 5: UserAssets
|
|
(*DBHeroItem)(nil), // 6: DBHeroItem
|
|
}
|
|
var file_herotask_herotask_msg_proto_depIdxs = []int32{
|
|
4, // 0: HeroTaskInfoResp.heros:type_name -> HeroTaskInfoResp.HerosEntry
|
|
5, // 1: HeroTaskReceiveResp.award:type_name -> UserAssets
|
|
6, // 2: HeroTaskInfoResp.HerosEntry.value:type_name -> DBHeroItem
|
|
3, // [3:3] is the sub-list for method output_type
|
|
3, // [3:3] is the sub-list for method input_type
|
|
3, // [3:3] is the sub-list for extension type_name
|
|
3, // [3:3] is the sub-list for extension extendee
|
|
0, // [0:3] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_herotask_herotask_msg_proto_init() }
|
|
func file_herotask_herotask_msg_proto_init() {
|
|
if File_herotask_herotask_msg_proto != nil {
|
|
return
|
|
}
|
|
file_herotask_herotask_db_proto_init()
|
|
file_comm_proto_init()
|
|
if !protoimpl.UnsafeEnabled {
|
|
file_herotask_herotask_msg_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*HeroTaskInfoReq); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_herotask_herotask_msg_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*HeroTaskInfoResp); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_herotask_herotask_msg_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*HeroTaskReceiveReq); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_herotask_herotask_msg_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*HeroTaskReceiveResp); 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_herotask_herotask_msg_proto_rawDesc,
|
|
NumEnums: 0,
|
|
NumMessages: 5,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_herotask_herotask_msg_proto_goTypes,
|
|
DependencyIndexes: file_herotask_herotask_msg_proto_depIdxs,
|
|
MessageInfos: file_herotask_herotask_msg_proto_msgTypes,
|
|
}.Build()
|
|
File_herotask_herotask_msg_proto = out.File
|
|
file_herotask_herotask_msg_proto_rawDesc = nil
|
|
file_herotask_herotask_msg_proto_goTypes = nil
|
|
file_herotask_herotask_msg_proto_depIdxs = nil
|
|
}
|