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

// SolanaRequestObservations captures QoS data for a single Solana blockchain service request,
// including all observations made during potential retries.
type SolanaRequestObservations struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// chain_id is the blockchain identifier for the QoS implementation.
	// This is preset by the processor and not determined by the request.
	// Used by metrics and data pipeline.
	ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// service_id is the identifier for the QoS implementation.
	// It is the "alias" or human readable interpratation of the chain_id.
	ServiceId string `protobuf:"bytes,2,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
	// The length of the client's request payload, in bytes.
	RequestPayloadLength uint32 `protobuf:"varint,3,opt,name=request_payload_length,json=requestPayloadLength,proto3" json:"request_payload_length,omitempty"`
	// The origin of the request: user vs. QoS service (requests built by QoS for collecting data on endpoints)
	RequestOrigin RequestOrigin `protobuf:"varint,4,opt,name=request_origin,json=requestOrigin,proto3,enum=path.qos.RequestOrigin" json:"request_origin,omitempty"`
	// Tracks request errors, if any.
	RequestError *RequestError `protobuf:"bytes,5,opt,name=request_error,json=requestError,proto3,oneof" json:"request_error,omitempty"`
	// JSON-RPC request to the Solana blockchain service.
	// Only set if the HTTP request payload was successfully parsed into JSONRPC.
	// TODO_TECHDEBT: This assumes all SolanaVM blockchains only (and always) support JSON-RPC.
	// May need expansion/refactoring for future blockchain support.
	JsonrpcRequest *JsonRpcRequest `protobuf:"bytes,6,opt,name=jsonrpc_request,json=jsonrpcRequest,proto3,oneof" json:"jsonrpc_request,omitempty"`
	// Multiple observations possible if:
	// - Original endpoint returns invalid response
	// - Retry mechanism activates
	EndpointObservations []*SolanaEndpointObservation `protobuf:"bytes,7,rep,name=endpoint_observations,json=endpointObservations,proto3" json:"endpoint_observations,omitempty"`
	unknownFields        protoimpl.UnknownFields
	sizeCache            protoimpl.SizeCache
}

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

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

func (*SolanaRequestObservations) ProtoMessage() {}

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

func (x *SolanaRequestObservations) GetChainId() string {
	if x != nil {
		return x.ChainId
	}
	return ""
}

func (x *SolanaRequestObservations) GetServiceId() string {
	if x != nil {
		return x.ServiceId
	}
	return ""
}

func (x *SolanaRequestObservations) GetRequestPayloadLength() uint32 {
	if x != nil {
		return x.RequestPayloadLength
	}
	return 0
}

func (x *SolanaRequestObservations) GetRequestOrigin() RequestOrigin {
	if x != nil {
		return x.RequestOrigin
	}
	return RequestOrigin_REQUEST_ORIGIN_UNSPECIFIED
}

func (x *SolanaRequestObservations) GetRequestError() *RequestError {
	if x != nil {
		return x.RequestError
	}
	return nil
}

func (x *SolanaRequestObservations) GetJsonrpcRequest() *JsonRpcRequest {
	if x != nil {
		return x.JsonrpcRequest
	}
	return nil
}

func (x *SolanaRequestObservations) GetEndpointObservations() []*SolanaEndpointObservation {
	if x != nil {
		return x.EndpointObservations
	}
	return nil
}

// TODO_MVP(@adshmh): add unmarshaling error tracker to endpoint observations.
//
// SolanaEndpointObservation captures a single endpoint's response to a request
type SolanaEndpointObservation struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Address of the endpoint handling the request
	EndpointAddr string `protobuf:"bytes,1,opt,name=endpoint_addr,json=endpointAddr,proto3" json:"endpoint_addr,omitempty"`
	// HTTP status code returned to the user.
	// It is derived from either:
	//   - The endpoint payload parsed as a JSONRPC response.
	//   - A generic JSONRPC error response if the endpoint payload fails to parse.
	HttpStatusCode int32 `protobuf:"varint,2,opt,name=http_status_code,json=httpStatusCode,proto3" json:"http_status_code,omitempty"`
	// Types that are valid to be assigned to ResponseObservation:
	//
	//	*SolanaEndpointObservation_GetEpochInfoResponse
	//	*SolanaEndpointObservation_GetHealthResponse
	//	*SolanaEndpointObservation_UnrecognizedResponse
	ResponseObservation isSolanaEndpointObservation_ResponseObservation `protobuf_oneof:"response_observation"`
	unknownFields       protoimpl.UnknownFields
	sizeCache           protoimpl.SizeCache
}

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

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

func (*SolanaEndpointObservation) ProtoMessage() {}

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

func (x *SolanaEndpointObservation) GetEndpointAddr() string {
	if x != nil {
		return x.EndpointAddr
	}
	return ""
}

func (x *SolanaEndpointObservation) GetHttpStatusCode() int32 {
	if x != nil {
		return x.HttpStatusCode
	}
	return 0
}

func (x *SolanaEndpointObservation) GetResponseObservation() isSolanaEndpointObservation_ResponseObservation {
	if x != nil {
		return x.ResponseObservation
	}
	return nil
}

func (x *SolanaEndpointObservation) GetGetEpochInfoResponse() *SolanaGetEpochInfoResponse {
	if x != nil {
		if x, ok := x.ResponseObservation.(*SolanaEndpointObservation_GetEpochInfoResponse); ok {
			return x.GetEpochInfoResponse
		}
	}
	return nil
}

func (x *SolanaEndpointObservation) GetGetHealthResponse() *SolanaGetHealthResponse {
	if x != nil {
		if x, ok := x.ResponseObservation.(*SolanaEndpointObservation_GetHealthResponse); ok {
			return x.GetHealthResponse
		}
	}
	return nil
}

func (x *SolanaEndpointObservation) GetUnrecognizedResponse() *SolanaUnrecognizedResponse {
	if x != nil {
		if x, ok := x.ResponseObservation.(*SolanaEndpointObservation_UnrecognizedResponse); ok {
			return x.UnrecognizedResponse
		}
	}
	return nil
}

type isSolanaEndpointObservation_ResponseObservation interface {
	isSolanaEndpointObservation_ResponseObservation()
}

type SolanaEndpointObservation_GetEpochInfoResponse struct {
	// Response from getEpochInfo
	// Docs: https://solana.com/docs/rpc/http/getepochinfo
	GetEpochInfoResponse *SolanaGetEpochInfoResponse `protobuf:"bytes,3,opt,name=get_epoch_info_response,json=getEpochInfoResponse,proto3,oneof"`
}

type SolanaEndpointObservation_GetHealthResponse struct {
	// Response from getHealth
	// Docs: https://solana.com/docs/rpc/http/gethealth
	GetHealthResponse *SolanaGetHealthResponse `protobuf:"bytes,4,opt,name=get_health_response,json=getHealthResponse,proto3,oneof"`
}

type SolanaEndpointObservation_UnrecognizedResponse struct {
	// Responses not used in endpoint validation (e.g., getAccountInfo)
	UnrecognizedResponse *SolanaUnrecognizedResponse `protobuf:"bytes,5,opt,name=unrecognized_response,json=unrecognizedResponse,proto3,oneof"`
}

func (*SolanaEndpointObservation_GetEpochInfoResponse) isSolanaEndpointObservation_ResponseObservation() {
}

func (*SolanaEndpointObservation_GetHealthResponse) isSolanaEndpointObservation_ResponseObservation() {
}

func (*SolanaEndpointObservation_UnrecognizedResponse) isSolanaEndpointObservation_ResponseObservation() {
}

// SolanaEpochInfoResponse stores getEpochInfo response data
// Docs: https://solana.com/docs/rpc/http/getepochinfo
type SolanaGetEpochInfoResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Stored as uint64 for cross-instance validation
	BlockHeight   uint64 `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
	Epoch         uint64 `protobuf:"varint,2,opt,name=epoch,proto3" json:"epoch,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *SolanaGetEpochInfoResponse) Reset() {
	*x = SolanaGetEpochInfoResponse{}
	mi := &file_path_qos_solana_proto_msgTypes[2]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*SolanaGetEpochInfoResponse) ProtoMessage() {}

func (x *SolanaGetEpochInfoResponse) ProtoReflect() protoreflect.Message {
	mi := &file_path_qos_solana_proto_msgTypes[2]
	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 SolanaGetEpochInfoResponse.ProtoReflect.Descriptor instead.
func (*SolanaGetEpochInfoResponse) Descriptor() ([]byte, []int) {
	return file_path_qos_solana_proto_rawDescGZIP(), []int{2}
}

func (x *SolanaGetEpochInfoResponse) GetBlockHeight() uint64 {
	if x != nil {
		return x.BlockHeight
	}
	return 0
}

func (x *SolanaGetEpochInfoResponse) GetEpoch() uint64 {
	if x != nil {
		return x.Epoch
	}
	return 0
}

// SolanaGetHealthResponse stores getHealth response data
// Docs: https://solana.com/docs/rpc/http/gethealth
type SolanaGetHealthResponse struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Result        string                 `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *SolanaGetHealthResponse) Reset() {
	*x = SolanaGetHealthResponse{}
	mi := &file_path_qos_solana_proto_msgTypes[3]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*SolanaGetHealthResponse) ProtoMessage() {}

