// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.28.0
// 	protoc        v3.20.0
// source: pvp/pvp_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)
)

//Pvp类型
type PvpType int32

const (
	PvpType_friends PvpType = 0 //好友切磋
)

// Enum value maps for PvpType.
var (
	PvpType_name = map[int32]string{
		0: "friends",
	}
	PvpType_value = map[string]int32{
		"friends": 0,
	}
)

func (x PvpType) Enum() *PvpType {
	p := new(PvpType)
	*p = x
	return p
}

func (x PvpType) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (PvpType) Descriptor() protoreflect.EnumDescriptor {
	return file_pvp_pvp_db_proto_enumTypes[0].Descriptor()
}

func (PvpType) Type() protoreflect.EnumType {
	return &file_pvp_pvp_db_proto_enumTypes[0]
}

func (x PvpType) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use PvpType.Descriptor instead.
func (PvpType) EnumDescriptor() ([]byte, []int) {
	return file_pvp_pvp_db_proto_rawDescGZIP(), []int{0}
}

type PvpState int32

const (
	PvpState_void   PvpState = 0 //无效状态
	PvpState_ready  PvpState = 1 //准备中
	PvpState_battle PvpState = 2 //战斗中
	PvpState_cancel PvpState = 3 //战斗取消
	PvpState_finish PvpState = 4 //战斗结束
)

// Enum value maps for PvpState.
var (
	PvpState_name = map[int32]string{
		0: "void",
		1: "ready",
		2: "battle",
		3: "cancel",
		4: "finish",
	}
	PvpState_value = map[string]int32{
		"void":   0,
		"ready":  1,
		"battle": 2,
		"cancel": 3,
		"finish": 4,
	}
)

func (x PvpState) Enum() *PvpState {
	p := new(PvpState)
	*p = x
	return p
}

func (x PvpState) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (PvpState) Descriptor() protoreflect.EnumDescriptor {
	return file_pvp_pvp_db_proto_enumTypes[1].Descriptor()
}

func (PvpState) Type() protoreflect.EnumType {
	return &file_pvp_pvp_db_proto_enumTypes[1]
}

func (x PvpState) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use PvpState.Descriptor instead.
func (PvpState) EnumDescriptor() ([]byte, []int) {
	return file_pvp_pvp_db_proto_rawDescGZIP(), []int{1}
}

type PvpUserInfo struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	Uid    string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid"`
	Name   string `protobuf:"bytes,2,opt,name=name,proto3" json:"name"`
	Avatar string `protobuf:"bytes,3,opt,name=avatar,proto3" json:"avatar"`
	Lv     int32  `protobuf:"varint,4,opt,name=lv,proto3" json:"lv"`
}

func (x *PvpUserInfo) Reset() {
	*x = PvpUserInfo{}
	if protoimpl.UnsafeEnabled {
		mi := &file_pvp_pvp_db_proto_msgTypes[0]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *PvpUserInfo) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*PvpUserInfo) ProtoMessage() {}

func (x *PvpUserInfo) ProtoReflect() protoreflect.Message {
	mi := &file_pvp_pvp_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 PvpUserInfo.ProtoReflect.Descriptor instead.
func (*PvpUserInfo) Descriptor() ([]byte, []int) {
	return file_pvp_pvp_db_proto_rawDescGZIP(), []int{0}
}

func (x *PvpUserInfo) GetUid() string {
	if x != nil {
		return x.Uid
	}
	return ""
}

func (x *PvpUserInfo) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

func (x *PvpUserInfo) GetAvatar() string {
	if x != nil {
		return x.Avatar
	}
	return ""
}

func (x *PvpUserInfo) GetLv() int32 {
	if x != nil {
		return x.Lv
	}
	return 0
}

type DBPvpBattle struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	Id          string       `protobuf:"bytes,1,opt,name=id,proto3" json:"id"`                      //战斗id
	ServicePath string       `protobuf:"bytes,2,opt,name=servicePath,proto3" json:"servicePath"`    //战斗区服地址
	Ptype       PvpType      `protobuf:"varint,3,opt,name=ptype,proto3,enum=PvpType" json:"ptype"`  //pvp类型
	State       PvpState     `protobuf:"varint,4,opt,name=state,proto3,enum=PvpState" json:"state"` //战斗状态
	Red         *PvpUserInfo `protobuf:"bytes,5,opt,name=red,proto3" json:"red"`                    //红方id
	Blue        *PvpUserInfo `protobuf:"bytes,6,opt,name=blue,proto3" json:"blue"`                  //红方id
}

func (x *DBPvpBattle) Reset() {
	*x = DBPvpBattle{}
	if protoimpl.UnsafeEnabled {
		mi := &file_pvp_pvp_db_proto_msgTypes[1]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *DBPvpBattle) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*DBPvpBattle) ProtoMessage() {}

