// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.32.0
// 	protoc        v3.12.4
// source: bgs/low/pb/client/role_types.proto

package protocol

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 Role struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	Id             *uint32  `protobuf:"varint,1,req,name=id" json:"id,omitempty"`
	Name           *string  `protobuf:"bytes,2,req,name=name" json:"name,omitempty"`
	Privilege      []string `protobuf:"bytes,3,rep,name=privilege" json:"privilege,omitempty"`
	AssignableRole []uint32 `protobuf:"varint,4,rep,name=assignable_role,json=assignableRole" json:"assignable_role,omitempty"`
	Required       *bool    `protobuf:"varint,5,opt,name=required" json:"required,omitempty"`
	Unique         *bool    `protobuf:"varint,6,opt,name=unique" json:"unique,omitempty"`
	RelegationRole *uint32  `protobuf:"varint,7,opt,name=relegation_role,json=relegationRole" json:"relegation_role,omitempty"`
	KickableRole   []uint32 `protobuf:"varint,9,rep,name=kickable_role,json=kickableRole" json:"kickable_role,omitempty"`
	RemovableRole  []uint32 `protobuf:"varint,10,rep,name=removable_role,json=removableRole" json:"removable_role,omitempty"`
}

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

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

func (*Role) ProtoMessage() {}

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

func (x *Role) GetId() uint32 {
	if x != nil && x.Id != nil {
		return *x.Id
	}
	return 0
}

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

func (x *Role) GetPrivilege() []string {
	if x != nil {
		return x.Privilege
	}
	return nil
}

func (x *Role) GetAssignableRole() []uint32 {
	if x != nil {
		return x.AssignableRole
	}
	return nil
}

func (x *Role) GetRequired() bool {
	if x != nil && x.Required != nil {
		return *x.Required
	}
	return false
}

func (x *Role) GetUnique() bool {
	if x != nil && x.Unique != nil {
		return *x.Unique
	}
	return false
}

func (x *Role) GetRelegationRole() uint32 {
	if x != nil && x.RelegationRole != nil {
		return *x.RelegationRole
	}
	return 0
}

func (x *Role) GetKickableRole() []uint32 {
	if x != nil {
		return x.KickableRole
	}
	return nil
}

