// Generate Go code by running: `make proto_generate`
// See `proto.mk` for more details.

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

package observation

import (
	protocol "github.com/buildwithgrove/path/observation/protocol"
	qos "github.com/buildwithgrove/path/observation/qos"
	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)
)

// RequestResponseObservations aggregates all observations made during service request processing.
// Contains observations for:
// - QoS metrics
// - Protocol instances
// - Gateway processing
// - HTTP request details
type RequestResponseObservations struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Identifies the target service for the request
	ServiceId string `protobuf:"bytes,1,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
	// Contains metrics about the incoming HTTP request (e.g., payload size)
	HttpRequest *HTTPRequestObservations `protobuf:"bytes,2,opt,name=http_request,json=httpRequest,proto3" json:"http_request,omitempty"`
	// Records gateway-level processing details (e.g., request origin - user vs hydrator)
	Gateway *GatewayObservations `protobuf:"bytes,3,opt,name=gateway,proto3" json:"gateway,omitempty"`
	// Contains protocol-level metrics (e.g., serving block height)
	Protocol *protocol.Observations `protobuf:"bytes,4,opt,name=protocol,proto3" json:"protocol,omitempty"`
	// Tracks QoS-related metrics (e.g., endpoint responses to chain queries)
	Qos           *qos.Observations `protobuf:"bytes,5,opt,name=qos,proto3" json:"qos,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*RequestResponseObservations) ProtoMessage() {}

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

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

func (x *RequestResponseObservations) GetHttpRequest() *HTTPRequestObservations {
	if x != nil {
		return x.HttpRequest
	}
	return nil
}

func (x *RequestResponseObservations) GetGateway() *GatewayObservations {
	if x != nil {
		return x.Gateway
	}
	return nil
}

func (x *RequestResponseObservations) GetProtocol() *protocol.Observations {
	if x != nil {
		return x.Protocol
	}
	return nil
}

func (x *RequestResponseObservations) GetQos() *qos.Observations {
	if x != nil {
		return x.Qos
	}
	return nil
}

var File_path_observations_proto protoreflect.FileDescriptor

const file_path_observations_proto_rawDesc = "" +
	"\n" +
	"\x17path/observations.proto\x12\x04path\x1a\x0fpath/http.proto\x1a\x12path/gateway.proto\x1a path/protocol/observations.proto\x1a\x1bpath/qos/observations.proto\"\x96\x02\n" +
	"\x1bRequestResponseObservations\x12\x1d\n" +
	"\n" +
	"service_id\x18\x01 \x01(\tR\tserviceId\x12@\n" +
	"\fhttp_request\x18\x02 \x01(\v2\x1d.path.HTTPRequestObservationsR\vhttpRequest\x123\n" +
	"\agateway\x18\x03 \x01(\v2\x19.path.GatewayObservationsR\agateway\x127\n" +
	"\bprotocol\x18\x04 \x01(\v2\x1b.path.protocol.ObservationsR\bprotocol\x12(\n" +
	"\x03qos\x18\x05 \x01(\v2\x16.path.qos.ObservationsR\x03qosB,Z*github.com/buildwithgrove/path/observationb\x06proto3"

var (
	file_path_observations_proto_rawDescOnce sync.Once
	file_path_observations_proto_rawDescData []byte
)

func file_path_observations_proto_rawDescGZIP() []byte {
	file_path_observations_proto_rawDescOnce.Do(func() {
		file_path_observations_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_path_observations_proto_rawDesc), len(file_path_observations_proto_rawDesc)))
	})
	return file_path_observations_proto_rawDescData
}

var file_path_observations_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_path_observations_proto_goTypes = []any{
	(*RequestResponseObservations)(nil), // 0: path.RequestResponseObservations
	(*HTTPRequestObservations)(nil),     // 1: path.HTTPRequestObservations
	(*GatewayObservations)(nil),         // 2: path.GatewayObservations
	(*protocol.Observations)(nil),       // 3: path.protocol.Observations
	(*qos.Observations)(nil),            // 4: path.qos.Observations
}
var file_path_observations_proto_depIdxs = []int32{
	1, // 0: path.RequestResponseObservations.http_request:type_name -> path.HTTPRequestObservations
	2, // 1: path.RequestResponseObservations.gateway:type_name -> path.GatewayObservations
	3, // 2: path.RequestResponseObservations.protocol:type_name -> path.protocol.Observations
	4, // 3: path.RequestResponseObservations.qos:type_name -> path.qos.Observations
	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_path_observations_proto_init() }
func file_path_observations_proto_init() {
	if File_path_observations_proto != nil {
		return
	}
	file_path_http_proto_init()
	file_path_gateway_proto_init()
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_path_observations_proto_rawDesc), len(file_path_observations_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_path_observations_proto_goTypes,
		DependencyIndexes: file_path_observations_proto_depIdxs,
		MessageInfos:      file_path_observations_proto_msgTypes,
	}.Build()
	File_path_observations_proto = out.File
	file_path_observations_proto_goTypes = nil
	file_path_observations_proto_depIdxs = nil
}