func (x *SolanaGetHealthResponse) ProtoReflect() protoreflect.Message {
	mi := &file_path_qos_solana_proto_msgTypes[3]
	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 SolanaGetHealthResponse.ProtoReflect.Descriptor instead.
func (*SolanaGetHealthResponse) Descriptor() ([]byte, []int) {
	return file_path_qos_solana_proto_rawDescGZIP(), []int{3}
}

func (x *SolanaGetHealthResponse) GetResult() string {
	if x != nil {
		return x.Result
	}
	return ""
}

// SolanaUnrecognizedResponse stores responses from methods not used in validation
// Examples: getTokenSupply, getTransaction
type SolanaUnrecognizedResponse struct {
	state           protoimpl.MessageState `protogen:"open.v1"`
	JsonrpcResponse *JsonRpcResponse       `protobuf:"bytes,1,opt,name=jsonrpc_response,json=jsonrpcResponse,proto3" json:"jsonrpc_response,omitempty"`
	// Optional validation error information
	ValidationError *JsonRpcResponseValidationError `protobuf:"bytes,2,opt,name=validation_error,json=validationError,proto3,oneof" json:"validation_error,omitempty"`
	unknownFields   protoimpl.UnknownFields
	sizeCache       protoimpl.SizeCache
}

func (x *SolanaUnrecognizedResponse) Reset() {
	*x = SolanaUnrecognizedResponse{}
	mi := &file_path_qos_solana_proto_msgTypes[4]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*SolanaUnrecognizedResponse) ProtoMessage() {}

func (x *SolanaUnrecognizedResponse) ProtoReflect() protoreflect.Message {
	mi := &file_path_qos_solana_proto_msgTypes[4]
	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 SolanaUnrecognizedResponse.ProtoReflect.Descriptor instead.
func (*SolanaUnrecognizedResponse) Descriptor() ([]byte, []int) {
	return file_path_qos_solana_proto_rawDescGZIP(), []int{4}
}

func (x *SolanaUnrecognizedResponse) GetJsonrpcResponse() *JsonRpcResponse {
	if x != nil {
		return x.JsonrpcResponse
	}
	return nil
}

func (x *SolanaUnrecognizedResponse) GetValidationError() *JsonRpcResponseValidationError {
	if x != nil {
		return x.ValidationError
	}
	return nil
}

var File_path_qos_solana_proto protoreflect.FileDescriptor

const file_path_qos_solana_proto_rawDesc = "" +
	"\n" +
	"\x15path/qos/solana.proto\x12\bpath.qos\x1a\x16path/qos/jsonrpc.proto\x1a\x1dpath/qos/request_origin.proto\x1a\x1cpath/qos/request_error.proto\x1a'path/qos/jsonrpc_validation_error.proto\"\xd5\x03\n" +
	"\x19SolanaRequestObservations\x12\x19\n" +
	"\bchain_id\x18\x01 \x01(\tR\achainId\x12\x1d\n" +
	"\n" +
	"service_id\x18\x02 \x01(\tR\tserviceId\x124\n" +
	"\x16request_payload_length\x18\x03 \x01(\rR\x14requestPayloadLength\x12>\n" +
	"\x0erequest_origin\x18\x04 \x01(\x0e2\x17.path.qos.RequestOriginR\rrequestOrigin\x12@\n" +
	"\rrequest_error\x18\x05 \x01(\v2\x16.path.qos.RequestErrorH\x00R\frequestError\x88\x01\x01\x12F\n" +
	"\x0fjsonrpc_request\x18\x06 \x01(\v2\x18.path.qos.JsonRpcRequestH\x01R\x0ejsonrpcRequest\x88\x01\x01\x12X\n" +
	"\x15endpoint_observations\x18\a \x03(\v2#.path.qos.SolanaEndpointObservationR\x14endpointObservationsB\x10\n" +
	"\x0e_request_errorB\x12\n" +
	"\x10_jsonrpc_request\"\x93\x03\n" +
	"\x19SolanaEndpointObservation\x12#\n" +
	"\rendpoint_addr\x18\x01 \x01(\tR\fendpointAddr\x12(\n" +
	"\x10http_status_code\x18\x02 \x01(\x05R\x0ehttpStatusCode\x12]\n" +
	"\x17get_epoch_info_response\x18\x03 \x01(\v2$.path.qos.SolanaGetEpochInfoResponseH\x00R\x14getEpochInfoResponse\x12S\n" +
	"\x13get_health_response\x18\x04 \x01(\v2!.path.qos.SolanaGetHealthResponseH\x00R\x11getHealthResponse\x12[\n" +
	"\x15unrecognized_response\x18\x05 \x01(\v2$.path.qos.SolanaUnrecognizedResponseH\x00R\x14unrecognizedResponseB\x16\n" +
	"\x14response_observation\"U\n" +
	"\x1aSolanaGetEpochInfoResponse\x12!\n" +
	"\fblock_height\x18\x01 \x01(\x04R\vblockHeight\x12\x14\n" +
	"\x05epoch\x18\x02 \x01(\x04R\x05epoch\"1\n" +
	"\x17SolanaGetHealthResponse\x12\x16\n" +
	"\x06result\x18\x01 \x01(\tR\x06result\"\xd1\x01\n" +
	"\x1aSolanaUnrecognizedResponse\x12D\n" +
	"\x10jsonrpc_response\x18\x01 \x01(\v2\x19.path.qos.JsonRpcResponseR\x0fjsonrpcResponse\x12X\n" +
	"\x10validation_error\x18\x02 \x01(\v2(.path.qos.JsonRpcResponseValidationErrorH\x00R\x0fvalidationError\x88\x01\x01B\x13\n" +
	"\x11_validation_errorB0Z.github.com/buildwithgrove/path/observation/qosb\x06proto3"

var (
	file_path_qos_solana_proto_rawDescOnce sync.Once
	file_path_qos_solana_proto_rawDescData []byte
)

func file_path_qos_solana_proto_rawDescGZIP() []byte {
	file_path_qos_solana_proto_rawDescOnce.Do(func() {
		file_path_qos_solana_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_path_qos_solana_proto_rawDesc), len(file_path_qos_solana_proto_rawDesc)))
	})
	return file_path_qos_solana_proto_rawDescData
}