func (x *Role) GetRemovableRole() []uint32 {
	if x != nil {
		return x.RemovableRole
	}
	return nil
}

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

	Name            *string  `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
	AssignableRole  []uint32 `protobuf:"varint,4,rep,name=assignable_role,json=assignableRole" json:"assignable_role,omitempty"`
	Required        *bool    `protobuf:"varint,5,opt,name=required" json:"required,omitempty"`
	Unique          *bool    `protobuf:"varint,6,opt,name=unique" json:"unique,omitempty"`
	RelegationRole  *uint32  `protobuf:"varint,7,opt,name=relegation_role,json=relegationRole" json:"relegation_role,omitempty"`
	KickableRole    []uint32 `protobuf:"varint,9,rep,name=kickable_role,json=kickableRole" json:"kickable_role,omitempty"`
	RemovableRole   []uint32 `protobuf:"varint,10,rep,name=removable_role,json=removableRole" json:"removable_role,omitempty"`
	MentionableRole []uint32 `protobuf:"varint,11,rep,name=mentionable_role,json=mentionableRole" json:"mentionable_role,omitempty"`
}

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

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

func (*RoleState) ProtoMessage() {}

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

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

func (x *RoleState) GetAssignableRole() []uint32 {
	if x != nil {
		return x.AssignableRole
	}
	return nil
}

func (x *RoleState) GetRequired() bool {
	if x != nil && x.Required != nil {
		return *x.Required
	}
	return false
}

func (x *RoleState) GetUnique() bool {
	if x != nil && x.Unique != nil {
		return *x.Unique
	}
	return false
}

func (x *RoleState) GetRelegationRole() uint32 {
	if x != nil && x.RelegationRole != nil {
		return *x.RelegationRole
	}
	return 0
}

func (x *RoleState) GetKickableRole() []uint32 {
	if x != nil {
		return x.KickableRole
	}
	return nil
}

func (x *RoleState) GetRemovableRole() []uint32 {
	if x != nil {
		return x.RemovableRole
	}
	return nil
}

func (x *RoleState) GetMentionableRole() []uint32 {
	if x != nil {
		return x.MentionableRole
	}
	return nil
}

var File_bgs_low_pb_client_role_types_proto protoreflect.FileDescriptor

var file_bgs_low_pb_client_role_types_proto_rawDesc = []byte{
	0x0a, 0x22, 0x62, 0x67, 0x73, 0x2f, 0x6c, 0x6f, 0x77, 0x2f, 0x70, 0x62, 0x2f, 0x63, 0x6c, 0x69,
	0x65, 0x6e, 0x74, 0x2f, 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70,
	0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x62, 0x67, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63,
	0x6f, 0x6c, 0x22, 0x9a, 0x02, 0x0a, 0x04, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69,
	0x64, 0x18, 0x01, 0x20, 0x02, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e,
	0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x02, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,
	0x1c, 0x0a, 0x09, 0x70, 0x72, 0x69, 0x76, 0x69, 0x6c, 0x65, 0x67, 0x65, 0x18, 0x03, 0x20, 0x03,
	0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x69, 0x76, 0x69, 0x6c, 0x65, 0x67, 0x65, 0x12, 0x27, 0x0a,
	0x0f, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x72, 0x6f, 0x6c, 0x65,
	0x18, 0x04, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x0e, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x62,
	0x6c, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72,
	0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72,
	0x65, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x18, 0x06, 0x20, 0x01,
	0x28, 0x08, 0x52, 0x06, 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65,
	0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x07, 0x20,
	0x01, 0x28, 0x0d, 0x52, 0x0e, 0x72, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52,
	0x6f, 0x6c, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x6b, 0x69, 0x63, 0x6b, 0x61, 0x62, 0x6c, 0x65, 0x5f,
	0x72, 0x6f, 0x6c, 0x65, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x0c, 0x6b, 0x69, 0x63, 0x6b,
	0x61, 0x62, 0x6c, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x6d, 0x6f,
	0x76, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0d,
	0x52, 0x0d, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x22,
	0x9c, 0x02, 0x0a, 0x09, 0x52, 0x6f, 0x6c, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x12, 0x0a,
	0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d,
	0x65, 0x12, 0x27, 0x0a, 0x0f, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f,
	0x72, 0x6f, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x0e, 0x61, 0x73, 0x73, 0x69,
	0x67, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65,
	0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x72, 0x65,
	0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65,
	0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x12, 0x27,
	0x0a, 0x0f, 0x72, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x6f, 0x6c,
	0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0e, 0x72, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74,
	0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x6b, 0x69, 0x63, 0x6b, 0x61,
	0x62, 0x6c, 0x65, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x0c,
	0x6b, 0x69, 0x63, 0x6b, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x25, 0x0a, 0x0e,
	0x72, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x0a,
	0x20, 0x03, 0x28, 0x0d, 0x52, 0x0d, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x62, 0x6c, 0x65, 0x52,
	0x6f, 0x6c, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x6d, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x62,
	0x6c, 0x65, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x0f, 0x6d,
	0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x42, 0x35,
	0x5a, 0x33, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6a, 0x62,
	0x72, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x64, 0x34, 0x2d, 0x62, 0x6e, 0x65, 0x74, 0x2d, 0x6d,
	0x69, 0x74, 0x6d, 0x2f, 0x62, 0x6e, 0x65, 0x74, 0x2f, 0x62, 0x67, 0x73, 0x2f, 0x70, 0x72, 0x6f,
	0x74, 0x6f, 0x63, 0x6f, 0x6c,
}

var (
	file_bgs_low_pb_client_role_types_proto_rawDescOnce sync.Once
	file_bgs_low_pb_client_role_types_proto_rawDescData = file_bgs_low_pb_client_role_types_proto_rawDesc
)

func file_bgs_low_pb_client_role_types_proto_rawDescGZIP() []byte {
	file_bgs_low_pb_client_role_types_proto_rawDescOnce.Do(func() {
		file_bgs_low_pb_client_role_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_bgs_low_pb_client_role_types_proto_rawDescData)
	})
	return file_bgs_low_pb_client_role_types_proto_rawDescData
}

var file_bgs_low_pb_client_role_types_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_bgs_low_pb_client_role_types_proto_goTypes = []interface{}{
	(*Role)(nil),      // 0: bgs.protocol.Role
	(*RoleState)(nil), // 1: bgs.protocol.RoleState
}
var file_bgs_low_pb_client_role_types_proto_depIdxs = []int32{
	0, // [0:0] is the sub-list for method output_type
	0, // [0:0] is the sub-list for method input_type
	0, // [0:0] is the sub-list for extension type_name
	0, // [0:0] is the sub-list for extension extendee
	0, // [0:0] is the sub-list for field type_name
}

func init() { file_bgs_low_pb_client_role_types_proto_init() }
func file_bgs_low_pb_client_role_types_proto_init() {
	if File_bgs_low_pb_client_role_types_proto != nil {
		return
	}
	if !protoimpl.UnsafeEnabled {
		file_bgs_low_pb_client_role_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*Role); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
		file_bgs_low_pb_client_role_types_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*RoleState); 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_bgs_low_pb_client_role_types_proto_rawDesc,
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_bgs_low_pb_client_role_types_proto_goTypes,
		DependencyIndexes: file_bgs_low_pb_client_role_types_proto_depIdxs,
		MessageInfos:      file_bgs_low_pb_client_role_types_proto_msgTypes,
	}.Build()
	File_bgs_low_pb_client_role_types_proto = out.File
	file_bgs_low_pb_client_role_types_proto_rawDesc = nil
	file_bgs_low_pb_client_role_types_proto_goTypes = nil
	file_bgs_low_pb_client_role_types_proto_depIdxs = nil
}
