// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        (unknown)
// source: plm/v1/line.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 LineType int32

const (
	LineType_LINE_TYPE_UNSPECIFIED  LineType = 0
	LineType_LINE_TYPE_SUB_ASSEMBLY LineType = 1
	LineType_LINE_TYPE_FASTENER     LineType = 2
	LineType_LINE_TYPE_PLATE        LineType = 3
	LineType_LINE_TYPE_LUBRICANT    LineType = 4
)

// Enum value maps for LineType.
var (
	LineType_name = map[int32]string{
		0: "LINE_TYPE_UNSPECIFIED",
		1: "LINE_TYPE_SUB_ASSEMBLY",
		2: "LINE_TYPE_FASTENER",
		3: "LINE_TYPE_PLATE",
		4: "LINE_TYPE_LUBRICANT",
	}
	LineType_value = map[string]int32{
		"LINE_TYPE_UNSPECIFIED":  0,
		"LINE_TYPE_SUB_ASSEMBLY": 1,
		"LINE_TYPE_FASTENER":     2,
		"LINE_TYPE_PLATE":        3,
		"LINE_TYPE_LUBRICANT":    4,
	}
)

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

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

func (LineType) Descriptor() protoreflect.EnumDescriptor {
	return file_plm_v1_line_proto_enumTypes[0].Descriptor()
}

func (LineType) Type() protoreflect.EnumType {
	return &file_plm_v1_line_proto_enumTypes[0]
}

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

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

// TODO: allow multiple processes to make active at the same time?
type LineMessage 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          LineType               `protobuf:"varint,5,opt,name=type,proto3,enum=plm.v1.LineType" json:"type,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*LineMessage) ProtoMessage() {}

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

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

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

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

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

func (x *LineMessage) GetType() LineType {
	if x != nil {
		return x.Type
	}
	return LineType_LINE_TYPE_UNSPECIFIED
}

var File_plm_v1_line_proto protoreflect.FileDescriptor

const file_plm_v1_line_proto_rawDesc = "" +
	"\n" +
	"\x11plm/v1/line.proto\x12\x06plm.v1\"\x8d\x01\n" +
	"\vLineMessage\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
	"\x04name\x18\x02 \x01(\tR\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\x10.plm.v1.LineTypeR\x04type*\x87\x01\n" +
	"\bLineType\x12\x19\n" +
	"\x15LINE_TYPE_UNSPECIFIED\x10\x00\x12\x1a\n" +
	"\x16LINE_TYPE_SUB_ASSEMBLY\x10\x01\x12\x16\n" +
	"\x12LINE_TYPE_FASTENER\x10\x02\x12\x13\n" +
	"\x0fLINE_TYPE_PLATE\x10\x03\x12\x17\n" +
	"\x13LINE_TYPE_LUBRICANT\x10\x04B\x8c\x01\n" +
	"\n" +
	"com.plm.v1B\tLineProtoP\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_line_proto_rawDescOnce sync.Once
	file_plm_v1_line_proto_rawDescData []byte
)

func file_plm_v1_line_proto_rawDescGZIP() []byte {
	file_plm_v1_line_proto_rawDescOnce.Do(func() {
		file_plm_v1_line_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_plm_v1_line_proto_rawDesc), len(file_plm_v1_line_proto_rawDesc)))
	})
	return file_plm_v1_line_proto_rawDescData
}

var file_plm_v1_line_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_plm_v1_line_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_plm_v1_line_proto_goTypes = []any{
	(LineType)(0),       // 0: plm.v1.LineType
	(*LineMessage)(nil), // 1: plm.v1.LineMessage
}
var file_plm_v1_line_proto_depIdxs = []int32{
	0, // 0: plm.v1.LineMessage.type:type_name -> plm.v1.LineType
	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_line_proto_init() }
func file_plm_v1_line_proto_init() {
	if File_plm_v1_line_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_line_proto_rawDesc), len(file_plm_v1_line_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_plm_v1_line_proto_goTypes,
		DependencyIndexes: file_plm_v1_line_proto_depIdxs,
		EnumInfos:         file_plm_v1_line_proto_enumTypes,
		MessageInfos:      file_plm_v1_line_proto_msgTypes,
	}.Build()
	File_plm_v1_line_proto = out.File
	file_plm_v1_line_proto_goTypes = nil
	file_plm_v1_line_proto_depIdxs = nil
}
