// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.0 // protoc v3.20.0 // source: items/items_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 ItemsGetlistReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields IType int32 `protobuf:"varint,1,opt,name=IType,proto3" json:"IType"` //道具类型 } func (x *ItemsGetlistReq) Reset() { *x = ItemsGetlistReq{} if protoimpl.UnsafeEnabled { mi := &file_items_items_msg_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ItemsGetlistReq) String() string { return protoimpl.X.MessageStringOf(x) } func (*ItemsGetlistReq) ProtoMessage() {} func (x *ItemsGetlistReq) ProtoReflect() protoreflect.Message { mi := &file_items_items_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 ItemsGetlistReq.ProtoReflect.Descriptor instead. func (*ItemsGetlistReq) Descriptor() ([]byte, []int) { return file_items_items_msg_proto_rawDescGZIP(), []int{0} } func (x *ItemsGetlistReq) GetIType() int32 { if x != nil { return x.IType } return 0 } //查询用户背包请求 回应 type ItemsGetlistResp struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Grids []*DB_UserItemData `protobuf:"bytes,1,rep,name=Grids,proto3" json:"Grids"` //用户背包列表 } func (x *ItemsGetlistResp) Reset() { *x = ItemsGetlistResp{} if protoimpl.UnsafeEnabled { mi := &file_items_items_msg_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ItemsGetlistResp) String() string { return protoimpl.X.MessageStringOf(x) } func (*ItemsGetlistResp) ProtoMessage() {} func (x *ItemsGetlistResp) ProtoReflect() protoreflect.Message { mi := &file_items_items_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 ItemsGetlistResp.ProtoReflect.Descriptor instead. func (*ItemsGetlistResp) Descriptor() ([]byte, []int) { return file_items_items_msg_proto_rawDescGZIP(), []int{1} } func (x *ItemsGetlistResp) GetGrids() []*DB_UserItemData { if x != nil { return x.Grids } return nil } //背包变化推送 type ItemsChangePush struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Grids []*DB_UserItemData `protobuf:"bytes,1,rep,name=Grids,proto3" json:"Grids"` //变化数据 } func (x *ItemsChangePush) Reset() { *x = ItemsChangePush{} if protoimpl.UnsafeEnabled { mi := &file_items_items_msg_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ItemsChangePush) String() string { return protoimpl.X.MessageStringOf(x) } func (*ItemsChangePush) ProtoMessage() {} func (x *ItemsChangePush) ProtoReflect() protoreflect.Message { mi := &file_items_items_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 ItemsChangePush.ProtoReflect.Descriptor instead. func (*ItemsChangePush) Descriptor() ([]byte, []int) { return file_items_items_msg_proto_rawDescGZIP(), []int{2} } func (x *ItemsChangePush) GetGrids() []*DB_UserItemData { if x != nil { return x.Grids } return nil } //使用物品请求 type ItemsUseItemReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields GridId string `protobuf:"bytes,1,opt,name=GridId,proto3" json:"GridId"` //格子Id Amount uint32 `protobuf:"varint,2,opt,name=Amount,proto3" json:"Amount"` //使用数量 Select int32 `protobuf:"varint,3,opt,name=Select,proto3" json:"Select"` //选择下标 } func (x *ItemsUseItemReq) Reset() { *x = ItemsUseItemReq{} if protoimpl.UnsafeEnabled { mi := &file_items_items_msg_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ItemsUseItemReq) String() string { return protoimpl.X.MessageStringOf(x) } func (*ItemsUseItemReq) ProtoMessage() {} func (x *ItemsUseItemReq) ProtoReflect() protoreflect.Message { mi := &file_items_items_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 ItemsUseItemReq.ProtoReflect.Descriptor instead. func (*ItemsUseItemReq) Descriptor() ([]byte, []int) { return file_items_items_msg_proto_rawDescGZIP(), []int{3} } func (x *ItemsUseItemReq) GetGridId() string { if x != nil { return x.GridId } return "" } func (x *ItemsUseItemReq) GetAmount() uint32 { if x != nil { return x.Amount } return 0 } func (x *ItemsUseItemReq) GetSelect() int32 { if x != nil { return x.Select } return 0 } //使用物品请求 回应 type ItemsUseItemResp struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields GridId string `protobuf:"bytes,1,opt,name=GridId,proto3" json:"GridId"` //格子Id Amount uint32 `protobuf:"varint,2,opt,name=Amount,proto3" json:"Amount"` //使用数量 Issucc bool `protobuf:"varint,3,opt,name=issucc,proto3" json:"issucc"` //是否成功 } func (x *ItemsUseItemResp) Reset() { *x = ItemsUseItemResp{} if protoimpl.UnsafeEnabled { mi := &file_items_items_msg_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ItemsUseItemResp) String() string { return protoimpl.X.MessageStringOf(x) } func (*ItemsUseItemResp) ProtoMessage() {} func (x *ItemsUseItemResp) ProtoReflect() protoreflect.Message { mi := &file_items_items_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 ItemsUseItemResp.ProtoReflect.Descriptor instead. func (*ItemsUseItemResp) Descriptor() ([]byte, []int) { return file_items_items_msg_proto_rawDescGZIP(), []int{4} } func (x *ItemsUseItemResp) GetGridId() string { if x != nil { return x.GridId } return "" } func (x *ItemsUseItemResp) GetAmount() uint32 { if x != nil { return x.Amount } return 0 } func (x *ItemsUseItemResp) GetIssucc() bool { if x != nil { return x.Issucc } return false } //出售道具请求sailitem type ItemsSellItemReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields GridId string `protobuf:"bytes,1,opt,name=GridId,proto3" json:"GridId"` //格子Id ItemId string `protobuf:"bytes,2,opt,name=ItemId,proto3" json:"ItemId"` //物品Id Amount uint32 `protobuf:"varint,3,opt,name=Amount,proto3" json:"Amount"` //使用数量 } func (x *ItemsSellItemReq) Reset() { *x = ItemsSellItemReq{} if protoimpl.UnsafeEnabled { mi := &file_items_items_msg_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ItemsSellItemReq) String() string { return protoimpl.X.MessageStringOf(x) } func (*ItemsSellItemReq) ProtoMessage() {} func (x *ItemsSellItemReq) ProtoReflect() protoreflect.Message { mi := &file_items_items_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 ItemsSellItemReq.ProtoReflect.Descriptor instead. func (*ItemsSellItemReq) Descriptor() ([]byte, []int) { return file_items_items_msg_proto_rawDescGZIP(), []int{5} } func (x *ItemsSellItemReq) GetGridId() string { if x != nil { return x.GridId } return "" } func (x *ItemsSellItemReq) GetItemId() string { if x != nil { return x.ItemId } return "" } func (x *ItemsSellItemReq) GetAmount() uint32 { if x != nil { return x.Amount } return 0 } //出售道具请求 回应 type ItemsSellItemResp struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields GridId string `protobuf:"bytes,1,opt,name=GridId,proto3" json:"GridId"` //格子Id Amount uint32 `protobuf:"varint,2,opt,name=Amount,proto3" json:"Amount"` //使用数量 Issucc bool `protobuf:"varint,3,opt,name=issucc,proto3" json:"issucc"` //是否成功 } func (x *ItemsSellItemResp) Reset() { *x = ItemsSellItemResp{} if protoimpl.UnsafeEnabled { mi := &file_items_items_msg_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ItemsSellItemResp) String() string { return protoimpl.X.MessageStringOf(x) } func (*ItemsSellItemResp) ProtoMessage() {} func (x *ItemsSellItemResp) ProtoReflect() protoreflect.Message { mi := &file_items_items_msg_proto_msgTypes[6] 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 ItemsSellItemResp.ProtoReflect.Descriptor instead. func (*ItemsSellItemResp) Descriptor() ([]byte, []int) { return file_items_items_msg_proto_rawDescGZIP(), []int{6} } func (x *ItemsSellItemResp) GetGridId() string { if x != nil { return x.GridId } return "" } func (x *ItemsSellItemResp) GetAmount() uint32 { if x != nil { return x.Amount } return 0 } func (x *ItemsSellItemResp) GetIssucc() bool { if x != nil { return x.Issucc } return false } var File_items_items_msg_proto protoreflect.FileDescriptor var file_items_items_msg_proto_rawDesc = []byte{ 0x0a, 0x15, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x2f, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x5f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x2f, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x27, 0x0a, 0x0f, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x47, 0x65, 0x74, 0x6c, 0x69, 0x73, 0x74, 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, 0x3a, 0x0a, 0x10, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x47, 0x65, 0x74, 0x6c, 0x69, 0x73, 0x74, 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, 0x39, 0x0a, 0x0f, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x75, 0x73, 0x68, 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, 0x59, 0x0a, 0x0f, 0x49, 0x74, 0x65, 0x6d, 0x73, 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, 0x09, 0x52, 0x06, 0x47, 0x72, 0x69, 0x64, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x22, 0x5a, 0x0a, 0x10, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x55, 0x73, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x47, 0x72, 0x69, 0x64, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x47, 0x72, 0x69, 0x64, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x73, 0x73, 0x75, 0x63, 0x63, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x69, 0x73, 0x73, 0x75, 0x63, 0x63, 0x22, 0x5a, 0x0a, 0x10, 0x49, 0x74, 0x65, 0x6d, 0x73, 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, 0x09, 0x52, 0x06, 0x47, 0x72, 0x69, 0x64, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x49, 0x74, 0x65, 0x6d, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 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, 0x5b, 0x0a, 0x11, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x53, 0x65, 0x6c, 0x6c, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x47, 0x72, 0x69, 0x64, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x47, 0x72, 0x69, 0x64, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x73, 0x73, 0x75, 0x63, 0x63, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x69, 0x73, 0x73, 0x75, 0x63, 0x63, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( file_items_items_msg_proto_rawDescOnce sync.Once file_items_items_msg_proto_rawDescData = file_items_items_msg_proto_rawDesc ) func file_items_items_msg_proto_rawDescGZIP() []byte { file_items_items_msg_proto_rawDescOnce.Do(func() { file_items_items_msg_proto_rawDescData = protoimpl.X.CompressGZIP(file_items_items_msg_proto_rawDescData) }) return file_items_items_msg_proto_rawDescData } var file_items_items_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 7) var file_items_items_msg_proto_goTypes = []interface{}{ (*ItemsGetlistReq)(nil), // 0: ItemsGetlistReq (*ItemsGetlistResp)(nil), // 1: ItemsGetlistResp (*ItemsChangePush)(nil), // 2: ItemsChangePush (*ItemsUseItemReq)(nil), // 3: ItemsUseItemReq (*ItemsUseItemResp)(nil), // 4: ItemsUseItemResp (*ItemsSellItemReq)(nil), // 5: ItemsSellItemReq (*ItemsSellItemResp)(nil), // 6: ItemsSellItemResp (*DB_UserItemData)(nil), // 7: DB_UserItemData } var file_items_items_msg_proto_depIdxs = []int32{ 7, // 0: ItemsGetlistResp.Grids:type_name -> DB_UserItemData 7, // 1: ItemsChangePush.Grids:type_name -> DB_UserItemData 2, // [2:2] is the sub-list for method output_type 2, // [2:2] is the sub-list for method input_type 2, // [2:2] is the sub-list for extension type_name 2, // [2:2] is the sub-list for extension extendee 0, // [0:2] is the sub-list for field type_name } func init() { file_items_items_msg_proto_init() } func file_items_items_msg_proto_init() { if File_items_items_msg_proto != nil { return } file_items_items_db_proto_init() if !protoimpl.UnsafeEnabled { file_items_items_msg_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ItemsGetlistReq); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_items_items_msg_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ItemsGetlistResp); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_items_items_msg_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ItemsChangePush); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_items_items_msg_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ItemsUseItemReq); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_items_items_msg_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ItemsUseItemResp); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_items_items_msg_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ItemsSellItemReq); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_items_items_msg_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ItemsSellItemResp); 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_items_items_msg_proto_rawDesc, NumEnums: 0, NumMessages: 7, NumExtensions: 0, NumServices: 0, }, GoTypes: file_items_items_msg_proto_goTypes, DependencyIndexes: file_items_items_msg_proto_depIdxs, MessageInfos: file_items_items_msg_proto_msgTypes, }.Build() File_items_items_msg_proto = out.File file_items_items_msg_proto_rawDesc = nil file_items_items_msg_proto_goTypes = nil file_items_items_msg_proto_depIdxs = nil }