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

package geometryv1

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"
	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 LocalizedState int32

const (
	LocalizedState_LOCALIZED_STATE_UNSPECIFIED LocalizedState = 0
	LocalizedState_LOCALIZED_STATE_FOUND       LocalizedState = 1
	LocalizedState_LOCALIZED_STATE_LOST        LocalizedState = 2
	LocalizedState_LOCALIZED_STATE_STATIC      LocalizedState = 3
)

// Enum value maps for LocalizedState.
var (
	LocalizedState_name = map[int32]string{
		0: "LOCALIZED_STATE_UNSPECIFIED",
		1: "LOCALIZED_STATE_FOUND",
		2: "LOCALIZED_STATE_LOST",
		3: "LOCALIZED_STATE_STATIC",
	}
	LocalizedState_value = map[string]int32{
		"LOCALIZED_STATE_UNSPECIFIED": 0,
		"LOCALIZED_STATE_FOUND":       1,
		"LOCALIZED_STATE_LOST":        2,
		"LOCALIZED_STATE_STATIC":      3,
	}
)

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

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

func (LocalizedState) Descriptor() protoreflect.EnumDescriptor {
	return file_geometry_v1_pose_proto_enumTypes[0].Descriptor()
}

func (LocalizedState) Type() protoreflect.EnumType {
	return &file_geometry_v1_pose_proto_enumTypes[0]
}

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

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

