256 lines
7.6 KiB
Go
256 lines
7.6 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.28.0
|
|
// protoc v3.20.0
|
|
// source: pack_db.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 DB_GridData struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
GridId int32 `protobuf:"varint,1,opt,name=GridId,proto3" json:"GridId,omitempty"` //背包格子Id 所在背包数组的下表
|
|
IsEmpty bool `protobuf:"varint,2,opt,name=IsEmpty,proto3" json:"IsEmpty,omitempty"` //是否是空格子
|
|
ItemId int32 `protobuf:"varint,3,opt,name=ItemId,proto3" json:"ItemId,omitempty"` //存放物品的Id
|
|
Amount uint32 `protobuf:"varint,4,opt,name=Amount,proto3" json:"Amount,omitempty"` //存放物品的数量
|
|
IsNewItem bool `protobuf:"varint,5,opt,name=IsNewItem,proto3" json:"IsNewItem,omitempty"` //是否是新的
|
|
}
|
|
|
|
func (x *DB_GridData) Reset() {
|
|
*x = DB_GridData{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_pack_db_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *DB_GridData) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DB_GridData) ProtoMessage() {}
|
|
|
|
func (x *DB_GridData) ProtoReflect() protoreflect.Message {
|
|
mi := &file_pack_db_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 DB_GridData.ProtoReflect.Descriptor instead.
|
|
func (*DB_GridData) Descriptor() ([]byte, []int) {
|
|
return file_pack_db_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *DB_GridData) GetGridId() int32 {
|
|
if x != nil {
|
|
return x.GridId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *DB_GridData) GetIsEmpty() bool {
|
|
if x != nil {
|
|
return x.IsEmpty
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *DB_GridData) GetItemId() int32 {
|
|
if x != nil {
|
|
return x.ItemId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *DB_GridData) GetAmount() uint32 {
|
|
if x != nil {
|
|
return x.Amount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *DB_GridData) GetIsNewItem() bool {
|
|
if x != nil {
|
|
return x.IsNewItem
|
|
}
|
|
return false
|
|
}
|
|
|
|
//用户背包
|
|
type DB_UserPackData struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
UserId string `protobuf:"bytes,1,opt,name=UserId,proto3" json:"UserId,omitempty" bson:"_id"` //tags:{bson:"_id"}用户Id
|
|
Pack []*DB_GridData `protobuf:"bytes,2,rep,name=Pack,proto3" json:"Pack,omitempty"` //背包列表
|
|
}
|
|
|
|
func (x *DB_UserPackData) Reset() {
|
|
*x = DB_UserPackData{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_pack_db_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *DB_UserPackData) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DB_UserPackData) ProtoMessage() {}
|
|
|
|
func (x *DB_UserPackData) ProtoReflect() protoreflect.Message {
|
|
mi := &file_pack_db_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 DB_UserPackData.ProtoReflect.Descriptor instead.
|
|
func (*DB_UserPackData) Descriptor() ([]byte, []int) {
|
|
return file_pack_db_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *DB_UserPackData) GetUserId() string {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DB_UserPackData) GetPack() []*DB_GridData {
|
|
if x != nil {
|
|
return x.Pack
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_pack_db_proto protoreflect.FileDescriptor
|
|
|
|
var file_pack_db_proto_rawDesc = []byte{
|
|
0x0a, 0x0d, 0x70, 0x61, 0x63, 0x6b, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
|
|
0x8d, 0x01, 0x0a, 0x0b, 0x44, 0x42, 0x5f, 0x47, 0x72, 0x69, 0x64, 0x44, 0x61, 0x74, 0x61, 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, 0x18, 0x0a, 0x07, 0x49, 0x73, 0x45, 0x6d, 0x70,
|
|
0x74, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x49, 0x73, 0x45, 0x6d, 0x70, 0x74,
|
|
0x79, 0x12, 0x16, 0x0a, 0x06, 0x49, 0x74, 0x65, 0x6d, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28,
|
|
0x05, 0x52, 0x06, 0x49, 0x74, 0x65, 0x6d, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x41, 0x6d, 0x6f,
|
|
0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x41, 0x6d, 0x6f, 0x75, 0x6e,
|
|
0x74, 0x12, 0x1c, 0x0a, 0x09, 0x49, 0x73, 0x4e, 0x65, 0x77, 0x49, 0x74, 0x65, 0x6d, 0x18, 0x05,
|
|
0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x49, 0x73, 0x4e, 0x65, 0x77, 0x49, 0x74, 0x65, 0x6d, 0x22,
|
|
0x4b, 0x0a, 0x0f, 0x44, 0x42, 0x5f, 0x55, 0x73, 0x65, 0x72, 0x50, 0x61, 0x63, 0x6b, 0x44, 0x61,
|
|
0x74, 0x61, 0x12, 0x16, 0x0a, 0x06, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01,
|
|
0x28, 0x09, 0x52, 0x06, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x04, 0x50, 0x61,
|
|
0x63, 0x6b, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x44, 0x42, 0x5f, 0x47, 0x72,
|
|
0x69, 0x64, 0x44, 0x61, 0x74, 0x61, 0x52, 0x04, 0x50, 0x61, 0x63, 0x6b, 0x42, 0x06, 0x5a, 0x04,
|
|
0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
}
|
|
|
|
var (
|
|
file_pack_db_proto_rawDescOnce sync.Once
|
|
file_pack_db_proto_rawDescData = file_pack_db_proto_rawDesc
|
|
)
|
|
|
|
func file_pack_db_proto_rawDescGZIP() []byte {
|
|
file_pack_db_proto_rawDescOnce.Do(func() {
|
|
file_pack_db_proto_rawDescData = protoimpl.X.CompressGZIP(file_pack_db_proto_rawDescData)
|
|
})
|
|
return file_pack_db_proto_rawDescData
|
|
}
|
|
|
|
var file_pack_db_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
|
var file_pack_db_proto_goTypes = []interface{}{
|
|
(*DB_GridData)(nil), // 0: DB_GridData
|
|
(*DB_UserPackData)(nil), // 1: DB_UserPackData
|
|
}
|
|
var file_pack_db_proto_depIdxs = []int32{
|
|
0, // 0: DB_UserPackData.Pack: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_db_proto_init() }
|
|
func file_pack_db_proto_init() {
|
|
if File_pack_db_proto != nil {
|
|
return
|
|
}
|
|
if !protoimpl.UnsafeEnabled {
|
|
file_pack_db_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*DB_GridData); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_pack_db_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*DB_UserPackData); 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_db_proto_rawDesc,
|
|
NumEnums: 0,
|
|
NumMessages: 2,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_pack_db_proto_goTypes,
|
|
DependencyIndexes: file_pack_db_proto_depIdxs,
|
|
MessageInfos: file_pack_db_proto_msgTypes,
|
|
}.Build()
|
|
File_pack_db_proto = out.File
|
|
file_pack_db_proto_rawDesc = nil
|
|
file_pack_db_proto_goTypes = nil
|
|
file_pack_db_proto_depIdxs = nil
|
|
}
|