var file_path_qos_solana_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_path_qos_solana_proto_goTypes = []any{
	(*SolanaRequestObservations)(nil),      // 0: path.qos.SolanaRequestObservations
	(*SolanaEndpointObservation)(nil),      // 1: path.qos.SolanaEndpointObservation
	(*SolanaGetEpochInfoResponse)(nil),     // 2: path.qos.SolanaGetEpochInfoResponse
	(*SolanaGetHealthResponse)(nil),        // 3: path.qos.SolanaGetHealthResponse
	(*SolanaUnrecognizedResponse)(nil),     // 4: path.qos.SolanaUnrecognizedResponse
	(RequestOrigin)(0),                     // 5: path.qos.RequestOrigin
	(*RequestError)(nil),                   // 6: path.qos.RequestError
	(*JsonRpcRequest)(nil),                 // 7: path.qos.JsonRpcRequest
	(*JsonRpcResponse)(nil),                // 8: path.qos.JsonRpcResponse
	(*JsonRpcResponseValidationError)(nil), // 9: path.qos.JsonRpcResponseValidationError
}
var file_path_qos_solana_proto_depIdxs = []int32{
	5, // 0: path.qos.SolanaRequestObservations.request_origin:type_name -> path.qos.RequestOrigin
	6, // 1: path.qos.SolanaRequestObservations.request_error:type_name -> path.qos.RequestError
	7, // 2: path.qos.SolanaRequestObservations.jsonrpc_request:type_name -> path.qos.JsonRpcRequest
	1, // 3: path.qos.SolanaRequestObservations.endpoint_observations:type_name -> path.qos.SolanaEndpointObservation
	2, // 4: path.qos.SolanaEndpointObservation.get_epoch_info_response:type_name -> path.qos.SolanaGetEpochInfoResponse
	3, // 5: path.qos.SolanaEndpointObservation.get_health_response:type_name -> path.qos.SolanaGetHealthResponse
	4, // 6: path.qos.SolanaEndpointObservation.unrecognized_response:type_name -> path.qos.SolanaUnrecognizedResponse
	8, // 7: path.qos.SolanaUnrecognizedResponse.jsonrpc_response:type_name -> path.qos.JsonRpcResponse
	9, // 8: path.qos.SolanaUnrecognizedResponse.validation_error:type_name -> path.qos.JsonRpcResponseValidationError
	9, // [9:9] is the sub-list for method output_type
	9, // [9:9] is the sub-list for method input_type
	9, // [9:9] is the sub-list for extension type_name
	9, // [9:9] is the sub-list for extension extendee
	0, // [0:9] is the sub-list for field type_name
}