// A simple pose consisting of a position and orientation
type Pose struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Position      *Point                 `protobuf:"bytes,1,opt,name=position,proto3" json:"position,omitempty"`
	Orientation   *Quad                  `protobuf:"bytes,2,opt,name=orientation,proto3" json:"orientation,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Pose) ProtoMessage() {}

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

func (x *Pose) GetPosition() *Point {
	if x != nil {
		return x.Position
	}
	return nil
}

func (x *Pose) GetOrientation() *Quad {
	if x != nil {
		return x.Orientation
	}
	return nil
}

// A localized pose with reference to an anchorId. The state and last updated time of the pose can be specified.
type LocalizedPose struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Id            string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Position      *Point                 `protobuf:"bytes,2,opt,name=position,proto3" json:"position,omitempty"`
	Orientation   *Quad                  `protobuf:"bytes,3,opt,name=orientation,proto3" json:"orientation,omitempty"`
	AnchorId      string                 `protobuf:"bytes,4,opt,name=anchor_id,json=anchorId,proto3" json:"anchor_id,omitempty"`
	State         LocalizedState         `protobuf:"varint,5,opt,name=state,proto3,enum=geometry.v1.LocalizedState" json:"state,omitempty"`
	LastUpdated   *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*LocalizedPose) ProtoMessage() {}

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

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

func (x *LocalizedPose) GetPosition() *Point {
	if x != nil {
		return x.Position
	}
	return nil
}

func (x *LocalizedPose) GetOrientation() *Quad {
	if x != nil {
		return x.Orientation
	}
	return nil
}

func (x *LocalizedPose) GetAnchorId() string {
	if x != nil {
		return x.AnchorId
	}
	return ""
}

func (x *LocalizedPose) GetState() LocalizedState {
	if x != nil {
		return x.State
	}
	return LocalizedState_LOCALIZED_STATE_UNSPECIFIED
}

func (x *LocalizedPose) GetLastUpdated() *timestamppb.Timestamp {
	if x != nil {
		return x.LastUpdated
	}
	return nil
}

var File_geometry_v1_pose_proto protoreflect.FileDescriptor

const file_geometry_v1_pose_proto_rawDesc = "" +
	"\n" +
	"\x16geometry/v1/pose.proto\x12\vgeometry.v1\x1a\x1bbuf/validate/validate.proto\x1a\x17geometry/v1/point.proto\x1a\x16geometry/v1/quad.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"k\n" +
	"\x04Pose\x12.\n" +
	"\bposition\x18\x01 \x01(\v2\x12.geometry.v1.PointR\bposition\x123\n" +
	"\vorientation\x18\x02 \x01(\v2\x11.geometry.v1.QuadR\vorientation\"\xc2\x03\n" +
	"\rLocalizedPose\x12\x16\n" +
	"\x02id\x18\x01 \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\x02id\x126\n" +
	"\bposition\x18\x02 \x01(\v2\x12.geometry.v1.PointB\x06\xbaH\x03\xc8\x01\x01R\bposition\x12;\n" +
	"\vorientation\x18\x03 \x01(\v2\x11.geometry.v1.QuadB\x06\xbaH\x03\xc8\x01\x01R\vorientation\x12\x1b\n" +
	"\tanchor_id\x18\x04 \x01(\tR\banchorId\x12;\n" +
	"\x05state\x18\x05 \x01(\x0e2\x1b.geometry.v1.LocalizedStateB\b\xbaH\x05\x82\x01\x02\x10\x01R\x05state\x12=\n" +
	"\flast_updated\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\vlastUpdated:\x8a\x01\xbaH\x86\x01\x1a\x83\x01\n" +
	"\"anchor_id_set_when_state_specified\x1a]this.state != 0 && has(this.anchor_id) ? 'anchor ID must be set when state is specified' : ''*\x82\x01\n" +
	"\x0eLocalizedState\x12\x1f\n" +
	"\x1bLOCALIZED_STATE_UNSPECIFIED\x10\x00\x12\x19\n" +
	"\x15LOCALIZED_STATE_FOUND\x10\x01\x12\x18\n" +
	"\x14LOCALIZED_STATE_LOST\x10\x02\x12\x1a\n" +
	"\x16LOCALIZED_STATE_STATIC\x10\x03B\xad\x01\n" +
	"\x0fcom.geometry.v1B\tPoseProtoP\x01Z;github.com/cobotar/protocol/messages/geometry/v1;geometryv1\xa2\x02\x03GXX\xaa\x02\x12Messages.Common.V1\xca\x02\vGeometry\\V1\xe2\x02\x17Geometry\\V1\\GPBMetadata\xea\x02\fGeometry::V1b\x06proto3"

var (
	file_geometry_v1_pose_proto_rawDescOnce sync.Once
	file_geometry_v1_pose_proto_rawDescData []byte
)

func file_geometry_v1_pose_proto_rawDescGZIP() []byte {
	file_geometry_v1_pose_proto_rawDescOnce.Do(func() {
		file_geometry_v1_pose_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_geometry_v1_pose_proto_rawDesc), len(file_geometry_v1_pose_proto_rawDesc)))
	})
	return file_geometry_v1_pose_proto_rawDescData
}

var file_geometry_v1_pose_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_geometry_v1_pose_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_geometry_v1_pose_proto_goTypes = []any{
	(LocalizedState)(0),           // 0: geometry.v1.LocalizedState
	(*Pose)(nil),                  // 1: geometry.v1.Pose
	(*LocalizedPose)(nil),         // 2: geometry.v1.LocalizedPose
	(*Point)(nil),                 // 3: geometry.v1.Point
	(*Quad)(nil),                  // 4: geometry.v1.Quad
	(*timestamppb.Timestamp)(nil), // 5: google.protobuf.Timestamp
}
var file_geometry_v1_pose_proto_depIdxs = []int32{
	3, // 0: geometry.v1.Pose.position:type_name -> geometry.v1.Point
	4, // 1: geometry.v1.Pose.orientation:type_name -> geometry.v1.Quad
	3, // 2: geometry.v1.LocalizedPose.position:type_name -> geometry.v1.Point
	4, // 3: geometry.v1.LocalizedPose.orientation:type_name -> geometry.v1.Quad
	0, // 4: geometry.v1.LocalizedPose.state:type_name -> geometry.v1.LocalizedState
	5, // 5: geometry.v1.LocalizedPose.last_updated:type_name -> google.protobuf.Timestamp
	6, // [6:6] is the sub-list for method output_type
	6, // [6:6] is the sub-list for method input_type
	6, // [6:6] is the sub-list for extension type_name
	6, // [6:6] is the sub-list for extension extendee
	0, // [0:6] is the sub-list for field type_name
}

func init() { file_geometry_v1_pose_proto_init() }
func file_geometry_v1_pose_proto_init() {
	if File_geometry_v1_pose_proto != nil {
		return
	}
	file_geometry_v1_point_proto_init()
	file_geometry_v1_quad_proto_init()
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_geometry_v1_pose_proto_rawDesc), len(file_geometry_v1_pose_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_geometry_v1_pose_proto_goTypes,
		DependencyIndexes: file_geometry_v1_pose_proto_depIdxs,
		EnumInfos:         file_geometry_v1_pose_proto_enumTypes,
		MessageInfos:      file_geometry_v1_pose_proto_msgTypes,
	}.Build()
	File_geometry_v1_pose_proto = out.File
	file_geometry_v1_pose_proto_goTypes = nil
	file_geometry_v1_pose_proto_depIdxs = nil
}
