// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.0 // protoc v3.20.0 // source: 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 QueryUserPackReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields IType int32 `protobuf:"varint,1,opt,name=IType,proto3" json:"IType,omitempty"` } func (x *QueryUserPackReq) Reset() { *x = QueryUserPackReq{} if protoimpl.UnsafeEnabled { mi := &file_pack_msg_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *QueryUserPackReq) String() string { return protoimpl.X.MessageStringOf(x) } func (*QueryUserPackReq) ProtoMessage() {} func (x *QueryUserPackReq) ProtoReflect() protoreflect.Message { mi := &file_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 QueryUserPackReq.ProtoReflect.Descriptor instead. func (*QueryUserPackReq) Descriptor() ([]byte, []int) { return file_pack_msg_proto_rawDescGZIP(), []int{0} } func (x *QueryUserPackReq) GetIType() int32 { if x != nil { return x.IType } return 0 } //查询用户背包请求 回应 type QueryUserPackResp struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Grids []*DB_GridData `protobuf:"bytes,1,rep,name=Grids,proto3" json:"Grids,omitempty"` } func (x *QueryUserPackResp) Reset() { *x = QueryUserPackResp{} if protoimpl.UnsafeEnabled { mi := &file_pack_msg_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *QueryUserPackResp) String() string { return protoimpl.X.MessageStringOf(x) } func (*QueryUserPackResp) ProtoMessage() {} func (x *QueryUserPackResp) ProtoReflect() protoreflect.Message { mi := &file_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 QueryUserPackResp.ProtoReflect.Descriptor instead. func (*QueryUserPackResp) Descriptor() ([]byte, []int) { return file_pack_msg_proto_rawDescGZIP(), []int{1} } func (x *QueryUserPackResp) GetGrids() []*DB_GridData { if x != nil { return x.Grids } return nil } //使用物品请求 type UseItemReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields GridId int32 `protobuf:"varint,1,opt,name=GridId,proto3" json:"GridId,omitempty"` //格子Id ItemId int32 `protobuf:"varint,2,opt,name=ItemId,proto3" json:"ItemId,omitempty"` //物品Id Amount uint32 `protobuf:"varint,3,opt,name=Amount,proto3" json:"Amount,omitempty"` //使用数量 } func (x *UseItemReq) Reset() { *x = UseItemReq{} if protoimpl.UnsafeEnabled { mi := &file_pack_msg_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *UseItemReq) String() string { return protoimpl.X.MessageStringOf(x) } func (*UseItemReq) ProtoMessage() {} func (x *UseItemReq) ProtoReflect() protoreflect.Message { mi := &file_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 UseItemReq.ProtoReflect.Descriptor instead. func (*UseItemReq) Descriptor() ([]byte, []int) { return file_pack_msg_proto_rawDescGZIP(), []int{2} } func (x *UseItemReq) GetGridId() int32 { if x != nil { return x.GridId } return 0 } func (x *UseItemReq) GetItemId() int32 { if x != nil { return x.ItemId } return 0 } func (x *UseItemReq) GetAmount() uint32 { if x != nil { return x.Amount } return 0 } //使用物品请求 回应 type UseItemResp struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } func (x *UseItemResp) Reset() { *x = UseItemResp{} if protoimpl.UnsafeEnabled { mi := &file_pack_msg_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *UseItemResp) String() string { return protoimpl.X.MessageStringOf(x) } func (*UseItemResp) ProtoMessage() {} func (x *UseItemResp) ProtoReflect() protoreflect.Message { mi := &file_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 UseItemResp.ProtoReflect.Descriptor instead. func (*UseItemResp) Descriptor() ([]byte, []int) { return file_pack_msg_proto_rawDescGZIP(), []int{3} } //出售道具请求 type SellItemReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields GridId int32 `protobuf:"varint,1,opt,name=GridId,proto3" json:"GridId,omitempty"` //格子Id ItemId int32 `protobuf:"varint,2,opt,name=ItemId,proto3" json:"ItemId,omitempty"` //物品Id Amount uint32 `protobuf:"varint,3,opt,name=Amount,proto3" json:"Amount,omitempty"` //使用数量 } func (x *SellItemReq) Reset() { *x = SellItemReq{} if protoimpl.UnsafeEnabled { mi := &file_pack_msg_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *SellItemReq) String() string { return protoimpl.X.MessageStringOf(x) } func (*SellItemReq) ProtoMessage() {} func (x *SellItemReq) ProtoReflect() protoreflect.Message { mi := &file_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 SellItemReq.ProtoReflect.Descriptor instead. func (*SellItemReq) Descriptor() ([]byte, []int) { return file_pack_msg_proto_rawDescGZIP(), []int{4} } func (x *SellItemReq) GetGridId() int32 { if x != nil { return x.GridId } return 0 } func (x *SellItemReq) GetItemId() int32 { if x != nil { return x.ItemId } return 0 } func (x *SellItemReq) GetAmount() uint32 { if x != nil { return x.Amount } return 0 } //出售道具请求 回应 type SellItemResp struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } func (x *SellItemResp) Reset() { *x = SellItemResp{} if protoimpl.UnsafeEnabled { mi := &file_pack_msg_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *SellItemResp) String() string { return protoimpl.X.MessageStringOf(x) } func (*SellItemResp) ProtoMessage() {} func (x *SellItemResp) ProtoReflect() protoreflect.Message { mi := &file_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 SellItemResp.ProtoReflect.Descriptor instead. func (*SellItemResp) Descriptor() ([]byte, []int) { return file_pack_msg_proto_rawDescGZIP(), []int{5} } var File_pack_msg_proto protoreflect.FileDescriptor var file_pack_msg_proto_rawDesc = []byte{ 0x0a, 0x0e, 0x70, 0x61, 0x63, 0x6b, 0x5f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0d, 0x70, 0x61, 0x63, 0x6b, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x28, 0x0a, 0x10, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x73, 0x65, 0x72, 0x50, 0x61, 0x63, 0x6b, 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, 0x37, 0x0a, 0x11, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x73, 0x65, 0x72, 0x50, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x12, 0x22, 0x0a, 0x05, 0x47, 0x72, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x44, 0x42, 0x5f, 0x47, 0x72, 0x69, 0x64, 0x44, 0x61, 0x74, 0x61, 0x52, 0x05, 0x47, 0x72, 0x69, 0x64, 0x73, 0x22, 0x54, 0x0a, 0x0a, 0x55, 0x73, 0x65, 0x49, 0x74, 0x65, 0x6d, 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, 0x0d, 0x0a, 0x0b, 0x55, 0x73, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x22, 0x55, 0x0a, 0x0b, 0x53, 0x65, 0x6c, 0x6c, 0x49, 0x74, 0x65, 0x6d, 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, 0x0e, 0x0a, 0x0c, 0x53, 0x65, 0x6c, 0x6c, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( file_pack_msg_proto_rawDescOnce sync.Once file_pack_msg_proto_rawDescData = file_pack_msg_proto_rawDesc ) func file_pack_msg_proto_rawDescGZIP() []byte { file_pack_msg_proto_rawDescOnce.Do(func() { file_pack_msg_proto_rawDescData = protoimpl.X.CompressGZIP(file_pack_msg_proto_rawDescData) }) return file_pack_msg_proto_rawDescData } var file_pack_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 6) var file_pack_msg_proto_goTypes = []interface{}{ (*QueryUserPackReq)(nil), // 0: QueryUserPackReq (*QueryUserPackResp)(nil), // 1: QueryUserPackResp (*UseItemReq)(nil), // 2: UseItemReq (*UseItemResp)(nil), // 3: UseItemResp (*SellItemReq)(nil), // 4: SellItemReq (*SellItemResp)(nil), // 5: SellItemResp (*DB_GridData)(nil), // 6: DB_GridData } var file_pack_msg_proto_depIdxs = []int32{ 6, // 0: QueryUserPackResp.Grids:type_name -> DB_GridData 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_msg_proto_init() } func file_pack_msg_proto_init() { if File_pack_msg_proto != nil { return } file_pack_db_proto_init() if !protoimpl.UnsafeEnabled { file_pack_msg_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryUserPackReq); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_pack_msg_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryUserPackResp); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_pack_msg_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UseItemReq); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_pack_msg_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UseItemResp); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_pack_msg_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SellItemReq); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_pack_msg_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SellItemResp); 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_msg_proto_rawDesc, NumEnums: 0, NumMessages: 6, NumExtensions: 0, NumServices: 0, }, GoTypes: file_pack_msg_proto_goTypes, DependencyIndexes: file_pack_msg_proto_depIdxs, MessageInfos: file_pack_msg_proto_msgTypes, }.Build() File_pack_msg_proto = out.File file_pack_msg_proto_rawDesc = nil file_pack_msg_proto_goTypes = nil file_pack_msg_proto_depIdxs = nil }