// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.6
// 	protoc        v5.29.3
// source: path/qos/observations.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)
)

// Observations contains QoS measurements for a single service request.
// Currently supports:
// - Solana blockchain service
// - EVM blockchains service
type Observations struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// service_observations contains QoS measurements specific to the service type
	//
	// Types that are valid to be assigned to ServiceObservations:
	//
	//	*Observations_Solana
	//	*Observations_Evm
	//	*Observations_Cosmos
	ServiceObservations isObservations_ServiceObservations `protobuf_oneof:"service_observations"`
	unknownFields       protoimpl.UnknownFields
	sizeCache           protoimpl.SizeCache
}

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

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

func (*Observations) ProtoMessage() {}

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

func (x *Observations) GetServiceObservations() isObservations_ServiceObservations {
	if x != nil {
		return x.ServiceObservations
	}
	return nil
}

func (x *Observations) GetSolana() *SolanaRequestObservations {
	if x != nil {
		if x, ok := x.ServiceObservations.(*Observations_Solana); ok {
			return x.Solana
		}
	}
	return nil
}

func (x *Observations) GetEvm() *EVMRequestObservations {
	if x != nil {
		if x, ok := x.ServiceObservations.(*Observations_Evm); ok {
			return x.Evm
		}
	}
	return nil
}

func (x *Observations) GetCosmos() *CosmosRequestObservations {
	if x != nil {
		if x, ok := x.ServiceObservations.(*Observations_Cosmos); ok {
			return x.Cosmos
		}
	}
	return nil
}

type isObservations_ServiceObservations interface {
	isObservations_ServiceObservations()
}

type Observations_Solana struct {
	// solana contains QoS measurements for a single Solana blockchain request
	Solana *SolanaRequestObservations `protobuf:"bytes,1,opt,name=solana,proto3,oneof"`
}

type Observations_Evm struct {
	// evm contains QoS measurements for a single EVM blockchain request
	Evm *EVMRequestObservations `protobuf:"bytes,2,opt,name=evm,proto3,oneof"`
}

type Observations_Cosmos struct {
	// cosmos contains QoS measurements for a single CosmosSDK blockchain request
	Cosmos *CosmosRequestObservations `protobuf:"bytes,3,opt,name=cosmos,proto3,oneof"`
}

func (*Observations_Solana) isObservations_ServiceObservations() {}

func (*Observations_Evm) isObservations_ServiceObservations() {}

func (*Observations_Cosmos) isObservations_ServiceObservations() {}

var File_path_qos_observations_proto protoreflect.FileDescriptor

const file_path_qos_observations_proto_rawDesc = "" +
	"\n" +
	"\x1bpath/qos/observations.proto\x12\bpath.qos\x1a\x12path/qos/evm.proto\x1a\x15path/qos/solana.proto\x1a\x15path/qos/cosmos.proto\"\xda\x01\n" +
	"\fObservations\x12=\n" +
	"\x06solana\x18\x01 \x01(\v2#.path.qos.SolanaRequestObservationsH\x00R\x06solana\x124\n" +
	"\x03evm\x18\x02 \x01(\v2 .path.qos.EVMRequestObservationsH\x00R\x03evm\x12=\n" +
	"\x06cosmos\x18\x03 \x01(\v2#.path.qos.CosmosRequestObservationsH\x00R\x06cosmosB\x16\n" +
	"\x14service_observationsB0Z.github.com/buildwithgrove/path/observation/qosb\x06proto3"

var (
	file_path_qos_observations_proto_rawDescOnce sync.Once
	file_path_qos_observations_proto_rawDescData []byte
)

func file_path_qos_observations_proto_rawDescGZIP() []byte {
	file_path_qos_observations_proto_rawDescOnce.Do(func() {
		file_path_qos_observations_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_path_qos_observations_proto_rawDesc), len(file_path_qos_observations_proto_rawDesc)))
	})
	return file_path_qos_observations_proto_rawDescData
}

var file_path_qos_observations_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_path_qos_observations_proto_goTypes = []any{
	(*Observations)(nil),              // 0: path.qos.Observations
	(*SolanaRequestObservations)(nil), // 1: path.qos.SolanaRequestObservations
	(*EVMRequestObservations)(nil),    // 2: path.qos.EVMRequestObservations
	(*CosmosRequestObservations)(nil), // 3: path.qos.CosmosRequestObservations
}
var file_path_qos_observations_proto_depIdxs = []int32{
	1, // 0: path.qos.Observations.solana:type_name -> path.qos.SolanaRequestObservations
	2, // 1: path.qos.Observations.evm:type_name -> path.qos.EVMRequestObservations
	3, // 2: path.qos.Observations.cosmos:type_name -> path.qos.CosmosRequestObservations
	3, // [3:3] is the sub-list for method output_type
	3, // [3:3] is the sub-list for method input_type
	3, // [3:3] is the sub-list for extension type_name
	3, // [3:3] is the sub-list for extension extendee
	0, // [0:3] is the sub-list for field type_name
}

func init() { file_path_qos_observations_proto_init() }
func file_path_qos_observations_proto_init() {
	if File_path_qos_observations_proto != nil {
		return
	}
	file_path_qos_evm_proto_init()
	file_path_qos_solana_proto_init()
	file_path_qos_cosmos_proto_init()
	file_path_qos_observations_proto_msgTypes[0].OneofWrappers = []any{
		(*Observations_Solana)(nil),
		(*Observations_Evm)(nil),
		(*Observations_Cosmos)(nil),
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_path_qos_observations_proto_rawDesc), len(file_path_qos_observations_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_path_qos_observations_proto_goTypes,
		DependencyIndexes: file_path_qos_observations_proto_depIdxs,
		MessageInfos:      file_path_qos_observations_proto_msgTypes,
	}.Build()
	File_path_qos_observations_proto = out.File
	file_path_qos_observations_proto_goTypes = nil
	file_path_qos_observations_proto_depIdxs = nil
}
