// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        (unknown)
// source: ar/v1/worker.proto

package arv1

import (
	_ "buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validate"
	_ "github.com/cobotar/protocol/messages/validation/v1"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	reflect "reflect"
	sync "sync"
	unsafe "unsafe"
)

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 WorkerType int32

const (
	WorkerType_WORKER_TYPE_UNSPECIFIED  WorkerType = 0
	WorkerType_WORKER_TYPE_NOVICE       WorkerType = 1
	WorkerType_WORKER_TYPE_INTERMEDIATE WorkerType = 2
	WorkerType_WORKER_TYPE_EXPERT       WorkerType = 3
)

// Enum value maps for WorkerType.
var (
	WorkerType_name = map[int32]string{
		0: "WORKER_TYPE_UNSPECIFIED",
		1: "WORKER_TYPE_NOVICE",
		2: "WORKER_TYPE_INTERMEDIATE",
		3: "WORKER_TYPE_EXPERT",
	}
	WorkerType_value = map[string]int32{
		"WORKER_TYPE_UNSPECIFIED":  0,
		"WORKER_TYPE_NOVICE":       1,
		"WORKER_TYPE_INTERMEDIATE": 2,
		"WORKER_TYPE_EXPERT":       3,
	}
)

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

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

func (WorkerType) Descriptor() protoreflect.EnumDescriptor {
	return file_ar_v1_worker_proto_enumTypes[0].Descriptor()
}

func (WorkerType) Type() protoreflect.EnumType {
	return &file_ar_v1_worker_proto_enumTypes[0]
}

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

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

// TODO: Add worker (including skill-matrix)?
type WorkerMessage struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Id            string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name          string                 `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Icon          string                 `protobuf:"bytes,3,opt,name=icon,proto3" json:"icon,omitempty"`
	Description   string                 `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	Type          WorkerType             `protobuf:"varint,5,opt,name=type,proto3,enum=ar.v1.WorkerType" json:"type,omitempty"`
	Permission    WorkerPermission       `protobuf:"varint,6,opt,name=permission,proto3,enum=ar.v1.WorkerPermission" json:"permission,omitempty"`
	Properties    []*Property            `protobuf:"bytes,7,rep,name=properties,proto3" json:"properties,omitempty"`
	Disabled      bool                   `protobuf:"varint,8,opt,name=disabled,proto3" json:"disabled,omitempty"` // If disabled, the worker can't be selected
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *WorkerMessage) Reset() {
	*x = WorkerMessage{}
	mi := &file_ar_v1_worker_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*WorkerMessage) ProtoMessage() {}

