// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.6
// 	protoc        v5.29.3
// source: path/qos/request_origin.proto

package qos

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)
)

// TODO_DOCUMENT(@Olshansk): Standardize the language on organic vs synthetic requests across docs/comments/code.
//
// RequestOrigin enumerates possible request origins:
// - Organic: the request was sent to PATH by a user
// - Synthetic: the request was built by the QoS service to collect data points on an endpoint.
type RequestOrigin int32

const (
	RequestOrigin_REQUEST_ORIGIN_UNSPECIFIED RequestOrigin = 0
	RequestOrigin_REQUEST_ORIGIN_ORGANIC     RequestOrigin = 1 // Organic request, i.e. sent by user.
	RequestOrigin_REQUEST_ORIGIN_SYNTHETIC   RequestOrigin = 2 // Synthetic request, i.e. generated by the QoS Service.
)

// Enum value maps for RequestOrigin.
var (
	RequestOrigin_name = map[int32]string{
		0: "REQUEST_ORIGIN_UNSPECIFIED",
		1: "REQUEST_ORIGIN_ORGANIC",
		2: "REQUEST_ORIGIN_SYNTHETIC",
	}
	RequestOrigin_value = map[string]int32{
		"REQUEST_ORIGIN_UNSPECIFIED": 0,
		"REQUEST_ORIGIN_ORGANIC":     1,
		"REQUEST_ORIGIN_SYNTHETIC":   2,
	}
)

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

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

func (RequestOrigin) Descriptor() protoreflect.EnumDescriptor {
	return file_path_qos_request_origin_proto_enumTypes[0].Descriptor()
}

func (RequestOrigin) Type() protoreflect.EnumType {
	return &file_path_qos_request_origin_proto_enumTypes[0]
}

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

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

var File_path_qos_request_origin_proto protoreflect.FileDescriptor

const file_path_qos_request_origin_proto_rawDesc = "" +
	"\n" +
	"\x1dpath/qos/request_origin.proto\x12\bpath.qos*i\n" +
	"\rRequestOrigin\x12\x1e\n" +
	"\x1aREQUEST_ORIGIN_UNSPECIFIED\x10\x00\x12\x1a\n" +
	"\x16REQUEST_ORIGIN_ORGANIC\x10\x01\x12\x1c\n" +
	"\x18REQUEST_ORIGIN_SYNTHETIC\x10\x02B0Z.github.com/buildwithgrove/path/observation/qosb\x06proto3"

var (
	file_path_qos_request_origin_proto_rawDescOnce sync.Once
	file_path_qos_request_origin_proto_rawDescData []byte
)

func file_path_qos_request_origin_proto_rawDescGZIP() []byte {
	file_path_qos_request_origin_proto_rawDescOnce.Do(func() {
		file_path_qos_request_origin_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_path_qos_request_origin_proto_rawDesc), len(file_path_qos_request_origin_proto_rawDesc)))
	})
	return file_path_qos_request_origin_proto_rawDescData
}

var file_path_qos_request_origin_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_path_qos_request_origin_proto_goTypes = []any{
	(RequestOrigin)(0), // 0: path.qos.RequestOrigin
}
var file_path_qos_request_origin_proto_depIdxs = []int32{
	0, // [0:0] is the sub-list for method output_type
	0, // [0:0] is the sub-list for method input_type
	0, // [0:0] is the sub-list for extension type_name
	0, // [0:0] is the sub-list for extension extendee
	0, // [0:0] is the sub-list for field type_name
}

func init() { file_path_qos_request_origin_proto_init() }
func file_path_qos_request_origin_proto_init() {
	if File_path_qos_request_origin_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_path_qos_request_origin_proto_rawDesc), len(file_path_qos_request_origin_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   0,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_path_qos_request_origin_proto_goTypes,
		DependencyIndexes: file_path_qos_request_origin_proto_depIdxs,
		EnumInfos:         file_path_qos_request_origin_proto_enumTypes,
	}.Build()
	File_path_qos_request_origin_proto = out.File
	file_path_qos_request_origin_proto_goTypes = nil
	file_path_qos_request_origin_proto_depIdxs = nil
}
