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

package arv1

import (
	_ "buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validate"
	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)
)

// Used to specify the type of a property
type PropertyType int32

const (
	PropertyType_PROPERTY_TYPE_UNSPECIFIED PropertyType = 0
	PropertyType_PROPERTY_TYPE_BOOL        PropertyType = 1
	PropertyType_PROPERTY_TYPE_INT         PropertyType = 2
	PropertyType_PROPERTY_TYPE_FLOAT       PropertyType = 3
	PropertyType_PROPERTY_TYPE_DOUBLE      PropertyType = 4
	PropertyType_PROPERTY_TYPE_STRING      PropertyType = 5
	PropertyType_PROPERTY_TYPE_VECTOR3     PropertyType = 6
	PropertyType_PROPERTY_TYPE_POSE        PropertyType = 7
	PropertyType_PROPERTY_TYPE_ANCHOR      PropertyType = 8
	PropertyType_PROPERTY_TYPE_COLOR       PropertyType = 9
	PropertyType_PROPERTY_TYPE_AGENT       PropertyType = 10
	PropertyType_PROPERTY_TYPE_ENUM        PropertyType = 11
	PropertyType_PROPERTY_TYPE_ENUM_MULTI  PropertyType = 12
)

// Enum value maps for PropertyType.
var (
	PropertyType_name = map[int32]string{
		0:  "PROPERTY_TYPE_UNSPECIFIED",
		1:  "PROPERTY_TYPE_BOOL",
		2:  "PROPERTY_TYPE_INT",
		3:  "PROPERTY_TYPE_FLOAT",
		4:  "PROPERTY_TYPE_DOUBLE",
		5:  "PROPERTY_TYPE_STRING",
		6:  "PROPERTY_TYPE_VECTOR3",
		7:  "PROPERTY_TYPE_POSE",
		8:  "PROPERTY_TYPE_ANCHOR",
		9:  "PROPERTY_TYPE_COLOR",
		10: "PROPERTY_TYPE_AGENT",
		11: "PROPERTY_TYPE_ENUM",
		12: "PROPERTY_TYPE_ENUM_MULTI",
	}
	PropertyType_value = map[string]int32{
		"PROPERTY_TYPE_UNSPECIFIED": 0,
		"PROPERTY_TYPE_BOOL":        1,
		"PROPERTY_TYPE_INT":         2,
		"PROPERTY_TYPE_FLOAT":       3,
		"PROPERTY_TYPE_DOUBLE":      4,
		"PROPERTY_TYPE_STRING":      5,
		"PROPERTY_TYPE_VECTOR3":     6,
		"PROPERTY_TYPE_POSE":        7,
		"PROPERTY_TYPE_ANCHOR":      8,
		"PROPERTY_TYPE_COLOR":       9,
		"PROPERTY_TYPE_AGENT":       10,
		"PROPERTY_TYPE_ENUM":        11,
		"PROPERTY_TYPE_ENUM_MULTI":  12,
	}
)

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

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

func (PropertyType) Descriptor() protoreflect.EnumDescriptor {
	return file_ar_v1_property_proto_enumTypes[0].Descriptor()
}

func (PropertyType) Type() protoreflect.EnumType {
	return &file_ar_v1_property_proto_enumTypes[0]
}

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

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

// Specifies where the value of a property originates from.
type PropertyOrigin int32

const (
	PropertyOrigin_PROPERTY_ORIGIN_UNSPECIFIED PropertyOrigin = 0
	PropertyOrigin_PROPERTY_ORIGIN_FIXED       PropertyOrigin = 1 // The value of the property is fixed and must be changed manually
	PropertyOrigin_PROPERTY_ORIGIN_MIRROR      PropertyOrigin = 2 // The value of the property mirrors the value of another property
)

// Enum value maps for PropertyOrigin.
var (
	PropertyOrigin_name = map[int32]string{
		0: "PROPERTY_ORIGIN_UNSPECIFIED",
		1: "PROPERTY_ORIGIN_FIXED",
		2: "PROPERTY_ORIGIN_MIRROR",
	}
	PropertyOrigin_value = map[string]int32{
		"PROPERTY_ORIGIN_UNSPECIFIED": 0,
		"PROPERTY_ORIGIN_FIXED":       1,
		"PROPERTY_ORIGIN_MIRROR":      2,
	}
)

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

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

func (PropertyOrigin) Descriptor() protoreflect.EnumDescriptor {
	return file_ar_v1_property_proto_enumTypes[1].Descriptor()
}

func (PropertyOrigin) Type() protoreflect.EnumType {
	return &file_ar_v1_property_proto_enumTypes[1]
}

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

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