func (x *DBPvpBattle) ProtoReflect() protoreflect.Message {
	mi := &file_pvp_pvp_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 DBPvpBattle.ProtoReflect.Descriptor instead.
func (*DBPvpBattle) Descriptor() ([]byte, []int) {
	return file_pvp_pvp_db_proto_rawDescGZIP(), []int{1}
}

func (x *DBPvpBattle) GetId() string {
	if x != nil {
		return x.Id
	}
	return ""
}

func (x *DBPvpBattle) GetServicePath() string {
	if x != nil {
		return x.ServicePath
	}
	return ""
}

func (x *DBPvpBattle) GetPtype() PvpType {
	if x != nil {
		return x.Ptype
	}
	return PvpType_friends
}

func (x *DBPvpBattle) GetState() PvpState {
	if x != nil {
		return x.State
	}
	return PvpState_void
}

func (x *DBPvpBattle) GetRed() *PvpUserInfo {
	if x != nil {
		return x.Red
	}
	return nil
}

func (x *DBPvpBattle) GetBlue() *PvpUserInfo {
	if x != nil {
		return x.Blue
	}
	return nil
}

var File_pvp_pvp_db_proto protoreflect.FileDescriptor

var file_pvp_pvp_db_proto_rawDesc = []byte{
	0x0a, 0x10, 0x70, 0x76, 0x70, 0x2f, 0x70, 0x76, 0x70, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f,
	0x74, 0x6f, 0x22, 0x5b, 0x0a, 0x0b, 0x50, 0x76, 0x70, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66,
	0x6f, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,
	0x75, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
	0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61,
	0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x12,
	0x0e, 0x0a, 0x02, 0x6c, 0x76, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x6c, 0x76, 0x22,
	0xc2, 0x01, 0x0a, 0x0b, 0x44, 0x42, 0x50, 0x76, 0x70, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x12,
	0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12,
	0x20, 0x0a, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x61, 0x74, 0x68, 0x18, 0x02,
	0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x61, 0x74,
	0x68, 0x12, 0x1e, 0x0a, 0x05, 0x70, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e,
	0x32, 0x08, 0x2e, 0x50, 0x76, 0x70, 0x54, 0x79, 0x70, 0x65, 0x52, 0x05, 0x70, 0x74, 0x79, 0x70,
	0x65, 0x12, 0x1f, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e,
	0x32, 0x09, 0x2e, 0x50, 0x76, 0x70, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61,
	0x74, 0x65, 0x12, 0x1e, 0x0a, 0x03, 0x72, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32,
	0x0c, 0x2e, 0x50, 0x76, 0x70, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x03, 0x72,
	0x65, 0x64, 0x12, 0x20, 0x0a, 0x04, 0x62, 0x6c, 0x75, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b,
	0x32, 0x0c, 0x2e, 0x50, 0x76, 0x70, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04,
	0x62, 0x6c, 0x75, 0x65, 0x2a, 0x16, 0x0a, 0x07, 0x50, 0x76, 0x70, 0x54, 0x79, 0x70, 0x65, 0x12,
	0x0b, 0x0a, 0x07, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x73, 0x10, 0x00, 0x2a, 0x43, 0x0a, 0x08,
	0x50, 0x76, 0x70, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x08, 0x0a, 0x04, 0x76, 0x6f, 0x69, 0x64,
	0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x72, 0x65, 0x61, 0x64, 0x79, 0x10, 0x01, 0x12, 0x0a, 0x0a,
	0x06, 0x62, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x63, 0x61, 0x6e,
	0x63, 0x65, 0x6c, 0x10, 0x03, 0x12, 0x0a, 0x0a, 0x06, 0x66, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x10,
	0x04, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
	0x33,
}

var (
	file_pvp_pvp_db_proto_rawDescOnce sync.Once
	file_pvp_pvp_db_proto_rawDescData = file_pvp_pvp_db_proto_rawDesc
)

func file_pvp_pvp_db_proto_rawDescGZIP() []byte {
	file_pvp_pvp_db_proto_rawDescOnce.Do(func() {
		file_pvp_pvp_db_proto_rawDescData = protoimpl.X.CompressGZIP(file_pvp_pvp_db_proto_rawDescData)
	})
	return file_pvp_pvp_db_proto_rawDescData
}

var file_pvp_pvp_db_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_pvp_pvp_db_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_pvp_pvp_db_proto_goTypes = []interface{}{
	(PvpType)(0),        // 0: PvpType
	(PvpState)(0),       // 1: PvpState
	(*PvpUserInfo)(nil), // 2: PvpUserInfo
	(*DBPvpBattle)(nil), // 3: DBPvpBattle
}
var file_pvp_pvp_db_proto_depIdxs = []int32{
	0, // 0: DBPvpBattle.ptype:type_name -> PvpType
	1, // 1: DBPvpBattle.state:type_name -> PvpState
	2, // 2: DBPvpBattle.red:type_name -> PvpUserInfo
	2, // 3: DBPvpBattle.blue:type_name -> PvpUserInfo
	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_pvp_pvp_db_proto_init() }
func file_pvp_pvp_db_proto_init() {
	if File_pvp_pvp_db_proto != nil {
		return
	}
	if !protoimpl.UnsafeEnabled {
		file_pvp_pvp_db_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*PvpUserInfo); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
		file_pvp_pvp_db_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*DBPvpBattle); 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_pvp_pvp_db_proto_rawDesc,
			NumEnums:      2,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_pvp_pvp_db_proto_goTypes,
		DependencyIndexes: file_pvp_pvp_db_proto_depIdxs,
		EnumInfos:         file_pvp_pvp_db_proto_enumTypes,
		MessageInfos:      file_pvp_pvp_db_proto_msgTypes,
	}.Build()
	File_pvp_pvp_db_proto = out.File
	file_pvp_pvp_db_proto_rawDesc = nil
	file_pvp_pvp_db_proto_goTypes = nil
	file_pvp_pvp_db_proto_depIdxs = nil
}