func (x *WorkerMessage) ProtoReflect() protoreflect.Message {
	mi := &file_ar_v1_worker_proto_msgTypes[0]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use WorkerMessage.ProtoReflect.Descriptor instead.
func (*WorkerMessage) Descriptor() ([]byte, []int) {
	return file_ar_v1_worker_proto_rawDescGZIP(), []int{0}
}

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

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

func (x *WorkerMessage) GetIcon() string {
	if x != nil {
		return x.Icon
	}
	return ""
}

func (x *WorkerMessage) GetDescription() string {
	if x != nil {
		return x.Description
	}
	return ""
}

func (x *WorkerMessage) GetType() WorkerType {
	if x != nil {
		return x.Type
	}
	return WorkerType_WORKER_TYPE_UNSPECIFIED
}

func (x *WorkerMessage) GetPermission() WorkerPermission {
	if x != nil {
		return x.Permission
	}
	return WorkerPermission_WORKER_PERMISSION_UNSPECIFIED
}

func (x *WorkerMessage) GetProperties() []*Property {
	if x != nil {
		return x.Properties
	}
	return nil
}

func (x *WorkerMessage) GetDisabled() bool {
	if x != nil {
		return x.Disabled
	}
	return false
}

type WorkerMessages struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Workers       []*WorkerMessage       `protobuf:"bytes,1,rep,name=workers,proto3" json:"workers,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *WorkerMessages) Reset() {
	*x = WorkerMessages{}
	mi := &file_ar_v1_worker_proto_msgTypes[1]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*WorkerMessages) ProtoMessage() {}

func (x *WorkerMessages) ProtoReflect() protoreflect.Message {
	mi := &file_ar_v1_worker_proto_msgTypes[1]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use WorkerMessages.ProtoReflect.Descriptor instead.
func (*WorkerMessages) Descriptor() ([]byte, []int) {
	return file_ar_v1_worker_proto_rawDescGZIP(), []int{1}
}

func (x *WorkerMessages) GetWorkers() []*WorkerMessage {
	if x != nil {
		return x.Workers
	}
	return nil
}

var File_ar_v1_worker_proto protoreflect.FileDescriptor

const file_ar_v1_worker_proto_rawDesc = "" +
	"\n" +
	"\x12ar/v1/worker.proto\x12\x05ar.v1\x1a\x17ar/v1/permissions.proto\x1a\x14ar/v1/property.proto\x1a\x1bbuf/validate/validate.proto\x1a+validation/v1/predefined_string_rules.proto\"\xa1\x02\n" +
	"\rWorkerMessage\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\x12\x1d\n" +
	"\x04name\x18\x02 \x01(\tB\t\xbaH\x06r\x04\x80\xf1\x04\x01R\x04name\x12\x12\n" +
	"\x04icon\x18\x03 \x01(\tR\x04icon\x12 \n" +
	"\vdescription\x18\x04 \x01(\tR\vdescription\x12%\n" +
	"\x04type\x18\x05 \x01(\x0e2\x11.ar.v1.WorkerTypeR\x04type\x127\n" +
	"\n" +
	"permission\x18\x06 \x01(\x0e2\x17.ar.v1.WorkerPermissionR\n" +
	"permission\x12/\n" +
	"\n" +
	"properties\x18\a \x03(\v2\x0f.ar.v1.PropertyR\n" +
	"properties\x12\x1a\n" +
	"\bdisabled\x18\b \x01(\bR\bdisabled\"@\n" +
	"\x0eWorkerMessages\x12.\n" +
	"\aworkers\x18\x01 \x03(\v2\x14.ar.v1.WorkerMessageR\aworkers*w\n" +
	"\n" +
	"WorkerType\x12\x1b\n" +
	"\x17WORKER_TYPE_UNSPECIFIED\x10\x00\x12\x16\n" +
	"\x12WORKER_TYPE_NOVICE\x10\x01\x12\x1c\n" +
	"\x18WORKER_TYPE_INTERMEDIATE\x10\x02\x12\x16\n" +
	"\x12WORKER_TYPE_EXPERT\x10\x03B\x87\x01\n" +
	"\tcom.ar.v1B\vWorkerProtoP\x01Z/github.com/cobotar/protocol/messages/ar/v1;arv1\xa2\x02\x03AXX\xaa\x02\x0eMessages.AR.V1\xca\x02\x05Ar\\V1\xe2\x02\x11Ar\\V1\\GPBMetadata\xea\x02\x06Ar::V1b\x06proto3"

var (
	file_ar_v1_worker_proto_rawDescOnce sync.Once
	file_ar_v1_worker_proto_rawDescData []byte
)

func file_ar_v1_worker_proto_rawDescGZIP() []byte {
	file_ar_v1_worker_proto_rawDescOnce.Do(func() {
		file_ar_v1_worker_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_ar_v1_worker_proto_rawDesc), len(file_ar_v1_worker_proto_rawDesc)))
	})
	return file_ar_v1_worker_proto_rawDescData
}

var file_ar_v1_worker_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_ar_v1_worker_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_ar_v1_worker_proto_goTypes = []any{
	(WorkerType)(0),        // 0: ar.v1.WorkerType
	(*WorkerMessage)(nil),  // 1: ar.v1.WorkerMessage
	(*WorkerMessages)(nil), // 2: ar.v1.WorkerMessages
	(WorkerPermission)(0),  // 3: ar.v1.WorkerPermission
	(*Property)(nil),       // 4: ar.v1.Property
}
var file_ar_v1_worker_proto_depIdxs = []int32{
	0, // 0: ar.v1.WorkerMessage.type:type_name -> ar.v1.WorkerType
	3, // 1: ar.v1.WorkerMessage.permission:type_name -> ar.v1.WorkerPermission
	4, // 2: ar.v1.WorkerMessage.properties:type_name -> ar.v1.Property
	1, // 3: ar.v1.WorkerMessages.workers:type_name -> ar.v1.WorkerMessage
	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_ar_v1_worker_proto_init() }
func file_ar_v1_worker_proto_init() {
	if File_ar_v1_worker_proto != nil {
		return
	}
	file_ar_v1_permissions_proto_init()
	file_ar_v1_property_proto_init()
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_ar_v1_worker_proto_rawDesc), len(file_ar_v1_worker_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_ar_v1_worker_proto_goTypes,
		DependencyIndexes: file_ar_v1_worker_proto_depIdxs,
		EnumInfos:         file_ar_v1_worker_proto_enumTypes,
		MessageInfos:      file_ar_v1_worker_proto_msgTypes,
	}.Build()
	File_ar_v1_worker_proto = out.File
	file_ar_v1_worker_proto_goTypes = nil
	file_ar_v1_worker_proto_depIdxs = nil
}