// Properties are used by various components to define them, such as: feedback, actions, and conditions.
type Property 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                      PropertyType           `protobuf:"varint,5,opt,name=type,proto3,enum=ar.v1.PropertyType" json:"type,omitempty"`
	Value                     string                 `protobuf:"bytes,6,opt,name=value,proto3" json:"value,omitempty"`   // the current value of the property (JSON encoded)
	Extras                    string                 `protobuf:"bytes,7,opt,name=extras,proto3" json:"extras,omitempty"` // JSON encoded extra values, e.g. {min: -0.1, max: 0.5, step: 0.1} for a double property.
	MinimumRequiredPermission WorkerPermission       `protobuf:"varint,8,opt,name=minimum_required_permission,json=minimumRequiredPermission,proto3,enum=ar.v1.WorkerPermission" json:"minimum_required_permission,omitempty"`
	Origin                    PropertyOrigin         `protobuf:"varint,9,opt,name=origin,proto3,enum=ar.v1.PropertyOrigin" json:"origin,omitempty"`
	Origins                   []PropertyOrigin       `protobuf:"varint,10,rep,packed,name=origins,proto3,enum=ar.v1.PropertyOrigin" json:"origins,omitempty"`
	MirrorPropertyId          string                 `protobuf:"bytes,11,opt,name=mirror_property_id,json=mirrorPropertyId,proto3" json:"mirror_property_id,omitempty"`
	Group                     string                 `protobuf:"bytes,12,opt,name=group,proto3" json:"group,omitempty"`
	Ordering                  int32                  `protobuf:"varint,13,opt,name=ordering,proto3" json:"ordering,omitempty"`
	HideGroup                 bool                   `protobuf:"varint,14,opt,name=hide_group,json=hideGroup,proto3" json:"hide_group,omitempty"`
	unknownFields             protoimpl.UnknownFields
	sizeCache                 protoimpl.SizeCache
}

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

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

func (*Property) ProtoMessage() {}

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

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

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

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

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

func (x *Property) GetType() PropertyType {
	if x != nil {
		return x.Type
	}
	return PropertyType_PROPERTY_TYPE_UNSPECIFIED
}

func (x *Property) GetValue() string {
	if x != nil {
		return x.Value
	}
	return ""
}

func (x *Property) GetExtras() string {
	if x != nil {
		return x.Extras
	}
	return ""
}

func (x *Property) GetMinimumRequiredPermission() WorkerPermission {
	if x != nil {
		return x.MinimumRequiredPermission
	}
	return WorkerPermission_WORKER_PERMISSION_UNSPECIFIED
}

func (x *Property) GetOrigin() PropertyOrigin {
	if x != nil {
		return x.Origin
	}
	return PropertyOrigin_PROPERTY_ORIGIN_UNSPECIFIED
}

func (x *Property) GetOrigins() []PropertyOrigin {
	if x != nil {
		return x.Origins
	}
	return nil
}

func (x *Property) GetMirrorPropertyId() string {
	if x != nil {
		return x.MirrorPropertyId
	}
	return ""
}

func (x *Property) GetGroup() string {
	if x != nil {
		return x.Group
	}
	return ""
}

func (x *Property) GetOrdering() int32 {
	if x != nil {
		return x.Ordering
	}
	return 0
}

func (x *Property) GetHideGroup() bool {
	if x != nil {
		return x.HideGroup
	}
	return false
}

var File_ar_v1_property_proto protoreflect.FileDescriptor

