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

package plmv1

import (
	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 AllocationStrategy int32

const (
	AllocationStrategy_ALLOCATION_STRATEGY_UNSPECIFIED AllocationStrategy = 0
	AllocationStrategy_ALLOCATION_STRATEGY_STATIC      AllocationStrategy = 1
)

// Enum value maps for AllocationStrategy.
var (
	AllocationStrategy_name = map[int32]string{
		0: "ALLOCATION_STRATEGY_UNSPECIFIED",
		1: "ALLOCATION_STRATEGY_STATIC",
	}
	AllocationStrategy_value = map[string]int32{
		"ALLOCATION_STRATEGY_UNSPECIFIED": 0,
		"ALLOCATION_STRATEGY_STATIC":      1,
	}
)

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

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

func (AllocationStrategy) Descriptor() protoreflect.EnumDescriptor {
	return file_plm_v1_process_load_proto_enumTypes[0].Descriptor()
}

func (AllocationStrategy) Type() protoreflect.EnumType {
	return &file_plm_v1_process_load_proto_enumTypes[0]
}

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

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

// TODO: Assign agents at runtime?
type ProcessLoadMessage struct {
	state              protoimpl.MessageState `protogen:"open.v1"`
	RequestId          string                 `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	ProcessId          string                 `protobuf:"bytes,2,opt,name=process_id,json=processId,proto3" json:"process_id,omitempty"`
	LineId             string                 `protobuf:"bytes,3,opt,name=line_id,json=lineId,proto3" json:"line_id,omitempty"`
	OrderId            string                 `protobuf:"bytes,4,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
	AllocationStrategy AllocationStrategy     `protobuf:"varint,5,opt,name=allocation_strategy,json=allocationStrategy,proto3,enum=plm.v1.AllocationStrategy" json:"allocation_strategy,omitempty"` // TODO: list participating actors?
	unknownFields      protoimpl.UnknownFields
	sizeCache          protoimpl.SizeCache
}

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

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

func (*ProcessLoadMessage) ProtoMessage() {}

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

func (x *ProcessLoadMessage) GetRequestId() string {
	if x != nil {
		return x.RequestId
	}
	return ""
}

func (x *ProcessLoadMessage) GetProcessId() string {
	if x != nil {
		return x.ProcessId
	}
	return ""
}

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

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

func (x *ProcessLoadMessage) GetAllocationStrategy() AllocationStrategy {
	if x != nil {
		return x.AllocationStrategy
	}
	return AllocationStrategy_ALLOCATION_STRATEGY_UNSPECIFIED
}

var File_plm_v1_process_load_proto protoreflect.FileDescriptor

const file_plm_v1_process_load_proto_rawDesc = "" +
	"\n" +
	"\x19plm/v1/process_load.proto\x12\x06plm.v1\"\xd3\x01\n" +
	"\x12ProcessLoadMessage\x12\x1d\n" +
	"\n" +
	"request_id\x18\x01 \x01(\tR\trequestId\x12\x1d\n" +
	"\n" +
	"process_id\x18\x02 \x01(\tR\tprocessId\x12\x17\n" +
	"\aline_id\x18\x03 \x01(\tR\x06lineId\x12\x19\n" +
	"\border_id\x18\x04 \x01(\tR\aorderId\x12K\n" +
	"\x13allocation_strategy\x18\x05 \x01(\x0e2\x1a.plm.v1.AllocationStrategyR\x12allocationStrategy*Y\n" +
	"\x12AllocationStrategy\x12#\n" +
	"\x1fALLOCATION_STRATEGY_UNSPECIFIED\x10\x00\x12\x1e\n" +
	"\x1aALLOCATION_STRATEGY_STATIC\x10\x01B\x93\x01\n" +
	"\n" +
	"com.plm.v1B\x10ProcessLoadProtoP\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_load_proto_rawDescOnce sync.Once
	file_plm_v1_process_load_proto_rawDescData []byte
)

func file_plm_v1_process_load_proto_rawDescGZIP() []byte {
	file_plm_v1_process_load_proto_rawDescOnce.Do(func() {
		file_plm_v1_process_load_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_plm_v1_process_load_proto_rawDesc), len(file_plm_v1_process_load_proto_rawDesc)))
	})
	return file_plm_v1_process_load_proto_rawDescData
}

var file_plm_v1_process_load_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_plm_v1_process_load_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_plm_v1_process_load_proto_goTypes = []any{
	(AllocationStrategy)(0),    // 0: plm.v1.AllocationStrategy
	(*ProcessLoadMessage)(nil), // 1: plm.v1.ProcessLoadMessage
}
var file_plm_v1_process_load_proto_depIdxs = []int32{
	0, // 0: plm.v1.ProcessLoadMessage.allocation_strategy:type_name -> plm.v1.AllocationStrategy
	1, // [1:1] is the sub-list for method output_type
	1, // [1:1] is the sub-list for method input_type
	1, // [1:1] is the sub-list for extension type_name
	1, // [1:1] is the sub-list for extension extendee
	0, // [0:1] is the sub-list for field type_name
}

func init() { file_plm_v1_process_load_proto_init() }
func file_plm_v1_process_load_proto_init() {
	if File_plm_v1_process_load_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_plm_v1_process_load_proto_rawDesc), len(file_plm_v1_process_load_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_plm_v1_process_load_proto_goTypes,
		DependencyIndexes: file_plm_v1_process_load_proto_depIdxs,
		EnumInfos:         file_plm_v1_process_load_proto_enumTypes,
		MessageInfos:      file_plm_v1_process_load_proto_msgTypes,
	}.Build()
	File_plm_v1_process_load_proto = out.File
	file_plm_v1_process_load_proto_goTypes = nil
	file_plm_v1_process_load_proto_depIdxs = nil
}
