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

package plmv1

import (
	v1 "github.com/cobotar/protocol/messages/geometry/v1"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
	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 ProcessType int32

const (
	ProcessType_PROCESS_TYPE_UNSPECIFIED ProcessType = 0
	ProcessType_PROCESS_TYPE_ASSEMBLY    ProcessType = 1
	ProcessType_PROCESS_TYPE_DISASSEMBLY ProcessType = 2
	ProcessType_PROCESS_TYPE_INSPECTION  ProcessType = 3 // TODO: what should this be?
	ProcessType_PROCESS_TYPE_CHECKLIST   ProcessType = 4 // TODO: this could be startup procedures, fault fixing, ...
)

// Enum value maps for ProcessType.
var (
	ProcessType_name = map[int32]string{
		0: "PROCESS_TYPE_UNSPECIFIED",
		1: "PROCESS_TYPE_ASSEMBLY",
		2: "PROCESS_TYPE_DISASSEMBLY",
		3: "PROCESS_TYPE_INSPECTION",
		4: "PROCESS_TYPE_CHECKLIST",
	}
	ProcessType_value = map[string]int32{
		"PROCESS_TYPE_UNSPECIFIED": 0,
		"PROCESS_TYPE_ASSEMBLY":    1,
		"PROCESS_TYPE_DISASSEMBLY": 2,
		"PROCESS_TYPE_INSPECTION":  3,
		"PROCESS_TYPE_CHECKLIST":   4,
	}
)

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

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

func (ProcessType) Descriptor() protoreflect.EnumDescriptor {
	return file_plm_v1_process_proto_enumTypes[0].Descriptor()
}

func (ProcessType) Type() protoreflect.EnumType {
	return &file_plm_v1_process_proto_enumTypes[0]
}

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

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

type ProcessState int32

const (
	ProcessState_PROCESS_STATE_UNSPECIFIED ProcessState = 0
	ProcessState_PROCESS_STATE_WAITING     ProcessState = 1
	ProcessState_PROCESS_STATE_IN_PROGRESS ProcessState = 2
	ProcessState_PROCESS_STATE_COMPLETED   ProcessState = 3
	ProcessState_PROCESS_STATE_ABORTED     ProcessState = 4
)

// Enum value maps for ProcessState.
var (
	ProcessState_name = map[int32]string{
		0: "PROCESS_STATE_UNSPECIFIED",
		1: "PROCESS_STATE_WAITING",
		2: "PROCESS_STATE_IN_PROGRESS",
		3: "PROCESS_STATE_COMPLETED",
		4: "PROCESS_STATE_ABORTED",
	}
	ProcessState_value = map[string]int32{
		"PROCESS_STATE_UNSPECIFIED": 0,
		"PROCESS_STATE_WAITING":     1,
		"PROCESS_STATE_IN_PROGRESS": 2,
		"PROCESS_STATE_COMPLETED":   3,
		"PROCESS_STATE_ABORTED":     4,
	}
)

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

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

func (ProcessState) Descriptor() protoreflect.EnumDescriptor {
	return file_plm_v1_process_proto_enumTypes[1].Descriptor()
}

func (ProcessState) Type() protoreflect.EnumType {
	return &file_plm_v1_process_proto_enumTypes[1]
}

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

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

// TODO: should 'running' be called process and 'static' recipe?
// TODO: Add/assign the agent(s) at runtime, instead of allocating them to the environment. THen there could also be a situation where each agent is asked to take a task during execution.
type ProcessMessage struct {
	state          protoimpl.MessageState `protogen:"open.v1"`
	InstanceId     string                 `protobuf:"bytes,1,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"`
	Id             string                 `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	Name           string                 `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Description    string                 `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	Type           ProcessType            `protobuf:"varint,5,opt,name=type,proto3,enum=plm.v1.ProcessType" json:"type,omitempty"`
	Frame          *v1.LocalizedPose      `protobuf:"bytes,6,opt,name=frame,proto3" json:"frame,omitempty"`
	RootSequenceId string                 `protobuf:"bytes,7,opt,name=root_sequence_id,json=rootSequenceId,proto3" json:"root_sequence_id,omitempty"`
	Sequences      []*SequenceMessage     `protobuf:"bytes,8,rep,name=sequences,proto3" json:"sequences,omitempty"`
	Tasks          []*TaskMessage         `protobuf:"bytes,9,rep,name=tasks,proto3" json:"tasks,omitempty"`
	State          ProcessState           `protobuf:"varint,10,opt,name=state,proto3,enum=plm.v1.ProcessState" json:"state,omitempty"`
	Initiated      *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=initiated,proto3" json:"initiated,omitempty"`
	Ended          *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=ended,proto3" json:"ended,omitempty"`
	OrderId        string                 `protobuf:"bytes,13,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
	LineId         string                 `protobuf:"bytes,14,opt,name=line_id,json=lineId,proto3" json:"line_id,omitempty"`
	unknownFields  protoimpl.UnknownFields
	sizeCache      protoimpl.SizeCache
}

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

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

func (*ProcessMessage) ProtoMessage() {}

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

func (x *ProcessMessage) GetInstanceId() string {
	if x != nil {
		return x.InstanceId
	}
	return ""
}

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

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

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

func (x *ProcessMessage) GetType() ProcessType {
	if x != nil {
		return x.Type
	}
	return ProcessType_PROCESS_TYPE_UNSPECIFIED
}

func (x *ProcessMessage) GetFrame() *v1.LocalizedPose {
	if x != nil {
		return x.Frame
	}
	return nil
}

func (x *ProcessMessage) GetRootSequenceId() string {
	if x != nil {
		return x.RootSequenceId
	}
	return ""
}

func (x *ProcessMessage) GetSequences() []*SequenceMessage {
	if x != nil {
		return x.Sequences
	}
	return nil
}

func (x *ProcessMessage) GetTasks() []*TaskMessage {
	if x != nil {
		return x.Tasks
	}
	return nil
}

func (x *ProcessMessage) GetState() ProcessState {
	if x != nil {
		return x.State
	}
	return ProcessState_PROCESS_STATE_UNSPECIFIED
}

func (x *ProcessMessage) GetInitiated() *timestamppb.Timestamp {
	if x != nil {
		return x.Initiated
	}
	return nil
}

func (x *ProcessMessage) GetEnded() *timestamppb.Timestamp {
	if x != nil {
		return x.Ended
	}
	return nil
}

func (x *ProcessMessage) GetOrderId() string {
	if x != nil {
		return x.OrderId
	}
	return ""
}

func (x *ProcessMessage) GetLineId() string {
	if x != nil {
		return x.LineId
	}
	return ""
}

// Update published when the state of a process have changed
type ProcessUpdatedMessage struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	InstanceId    string                 `protobuf:"bytes,1,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"`
	Id            string                 `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	State         ProcessState           `protobuf:"varint,10,opt,name=state,proto3,enum=plm.v1.ProcessState" json:"state,omitempty"`
	Ended         *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=ended,proto3" json:"ended,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ProcessUpdatedMessage) ProtoMessage() {}

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

func (x *ProcessUpdatedMessage) GetInstanceId() string {
	if x != nil {
		return x.InstanceId
	}
	return ""
}

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

func (x *ProcessUpdatedMessage) GetState() ProcessState {
	if x != nil {
		return x.State
	}
	return ProcessState_PROCESS_STATE_UNSPECIFIED
}

func (x *ProcessUpdatedMessage) GetEnded() *timestamppb.Timestamp {
	if x != nil {
		return x.Ended
	}
	return nil
}

type ProcessesMessage struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Processes     []*ProcessMessage      `protobuf:"bytes,1,rep,name=processes,proto3" json:"processes,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ProcessesMessage) Reset() {
	*x = ProcessesMessage{}
	mi := &file_plm_v1_process_proto_msgTypes[2]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*ProcessesMessage) ProtoMessage() {}

func (x *ProcessesMessage) ProtoReflect() protoreflect.Message {
	mi := &file_plm_v1_process_proto_msgTypes[2]
	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 ProcessesMessage.ProtoReflect.Descriptor instead.
func (*ProcessesMessage) Descriptor() ([]byte, []int) {
	return file_plm_v1_process_proto_rawDescGZIP(), []int{2}
}

func (x *ProcessesMessage) GetProcesses() []*ProcessMessage {
	if x != nil {
		return x.Processes
	}
	return nil
}

var File_plm_v1_process_proto protoreflect.FileDescriptor

const file_plm_v1_process_proto_rawDesc = "" +
	"\n" +
	"\x14plm/v1/process.proto\x12\x06plm.v1\x1a\x16geometry/v1/pose.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x15plm/v1/sequence.proto\x1a\x11plm/v1/task.proto\"\xaa\x04\n" +
	"\x0eProcessMessage\x12\x1f\n" +
	"\vinstance_id\x18\x01 \x01(\tR\n" +
	"instanceId\x12\x0e\n" +
	"\x02id\x18\x02 \x01(\tR\x02id\x12\x12\n" +
	"\x04name\x18\x03 \x01(\tR\x04name\x12 \n" +
	"\vdescription\x18\x04 \x01(\tR\vdescription\x12'\n" +
	"\x04type\x18\x05 \x01(\x0e2\x13.plm.v1.ProcessTypeR\x04type\x120\n" +
	"\x05frame\x18\x06 \x01(\v2\x1a.geometry.v1.LocalizedPoseR\x05frame\x12(\n" +
	"\x10root_sequence_id\x18\a \x01(\tR\x0erootSequenceId\x125\n" +
	"\tsequences\x18\b \x03(\v2\x17.plm.v1.SequenceMessageR\tsequences\x12)\n" +
	"\x05tasks\x18\t \x03(\v2\x13.plm.v1.TaskMessageR\x05tasks\x12*\n" +
	"\x05state\x18\n" +
	" \x01(\x0e2\x14.plm.v1.ProcessStateR\x05state\x128\n" +
	"\tinitiated\x18\v \x01(\v2\x1a.google.protobuf.TimestampR\tinitiated\x120\n" +
	"\x05ended\x18\f \x01(\v2\x1a.google.protobuf.TimestampR\x05ended\x12\x19\n" +
	"\border_id\x18\r \x01(\tR\aorderId\x12\x17\n" +
	"\aline_id\x18\x0e \x01(\tR\x06lineId\"\xa6\x01\n" +
	"\x15ProcessUpdatedMessage\x12\x1f\n" +
	"\vinstance_id\x18\x01 \x01(\tR\n" +
	"instanceId\x12\x0e\n" +
	"\x02id\x18\x02 \x01(\tR\x02id\x12*\n" +
	"\x05state\x18\n" +
	" \x01(\x0e2\x14.plm.v1.ProcessStateR\x05state\x120\n" +
	"\x05ended\x18\f \x01(\v2\x1a.google.protobuf.TimestampR\x05ended\"H\n" +
	"\x10ProcessesMessage\x124\n" +
	"\tprocesses\x18\x01 \x03(\v2\x16.plm.v1.ProcessMessageR\tprocesses*\x9d\x01\n" +
	"\vProcessType\x12\x1c\n" +
	"\x18PROCESS_TYPE_UNSPECIFIED\x10\x00\x12\x19\n" +
	"\x15PROCESS_TYPE_ASSEMBLY\x10\x01\x12\x1c\n" +
	"\x18PROCESS_TYPE_DISASSEMBLY\x10\x02\x12\x1b\n" +
	"\x17PROCESS_TYPE_INSPECTION\x10\x03\x12\x1a\n" +
	"\x16PROCESS_TYPE_CHECKLIST\x10\x04*\x9f\x01\n" +
	"\fProcessState\x12\x1d\n" +
	"\x19PROCESS_STATE_UNSPECIFIED\x10\x00\x12\x19\n" +
	"\x15PROCESS_STATE_WAITING\x10\x01\x12\x1d\n" +
	"\x19PROCESS_STATE_IN_PROGRESS\x10\x02\x12\x1b\n" +
	"\x17PROCESS_STATE_COMPLETED\x10\x03\x12\x19\n" +
	"\x15PROCESS_STATE_ABORTED\x10\x04B\x8f\x01\n" +
	"\n" +
	"com.plm.v1B\fProcessProtoP\x01Z1github.com/cobotar/protocol/messages/plm/v1;plmv1\xa2\x02\x03PXX\xaa\x02\x0fMessages.Plm.V1\xca\x02\x06Plm\\V1\xe2\x02\x12Plm\\V1\\GPBMetadata\xea\x02\aPlm::V1b\x06proto3"

var (
	file_plm_v1_process_proto_rawDescOnce sync.Once
	file_plm_v1_process_proto_rawDescData []byte
)

func file_plm_v1_process_proto_rawDescGZIP() []byte {
	file_plm_v1_process_proto_rawDescOnce.Do(func() {
		file_plm_v1_process_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_plm_v1_process_proto_rawDesc), len(file_plm_v1_process_proto_rawDesc)))
	})
	return file_plm_v1_process_proto_rawDescData
}

var file_plm_v1_process_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_plm_v1_process_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_plm_v1_process_proto_goTypes = []any{
	(ProcessType)(0),              // 0: plm.v1.ProcessType
	(ProcessState)(0),             // 1: plm.v1.ProcessState
	(*ProcessMessage)(nil),        // 2: plm.v1.ProcessMessage
	(*ProcessUpdatedMessage)(nil), // 3: plm.v1.ProcessUpdatedMessage
	(*ProcessesMessage)(nil),      // 4: plm.v1.ProcessesMessage
	(*v1.LocalizedPose)(nil),      // 5: geometry.v1.LocalizedPose
	(*SequenceMessage)(nil),       // 6: plm.v1.SequenceMessage
	(*TaskMessage)(nil),           // 7: plm.v1.TaskMessage
	(*timestamppb.Timestamp)(nil), // 8: google.protobuf.Timestamp
}
var file_plm_v1_process_proto_depIdxs = []int32{
	0,  // 0: plm.v1.ProcessMessage.type:type_name -> plm.v1.ProcessType
	5,  // 1: plm.v1.ProcessMessage.frame:type_name -> geometry.v1.LocalizedPose
	6,  // 2: plm.v1.ProcessMessage.sequences:type_name -> plm.v1.SequenceMessage
	7,  // 3: plm.v1.ProcessMessage.tasks:type_name -> plm.v1.TaskMessage
	1,  // 4: plm.v1.ProcessMessage.state:type_name -> plm.v1.ProcessState
	8,  // 5: plm.v1.ProcessMessage.initiated:type_name -> google.protobuf.Timestamp
	8,  // 6: plm.v1.ProcessMessage.ended:type_name -> google.protobuf.Timestamp
	1,  // 7: plm.v1.ProcessUpdatedMessage.state:type_name -> plm.v1.ProcessState
	8,  // 8: plm.v1.ProcessUpdatedMessage.ended:type_name -> google.protobuf.Timestamp
	2,  // 9: plm.v1.ProcessesMessage.processes:type_name -> plm.v1.ProcessMessage
	10, // [10:10] is the sub-list for method output_type
	10, // [10:10] is the sub-list for method input_type
	10, // [10:10] is the sub-list for extension type_name
	10, // [10:10] is the sub-list for extension extendee
	0,  // [0:10] is the sub-list for field type_name
}

func init() { file_plm_v1_process_proto_init() }
func file_plm_v1_process_proto_init() {
	if File_plm_v1_process_proto != nil {
		return
	}
	file_plm_v1_sequence_proto_init()
	file_plm_v1_task_proto_init()
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_plm_v1_process_proto_rawDesc), len(file_plm_v1_process_proto_rawDesc)),
			NumEnums:      2,
			NumMessages:   3,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_plm_v1_process_proto_goTypes,
		DependencyIndexes: file_plm_v1_process_proto_depIdxs,
		EnumInfos:         file_plm_v1_process_proto_enumTypes,
		MessageInfos:      file_plm_v1_process_proto_msgTypes,
	}.Build()
	File_plm_v1_process_proto = out.File
	file_plm_v1_process_proto_goTypes = nil
	file_plm_v1_process_proto_depIdxs = nil
}