const file_ar_v1_property_proto_rawDesc = "" +
	"\n" +
	"\x14ar/v1/property.proto\x12\x05ar.v1\x1a\x17ar/v1/permissions.proto\x1a\x1bbuf/validate/validate.proto\"\xbf\x05\n" +
	"\bProperty\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\x124\n" +
	"\x04type\x18\x05 \x01(\x0e2\x13.ar.v1.PropertyTypeB\v\xbaH\b\xc8\x01\x01\x82\x01\x02\x10\x01R\x04type\x12\x14\n" +
	"\x05value\x18\x06 \x01(\tR\x05value\x12\x16\n" +
	"\x06extras\x18\a \x01(\tR\x06extras\x12a\n" +
	"\x1bminimum_required_permission\x18\b \x01(\x0e2\x17.ar.v1.WorkerPermissionB\b\xbaH\x05\x82\x01\x02\x10\x01R\x19minimumRequiredPermission\x127\n" +
	"\x06origin\x18\t \x01(\x0e2\x15.ar.v1.PropertyOriginB\b\xbaH\x05\x82\x01\x02\x10\x01R\x06origin\x12>\n" +
	"\aorigins\x18\n" +
	" \x03(\x0e2\x15.ar.v1.PropertyOriginB\r\xbaH\n" +
	"\x92\x01\a\"\x05\x82\x01\x02\x10\x01R\aorigins\x12,\n" +
	"\x12mirror_property_id\x18\v \x01(\tR\x10mirrorPropertyId\x12\x14\n" +
	"\x05group\x18\f \x01(\tR\x05group\x12\x1a\n" +
	"\bordering\x18\r \x01(\x05R\bordering\x12\x1d\n" +
	"\n" +
	"hide_group\x18\x0e \x01(\bR\thideGroup:\x99\x01\xbaH\x95\x01\x1a\x92\x01\n" +
	"!mirror_id_set_if_origin_is_mirror\x12+Mirror ID must be set when origin is mirror\x1a@!this.mirror_property_id.startsWith('prop-') && this.origin == 2*\xde\x02\n" +
	"\fPropertyType\x12\x1d\n" +
	"\x19PROPERTY_TYPE_UNSPECIFIED\x10\x00\x12\x16\n" +
	"\x12PROPERTY_TYPE_BOOL\x10\x01\x12\x15\n" +
	"\x11PROPERTY_TYPE_INT\x10\x02\x12\x17\n" +
	"\x13PROPERTY_TYPE_FLOAT\x10\x03\x12\x18\n" +
	"\x14PROPERTY_TYPE_DOUBLE\x10\x04\x12\x18\n" +
	"\x14PROPERTY_TYPE_STRING\x10\x05\x12\x19\n" +
	"\x15PROPERTY_TYPE_VECTOR3\x10\x06\x12\x16\n" +
	"\x12PROPERTY_TYPE_POSE\x10\a\x12\x18\n" +
	"\x14PROPERTY_TYPE_ANCHOR\x10\b\x12\x17\n" +
	"\x13PROPERTY_TYPE_COLOR\x10\t\x12\x17\n" +
	"\x13PROPERTY_TYPE_AGENT\x10\n" +
	"\x12\x16\n" +
	"\x12PROPERTY_TYPE_ENUM\x10\v\x12\x1c\n" +
	"\x18PROPERTY_TYPE_ENUM_MULTI\x10\f*h\n" +
	"\x0ePropertyOrigin\x12\x1f\n" +
	"\x1bPROPERTY_ORIGIN_UNSPECIFIED\x10\x00\x12\x19\n" +
	"\x15PROPERTY_ORIGIN_FIXED\x10\x01\x12\x1a\n" +
	"\x16PROPERTY_ORIGIN_MIRROR\x10\x02B\x89\x01\n" +
	"\tcom.ar.v1B\rPropertyProtoP\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_property_proto_rawDescOnce sync.Once
	file_ar_v1_property_proto_rawDescData []byte
)

func file_ar_v1_property_proto_rawDescGZIP() []byte {
	file_ar_v1_property_proto_rawDescOnce.Do(func() {
		file_ar_v1_property_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_ar_v1_property_proto_rawDesc), len(file_ar_v1_property_proto_rawDesc)))
	})
	return file_ar_v1_property_proto_rawDescData
}

var file_ar_v1_property_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_ar_v1_property_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_ar_v1_property_proto_goTypes = []any{
	(PropertyType)(0),     // 0: ar.v1.PropertyType
	(PropertyOrigin)(0),   // 1: ar.v1.PropertyOrigin
	(*Property)(nil),      // 2: ar.v1.Property
	(WorkerPermission)(0), // 3: ar.v1.WorkerPermission
}
var file_ar_v1_property_proto_depIdxs = []int32{
	0, // 0: ar.v1.Property.type:type_name -> ar.v1.PropertyType
	3, // 1: ar.v1.Property.minimum_required_permission:type_name -> ar.v1.WorkerPermission
	1, // 2: ar.v1.Property.origin:type_name -> ar.v1.PropertyOrigin
	1, // 3: ar.v1.Property.origins:type_name -> ar.v1.PropertyOrigin
	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_property_proto_init() }
func file_ar_v1_property_proto_init() {
	if File_ar_v1_property_proto != nil {
		return
	}
	file_ar_v1_permissions_proto_init()
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_ar_v1_property_proto_rawDesc), len(file_ar_v1_property_proto_rawDesc)),
			NumEnums:      2,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_ar_v1_property_proto_goTypes,
		DependencyIndexes: file_ar_v1_property_proto_depIdxs,
		EnumInfos:         file_ar_v1_property_proto_enumTypes,
		MessageInfos:      file_ar_v1_property_proto_msgTypes,
	}.Build()
	File_ar_v1_property_proto = out.File
	file_ar_v1_property_proto_goTypes = nil
	file_ar_v1_property_proto_depIdxs = nil
}
