// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.0 // protoc v3.20.0 // source: reputation/reputation_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 DBReputation struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid" bson:"uid"` //玩家ID Camps map[int32]*Camp `protobuf:"bytes,2,rep,name=camps,proto3" json:"camps" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3" bson:"camps"` //key 阵营id } func (x *DBReputation) Reset() { *x = DBReputation{} if protoimpl.UnsafeEnabled { mi := &file_reputation_reputation_db_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *DBReputation) String() string { return protoimpl.X.MessageStringOf(x) } func (*DBReputation) ProtoMessage() {} func (x *DBReputation) ProtoReflect() protoreflect.Message { mi := &file_reputation_reputation_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 DBReputation.ProtoReflect.Descriptor instead. func (*DBReputation) Descriptor() ([]byte, []int) { return file_reputation_reputation_db_proto_rawDescGZIP(), []int{0} } func (x *DBReputation) GetUid() string { if x != nil { return x.Uid } return "" } func (x *DBReputation) GetCamps() map[int32]*Camp { if x != nil { return x.Camps } return nil } // 阵营 type Camp struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields ReputationLv int32 `protobuf:"varint,1,opt,name=reputationLv,proto3" json:"reputationLv" bson:"reputationLv"` //声望等级 CampAttr *CampAttr `protobuf:"bytes,2,opt,name=campAttr,proto3" json:"campAttr" bson:"campAttr"` // Nodes []*TalentNode `protobuf:"bytes,3,rep,name=nodes,proto3" json:"nodes" bson:"nodes"` //天赋节点 } func (x *Camp) Reset() { *x = Camp{} if protoimpl.UnsafeEnabled { mi := &file_reputation_reputation_db_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *Camp) String() string { return protoimpl.X.MessageStringOf(x) } func (*Camp) ProtoMessage() {} func (x *Camp) ProtoReflect() protoreflect.Message { mi := &file_reputation_reputation_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 Camp.ProtoReflect.Descriptor instead. func (*Camp) Descriptor() ([]byte, []int) { return file_reputation_reputation_db_proto_rawDescGZIP(), []int{1} } func (x *Camp) GetReputationLv() int32 { if x != nil { return x.ReputationLv } return 0 } func (x *Camp) GetCampAttr() *CampAttr { if x != nil { return x.CampAttr } return nil } func (x *Camp) GetNodes() []*TalentNode { if x != nil { return x.Nodes } return nil } // 阵营声望属性 type CampAttr struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Hp int32 `protobuf:"varint,1,opt,name=hp,proto3" json:"hp"` Attack int32 `protobuf:"varint,2,opt,name=attack,proto3" json:"attack"` Defense int32 `protobuf:"varint,3,opt,name=defense,proto3" json:"defense"` HpPer int32 `protobuf:"varint,4,opt,name=hpPer,proto3" json:"hpPer"` } func (x *CampAttr) Reset() { *x = CampAttr{} if protoimpl.UnsafeEnabled { mi := &file_reputation_reputation_db_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *CampAttr) String() string { return protoimpl.X.MessageStringOf(x) } func (*CampAttr) ProtoMessage() {} func (x *CampAttr) ProtoReflect() protoreflect.Message { mi := &file_reputation_reputation_db_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 CampAttr.ProtoReflect.Descriptor instead. func (*CampAttr) Descriptor() ([]byte, []int) { return file_reputation_reputation_db_proto_rawDescGZIP(), []int{2} } func (x *CampAttr) GetHp() int32 { if x != nil { return x.Hp } return 0 } func (x *CampAttr) GetAttack() int32 { if x != nil { return x.Attack } return 0 } func (x *CampAttr) GetDefense() int32 { if x != nil { return x.Defense } return 0 } func (x *CampAttr) GetHpPer() int32 { if x != nil { return x.HpPer } return 0 } // 天赋节点 type TalentNode struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Nid int32 `protobuf:"varint,1,opt,name=nid,proto3" json:"nid" bson:"nid"` //节点ID Lv int32 `protobuf:"varint,2,opt,name=lv,proto3" json:"lv" bson:"lv"` //天赋节点等级 Status int32 `protobuf:"varint,3,opt,name=status,proto3" json:"status" bson:"status"` // 状态 0未升级 1未满级 2满级 } func (x *TalentNode) Reset() { *x = TalentNode{} if protoimpl.UnsafeEnabled { mi := &file_reputation_reputation_db_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *TalentNode) String() string { return protoimpl.X.MessageStringOf(x) } func (*TalentNode) ProtoMessage() {} func (x *TalentNode) ProtoReflect() protoreflect.Message { mi := &file_reputation_reputation_db_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 TalentNode.ProtoReflect.Descriptor instead. func (*TalentNode) Descriptor() ([]byte, []int) { return file_reputation_reputation_db_proto_rawDescGZIP(), []int{3} } func (x *TalentNode) GetNid() int32 { if x != nil { return x.Nid } return 0 } func (x *TalentNode) GetLv() int32 { if x != nil { return x.Lv } return 0 } func (x *TalentNode) GetStatus() int32 { if x != nil { return x.Status } return 0 } var File_reputation_reputation_db_proto protoreflect.FileDescriptor var file_reputation_reputation_db_proto_rawDesc = []byte{ 0x0a, 0x1e, 0x72, 0x65, 0x70, 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x72, 0x65, 0x70, 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x91, 0x01, 0x0a, 0x0c, 0x44, 0x42, 0x52, 0x65, 0x70, 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x2e, 0x0a, 0x05, 0x63, 0x61, 0x6d, 0x70, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x44, 0x42, 0x52, 0x65, 0x70, 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x43, 0x61, 0x6d, 0x70, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x63, 0x61, 0x6d, 0x70, 0x73, 0x1a, 0x3f, 0x0a, 0x0a, 0x43, 0x61, 0x6d, 0x70, 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, 0x1b, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x05, 0x2e, 0x43, 0x61, 0x6d, 0x70, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x74, 0x0a, 0x04, 0x43, 0x61, 0x6d, 0x70, 0x12, 0x22, 0x0a, 0x0c, 0x72, 0x65, 0x70, 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x76, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x72, 0x65, 0x70, 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x76, 0x12, 0x25, 0x0a, 0x08, 0x63, 0x61, 0x6d, 0x70, 0x41, 0x74, 0x74, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x43, 0x61, 0x6d, 0x70, 0x41, 0x74, 0x74, 0x72, 0x52, 0x08, 0x63, 0x61, 0x6d, 0x70, 0x41, 0x74, 0x74, 0x72, 0x12, 0x21, 0x0a, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x54, 0x61, 0x6c, 0x65, 0x6e, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x22, 0x62, 0x0a, 0x08, 0x43, 0x61, 0x6d, 0x70, 0x41, 0x74, 0x74, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x68, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x68, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x74, 0x74, 0x61, 0x63, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x61, 0x74, 0x74, 0x61, 0x63, 0x6b, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x65, 0x66, 0x65, 0x6e, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x64, 0x65, 0x66, 0x65, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x68, 0x70, 0x50, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x68, 0x70, 0x50, 0x65, 0x72, 0x22, 0x46, 0x0a, 0x0a, 0x54, 0x61, 0x6c, 0x65, 0x6e, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6e, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6e, 0x69, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x6c, 0x76, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x6c, 0x76, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( file_reputation_reputation_db_proto_rawDescOnce sync.Once file_reputation_reputation_db_proto_rawDescData = file_reputation_reputation_db_proto_rawDesc ) func file_reputation_reputation_db_proto_rawDescGZIP() []byte { file_reputation_reputation_db_proto_rawDescOnce.Do(func() { file_reputation_reputation_db_proto_rawDescData = protoimpl.X.CompressGZIP(file_reputation_reputation_db_proto_rawDescData) }) return file_reputation_reputation_db_proto_rawDescData } var file_reputation_reputation_db_proto_msgTypes = make([]protoimpl.MessageInfo, 5) var file_reputation_reputation_db_proto_goTypes = []interface{}{ (*DBReputation)(nil), // 0: DBReputation (*Camp)(nil), // 1: Camp (*CampAttr)(nil), // 2: CampAttr (*TalentNode)(nil), // 3: TalentNode nil, // 4: DBReputation.CampsEntry } var file_reputation_reputation_db_proto_depIdxs = []int32{ 4, // 0: DBReputation.camps:type_name -> DBReputation.CampsEntry 2, // 1: Camp.campAttr:type_name -> CampAttr 3, // 2: Camp.nodes:type_name -> TalentNode 1, // 3: DBReputation.CampsEntry.value:type_name -> Camp 4, // [4:4] is the sub-list for method output_type 4, // [4:4] is the sub-list for method input_type 4, // [4:4] is the sub-list for extension type_name 4, // [4:4] is the sub-list for extension extendee 0, // [0:4] is the sub-list for field type_name } func init() { file_reputation_reputation_db_proto_init() } func file_reputation_reputation_db_proto_init() { if File_reputation_reputation_db_proto != nil { return } if !protoimpl.UnsafeEnabled { file_reputation_reputation_db_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DBReputation); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_reputation_reputation_db_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Camp); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_reputation_reputation_db_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CampAttr); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_reputation_reputation_db_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TalentNode); 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_reputation_reputation_db_proto_rawDesc, NumEnums: 0, NumMessages: 5, NumExtensions: 0, NumServices: 0, }, GoTypes: file_reputation_reputation_db_proto_goTypes, DependencyIndexes: file_reputation_reputation_db_proto_depIdxs, MessageInfos: file_reputation_reputation_db_proto_msgTypes, }.Build() File_reputation_reputation_db_proto = out.File file_reputation_reputation_db_proto_rawDesc = nil file_reputation_reputation_db_proto_goTypes = nil file_reputation_reputation_db_proto_depIdxs = nil }