// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.0 // protoc v3.20.0 // source: pack/pack_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 Pack_Getlist_Req struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields IType int32 `protobuf:"varint,1,opt,name=IType,proto3" json:"IType"` //道具类型 } func (x *Pack_Getlist_Req) Reset() { *x = Pack_Getlist_Req{} if protoimpl.UnsafeEnabled { mi := &file_pack_pack_msg_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *Pack_Getlist_Req) String() string { return protoimpl.X.MessageStringOf(x) } func (*Pack_Getlist_Req) ProtoMessage() {} func (x *Pack_Getlist_Req) ProtoReflect() protoreflect.Message { mi := &file_pack_pack_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 Pack_Getlist_Req.ProtoReflect.Descriptor instead. func (*Pack_Getlist_Req) Descriptor() ([]byte, []int) { return file_pack_pack_msg_proto_rawDescGZIP(), []int{0} } func (x *Pack_Getlist_Req) GetIType() int32 { if x != nil { return x.IType } return 0 } //查询用户背包请求 回应 type Pack_Getlist_Resp struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Grids []*DB_UserItemData `protobuf:"bytes,1,rep,name=Grids,proto3" json:"Grids"` //用户背包列表 } func (x *Pack_Getlist_Resp) Reset() { *x = Pack_Getlist_Resp{} if protoimpl.UnsafeEnabled { mi := &file_pack_pack_msg_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *Pack_Getlist_Resp) String() string { return protoimpl.X.MessageStringOf(x) } func (*Pack_Getlist_Resp) ProtoMessage() {} func (x *Pack_Getlist_Resp) ProtoReflect() protoreflect.Message { mi := &file_pack_pack_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 Pack_Getlist_Resp.ProtoReflect.Descriptor instead. func (*Pack_Getlist_Resp) Descriptor() ([]byte, []int) { return file_pack_pack_msg_proto_rawDescGZIP(), []int{1} } func (x *Pack_Getlist_Resp) GetGrids() []*DB_UserItemData { if x != nil { return x.Grids } return nil } //使用物品请求 type Pack_UseItem_Req struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields GridId int32 `protobuf:"varint,1,opt,name=GridId,proto3" json:"GridId"` //格子Id ItemId int32 `protobuf:"varint,2,opt,name=ItemId,proto3" json:"ItemId"` //物品Id Amount uint32 `protobuf:"varint,3,opt,name=Amount,proto3" json:"Amount"` //使用数量 } func (x *Pack_UseItem_Req) Reset() { *x = Pack_UseItem_Req{} if protoimpl.UnsafeEnabled { mi := &file_pack_pack_msg_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *Pack_UseItem_Req) String() string { return protoimpl.X.MessageStringOf(x) } func (*Pack_UseItem_Req) ProtoMessage() {} func (x *Pack_UseItem_Req) ProtoReflect() protoreflect.Message { mi := &file_pack_pack_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 Pack_UseItem_Req.ProtoReflect.Descriptor instead. func (*Pack_UseItem_Req) Descriptor() ([]byte, []int) { return file_pack_pack_msg_proto_rawDescGZIP(), []int{2} } func (x *Pack_UseItem_Req) GetGridId() int32 { if x != nil { return x.GridId } return 0 } func (x *Pack_UseItem_Req) GetItemId() int32 { if x != nil { return x.ItemId } return 0 } func (x *Pack_UseItem_Req) GetAmount() uint32 { if x != nil { return x.Amount } return 0 } //使用物品请求 回应 type Pack_UseItem_Resp struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } func (x *Pack_UseItem_Resp) Reset() { *x = Pack_UseItem_Resp{} if protoimpl.UnsafeEnabled { mi := &file_pack_pack_msg_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *Pack_UseItem_Resp) String() string { return protoimpl.X.MessageStringOf(x) } func (*Pack_UseItem_Resp) ProtoMessage() {} func (x *Pack_UseItem_Resp) ProtoReflect() protoreflect.Message { mi := &file_pack_pack_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 Pack_UseItem_Resp.ProtoReflect.Descriptor instead. func (*Pack_UseItem_Resp) Descriptor() ([]byte, []int) { return file_pack_pack_msg_proto_rawDescGZIP(), []int{3} } //出售道具请求sailitem type Pack_SellItem_Req struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields GridId int32 `protobuf:"varint,1,opt,name=GridId,proto3" json:"GridId"` //格子Id ItemId int32 `protobuf:"varint,2,opt,name=ItemId,proto3" json:"ItemId"` //物品Id Amount uint32 `protobuf:"varint,3,opt,name=Amount,proto3" json:"Amount"` //使用数量 } func (x *Pack_SellItem_Req) Reset() { *x = Pack_SellItem_Req{} if protoimpl.UnsafeEnabled { mi := &file_pack_pack_msg_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *Pack_SellItem_Req) String() string { return protoimpl.X.MessageStringOf(x) } func (*Pack_SellItem_Req) ProtoMessage() {} func (x *Pack_SellItem_Req) ProtoReflect() protoreflect.Message { mi := &file_pack_pack_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 Pack_SellItem_Req.ProtoReflect.Descriptor instead. func (*Pack_SellItem_Req) Descriptor() ([]byte, []int) { return file_pack_pack_msg_proto_rawDescGZIP(), []int{4} } func (x *Pack_SellItem_Req) GetGridId() int32 { if x != nil { return x.GridId } return 0 } func (x *Pack_SellItem_Req) GetItemId() int32 { if x != nil { return x.ItemId } return 0 } func (x *Pack_SellItem_Req) GetAmount() uint32 { if x != nil { return x.Amount } return 0 } //出售道具请求 回应 type Pack_SellItem_Resp struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } func (x *Pack_SellItem_Resp) Reset() { *x = Pack_SellItem_Resp{} if protoimpl.UnsafeEnabled { mi := &file_pack_pack_msg_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *Pack_SellItem_Resp) String() string { return protoimpl.X.MessageStringOf(x) } func (*Pack_SellItem_Resp) ProtoMessage() {} func (x *Pack_SellItem_Resp) ProtoReflect() protoreflect.Message { mi := &file_pack_pack_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 Pack_SellItem_Resp.ProtoReflect.Descriptor instead. func (*Pack_SellItem_Resp) Descriptor() ([]byte, []int) { return file_pack_pack_msg_proto_rawDescGZIP(), []int{5} } var File_pack_pack_msg_proto protoreflect.FileDescriptor var file_pack_pack_msg_proto_rawDesc = []byte{ 0x0a, 0x13, 0x70, 0x61, 0x63, 0x6b, 0x2f, 0x70, 0x61, 0x63, 0x6b, 0x5f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x12, 0x70, 0x61, 0x63, 0x6b, 0x2f, 0x70, 0x61, 0x63, 0x6b, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x28, 0x0a, 0x10, 0x50, 0x61, 0x63, 0x6b, 0x5f, 0x47, 0x65, 0x74, 0x6c, 0x69, 0x73, 0x74, 0x5f, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x49, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x49, 0x54, 0x79, 0x70, 0x65, 0x22, 0x3b, 0x0a, 0x11, 0x50, 0x61, 0x63, 0x6b, 0x5f, 0x47, 0x65, 0x74, 0x6c, 0x69, 0x73, 0x74, 0x5f, 0x52, 0x65, 0x73, 0x70, 0x12, 0x26, 0x0a, 0x05, 0x47, 0x72, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x44, 0x42, 0x5f, 0x55, 0x73, 0x65, 0x72, 0x49, 0x74, 0x65, 0x6d, 0x44, 0x61, 0x74, 0x61, 0x52, 0x05, 0x47, 0x72, 0x69, 0x64, 0x73, 0x22, 0x5a, 0x0a, 0x10, 0x50, 0x61, 0x63, 0x6b, 0x5f, 0x55, 0x73, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x5f, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x47, 0x72, 0x69, 0x64, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x47, 0x72, 0x69, 0x64, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x49, 0x74, 0x65, 0x6d, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x49, 0x74, 0x65, 0x6d, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x13, 0x0a, 0x11, 0x50, 0x61, 0x63, 0x6b, 0x5f, 0x55, 0x73, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x5f, 0x52, 0x65, 0x73, 0x70, 0x22, 0x5b, 0x0a, 0x11, 0x50, 0x61, 0x63, 0x6b, 0x5f, 0x53, 0x65, 0x6c, 0x6c, 0x49, 0x74, 0x65, 0x6d, 0x5f, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x47, 0x72, 0x69, 0x64, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x47, 0x72, 0x69, 0x64, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x49, 0x74, 0x65, 0x6d, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x49, 0x74, 0x65, 0x6d, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x14, 0x0a, 0x12, 0x50, 0x61, 0x63, 0x6b, 0x5f, 0x53, 0x65, 0x6c, 0x6c, 0x49, 0x74, 0x65, 0x6d, 0x5f, 0x52, 0x65, 0x73, 0x70, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( file_pack_pack_msg_proto_rawDescOnce sync.Once file_pack_pack_msg_proto_rawDescData = file_pack_pack_msg_proto_rawDesc ) func file_pack_pack_msg_proto_rawDescGZIP() []byte { file_pack_pack_msg_proto_rawDescOnce.Do(func() { file_pack_pack_msg_proto_rawDescData = protoimpl.X.CompressGZIP(file_pack_pack_msg_proto_rawDescData) }) return file_pack_pack_msg_proto_rawDescData } var file_pack_pack_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 6) var file_pack_pack_msg_proto_goTypes = []interface{}{ (*Pack_Getlist_Req)(nil), // 0: Pack_Getlist_Req (*Pack_Getlist_Resp)(nil), // 1: Pack_Getlist_Resp (*Pack_UseItem_Req)(nil), // 2: Pack_UseItem_Req (*Pack_UseItem_Resp)(nil), // 3: Pack_UseItem_Resp (*Pack_SellItem_Req)(nil), // 4: Pack_SellItem_Req (*Pack_SellItem_Resp)(nil), // 5: Pack_SellItem_Resp (*DB_UserItemData)(nil), // 6: DB_UserItemData } var file_pack_pack_msg_proto_depIdxs = []int32{ 6, // 0: Pack_Getlist_Resp.Grids:type_name -> DB_UserItemData 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_pack_pack_msg_proto_init() } func file_pack_pack_msg_proto_init() { if File_pack_pack_msg_proto != nil { return } file_pack_pack_db_proto_init() if !protoimpl.UnsafeEnabled { file_pack_pack_msg_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Pack_Getlist_Req); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_pack_pack_msg_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Pack_Getlist_Resp); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_pack_pack_msg_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Pack_UseItem_Req); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_pack_pack_msg_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Pack_UseItem_Resp); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_pack_pack_msg_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Pack_SellItem_Req); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_pack_pack_msg_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Pack_SellItem_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_pack_pack_msg_proto_rawDesc, NumEnums: 0, NumMessages: 6, NumExtensions: 0, NumServices: 0, }, GoTypes: file_pack_pack_msg_proto_goTypes, DependencyIndexes: file_pack_pack_msg_proto_depIdxs, MessageInfos: file_pack_pack_msg_proto_msgTypes, }.Build() File_pack_pack_msg_proto = out.File file_pack_pack_msg_proto_rawDesc = nil file_pack_pack_msg_proto_goTypes = nil file_pack_pack_msg_proto_depIdxs = nil }