func init() { file_path_qos_solana_proto_init() }
func file_path_qos_solana_proto_init() {
	if File_path_qos_solana_proto != nil {
		return
	}
	file_path_qos_jsonrpc_proto_init()
	file_path_qos_request_origin_proto_init()
	file_path_qos_request_error_proto_init()
	file_path_qos_jsonrpc_validation_error_proto_init()
	file_path_qos_solana_proto_msgTypes[0].OneofWrappers = []any{}
	file_path_qos_solana_proto_msgTypes[1].OneofWrappers = []any{
		(*SolanaEndpointObservation_GetEpochInfoResponse)(nil),
		(*SolanaEndpointObservation_GetHealthResponse)(nil),
		(*SolanaEndpointObservation_UnrecognizedResponse)(nil),
	}
	file_path_qos_solana_proto_msgTypes[4].OneofWrappers = []any{}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_path_qos_solana_proto_rawDesc), len(file_path_qos_solana_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   5,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_path_qos_solana_proto_goTypes,
		DependencyIndexes: file_path_qos_solana_proto_depIdxs,
		MessageInfos:      file_path_qos_solana_proto_msgTypes,
	}.Build()
	File_path_qos_solana_proto = out.File
	file_path_qos_solana_proto_goTypes = nil
	file_path_qos_solana_proto_depIdxs = nil
}
